/* ============================================================
   Bhalai Foundation — bhalai.org
   Goodness that works.
   Design system: compact, card-based, impact-first.
   Palette: Bhalai Green, Action Orange, Trust Navy,
            Soft Earth, Impact Lime, Charcoal.
   ============================================================ */

:root {
  --green: #1F6B4E;
  --green-dark: #174F3A;
  --green-soft: #E4F0EA;
  --orange: #F59E0B;
  --orange-dark: #D97706;
  --navy: #12263A;
  --navy-soft: #1B3A57;
  --cream: #F7F3EA;
  --lime: #A3E635;
  --charcoal: #1F2937;
  --muted: #5B6472;
  --line: #E5E0D3;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(18, 38, 58, 0.07);
  --shadow-lg: 0 10px 30px rgba(18, 38, 58, 0.12);
  --font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.22rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .logo-word {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--navy); line-height: 1; letter-spacing: -0.02em;
}
.brand .logo-word .bhalai { color: var(--green); text-transform: lowercase; }
.brand .logo-sub {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  display: block; padding: 10px 12px; font-weight: 600; font-size: 0.95rem;
  color: var(--navy); border-radius: 8px;
}
.main-nav > .nav-item > a:hover { background: var(--green-soft); color: var(--green-dark); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 101;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 0.92rem; font-weight: 500; color: var(--charcoal);
}
.dropdown a:hover { background: var(--green-soft); color: var(--green-dark); }

.header-ctas { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem; color: var(--navy); line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lime); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: #DDE6EE; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-green { background: var(--green); color: #EAF4EF; }
.section-green h2, .section-green h3 { color: var(--white); }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.section-dark .kicker, .section-green .kicker { color: var(--lime); }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 46em; }
.section-dark .lead, .section-green .lead { color: rgba(255,255,255,0.82); }

.section-head { margin-bottom: 36px; max-width: 52em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 10px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(163, 230, 53, 0.16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(245, 158, 11, 0.10), transparent 60%),
    var(--navy);
  color: #E7EDF3; padding: 88px 0 72px;
}
.hero h1 { color: var(--white); margin: 10px 0 6px; }
.hero .tagline {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--lime); margin-bottom: 18px;
}
.hero p.hero-desc { font-size: 1.13rem; max-width: 42em; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .pillar-strip {
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.65);
}
.hero .pillar-strip strong { color: var(--lime); font-weight: 700; }

.page-hero { background: var(--navy); color: #E7EDF3; padding: 64px 0 52px; }
.page-hero h1 { color: var(--white); margin: 8px 0 10px; }
.page-hero .promise {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--lime); margin-bottom: 14px;
}
.page-hero p { max-width: 46em; color: rgba(255,255,255,0.84); font-size: 1.08rem; }
.page-hero .hero-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }
.card .card-link::after { content: " →"; }

a.card-wrap { display: block; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card-wrap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.pillar-card { border-top: 4px solid var(--green); }
.pillar-card .pillar-promise { font-weight: 600; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 8px; }

/* ---------- Impact counters ---------- */

.counter-band .grid { gap: 16px; }
.counter {
  text-align: center; padding: 26px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.counter .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--lime); line-height: 1.1;
}
.counter .label { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin-top: 6px; }

.disclaimer {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-align: center; margin-top: 20px;
}
.disclaimer-light { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* metric cards on light background */
.metric {
  text-align: center; padding: 24px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.metric .num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  color: var(--green); line-height: 1.1;
}
.metric .label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  font-size: 0.96rem;
}
table.data th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 13px 18px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
}
table.data td { padding: 12px 18px; border-top: 1px solid var(--line); }
table.data tr:nth-child(even) td { background: #FBF9F3; }

/* ---------- Lists ---------- */

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 32px; position: relative; }
.check-list li::before {
  content: "+"; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; font-size: 0.95rem; text-align: center; line-height: 22px;
  font-family: var(--font-head);
}
.section-dark .check-list li::before, .section-green .check-list li::before {
  background: rgba(163,230,53,0.18); color: var(--lime);
}

