/* ============================================================
   ChhattisgarhABC — core stylesheet
   Loaded on every public page. Page-specific styles live in
   assets/css/pages/*.css and are loaded per route (see layout/app).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand:        #5d2cb5;
  --brand-dark:   #4a1f95;
  --brand-light:  #efe9fb;
  --blue:         #3237f0;
  --accent:       #ff6b35;

  /* Neutrals */
  --ink:          #1a1635;
  --text:         #3d3a50;
  --muted:        #6b6585;
  --line:         #e7e3f2;
  --surface:      #f7f5fc;
  --white:        #ffffff;

  /* Legacy names used by page stylesheets */
  --paper:        #faf8ff;
  --paper-soft:   #f4f0ff;
  --paper-deep:   #ebeeff;
  --paper-coral:  #fff0e8;
  --ink-soft:     #2a2363;
  --rule:         var(--line);
  --terracotta:   var(--brand);
  --terracotta-d: var(--brand-dark);
  --terracotta-l: #7d4ad0;
  --teal:         var(--blue);
  --teal-d:       #1f23c4;
  --teal-l:       #5b5fff;
  --ochre:        var(--accent);
  --ochre-d:      #e54d15;
  --saffron:      #ff8a5a;
  --leaf:         #7d4ad0;
  --indigo:       #2a2363;

  --brand-grad:      linear-gradient(to right, #5d2cb5, #3237f0);
  --brand-grad-soft: linear-gradient(to right, rgba(93, 44, 181, .92), rgba(50, 55, 240, .92));
  --bg-grad-warm:    var(--surface);

  /* Type */
  --ff-display: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body:    var(--ff-display);
  --ff-hand:    var(--ff-display);
  --ff-mono:    var(--ff-display);

  --fs-small:   14px;
  --fs-body:    clamp(16px, 1vw, 17px);
  --fs-heading: clamp(24px, 2.2vw, 34px);
  --fs-display: clamp(32px, 4vw, 52px);

  --fs-xxs: var(--fs-small); --fs-xs: var(--fs-small); --fs-sm: var(--fs-small);
  --fs-md: var(--fs-body); --fs-lg: var(--fs-body); --fs-base: var(--fs-body);
  --fs-lede: var(--fs-body); --fs-cta: 15px; --fs-prose: var(--fs-body);
  --fs-xl: var(--fs-heading); --fs-2xl: var(--fs-heading); --fs-3xl: var(--fs-heading);
  --fs-subheading: var(--fs-heading); --fs-stat: var(--fs-heading);
  --fs-4xl: var(--fs-display); --fs-5xl: var(--fs-display);
  --fs-hero: var(--fs-display); --fs-hero-tight: var(--fs-display);
  --lh-prose: 1.7;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.1; --lh-snug: 1.25; --lh-normal: 1.5; --lh-relaxed: 1.65; --lh-loose: 1.75;
  --ls-tighter: -0.03em; --ls-tight: -0.02em; --ls-display: -0.02em; --ls-heading: -0.015em;
  --ls-normal: 0; --ls-wide: 0.04em; --ls-caps: 0.12em;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Layout */
  --page-gutter: 20px;
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Effects */
  --shadow-1: 0 1px 2px rgba(26, 22, 53, .06);
  --shadow-2: 0 4px 16px -6px rgba(26, 22, 53, .14);
  --shadow-3: 0 18px 40px -18px rgba(26, 22, 53, .25);
  --shadow-warm: 0 10px 24px -12px rgba(74, 31, 149, .45);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 420ms; --dur-4: 640ms;

  --z-nav: 80; --z-overlay: 90; --z-modal: 100; --z-toast: 120;
}

@media (min-width: 768px) { :root { --page-gutter: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--ink);
  margin: 0 0 var(--s-4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-heading); }
h3 { font-size: clamp(19px, 1.5vw, 22px); }
h4 { font-size: 18px; }
h5, h6 { font-size: var(--fs-body); }

