/* =========================================================
   x10maths — Extra Maths & Science Tuition
   Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Manrope:wght@300..800&display=swap');

:root {
  /* Brand palette */
  --olive: #569024;
  --olive-deep: #3e6a19;
  --olive-soft: #e8f0dc;
  --orange: #db711c;
  --orange-deep: #b85a14;
  --teal: #006980;
  --teal-deep: #004f60;
  --purple: #783997;
  --purple-soft: #f1e8f6;

  /* Neutrals */
  --ink: #1a2014;
  --ink-soft: #4a5340;
  --paper: #faf8f3;
  --paper-warm: #f3eee2;
  --line: #d8d2c2;

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-variation-settings: 'opsz' 144, 'SOFT' 30; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-variation-settings: 'opsz' 80; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-variation-settings: 'opsz' 24; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Decorative math grid background ---------- */
.math-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--olive); }

.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--orange-deep); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; right: var(--gutter);
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    gap: 0.8rem;
    align-items: flex-start;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 16px rgba(219, 113, 28, 0.25);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); color: white; }

.btn-secondary {
  background: var(--olive);
  color: white;
}
.btn-secondary:hover { background: var(--olive-deep); transform: translateY(-2px); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

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

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--olive-soft);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--olive) 25%, transparent);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 25%, transparent);
}

.hero h1 .accent {
  color: var(--olive);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.hero h1 .accent-orange { color: var(--orange); font-style: italic; }

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--purple);
  line-height: 1;
  font-variation-settings: 'opsz' 80, 'SOFT' 50;
}
.hero-stat .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* Hero visual: stacked tablet/equation card */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--olive) 0%, var(--teal) 60%, var(--purple) 110%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.25), transparent 50%);
}

.hero-visual .equation {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}
.hero-visual .eq-1 { top: 12%; left: 8%; font-size: 2.6rem; }
.hero-visual .eq-2 { top: 38%; right: 8%; font-size: 1.8rem; opacity: 0.7; }
.hero-visual .eq-3 { bottom: 18%; left: 12%; font-size: 3.2rem; opacity: 0.9; }
.hero-visual .eq-4 { bottom: 8%; right: 14%; font-size: 1.4rem; opacity: 0.6; }

.hero-visual .badge {
  position: absolute;
  top: 6%; right: 6%;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transform: rotate(8deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Decorative floating math symbols */
.float-symbol {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  pointer-events: none;
  user-select: none;
  opacity: 0.08;
  font-weight: 400;
}

/* ---------- Sections ---------- */
section { position: relative; }

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section-alt {
  background: var(--paper-warm);
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-header.center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
  border-color: var(--olive);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--olive-soft);
  color: var(--olive);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 500;
}
.feature:nth-child(2) .feature-icon { background: color-mix(in srgb, var(--orange) 12%, white); color: var(--orange); }
.feature:nth-child(3) .feature-icon { background: color-mix(in srgb, var(--teal) 12%, white); color: var(--teal); }
.feature:nth-child(4) .feature-icon { background: var(--purple-soft); color: var(--purple); }

.feature h3 { margin-bottom: 0.6rem; }
.feature p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Subjects banner ---------- */
.subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.subject {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  color: white;
}
.subject.maths { background: linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%); }
.subject.science { background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%); }

.subject h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.6rem;
  font-variation-settings: 'opsz' 80, 'SOFT' 50;
}
.subject p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
.subject .symbol {
  position: absolute;
  right: -10px; bottom: -30px;
  font-family: var(--display);
  font-style: italic;
  font-size: 11rem;
  opacity: 0.15;
  pointer-events: none;
}

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-block: 1rem;
}
.quote-block blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  font-variation-settings: 'opsz' 80, 'SOFT' 50;
  color: var(--ink);
  margin: 0 0 1.5rem;
  position: relative;
  padding-inline: 1rem;
}
.quote-block blockquote::before,
.quote-block blockquote::after {
  font-style: italic;
  color: var(--orange);
}
.quote-block blockquote::before { content: '"'; }
.quote-block blockquote::after { content: '"'; }

