/* ==========================================================================
   Agravan Educational Society — Design System
   Single shared stylesheet for all pages
   ========================================================================== */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Brand palette */
  --indigo-900: #11205a;
  --indigo-800: #1a2e7a;
  --indigo-700: #243d99;
  --indigo-600: #2f4fbf;
  --indigo-500: #4361d6;
  --indigo-100: #e6ecff;
  --indigo-50: #f2f5ff;

  --emerald-700: #0a7f5b;
  --emerald-600: #0e9e72;
  --emerald-500: #12b886;
  --emerald-100: #d6f5ea;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;

  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --bg-deep: var(--indigo-900);
  --text: var(--slate-700);
  --heading: var(--ink);
  --primary: var(--indigo-700);
  --primary-strong: var(--indigo-800);
  --accent: var(--emerald-600);
  --highlight: var(--amber-500);
  --border: var(--slate-200);

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing & layout */
  --container: 1180px;
  --container-narrow: 820px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 32, 90, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 280ms;
}

/* ------------------------------- Reset ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--primary-strong);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------- Layout helpers ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bg-alt {
  background: var(--bg-alt);
}

.bg-deep {
  background: var(--bg-deep);
  color: #d9e0f5;
}

.bg-deep h1,
.bg-deep h2,
.bg-deep h3 {
  color: #fff;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ------------------------------ Eyebrow --------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.bg-deep .eyebrow {
  color: var(--amber-400);
}

.bg-deep .eyebrow::before {
  background: var(--amber-400);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--slate-600);
  max-width: 60ch;
}

.bg-deep .lead {
  color: #c3cdec;
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t) var(--ease), background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--emerald-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--slate-400);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
  transform: translateY(-2px);
}

.bg-deep .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.bg-deep .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bg-deep .btn-primary {
  background: #fff;
  color: var(--indigo-800);
}

.bg-deep .btn-primary:hover {
  background: var(--amber-400);
  color: var(--indigo-900);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--heading);
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate-700);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-links a:hover {
  background: var(--indigo-50);
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--indigo-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: radial-gradient(
      1200px 500px at 85% -10%,
      var(--indigo-100),
      transparent 60%
    ),
    radial-gradient(900px 500px at -10% 20%, var(--emerald-100), transparent 55%),
    var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .highlight-text {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.hero .highlight-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--amber-400);
  opacity: 0.45;
  border-radius: 4px;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.hero-trust .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--heading);
  line-height: 1;
}

.hero-trust .stat span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.hero-art {
  position: relative;
}

.hero-art img,
.hero-art svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
}

.hero-badge .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-badge.b1 {
  left: -10px;
  bottom: 30px;
}

.hero-badge.b2 {
  right: -8px;
  top: 36px;
}

/* ------------------------------- Cards ---------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-100);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.icon-indigo {
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.icon-emerald {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.icon-amber {
  background: var(--amber-100);
  color: #b45309;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --------------------------- Section heading ---------------------------- */
.section-head {
  max-width: 720px;
  margin-bottom: 2.6rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

/* ----------------------------- Stat band -------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-band .stat {
  padding: 1.6rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-band .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1;
}

.stat-band .num .suffix {
  color: var(--amber-400);
}

.stat-band .label {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #b9c2e0;
}

/* ----------------------------- Pills / tags ----------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ------------------------- Program / list cards ------------------------- */
.program-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  height: 100%;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.program-card .media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-500));
  display: grid;
  place-items: center;
}

.program-card .media svg {
  width: 40%;
  height: auto;
  opacity: 0.95;
}

.program-card .media .tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo-800);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.program-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card .body h3 {
  margin-bottom: 0.5rem;
}

.program-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--slate-500);
}

.program-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.program-card .meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ------------------------------ Feature row ----------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--slate-100);
}

.feature-media img,
.feature-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--slate-700);
}

.check-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