h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--brand); }
em, .it { font-style: italic; }

p { margin: 0 0 var(--s-4); }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--brand-dark); }

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

::selection { background: var(--brand); color: var(--white); }

.type-hero, .type-display { font-size: var(--fs-display); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
.type-section-title, .type-card-title { font-size: var(--fs-heading); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.type-lede, .hero-lede { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; color: var(--muted); }
.type-meta { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--muted); }
.type-caption { font-size: var(--fs-small); color: var(--muted); }

.prose { font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
.prose p, .prose li { max-width: 70ch; }
.prose h2 { margin: var(--s-7) 0 var(--s-4); }
.prose h3, .prose h4 { margin: var(--s-6) 0 var(--s-3); }
.prose blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 3px solid var(--brand); color: var(--ink-soft); font-style: italic; }

/* ---------- Layout helpers ---------- */
.container-x, .container-narrow {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: var(--s-7) 0; }
.section--soft { background: var(--surface); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-6);
}
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s-2) 0 0; color: var(--muted); max-width: 60ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.eyebrow, .chapter {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.chapter b { color: inherit; font-weight: inherit; }
.kicker { color: var(--brand); font-weight: var(--fw-medium); }
.rule-h { height: 1px; background: var(--line); border: 0; margin: var(--s-7) 0; }

.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: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: var(--fw-bold) var(--fs-cta)/1 var(--ff-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-warm); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }

.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--brand-light); color: var(--brand-dark); }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 15px;
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.btn-link:hover { color: var(--brand-dark); text-decoration: underline; }

.btn .arrow, .btn-link .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow, .btn-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-1); }

.site-header__row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
}

.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand img { display: block; height: 44px; width: auto; }

.site-nav { flex: 1; }
.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link,
.site-nav__group > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.site-nav__link:hover,
.site-nav__group > summary:hover { background: var(--surface); color: var(--brand); }
.site-nav__link.is-active,
.site-nav__group.is-active > summary { color: var(--brand); background: var(--brand-light); }

.site-nav__group { position: relative; }
.site-nav__group > summary { list-style: none; }
.site-nav__group > summary::-webkit-details-marker { display: none; }
.site-nav__group > summary svg { transition: transform var(--dur-2) var(--ease-out); }
.site-nav__group[open] > summary svg { transform: rotate(180deg); }

.site-nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.site-nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.site-nav__menu a small { display: block; color: var(--muted); font-size: 13px; }
.site-nav__menu a:hover { background: var(--surface); color: var(--brand); }

.site-header__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.site-header__login {
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  padding: 8px 4px;
}
.site-header__login:hover { color: var(--brand); }
.site-header__actions form { margin: 0; }
.site-header__actions button.site-header__login { background: none; border: 0; cursor: pointer; font-family: inherit; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }
.site-nav__mobile-actions { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-header__row { justify-content: space-between; }
  .site-header__actions .site-header__login,
  .site-header__actions .btn { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: var(--s-4) var(--page-gutter) var(--s-7);
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .nav-open { overflow: hidden; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__link,
  .site-nav__group > summary {
    display: flex;
    justify-content: space-between;
    padding: 16px 4px;
    border-radius: 0;
    font-size: 17px;
  }
  .site-nav__link.is-active,
  .site-nav__group.is-active > summary,
  .site-nav__link:hover,
  .site-nav__group > summary:hover { background: none; }
  .site-nav__menu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
  }
  .site-nav__mobile-actions {
    display: grid;
    gap: var(--s-3);
    margin-top: var(--s-5);
  }
  .site-nav__mobile-actions form { margin: 0; }
}

@media (max-width: 480px) {
  .site-brand img { height: 38px; }
}

/* ---------- Page head ---------- */
.page-head {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(93, 44, 181, .10), transparent 60%),
    radial-gradient(40% 90% at 0% 100%, rgba(50, 55, 240, .07), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0; max-width: 22ch; }
.page-head p { margin: var(--s-3) 0 0; max-width: 62ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.page-head .eyebrow { margin-bottom: var(--s-2); }
.page-head__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: var(--s-4);
  color: var(--muted); font-size: 14px; font-weight: var(--fw-medium); text-decoration: none;
}
.page-head__back:hover { color: var(--brand); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
a.card, .card--link { color: inherit; text-decoration: none; }
a.card:hover, .card--link:hover { border-color: rgba(93, 44, 181, .35); box-shadow: var(--shadow-3); transform: translateY(-2px); }

.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 12px; font-weight: var(--fw-bold);
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: var(--s-2); padding: var(--s-5); }
.card__title { margin: 0; font-size: 18px; line-height: 1.35; }
.card__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card__meta { margin-top: auto; padding-top: var(--s-3); color: var(--muted); font-size: 13px; }
.card__cta { margin-top: auto; padding-top: var(--s-3); color: var(--brand); font-size: 15px; font-weight: var(--fw-bold); }

.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-light); color: var(--brand);
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--s-4) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 14px; font-weight: var(--fw-medium); }
.field__hint { margin: 0; color: var(--muted); font-size: 13px; }
.field__error { margin: 0; color: #c0262d; font-size: 13px; }

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9d4e8;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 var(--ff-body);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a95ad; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(93, 44, 181, .12);
}
.field .is-invalid, .field input[aria-invalid="true"] { border-color: #c0262d; }

.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}

