/* GeoIndia website — mobile-first, light + dark, bilingual (EN/HI). */
:root {
  --navy: #0B1F3A;
  --saffron: #FF7A1A;
  --saffron-strong: #E9640A;
  --green: #12B886;
  --white: #FFFFFF;

  --bg: #F6F8FC;
  --bg-alt: #EDF2F9;
  --surface: #FFFFFF;
  --text: #0B1F3A;
  --muted: #4E5D78;
  --border: #DFE6F0;
  --accent: var(--saffron);
  --accent-text: #B44A00;
  --map-fill: #12B886;
  --map-stroke: #FFFFFF;
  --map-hl: #FF7A1A;
  --pin: #0B1F3A;
  --pin-dot: #FFFFFF;
  --hero-glow: rgba(255, 122, 26, 0.16);
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071427;
    --bg-alt: #0A1B34;
    --surface: #0F2444;
    --text: #EEF3FB;
    --muted: #A9B7CD;
    --border: #1E3659;
    --accent-text: #FF9A4D;
    --map-fill: #12B886;
    --map-stroke: #071427;
    --pin: #FFFFFF;
    --pin-dot: #0B1F3A;
    --hero-glow: rgba(255, 122, 26, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Bilingual switching: html[data-lang] hides the other language. */
html[data-lang="en"] .hi, html[data-lang="hi"] .en { display: none !important; }
html[data-lang="hi"] body { line-height: 1.8; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--saffron-strong); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--saffron); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { display: none; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 10px; border-radius: 8px; }
.nav a.link:hover { color: var(--text); background: var(--bg-alt); }
@media (min-width: 760px) { .nav a.link { display: inline-block; } }

.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-toggle button {
  font: inherit; font-size: .85rem; font-weight: 600; border: 0; background: transparent; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
@media (prefers-color-scheme: dark) { .lang-toggle button[aria-pressed="true"] { background: var(--saffron); color: var(--navy); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 14px; padding: 12px 22px; min-height: 52px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 122, 26, .35); }
.btn-primary:hover { background: #FF8A35; color: var(--navy); box-shadow: 0 10px 28px rgba(255, 122, 26, .45); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-play { background: var(--navy); color: var(--white); padding: 10px 22px 10px 18px; }
.btn-play:hover { color: var(--white); background: #13305A; }
@media (prefers-color-scheme: dark) { .btn-play { background: var(--white); color: var(--navy); } .btn-play:hover { background: #E8EEF7; color: var(--navy); } }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-play small { font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.btn-play strong { font-size: 1.15rem; font-weight: 700; }
.btn-lg { min-height: 60px; font-size: 1.1rem; padding: 14px 28px; width: 100%; }
@media (min-width: 560px) { .btn-lg { width: auto; } }

/* Hero */
.hero { position: relative; padding: 36px 0 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -220px; top: -180px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 65%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 40px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-text); background: color-mix(in srgb, var(--saffron) 12%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; margin-bottom: 14px; }
.hero h1 .accent { color: var(--saffron); }
.tagline-hi { display: block; font-size: .55em; font-weight: 700; color: var(--green); margin-top: 10px; letter-spacing: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.fine { font-size: .85rem; color: var(--muted); }

.map-card { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.india-map { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(11, 31, 58, .18)); }
.india-map path { fill: var(--map-fill); stroke: var(--map-stroke); stroke-width: 2; stroke-linejoin: round; }
.india-map path.hl { fill: var(--map-hl); }
.india-map .pin path { fill: var(--pin); stroke: none; }
.india-map .pin circle { fill: var(--pin-dot); }
.india-map .pin { animation: drop 2.8s ease-in-out infinite; transform-box: fill-box; }
@keyframes drop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.q-chip {
  position: absolute; left: 0; right: 0; bottom: 4%; margin: 0 auto; width: min(92%, 340px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: .9rem; display: flex; gap: 10px; align-items: center;
}
.q-chip .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.q-chip p { margin: 0; line-height: 1.35; }
.q-chip p span { display: block; color: var(--muted); font-size: .8rem; }

/* Stats */
.stats { padding: 8px 0 24px; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--saffron); line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.icon.s { background: color-mix(in srgb, var(--saffron) 15%, transparent); color: var(--saffron); }
.icon.g { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.icon.n { background: color-mix(in srgb, #4C7DFF 15%, transparent); color: #4C7DFF; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .92rem; font-weight: 500; }
.chips li:nth-child(3n+1)::before { content: "●"; color: var(--saffron); margin-right: 8px; font-size: .7em; vertical-align: 2px; }
.chips li:nth-child(3n+2)::before { content: "●"; color: var(--green); margin-right: 8px; font-size: .7em; vertical-align: 2px; }
.chips li:nth-child(3n)::before { content: "●"; color: #4C7DFF; margin-right: 8px; font-size: .7em; vertical-align: 2px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .steps li::before { background: var(--saffron); color: var(--navy); } }
.steps h3 { font-size: 1.05rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy), #163866); color: var(--white); border-radius: 24px; padding: 32px 22px;
  display: grid; gap: 18px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.45), transparent 70%); }
.cta-band h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0; }
.cta-band p { margin: 0; color: #C9D5E8; }
.cta-band .btn-play { background: var(--white); color: var(--navy); position: relative; z-index: 1; justify-self: start; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px; } }

/* Legal / document pages */
.doc { padding: 32px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 800; }
.doc h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2em; padding-top: .2em; }
.doc h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: .92rem; }
.doc .note {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--saffron);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 1.2em 0;
}
.doc .note.green { border-left-color: var(--green); }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; background: var(--bg-alt); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.4em 0; }
.toc ol { margin: 0; }
.path {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px;
}
.path i { font-style: normal; color: var(--saffron); }

/* Centered pages (404, auth) */
.center-page { min-height: calc(100vh - 62px - 140px); display: grid; place-items: center; padding: 40px 0; text-align: center; }
.center-page .box { max-width: 520px; margin: 0 auto; }
.center-page h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 800; }
.center-page p { color: var(--muted); }
.center-page .big-code, .big-code { font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; line-height: 1; color: var(--saffron); margin: 0 0 8px; }
.spinner { width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid var(--border); border-top-color: var(--saffron); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state[hidden] { display: none !important; }
.stack { display: grid; gap: 12px; justify-items: center; margin: 22px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.tricolour { display: flex; height: 4px; width: 72px; border-radius: 4px; overflow: hidden; }
.tricolour i { flex: 1; } .tricolour i:nth-child(1) { background: var(--saffron); } .tricolour i:nth-child(2) { background: var(--white); border-block: 1px solid var(--border); } .tricolour i:nth-child(3) { background: var(--green); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.footer-copy { margin: 10px 0 0; }
.section.tight-top { padding-top: 0; }