/* ------------------------------ Steps ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo-700);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
}

/* ------------------------------ Quote ----------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-xs);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-card blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  color: var(--slate-700);
  line-height: 1.65;
}

.quote-card .who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.quote-card .who strong {
  display: block;
  color: var(--heading);
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.quote-card .who span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ------------------------------- CTA band ------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--indigo-800), var(--indigo-600));
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      500px 260px at 12% 0%,
      rgba(18, 184, 134, 0.35),
      transparent 60%
    ),
    radial-gradient(500px 260px at 90% 100%, rgba(245, 158, 11, 0.28), transparent 60%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .lead {
  color: #d7def6;
  margin-inline: auto;
  margin-bottom: 1.8rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--indigo-800);
}

.cta-band .btn-primary:hover {
  background: var(--amber-400);
  color: var(--indigo-900);
}

.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ------------------------------ Partners -------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.logo-strip .logo-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity var(--t), filter var(--t);
}

.logo-strip .logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ------------------------------ Page hero ------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: radial-gradient(
      900px 400px at 90% -20%,
      var(--indigo-100),
      transparent 60%
    ),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 0.8rem;
}

.page-hero .breadcrumb a {
  color: var(--slate-500);
}

.page-hero .breadcrumb a:hover {
  color: var(--primary);
}

.page-hero h1 {
  margin-bottom: 0.8rem;
}

/* ------------------------------ Accordion ------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  cursor: pointer;
}

.accordion-trigger:hover {
  background: var(--slate-50);
}

.accordion-trigger .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform var(--t) var(--ease);
}

.accordion-trigger .icon::before,
.accordion-trigger .icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}

.accordion-trigger .icon::before {
  top: 11px;
  left: 4px;
  right: 4px;
  height: 2px;
}

.accordion-trigger .icon::after {
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transition: transform var(--t) var(--ease);
}

.accordion-trigger[aria-expanded="true"] .icon::after {
  transform: scaleY(0);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t) var(--ease);
}

.accordion-panel-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--slate-600);
}

/* -------------------------------- Forms --------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.field .req {
  color: #dc2626;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px var(--indigo-100);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.6rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.form-success.show {
  display: flex;
}

/* ------------------------------ Info cards ------------------------------ */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.info-card .ic {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ----------------------------- Donate tiers ----------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t);
}

.tier:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tier .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tier .amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--heading);
}

.tier .amount span {
  font-size: 1rem;
  color: var(--slate-500);
  font-weight: 500;
}

.tier p {
  font-size: 0.95rem;
  margin: 0.8rem 0 1.4rem;
}

/* ------------------------------- Timeline ------------------------------- */
.timeline {
  position: relative;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--slate-200);
}

.timeline li {
  position: relative;
  padding-left: 3.4rem;
  padding-bottom: 2rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .marker {
  position: absolute;
  left: 6px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.timeline .year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.timeline h3 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
}

/* ------------------------------ Team grid ------------------------------- */
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card .photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-head);
}

.team-card p {
  font-size: 0.9rem;
  margin-top: 0.7rem;
}

/* -------------------------- Image placeholder --------------------------- */
.img-slot {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(
      45deg,
      var(--slate-100),
      var(--slate-100) 12px,
      var(--slate-50) 12px,
      var(--slate-50) 24px
    );
  color: var(--slate-500);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  min-height: 220px;
  padding: 1.4rem;
  font-size: 0.86rem;
}

.img-slot .label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate-600);
}

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--indigo-900);
  color: #aab4d6;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .brand-text small {
  color: #8d99c2;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: #aab4d6;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--emerald-500);
}

.footer-contact a {
  color: #aab4d6;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.2rem;
}

.footer-bottom a {
  color: #8d99c2;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ------------------------------ Newsletter ------------------------------ */
.newsletter {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
}

.newsletter input::placeholder {
  color: #8d99c2;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--emerald-500);
}

.newsletter button {
  flex-shrink: 0;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.newsletter button:hover {
  background: var(--emerald-700);
}

/* ----------------------------- Reveal anim ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------- Utilities -------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.maxw { max-width: 60ch; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 520px;
  }
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 1.25rem 1.2rem;
    transform: translateY(-130%);
    transition: transform var(--t) var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: none;
  }
  .nav-links a {
    padding: 0.85rem 0.6rem;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta .btn-ghost {
    display: none;
  }
}

@media (max-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-media {
    order: -1;
  }
  .cols-2,
  .cols-3,
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .steps,
  .stat-band {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }
}