.prose { max-width: 46em; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin: 34px 0 12px; }
.prose h3 { margin: 26px 0 10px; }
.prose blockquote {
  border-left: 4px solid var(--orange); background: var(--white);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-family: var(--font-head); font-weight: 600; color: var(--navy);
}

/* ---------- GIVE+ impact card ---------- */

.impact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 640px;
}
.impact-card .ic-head {
  background: var(--green); color: var(--white); padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.impact-card .ic-head .ic-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.impact-card .ic-head .ic-score {
  background: var(--lime); color: var(--navy); font-family: var(--font-head);
  font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
}
.impact-card .ic-body { padding: 10px 24px 20px; }
.impact-card .ic-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.impact-card .ic-row:last-child { border-bottom: none; }
.impact-card .ic-row .k { color: var(--muted); }
.impact-card .ic-row .v { font-weight: 600; color: var(--navy); text-align: right; }

/* GIVE+ badge chip */
.give-chip {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  background: var(--lime); color: var(--navy); padding: 4px 14px;
  border-radius: 999px; font-size: 0.9rem;
}

/* ---------- Story cards ---------- */

.story-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--orange);
}
.story-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.story-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 42em; margin: 0 auto 26px; }
.cta-band .hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--white); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.93rem; }
.site-footer a:hover { color: var(--lime); }
.footer-brand .logo-word { color: var(--white); }
.footer-brand .tagline { color: var(--lime); font-family: var(--font-head); font-weight: 700; margin: 10px 0 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
}
.site-version {
  font-family: var(--font-mono, monospace); font-size: 0.78rem;
  color: rgba(255,255,255,0.38); letter-spacing: 0.04em;
}

/* ---------- Two-column feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .dropdown {
    position: static; display: block; box-shadow: none; border: none;
    padding: 0 0 6px 14px; min-width: 0;
  }
  .header-ctas .btn-outline { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .counter-band .grid-3 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.0002 additions — Loop architecture, forms, cart, i18n,
   timeline, status states, illustrations.
   ============================================================ */

/* ---------- Utility strip (live campaign) ---------- */
.utility-strip {
  background: var(--green-dark); color: #EAF4EF; font-size: 0.88rem;
  padding: 8px 0; text-align: center;
}
.utility-strip a { color: var(--lime); font-weight: 700; margin-left: 8px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex; gap: 2px; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px; background: var(--white);
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px;
  color: var(--muted);
}
.lang-switch button.active { background: var(--green); color: var(--white); }

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; border: 1.5px solid transparent;
}
.status-open { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.status-waitlist { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.status-upcoming { background: #DBEAFE; color: #1E40AF; border-color: #93C5FD; }
.status-closed { background: #F3F4F6; color: #4B5563; border-color: #D1D5DB; }
.status-completed { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.status-banner {
  background: rgba(163, 230, 53, 0.12); border: 1px solid rgba(163,230,53,0.45);
  border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 20px;
  font-size: 0.95rem; color: #EAF4EF;
}
.status-banner .status-badge { margin-right: 10px; }

/* ---------- The Bhalai Loop diagram ---------- */
.loop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: loopstep; }
.loop-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; position: relative; box-shadow: var(--shadow);
  counter-increment: loopstep;
}
.loop-step::before {
  content: counter(loopstep); position: absolute; top: -14px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--green);
  color: var(--white); font-family: var(--font-head); font-weight: 800;
  text-align: center; line-height: 28px; font-size: 0.9rem;
}
.loop-step h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.loop-step p { font-size: 0.9rem; color: var(--muted); }
.loop-flow {
  font-family: var(--font-head); font-weight: 700; text-align: center;
  color: var(--green-dark); background: var(--green-soft);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 24px;
  font-size: 1.02rem; line-height: 1.7;
}
.section-dark .loop-flow { background: rgba(163,230,53,0.1); color: var(--lime); }

/* ---------- Timeline (In action since 2014) ---------- */
.timeline { position: relative; margin: 10px 0; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 3px; background: var(--green-soft); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 28px 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--lime); border: 3.5px solid var(--green);
}
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--green-dark); font-size: 1.05rem; }
.tl-item h3 { font-size: 1.05rem; margin: 3px 0 5px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; max-width: 40em; }

