/* =========================================================
   IndiaEU Trade Hub — base.css + design tokens + components
   ========================================================= */

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

html {
  -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  hanging-punctuation: first last; scroll-padding-top: 88px;
}

body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background-color: var(--color-bg); }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
a, button, [role='button'], input, textarea, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ---------- Tokens ---------- */
:root, [data-theme='light'] {
  --color-bg: #F8F5EF;
  --color-surface: #FFFFFF;
  --color-surface-2: #FBF9F4;
  --color-surface-offset: #EFEADD;
  --color-surface-dynamic: #E6DFCE;
  --color-divider: #E2DCC9;
  --color-border: #D8D0B9;

  --color-text: #171C2B;
  --color-text-muted: #5A5F72;
  --color-text-faint: #9A9689;
  --color-text-inverse: #F8F5EF;

  --color-navy: #16264D;
  --color-navy-soft: #1E3A6E;
  --color-brand-navy: #16264D;
  --color-brand-navy-soft: #1E3A6E;
  --color-accent: #C1611E;
  --color-accent-hover: #A34F14;
  --color-accent-active: #7E3D0F;
  --color-accent-highlight: #F2DCC4;

  --color-success: #3F7A3B;
  --color-border-strong: #171C2B;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.9rem; --radius-xl: 1.4rem; --radius-full: 9999px;
  --transition-interactive: 200ms cubic-bezier(0.16,1,0.3,1);
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 60 / 0.10);
  --shadow-lg: 0 20px 48px oklch(0.15 0.02 60 / 0.16);

  --content-narrow: 640px; --content-default: 980px; --content-wide: 1280px; --content-full: 100%;

  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0D1220;
  --color-surface: #131A2C;
  --color-surface-2: #161D31;
  --color-surface-offset: #182036;
  --color-surface-dynamic: #202A45;
  --color-divider: #232C46;
  --color-border: #2B3552;

  --color-text: #E9E7DE;
  --color-text-muted: #9BA0B5;
  --color-text-faint: #666E8A;
  --color-text-inverse: #0D1220;

  --color-navy: #B9CBEE;
  --color-navy-soft: #7C99D6;
  --color-accent: #E8933D;
  --color-accent-hover: #F3AA5D;
  --color-accent-active: #FBC17E;
  --color-accent-highlight: #3A2C1B;

  --color-success: #7BC177;
  --color-border-strong: #E9E7DE;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0D1220; --color-surface: #131A2C; --color-surface-2: #161D31;
    --color-surface-offset: #182036; --color-surface-dynamic: #202A45;
    --color-divider: #232C46; --color-border: #2B3552;
    --color-text: #E9E7DE; --color-text-muted: #9BA0B5; --color-text-faint: #666E8A; --color-text-inverse: #0D1220;
    --color-navy: #B9CBEE; --color-navy-soft: #7C99D6;
    --color-accent: #E8933D; --color-accent-hover: #F3AA5D; --color-accent-active: #FBC17E; --color-accent-highlight: #3A2C1B;
    --color-success: #7BC177; --color-border-strong: #E9E7DE;
  }
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1.1rem + 3.8vw, 4.6rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--narrow { max-width: var(--content-default); }
section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: var(--space-4); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--color-accent); display: inline-block; border-radius: var(--radius-full); }
h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.section-title { font-size: var(--text-xl); margin-bottom: var(--space-4); color: var(--color-text); }
.section-lede { font-size: var(--text-base); color: var(--color-text-muted); max-width: 640px; margin-bottom: var(--space-12); }
.section-head { max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-offset); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; padding: 0.85rem 1.5rem; border-radius: var(--radius-full); white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-surface-offset); }
[data-theme='dark'] .btn-primary { color: #101522; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--color-bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-divider); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1); }
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-tag { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: flex; gap: var(--space-6); list-style: none; }
.nav-links a { color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav-links a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.theme-toggle { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text); }
.theme-toggle:hover { background: var(--color-surface-offset); }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: var(--radius-md); align-items: center; justify-content: center; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--color-bg); flex-direction: column; align-items: flex-start; padding: var(--space-8) var(--space-6); gap: var(--space-6); border-top: 1px solid var(--color-divider); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  .nav-links a { font-size: var(--text-lg); }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-btn { display: flex; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24)); background: var(--color-brand-navy); color: #EEF1FA; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: url('assets/hero-map.webp'); background-size: cover; background-position: right center; opacity: 0.9; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--color-brand-navy) 18%, color-mix(in oklab, var(--color-brand-navy) 55%, transparent) 55%, transparent 85%); z-index: -1; }
.hero-inner { position: relative; max-width: 640px; }
.hero .eyebrow { color: #F3B989; }
.hero .eyebrow::before { background: #F3B989; }
.hero h1 { font-size: var(--text-3xl); color: #fff; margin-bottom: var(--space-6); }
.hero h1 em { font-style: normal; color: #F3B989; }
.hero p.hero-sub { font-size: var(--text-base); color: #C9D2E8; max-width: 540px; margin-bottom: var(--space-8); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-12); }
.hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.hero-meta { display: flex; gap: var(--space-6); flex-wrap: wrap; font-size: var(--text-xs); color: #A9B4CE; }
.hero-meta strong { color: #fff; font-family: var(--font-display); font-size: var(--text-base); display: block; }

/* ---------- Stat bar ---------- */
.statbar { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.statbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); padding-block: var(--space-10); }
.stat { border-left: 2px solid var(--color-accent); padding-left: var(--space-5); }
.stat-num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); display: block; }
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); line-height: 1.4; }
@media (max-width: 880px) { .statbar .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.about-copy p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 55ch; }
.about-figure { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-figure img { width: 100%; }
.about-list { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.about-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text); }
.about-list svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } .about-figure { order: -1; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-4); }
.service-card .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-accent-highlight); color: var(--color-accent); display: flex; align-items: center; justify-content: center; }
[data-theme='dark'] .service-card .icon { color: var(--color-accent-hover); }
.service-card h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); color: var(--color-text); }
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); flex-grow: 1; }
.service-card ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.service-card ul li { font-size: var(--text-xs); color: var(--color-text-muted); display: flex; gap: var(--space-2); }
.service-card ul li::before { content: '—'; color: var(--color-accent); flex-shrink: 0; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Sectors ---------- */
.sectors-section { background: var(--color-surface-offset); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.sector-card { background: var(--color-surface); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.sector-card .icon { width: 40px; height: 40px; color: var(--color-navy-soft); }
.sector-card h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); color: var(--color-text); }
.sector-card p { font-size: var(--text-xs); color: var(--color-text-muted); }
.sector-card .tag { font-size: var(--text-xs); font-weight: 700; color: var(--color-accent); }
@media (max-width: 980px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); position: relative; }
.process-step { position: relative; }
.process-step .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-accent); display: block; margin-bottom: var(--space-3); }
.process-step h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FTA Impact ---------- */
.impact { background: var(--color-brand-navy); color: #EEF1FA; }
.impact .eyebrow { color: #F3B989; }
.impact .eyebrow::before { background: #F3B989; }
.impact .section-title, .impact h3 { color: #fff; }
.impact .section-lede { color: #C9D2E8; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-10); position: relative; }
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.15); }
.timeline-item { position: relative; padding-top: var(--space-8); }
.timeline-item::before { content: ''; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--color-brand-navy); border: 2px solid #F3B989; }
.timeline-item .date { font-size: var(--text-xs); color: #F3B989; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: var(--space-2); }
.timeline-item h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); color: #fff; margin-bottom: var(--space-1); }
.timeline-item p { font-size: var(--text-xs); color: #A9B4CE; }
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.quote-block { margin-top: var(--space-16); border-left: 3px solid #F3B989; padding-left: var(--space-6); max-width: 720px; }
.quote-block p { font-family: var(--font-display); font-size: var(--text-lg); color: #fff; margin-bottom: var(--space-3); }
.quote-block cite { font-size: var(--text-xs); color: #A9B4CE; font-style: normal; }

/* ---------- CTA ---------- */
.cta-banner { background: var(--color-accent-highlight); border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-16)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta-banner h2 { font-size: var(--text-xl); max-width: 480px; }
.cta-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--color-brand-navy); color: #C9D2E8; padding-top: clamp(var(--space-16), 8vw, var(--space-24)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-16); }
.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); color: #A9B4CE; max-width: 320px; }
.footer h5 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: #F3B989; margin-bottom: var(--space-4); }
.footer ul { list-style: none; display: grid; gap: var(--space-3); }
.footer a { color: #C9D2E8; text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--space-6); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: #8B96B4; }
.sources { border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--space-6); font-size: var(--text-xs); color: #8B96B4; }
.sources p { margin-bottom: var(--space-2); }
.sources a { color: #A9B4CE; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive section paddings ---------- */
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero::before { background-position: center 20%; opacity: 0.5; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
