/* ============================================================
   Horn Free India — visual system
   Concept: the page should embody the quiet it asks for.
   Generous space, calm "shanti" palette, one urgent accent.
   ============================================================ */

:root {
  /* Palette */
  --paper:      #F8F6F0;   /* warm off-white background */
  --paper-2:    #FFFFFF;
  --tint:       #EEF1EC;   /* soft sage tint sections */
  --ink:        #1B2230;   /* near-black text */
  --ink-soft:   #525C6B;   /* muted body */
  --shanti:     #1F4E4A;   /* deep calm teal (primary brand) */
  --shanti-2:   #2C7A72;
  --accent:     #DD5B3E;   /* urgent saffron-coral (CTAs only) */
  --accent-ink: #B8442B;
  --dark:       #12211F;   /* deep section background */
  --dark-soft:  #C9D6D2;
  --line:       #E1DDD2;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --deva:  "Noto Sans Devanagari", var(--sans);

  /* Rhythm */
  --maxw: 1240px;
  --narrow: 720px;
  --header-h: 68px;
  --radius: 14px;
  --gap: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
em { font-style: italic; }
.deva { font-family: var(--deva); font-weight: 600; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--shanti-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2rem); }
.narrow { max-width: var(--narrow); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 0.95rem 1.6rem; border-radius: 999px; min-height: 48px;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
/* Header CTA: full label on desktop, "Join" on mobile (collapsed nav) */
.cta-short { display: none; }
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-primary:visited { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent-ink); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost,
.btn-ghost:visited { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--shanti); color: var(--shanti); }
.btn-whatsapp,
.btn-whatsapp:visited { background: #25925a; color: #fff; }
.btn-whatsapp:hover { background: #1d7849; }
.btn-sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; align-self: stretch; text-decoration: none; margin-right: auto; }
.brand-logo { display: block; width: 98px; height: 98px; object-fit: contain; flex: 0 0 98px; }

.nav-menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink-soft); font-size: 0.97rem; font-weight: 500; }
.nav-menu a:hover { color: var(--shanti); }
.nav-toggle { display: none; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-counter { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.header-counter strong { color: var(--shanti); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-inner {
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.hero-content { max-width: 640px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  font-weight: 600; color: var(--shanti-2); margin: 0 0 1.3rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; margin: 0 0 1.4rem;
}
.hero-title .loud {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
  font-stretch: condensed; color: var(--ink);
}
.hero-title .calm { font-style: italic; color: var(--shanti); }
.hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft);
  max-width: 560px; margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.trust-microline { margin: 1.6rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Hero image */
.hero-media { margin: 0; }
.hero-media img {
  width: 100%; height: auto; max-height: 600px; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 18px; border: 1px solid var(--line);
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Section typography ---------- */
.section-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem); line-height: 1.12; margin: 0 0 1.2rem;
}
.section-title .calm { font-style: italic; color: var(--shanti); }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink-soft); margin: 0 0 1rem; }
.lede-light { color: var(--dark-soft); }
.closing-line { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--shanti); margin-top: 1.6rem; }
.closing-light { color: #fff; }

.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .section-title { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.3rem; margin-top: 2.5rem; grid-template-columns: 1fr; }
.stat {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; border-top: 4px solid var(--shanti);
}
.stat-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 2.1rem; color: var(--shanti); line-height: 1; margin-bottom: 0.7rem; }
.stat-copy { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.cite { color: #9aa3ad; font-size: 0.82rem; }

.pullquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-style: italic;
  line-height: 1.35; color: var(--ink); margin: 2.8rem 0 0; padding-left: 1.2rem;
  border-left: 4px solid var(--accent);
}

/* ---------- Ask cards ---------- */
.ask-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.4rem auto; max-width: 960px; }
.ask-card {
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.ask-card span { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); display: block; }
.ask-card small { display: block; margin-top: 0.4rem; color: var(--ink-soft); font-style: italic; }
.ask-card--accent { background: var(--shanti); border-color: var(--shanti); }
.ask-card--accent span { color: #fff; }
.ask-card--accent small { color: var(--dark-soft); }

.punchline { font-size: 1.15rem; color: var(--ink); margin-top: 1.2rem; }
.aside { color: var(--ink-soft); font-style: italic; }
.proof-block { text-align: center; }

/* ---------- Take Action ---------- */
.action-flow { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 2.6rem; }
.step {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1.8rem;
}
.step-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600;
  display: grid; place-items: center; font-family: var(--serif);
}
.step-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0; color: #fff; }
.step-copy { color: var(--dark-soft); margin: 0 0 1.2rem; }
.step-fine { font-size: 0.85rem; color: var(--dark-soft); margin: 0.8rem 0 0; }
.step-locked { opacity: 0.45; filter: grayscale(0.3); transition: opacity .4s ease, filter .4s ease; }
.step-unlocked { opacity: 1; filter: none; }