/* ---------- Illustrations & photo frames ---------- */
.illus { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.illus img, .illus svg { width: 100%; height: auto; display: block; }
.figure-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.banner-figure { margin: 26px 0 6px; }
.banner-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.banner-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.hero-illus {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
.split-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }

/* ---------- Forms ---------- */
.bh-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg); max-width: 760px;
}
.bh-form h3 { margin-bottom: 6px; }
.bh-form .form-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.88rem; color: var(--navy); margin-bottom: 6px;
}
.field label .req { color: #DC2626; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="url"], .field input[type="date"],
.field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--charcoal); background: #FDFCF9; outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.field.error input, .field.error select, .field.error textarea { border-color: #DC2626; }
.field .err-msg { display: none; color: #DC2626; font-size: 0.8rem; margin-top: 4px; }
.field.error .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group .choice {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; cursor: pointer;
  background: #FDFCF9; user-select: none;
}
.choice-group .choice:has(input:checked) {
  border-color: var(--green); background: var(--green-soft); color: var(--green-dark);
  font-weight: 600;
}
.choice input { accent-color: var(--green); margin: 0; }
.consent-box {
  display: flex; gap: 10px; align-items: flex-start; background: #FBF9F3;
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font-size: 0.84rem; color: var(--muted); margin-bottom: 14px;
}
.consent-box input { margin-top: 3px; accent-color: var(--green); flex: none; }
.form-alert {
  display: none; border-radius: 9px; padding: 14px 16px; font-size: 0.92rem; margin-bottom: 16px;
}
.form-alert.show { display: block; }
.form-alert.success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.form-alert.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.form-alert.warn { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.bh-form .btn { width: 100%; margin-top: 6px; }
.hidden { display: none !important; }

/* ---------- Shop & cart ---------- */
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card .p-img { background: var(--green-soft); }
.product-card .p-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card .p-msg { font-size: 0.86rem; color: var(--green-dark); font-weight: 600; margin-bottom: 8px; }
.product-card .p-supports { font-size: 0.84rem; color: var(--muted); flex: 1; }
.product-card .p-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px;
}
.product-card .p-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -10px; background: var(--orange); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 0.68rem;
  min-width: 18px; height: 18px; border-radius: 999px; text-align: center; line-height: 18px;
  padding: 0 4px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty-ctl button {
  width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--green-soft);
  color: var(--green-dark); font-weight: 800; cursor: pointer; line-height: 1;
}
.summary-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.amount-presets button {
  border: 1.5px solid var(--line); background: #FDFCF9; border-radius: 999px;
  padding: 8px 16px; font-family: var(--font-head); font-weight: 700; cursor: pointer;
  font-size: 0.9rem; color: var(--navy);
}
.amount-presets button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: var(--white); border-radius: 999px; padding: 12px 24px;
  font-size: 0.92rem; box-shadow: var(--shadow-lg); z-index: 300; transition: transform 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--lime); font-weight: 700; margin-left: 8px; }

/* ---------- Auth ---------- */
.auth-card {
  max-width: 440px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; border: 1.5px solid var(--line); background: #FDFCF9; border-radius: 9px;
  padding: 10px; font-family: var(--font-head); font-weight: 700; cursor: pointer; color: var(--muted);
}
.auth-tabs button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.account-chip { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .split-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .loop-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .bh-form { padding: 22px 18px; }
  .lang-switch { order: -1; }
}

/* keep header CTAs on one line at mid widths */
.header-ctas .btn { white-space: nowrap; }

/* mobile quick actions inside the collapsed nav */
.mobile-quick { display: none; }
@media (max-width: 720px) {
  .header-ctas { gap: 8px; }
  .header-ctas .btn, .header-ctas [data-account-slot] { display: none; }
  .mobile-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
}

/* five-column footer that actually collapses on small screens */
.footer-grid-5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer-grid-5 { grid-template-columns: 1fr; } }

