/* =====================================================================
   Neeru Yadav — Hockey Wali Sarpanch
   Design System: Institutional / Editorial / Premium
   Palette: Deep Navy, Hockey Turf Green, Gold, White, Tricolour accent
   ===================================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --green: #0B6E4F;
  --green-soft: #E7F3EE;
  --gold: #C9A227;
  --gold-soft: #F6EFD8;
  --saffron: #FF9933;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --ink: #1A1F24;
  --ink-soft: #4B5563;
  --border: #E6E4DD;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 24px 48px rgba(11, 37, 69, 0.12);
  --radius: 4px;
  --radius-lg: 10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --white: #0F1720;
  --off-white: #0B121A;
  --ink: #EDEFF2;
  --ink-soft: #A9B2BD;
  --border: #223142;
  --navy: #14294A;
  --green-soft: #0E2620;
  --gold-soft: #2A2412;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.45);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 {
  color: var(--white);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.75); }
.section--soft { background: var(--green-soft); }

.tricolour-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--saffron) 0 33%, var(--white) 33% 66%, var(--green) 66% 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: rgba(15,23,32,0.86); }

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--navy); }
[data-theme="dark"] .brand__name { color: var(--white); }
.brand__tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
[data-theme="dark"] .nav a { color: var(--ink); }
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #b8931f; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
[data-theme="dark"] .btn--outline { border-color: var(--white); color: var(--white); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.34;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,51,0.55) 0%, rgba(7,26,51,0.92) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 32px; }
.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(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__image { aspect-ratio: 4/3; overflow: hidden; background: var(--green-soft); }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 24px; }
.card__meta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__excerpt { font-size: 14px; color: var(--ink-soft); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--navy); }
[data-theme="dark"] .card { background: #131C27; }

/* ---------------- Numbers / Impact stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: 44px; color: var(--gold); font-weight: 700; }
.stat__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item::before {
  content: ''; position: absolute; left: -40px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold);
}
.timeline-item__year { font-family: var(--font-serif); color: var(--gold); font-size: 20px; font-weight: 700; }
.timeline-item__title { margin: 6px 0; }

/* ---------------- Testimonials ---------------- */
.testimonial {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial__quote { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--navy); }
[data-theme="dark"] .testimonial__quote { color: var(--white); }
.testimonial__person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: 14px; }
.testimonial__role { font-size: 12px; color: var(--ink-soft); }

/* ---------------- Partner logos ---------------- */
.partners-strip { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; opacity: 0.85; }
.partners-strip img { height: 40px; width: auto; filter: grayscale(100%); transition: filter var(--transition); }
.partners-strip img:hover { filter: grayscale(0%); }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
[data-theme="dark"] .form-label { color: var(--white); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 140px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 48px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 14px; display: block; margin-bottom: 10px; transition: color var(--transition); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.social-row a:hover { border-color: var(--gold); }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 8px; }

/* ---------------- Page banner ---------------- */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0 56px;
}
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.75); max-width: 640px; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.badge {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px; background: var(--gold-soft); color: var(--gold); font-weight: 700;
}

/* ---------------- 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; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform var(--transition); }
  .nav.is-open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .site-header__row { height: 72px; }
}

/* ---------------- Motion (subtle, respects reduced-motion) ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Accessibility ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }
