/* ============================================================
   আমার সকাল ফাউন্ডেশন — Design tokens & shared styles
   Palette: deep paddy green + harvest gold + brick terracotta
   on a warm paper background, echoing rural Bangladesh.
   ============================================================ */

:root {
  /* Color */
  --bg: #FAF8F3;
  --bg-soft: #F1EDE2;
  --paper: #FFFFFF;
  --ink: #1B1A15;
  --ink-soft: #5B5A4E;
  --forest: #163C2E;
  --forest-light: #2F6B4F;
  --forest-pale: #E7EFE7;
  --gold: #C89B3C;
  --gold-light: #E7C878;
  --brick: #A84C36;
  --line: #E3DED0;

  /* Type */
  --f-display: "Tiro Bangla", "Fraunces", serif;
  --f-accent: "Fraunces", "Tiro Bangla", serif;
  --f-body: "Hind Siliguri", "Inter", sans-serif;
  --f-ui: "Inter", "Hind Siliguri", sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(27,26,21,.04), 0 8px 24px -12px rgba(27,26,21,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--forest);
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 600;
}

.eng { font-family: var(--f-ui); letter-spacing: .04em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--forest { background: var(--forest); color: #EFEAD9; }
.section--forest h2, .section--forest h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stalk divider (signature motif) ---------- */
.stalk-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 40px;
  color: var(--gold);
}
.stalk-divider svg { width: 34px; height: 34px; }
.stalk-divider::before, .stalk-divider::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--forest); }
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 8px 20px -8px rgba(200,155,60,.6); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-light); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .84rem; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.18rem;
  color: var(--forest);
}
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .sub { display: block; font-family: var(--f-ui); font-size: .66rem; letter-spacing: .08em; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-family: var(--f-ui); font-size: .93rem; font-weight: 500;
}
.nav-links a { color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--forest-light); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: var(--f-ui); font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 4px;
  display: flex; gap: 2px;
}
.lang-switch button { border: none; background: none; padding: 4px 10px; border-radius: 16px; color: var(--ink-soft); }
.lang-switch button.active { background: var(--forest); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--bg); flex-direction: column; padding: 30px 24px; align-items: flex-start; gap: 20px; font-size: 1.05rem; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: var(--radius); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--forest); position: relative; transition: all .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #133226 0%, var(--forest) 62%, #1a4634 100%);
  color: #F4F0E2;
  padding: 84px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { font-size: 1.12rem; color: #D9D5C2; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--f-accent); font-size: 1.7rem; color: var(--gold-light); }
.hero-stats div span { font-size: .82rem; color: #C7C2AC; }

.hero-art { position: relative; }
.stalks-field { width: 100%; height: auto; }

/* Quick donate strip in hero */
.quick-donate { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 20px; margin-top: 10px; }
.quick-donate p { margin: 0 0 12px; font-size: .84rem; color: #D9D5C2; font-family: var(--f-ui); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  padding: 9px 14px; border-radius: 20px; font-family: var(--f-ui); font-size: .86rem; font-weight: 600;
  transition: all .18s var(--ease);
}
.chip:hover, .chip.active { background: var(--gold); border-color: var(--gold); color: var(--forest); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-media { aspect-ratio: 4/3; position: relative; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.tag { display: inline-block; font-family: var(--f-ui); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); background: var(--forest-pale); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start; }

.progress { height: 6px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; margin: 10px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--gold); }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); font-family: var(--f-ui); }

/* Illustration placeholders (no external images available) */
.illus {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.illus svg { width: 100%; height: 100%; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 12px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--f-accent); font-size: 2.4rem; color: var(--gold-light); }
.stat span { font-size: .85rem; color: #C7C2AC; font-family: var(--f-ui); }
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2,1fr); } .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); } }

/* ---------- Testimonials ---------- */
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.testi p { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); }
.testi-who { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--f-ui); font-size: .86rem; }
.testi-who .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--forest-pale); display: flex; align-items: center; justify-content: center; color: var(--forest); font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-ui); font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--forest); }
.field .hint { font-size: .76rem; color: var(--ink-soft); margin-top: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-light); background: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

/* focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- Payment method tabs (Donate page) ---------- */
.pay-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.pay-tab { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-weight: 600; font-family: var(--f-ui); }
.pay-tab.active { border-color: var(--forest); background: var(--forest-pale); color: var(--forest); }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.pay-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.pay-number { display: flex; align-items: center; justify-content: space-between; background: var(--bg-soft); padding: 14px 18px; border-radius: var(--radius); font-family: var(--f-ui); margin: 14px 0; }
.pay-number strong { font-size: 1.15rem; letter-spacing: .04em; color: var(--forest); }
.copy-btn { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: var(--radius); font-size: .78rem; font-weight: 600; }
.qr-box { width: 150px; height: 150px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.steps { counter-reset: step; margin: 0; padding: 0; }
.steps li { list-style: none; counter-increment: step; display: flex; gap: 14px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; font-family: var(--f-ui);
}
.note-box { display: flex; gap: 12px; background: #FBF2E4; border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 14px 16px; font-size: .89rem; margin-top: 18px; }

/* ---------- Transparency table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 700; font-family: var(--f-ui); }
.pill-green { background: var(--forest-pale); color: var(--forest); }
.pill-gold { background: #F6E8C8; color: #8A6A1B; }

/* ---------- Timeline / activities ---------- */
.activity { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.activity:last-child { border-bottom: none; }
.activity .date { flex: none; width: 92px; font-family: var(--f-ui); font-size: .78rem; color: var(--ink-soft); }
.activity h4 { margin: 0 0 6px; font-size: 1.02rem; }
.activity p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0F2A20; color: #C7C2AC; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; font-family: var(--f-ui); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .sub { color: #9A9584; }
.site-footer p.about { font-size: .9rem; margin: 14px 0 18px; max-width: 34ch; }
.site-footer ul li { margin-bottom: 10px; font-size: .9rem; }
.site-footer ul li a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { display: flex; align-items: center; gap: 8px; border-radius: 30px; padding: 13px 18px; font-family: var(--f-ui); font-weight: 700; font-size: .88rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.fab-donate { background: var(--gold); color: var(--forest); }
.fab-donate:hover { background: var(--gold-light); }
.fab-whatsapp { background: #25D366; color: #06280f; }
.fab-whatsapp:hover { filter: brightness(1.06); }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--forest); color: #EFEAD9; padding: 56px 0 46px; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 10px; }
.breadcrumb { font-family: var(--f-ui); font-size: .8rem; color: var(--gold-light); }
.breadcrumb a { color: #C7C2AC; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.center{text-align:center}
.muted{color:var(--ink-soft)}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Newsletter */
.newsletter { background: var(--forest-pale); border-radius: var(--radius-lg); padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Admin dashboard */
.admin-body { background: #F3F1EA; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--forest); color: #E7E3D2; padding: 22px 16px; }
.admin-side .brand { color: #fff; margin-bottom: 26px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius); font-family: var(--f-ui); font-size: .9rem; margin-bottom: 4px; color: #CFC9B4; }
.admin-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-side .divider { height: 1px; background: rgba(255,255,255,.12); margin: 16px 0; }
.admin-main { padding: 26px 30px 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.admin-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 1000px){ .admin-cards{grid-template-columns:repeat(2,1fr);} .admin-shell{grid-template-columns:1fr;} .admin-side{display:none;} }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.admin-card span.k { font-family: var(--f-ui); font-size: .78rem; color: var(--ink-soft); }
.admin-card strong { display: block; font-family: var(--f-accent); font-size: 1.7rem; color: var(--forest); margin-top: 6px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.admin-panel h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