.quote-attr {
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.quote-attr strong { color: var(--olive); font-weight: 700; }

/* ---------- Team grid (about page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.15);
}

.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--olive-soft), var(--purple-soft));
  position: relative;
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 4rem;
  color: var(--olive);
  opacity: 0.6;
}

.team-info { padding: 1.4rem 1.5rem 1.6rem; }
.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.team-info .role {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.team-info .quote {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--orange);
}

.group-photo {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--olive-soft), var(--purple-soft));
  position: relative;
}
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.group-photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  color: var(--olive);
  font-size: 1.8rem;
  padding: 2rem;
}

/* ---------- Form ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 920px) {
  .form-wrap { grid-template-columns: 1fr; }
}

.form-aside {
  position: sticky;
  top: 100px;
  background: var(--olive-soft);
  border: 1px solid color-mix(in srgb, var(--olive) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-aside h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.form-aside .info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-aside .info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.form-aside .info-list .icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: white;
  color: var(--olive);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
}
.form-aside .info-list strong { color: var(--ink); display: block; margin-bottom: 0.1rem; }
.form-aside .info-list a { color: var(--teal); }

.enquiry-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 12px 36px -20px rgba(0,0,0,0.08);
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 560px) {
  .field-group { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--orange); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: white;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 18%, transparent);
}

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

.field-form-section {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--olive);
  margin: 1.6rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-variation-settings: 'opsz' 36;
}
.field-form-section:first-child { margin-top: 0; }

.subject-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 460px) { .subject-checkboxes { grid-template-columns: 1fr; } }

.check-tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--paper);
  font-weight: 600;
}
.check-tile input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background: white;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  margin: 0;
}
.check-tile input[type="checkbox"]:checked {
  background: var(--olive);
  border-color: var(--olive);
}
.check-tile input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-tile:has(input:checked) {
  border-color: var(--olive);
  background: var(--olive-soft);
  color: var(--olive-deep);
}

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 0.5rem;
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: white;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
}
.consent input[type="checkbox"]:checked {
  background: var(--olive);
  border-color: var(--olive);
}
.consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.turnstile-wrap { margin: 1.4rem 0 0.8rem; }

.form-submit { margin-top: 1.4rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 1.1rem 1.6rem; font-size: 1.05rem; }
.form-submit .btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}
.form-status.success { display: block; background: var(--olive-soft); color: var(--olive-deep); border: 1px solid color-mix(in srgb, var(--olive) 30%, transparent); }
.form-status.error { display: block; background: #fef0e7; color: var(--orange-deep); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { margin-bottom: 0.6rem; }
.page-header h1 .accent { color: var(--olive); font-style: italic; }
.page-header p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- POPIA / privacy content ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.2rem; color: var(--olive); }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .effective {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(86, 144, 36, 0.18), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(120, 57, 151, 0.15), transparent 50%);
  pointer-events: none;
}
.site-footer .container { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(250, 248, 243, 0.7);
  margin-bottom: 1.4rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--body);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(250, 248, 243, 0.85); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }

.footer-contact .item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: rgba(250, 248, 243, 0.85);
  font-size: 0.95rem;
}
.footer-contact .item .icon {
  width: 20px; flex: 0 0 auto;
  margin-top: 3px;
  color: var(--orange);
}
.footer-contact a { color: rgba(250, 248, 243, 0.95); }

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(250, 248, 243, 0.6);
}
.footer-bottom a { color: rgba(250, 248, 243, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Subtle entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.7s var(--ease) forwards;
  }
  .reveal.d1 { animation-delay: 0.05s; }
  .reveal.d2 { animation-delay: 0.15s; }
  .reveal.d3 { animation-delay: 0.25s; }
  .reveal.d4 { animation-delay: 0.35s; }
  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Visually hidden ---------- */
.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;
}