/* Form */
.join-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.join-form label { font-size: 0.85rem; font-weight: 500; color: var(--dark-soft); }
.join-form input, .join-form select {
	width: 100%; min-width: 0;
  font-family: var(--sans); font-size: 1rem; padding: 0.8rem 0.9rem; min-height: 48px;
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 10px;
  background: rgba(255,255,255,0.95); color: var(--ink);
}
.join-form input:focus-visible, .join-form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form-error { color: #ffb4a3; font-size: 0.9rem; margin: 0; }

/* Email provider dialog */
.email-dialog[hidden] { display: none; }
.email-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.email-dialog-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 18, .72); backdrop-filter: blur(4px); }
.email-dialog-panel { position: relative; z-index: 1; width: min(100%, 560px); padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.email-dialog-panel h2 { margin: 0 2rem .75rem 0; font-family: var(--serif); font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.15; }
.email-dialog-panel > p:not(.eyebrow):not(.email-dialog-status) { color: var(--ink-soft); }
.email-dialog-close { position: absolute; top: .75rem; right: .9rem; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; }
.email-dialog-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.email-dialog-options .btn { width: 100%; }
.email-dialog-status { min-height: 1.5em; margin: 1rem 0 0; color: var(--shanti); font-weight: 600; }
body.email-dialog-open { overflow: hidden; }

/* ---------- Momentum ---------- */
.momentum { text-align: center; }
.big-counter { font-family: var(--serif); font-weight: 700; font-size: clamp(3.5rem, 14vw, 7rem); color: var(--shanti); line-height: 1; margin: 1rem 0 0.3rem; }
.counter-label { font-size: 1.2rem; color: var(--ink); margin: 0; }
.map-line { color: var(--ink-soft); margin: 0.6rem 0 0; }
.voices { margin: 2.6rem auto 0; max-width: 600px; }
.voices blockquote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; margin: 0; color: var(--ink); }
.voices figcaption { margin-top: 0.8rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Story ---------- */
.promises { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.promises li {
  padding: 1.1rem 1.3rem; background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid var(--shanti); border-radius: 10px; color: var(--ink-soft);
}
.promises strong { color: var(--ink); }
.promises a { color: var(--shanti); }

/* ---------- Closing ---------- */
.closing-cta { text-align: center; }
.closing-cta .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd3da; padding-block: 3rem; }
.footer-inner { display: grid; gap: 1.1rem; text-align: center; }
.footer-tagline { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer-nav a { color: #cdd3da; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact { margin: 0; font-size: 0.95rem; }
.footer-contact a { color: var(--shanti-2); }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-size: 0.9rem; }
.social-links { display: flex; align-items: center; gap: 0.55rem; }
.social-link,
.social-link:visited {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid #4b555e; border-radius: 50%;
  color: #fff; background: rgba(255,255,255,.05); text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}
.social-link:hover { color: var(--shanti-2); background: rgba(255,255,255,.11); border-color: var(--shanti-2); transform: translateY(-2px); }
.social-link:focus-visible { outline: 3px solid var(--shanti-2); outline-offset: 3px; }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }
.footer-fine { margin: 0; font-size: 0.85rem; color: #8b939c; }

@media (max-width: 480px) {
  .footer-social { flex-direction: column; gap: 0.65rem; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive — tablet & up
   ============================================================ */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .ask-cards { grid-template-columns: repeat(3, 1fr); }
  .action-flow { grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) minmax(0, .75fr); align-items: start; }
}

@media (max-width: 860px) {
  .brand-logo { width: 72px; height: 72px; flex-basis: 72px; }
  .nav { display: flex; align-items: center; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper-2);
    border-bottom: 1px solid var(--line); padding: 0.5rem 1.2rem 1rem;
    box-shadow: 0 12px 24px -16px rgba(0,0,0,.3);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 0.9rem 0; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    flex: 0 0 44px; padding: 0; line-height: 1;
    background: transparent; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-bars, .nav-bars::before, .nav-bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
    transition: transform .2s ease, top .2s ease, background .2s ease;
  }
  .nav-bars::before { position: absolute; top: -6px; }
  .nav-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars::after { top: 0; transform: rotate(-45deg); }
  .header-counter { display: none; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 719px) {
  .email-dialog-options { grid-template-columns: 1fr; }
  .email-option-default { order: -1; background: var(--accent); color: #fff; border-color: var(--accent); }
  .email-option-gmail { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step-locked { transition: none; }
}