/* compact header on small phones */
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand .logo-word { font-size: 1.05rem; }
  .brand .logo-sub { display: none; }
  .brand .logo-mark { width: 30px; height: 30px; }
  .lang-switch button { padding: 4px 7px; font-size: 0.72rem; }
}

/* ---- v1.0005: nav no-wrap + story filters/expand ---- */
.main-nav > .nav-item > a { white-space: nowrap; }
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.story-chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 0.86rem;
  cursor: pointer; font-family: inherit;
}
.story-chip:hover { border-color: var(--green); color: var(--green-dark); }
.story-chip.active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.story-item .card-tag { margin-bottom: 10px; }
.story-more { margin-top: 12px; }
.story-more summary {
  cursor: pointer; font-weight: 700; color: var(--green-dark); font-size: 0.92rem;
  list-style: none;
}
.story-more summary::before { content: "+ "; }
.story-more[open] summary::before { content: "− "; }
.story-more summary::-webkit-details-marker { display: none; }
.story-full { margin-top: 12px; border-top: 1.5px solid var(--line); padding-top: 12px; }
.story-full p { margin-bottom: 12px; font-size: 0.95rem; }

/* ---- v1.0006: brand lockup fix (guideline 6.3/6.4: horizontal lockup, clear
   space, never let nav text touch the logo), 1280px container (guideline 8.3),
   banner slider, form modals ---- */
:root { --maxw: 1280px; }
.brand { flex: none; }
.brand .logo-word, .brand .logo-sub { white-space: nowrap; }
.main-nav { flex-wrap: nowrap; }
@media (max-width: 1280px) {
  .brand .logo-sub { display: none; }
  .brand .logo-word { font-size: 1.18rem; }
  .main-nav { gap: 0; }
  .main-nav > .nav-item > a { padding: 9px 9px; font-size: 0.9rem; }
  .header-ctas .btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Banner slider (announcements managed in data/db.json) */
.banner-slider { position: relative; overflow: hidden; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-dots { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: middle; }
.banner-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.35); padding: 0;
}
.banner-dots button.active { background: var(--lime); }

/* Form CTA card + modal flow */
.form-launch {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.form-launch h3 { margin: 0 0 6px; }
.form-launch p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 38em; }
.form-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 38, 58, 0.55); backdrop-filter: blur(3px);
  overflow-y: auto; padding: 4vh 16px;
}
.form-modal.open { display: block; }
.form-modal-box {
  background: var(--cream); border-radius: 20px; max-width: 760px; margin: 0 auto;
  padding: 30px; position: relative; box-shadow: var(--shadow-lg);
}
.form-modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  font-size: 1.1rem; cursor: pointer; font-weight: 700; color: var(--navy);
}
.form-modal-close:hover { background: var(--green-soft); }
body.modal-open { overflow: hidden; }
@media (max-width: 720px) { .form-modal { padding: 2vh 8px; } .form-modal-box { padding: 22px 16px; } }

/* ---- v1.0007: lang dropdown, type scale (guideline 8.2), shop filters,
   sticky mobile CTA bar ---- */
.lang-select {
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: 0.8rem;
  font-family: inherit; cursor: pointer;
}
.lang-select:hover { border-color: var(--green); }

/* Guideline 8.2 type scale */
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1.06; }
.page-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }

/* Shop filter bar */
.shop-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px;
}
.shop-filters .story-chip { font-size: 0.84rem; }
.shop-sort {
  margin-left: auto; border: 1.5px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 8px 10px; font-family: inherit; font-weight: 600;
  font-size: 0.85rem; color: var(--navy); cursor: pointer;
}

/* Sticky mobile CTA bar (P1 audit item) */
.mobile-cta-bar { display: none; }
@media (max-width: 720px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--white); border-top: 1.5px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -6px 18px rgba(18,38,58,0.08);
  }
  .mobile-cta-bar .btn { flex: 1; text-align: center; padding: 10px 6px; font-size: 0.86rem; }
  body { padding-bottom: 64px; }
}

/* Story modal body */
.story-modal-body .card-tag { margin-bottom: 10px; }
.story-modal-body h3 { margin: 6px 0 14px; }
.story-modal-body p { margin-bottom: 12px; }

/* ---- v1.0007: in-modal success panel ---- */
.form-success-panel { text-align: center; padding: 26px 8px; }
.form-success-panel .success-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(163, 230, 53, 0.25);
}
.form-success-panel h3 { margin-bottom: 10px; }
.form-success-panel p { color: var(--muted); margin: 8px auto; max-width: 34em; }
.form-success-panel .success-ref strong { color: var(--green-dark); }
.form-success-panel .btn { margin-top: 18px; }

/* ---- v1.0007: Bhalai Live Board ---- */
.live-board {
  position: relative; overflow: hidden; color: #F8FAFC;
  background: #0E2536; padding: 96px 0;
}
.live-board::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(ellipse at 30% 20%, rgba(31,107,78,0.45), transparent 60%);
  pointer-events: none;
}
.live-board .container { position: relative; }
.lb-header { max-width: 860px; margin-bottom: 40px; }
.lb-badge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-badge {
  display: inline-block; background: rgba(163,230,53,0.15); color: var(--lime);
  border: 1px solid rgba(163,230,53,0.4); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; box-shadow: 0 0 18px rgba(163,230,53,0.25);
}
.lb-badge-row span { color: #CBD5E1; font-size: 0.9rem; }
.lb-header h2 { color: #F8FAFC; font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 6px; }
.lb-header .lb-sub { color: var(--lime); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.lb-header p { color: #CBD5E1; }
.lb-trust {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-size: 0.88rem; color: #CBD5E1;
}
.lb-trust .shield { color: var(--lime); flex: none; margin-top: 2px; }

.lb-grid { display: grid; grid-template-columns: 58fr 42fr; gap: 32px; align-items: stretch; }
.lb-card {
  background: #1C3345; border: 1px solid rgba(255,255,255,0.12); border-radius: 28px;
  padding: 32px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lb-card:hover { transform: translateY(-4px); border-color: rgba(163,230,53,0.5);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.lb-card h3 { color: #F8FAFC; font-size: 1.35rem; }
.lb-card > p { color: #CBD5E1; margin: 8px 0 18px; }

.lb-loop-img { border-radius: 18px; overflow: hidden; margin: 6px 0 20px;
  border: 1px solid rgba(255,255,255,0.1); }
.lb-loop-img img { display: block; width: 100%; height: auto; }
.lb-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lb-node {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px 14px;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.lb-node h4 { color: #F8FAFC; font-size: 0.92rem; margin-bottom: 3px; }
.lb-node p { color: #94A3B8; font-size: 0.78rem; line-height: 1.45; margin: 0; }
.lb-node.active { border-color: var(--lime); background: rgba(163,230,53,0.08);
  box-shadow: 0 0 16px rgba(163,230,53,0.15); }
.lb-node.active h4 { color: var(--lime); }

.lb-open .lb-rows { display: flex; flex-direction: column; gap: 12px; }
.lb-row {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease; background: rgba(255,255,255,0.03);
}
.lb-row:hover { transform: translateY(-2px); border-color: rgba(163,230,53,0.55); }
.lb-row .lb-ic { flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(31,107,78,0.55); display: flex; align-items: center; justify-content: center;
  color: var(--lime); }
.lb-row .lb-ic svg { width: 20px; height: 20px; }
.lb-row-body { flex: 1; min-width: 0; }
.lb-row-body h4 { color: #F8FAFC; font-size: 0.98rem; margin: 4px 0 2px; }
.lb-row-body p { color: #94A3B8; font-size: 0.82rem; margin: 0; line-height: 1.45; }
.lb-status {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.lb-status.open { color: var(--lime); background: rgba(163,230,53,0.12);
  border: 1px solid rgba(163,230,53,0.4); box-shadow: 0 0 10px rgba(163,230,53,0.18); }
.lb-status.wait { color: #FCD34D; background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.45); box-shadow: 0 0 10px rgba(245,158,11,0.15); }
.lb-status.soon { color: #CBD5E1; background: rgba(203,213,225,0.1);
  border: 1px solid rgba(203,213,225,0.3); }
.lb-row .btn { flex: none; }

.lb-strip { margin-top: 40px; }
.lb-strip h3 { color: #F8FAFC; margin-bottom: 18px; }
.lb-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lb-metric {
  background: #1C3345; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
  padding: 22px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.lb-metric:hover { transform: translateY(-3px); border-color: rgba(163,230,53,0.5); }
.lb-metric .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  color: var(--lime); line-height: 1; }
.lb-metric h4 { color: #F8FAFC; margin: 8px 0 4px; font-size: 0.98rem; }
.lb-metric p { color: #94A3B8; font-size: 0.8rem; margin: 0; line-height: 1.5; }
.lb-micro { color: #94A3B8; font-size: 0.82rem; margin-top: 14px; }

.lb-tracker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lb-tracker .lb-metric .num { font-size: 1.9rem; color: #F8FAFC; }
.lb-tracker .lb-metric .num.dash { color: rgba(203,213,225,0.5); }

.lb-timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  margin-top: 22px; position: relative; }
.lb-tl-item { position: relative; padding: 26px 14px 0 14px; }
.lb-tl-item::before {
  content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px;
  background: rgba(255,255,255,0.15);
}
.lb-tl-item::after {
  content: ""; position: absolute; top: 0; left: 14px; width: 13px; height: 13px;
  border-radius: 50%; background: #1C3345; border: 3px solid var(--green);
}
.lb-tl-item.live::after { border-color: var(--lime); box-shadow: 0 0 12px rgba(163,230,53,0.5); }
.lb-tl-when { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lime); }
.lb-tl-item h4 { color: #F8FAFC; font-size: 0.9rem; margin: 6px 0 10px; line-height: 1.35; }
.lb-tl-item .btn { font-size: 0.72rem; padding: 7px 12px; }

/* tooltip */
[data-tip] { position: relative; cursor: help; border-bottom: 1px dotted rgba(203,213,225,0.5); }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); white-space: normal; width: max-content; max-width: 260px;
  background: #0E2536; color: #F8FAFC; border: 1px solid rgba(163,230,53,0.4);
  border-radius: 10px; padding: 8px 12px; font-size: 0.78rem; z-index: 50; text-align: left;
}

@media (max-width: 1080px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-metrics { grid-template-columns: repeat(2, 1fr); }
  .lb-tracker { grid-template-columns: repeat(2, 1fr); }
  .lb-timeline { grid-template-columns: 1fr; gap: 0; }
  .lb-tl-item { padding: 4px 0 22px 30px; }
  .lb-tl-item::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .lb-tl-item::after { top: 4px; left: 0; }
}
@media (max-width: 720px) {
  .live-board { padding: 56px 0; }
  .lb-card { padding: 22px; }
  .lb-nodes { grid-template-columns: repeat(2, 1fr); }
  .lb-metrics, .lb-tracker { grid-template-columns: 1fr; }
  .lb-row { flex-wrap: wrap; }
  .lb-row .btn { width: 100%; text-align: center; }
}

/* ---- v1.0009: UPI QR checkout block ---- */
.upi-box {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 12px 0;
}
.upi-box img { flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upi-box code { background: var(--green-soft); padding: 2px 8px; border-radius: 6px;
  font-weight: 700; color: var(--green-dark); }
.upi-box > div { flex: 1; min-width: 220px; }

/* ---- v1.0010: 1680px container per user spec (overrides brand guideline
   8.3's 1280–1440 content width — user asked for the wider look). */
:root { --maxw: 1680px; }
.live-board .container { max-width: 1680px; }

/* ---- v1.0010: keyboard accessibility (audit checklist P1) ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--green-dark); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px;
}
.live-board a:focus-visible, .live-board button:focus-visible,
.section-dark a:focus-visible, .section-dark button:focus-visible {
  outline-color: var(--lime);
}