.alert {
  margin: 0 0 var(--s-4);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.alert--error { background: #fdecec; color: #8f1d22; }
.alert--success { background: #e8f6ee; color: #17633a; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Toast ---------- */
.site-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  display: flex;
  gap: 12px;
  width: min(420px, calc(100vw - 40px));
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.site-toast--show { opacity: 1; transform: none; }
.site-toast--hide { opacity: 0; transform: translateY(12px); }
.site-toast--success { border-left-color: #1f9d57; }
.site-toast--success .site-toast__icon { color: #1f9d57; }
.site-toast--error { border-left-color: #c0262d; }
.site-toast--error .site-toast__icon { color: #c0262d; }
.site-toast__body { flex: 1; min-width: 0; }
.site-toast__title { margin: 0 0 2px; color: var(--ink); font-weight: var(--fw-bold); }
.site-toast__message { margin: 0; color: var(--muted); font-size: 14px; }
.site-toast__errors { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.site-toast__close { align-self: flex-start; padding: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: clamp(48px, 6vw, 72px) 0 var(--s-5);
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--s-7); } }

.site-footer__logo {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: var(--s-4);
  background: var(--white);
  border-radius: 12px;
}
.site-footer__logo img { display: block; height: 40px; width: auto; }
.site-footer__about { max-width: 36ch; margin: 0 0 var(--s-4); }

.site-footer h2 {
  margin: 0 0 var(--s-4);
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.newsletter { display: flex; gap: 8px; margin: 0 0 var(--s-3); }
.newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 15px var(--ff-body);
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter input:focus { outline: none; border-color: rgba(255, 255, 255, .5); }
.newsletter button {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: var(--fw-bold) 15px var(--ff-body);
  cursor: pointer;
}
.newsletter button:hover { background: var(--ochre-d); }

.site-footer .social-links, .social-links { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}
.social-links a:hover { background: var(--brand); }
.social-links svg { width: 18px; height: 18px; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* Legacy social icon markup used inside some page templates */
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons__link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: currentColor; }
.social-icons__svg { width: 18px; height: 18px; }

/* ---------- Motion ---------- */
.fade-up { animation: fadeUp 600ms var(--ease-out) both; }
.fade-up[data-delay="2"] { animation-delay: 80ms; }
.fade-up[data-delay="3"] { animation-delay: 160ms; }
.fade-up[data-delay="4"] { animation-delay: 240ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.js-reveal [data-aos] { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js-reveal [data-aos]:not(.is-visible) { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  .js-reveal [data-aos]:not(.is-visible) { opacity: 1; transform: none; }
}
