/* ==========================================================================
   Cassie Marriott — Emotional Healing Hypnotherapist
   Moss & Linen design system
   ========================================================================== */

/* ---- Fonts (self-hosted for performance) --------------------------------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 450 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------ */

:root {
  /* Moss & Linen — light */
  --bg: #F5F2EA;          /* linen */
  --surface: #DCD6C6;     /* warm sand — use sparingly */
  --surface-tint: rgba(220, 214, 198, 0.35);
  --accent: #A9B5A9;      /* grey-sage */
  --brand: #5E6E5E;       /* grey-moss */
  --brand-strong: #4C5A4C;
  --text: #2E332B;        /* deep green-charcoal */
  --text-soft: #4C544A;
  --heading: #2E332B;
  --on-brand: #F5F2EA;
  --border: rgba(46, 51, 43, 0.14);
  --shadow: 0 2px 24px rgba(46, 51, 43, 0.07);
  --header-bg: rgba(245, 242, 234, 0.88);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 68rem;
  --radius: 14px;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);

  color-scheme: light;
}

/* Dark palette applied two ways:
   1. automatically, when the OS prefers dark and no manual choice is stored
   2. explicitly, via [data-theme="dark"] set by the toggle               */

[data-theme="dark"] {
  --bg: #242322;          /* warm charcoal-grey */
  --surface: #2E2C29;
  --surface-tint: rgba(46, 44, 41, 0.6);
  --accent: #8FA38F;
  --brand: #8FA38F;
  --brand-strong: #BCC6BC;
  --text: #E8E4D6;        /* soft beige */
  --text-soft: #C7C2B2;
  --heading: #E8E4D6;     /* same beige as body — one text family, sage stays accent-only */
  --on-brand: #242322;
  --border: rgba(232, 228, 214, 0.14);
  --shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(36, 35, 34, 0.88);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #242322;
    --surface: #2E2C29;
    --surface-tint: rgba(46, 44, 41, 0.6);
    --accent: #8FA38F;
    --brand: #8FA38F;
    --brand-strong: #BCC6BC;
    --text: #E8E4D6;
    --text-soft: #C7C2B2;
    --heading: #E8E4D6;
    --on-brand: #242322;
    --border: rgba(232, 228, 214, 0.14);
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(36, 35, 34, 0.88);
    color-scheme: dark;
  }
}

/* ---- Base ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.09375rem; /* 17.5px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 550;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

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

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

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.narrow {
  max-width: 44rem;
}

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--text-soft);
}

.center { text-align: center; }

/* Screen-reader only */
.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: 1rem;
  top: -3rem;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--on-brand);
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-secondary:hover {
  background: var(--surface-tint);
  color: var(--brand-strong);
}

.btn-large {
  font-size: 1.06rem;
  padding: 1.15rem 2.1rem;
}

.btn-small {
  font-size: 0.92rem;
  padding: 0.7rem 1.3rem;
}

/* ---- Header / nav --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.nav-cta {
  background: var(--brand);
  color: var(--on-brand) !important;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--brand-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  transition: background-color 0.3s var(--ease);
}

.theme-toggle:hover {
  background: var(--surface-tint);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-moon { display: none; }
.icon-sun { display: block; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-moon { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-sun { display: none; }
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 8px;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close { display: none; }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open { display: block; }

  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: 0.9rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.02rem;
  }

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

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 30rem at 82% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%),
    radial-gradient(38rem 26rem at -12% 108%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 70%);
  pointer-events: none;
}

/* In dark mode the corner glow reads as a looming light — remove it */
[data-theme="dark"] .hero::before {
  background: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .hero::before {
    background: none;
  }
}

.hero .wrap {
  position: relative;
  max-width: 50rem;
}

.hero h1 {
  margin-bottom: 0.55em;
}

.hero .lede {
  font-size: 1.22rem;
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.cta-lead {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.hero-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ---- Credibility strip ----------------------------------------------------- */

.cred-strip {
  padding-block: 1.4rem;
  border-block: 1px solid var(--border);
  background: var(--surface-tint);
}

.cred-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.cred-strip li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cred-strip svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex-shrink: 0;
}

.cred-pending {
  font-style: italic;
  opacity: 0.85;
}

/* ---- Empathy block ---------------------------------------------------------- */

.empathy ul {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
  display: grid;
  gap: 0.9rem;
}

.empathy li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--text-soft);
}

.empathy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Steps ------------------------------------------------------------------ */

.steps {
  background: var(--surface-tint);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

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

.step-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin: 0;
}

.step-card .btn {
  margin-top: 1.2rem;
}

.steps-close {
  margin-top: 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-align: center;
  color: var(--text);
}

.steps-caveat {
  margin: 0.7rem auto 0;
  max-width: 38rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---- Help cards --------------------------------------------------------------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 1.3rem;
  margin-top: 2.5rem;
}

.help-card {
  display: block;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  color: var(--text);
}

.help-card h3 {
  color: var(--brand);
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
}

.help-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.help-card .card-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* ---- Testimonials (placeholder policy §9) ------------------------------------- */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.story-card {
  background: var(--surface-tint);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  text-align: center;
  color: var(--text-soft);
}

.story-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.7rem;
}

.story-card p {
  font-style: italic;
  margin: 0;
  font-size: 0.98rem;
}

.stories-note {
  margin-top: 1.8rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---- About preview --------------------------------------------------------------- */

.about-preview {
  background: var(--surface-tint);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.photo-real {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-block {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 45%, var(--bg)),
    color-mix(in srgb, var(--brand) 30%, var(--bg)));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---- FAQ ---------------------------------------------------------------------------- */

.faq-list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.13rem;
  font-weight: 550;
  transition: color 0.25s var(--ease);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:hover {
  color: var(--brand);
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details > div {
  padding: 0 0.25rem 1.4rem;
  color: var(--text-soft);
  max-width: 40rem;
}

.faq-list details > div p:last-child {
  margin-bottom: 0;
}

/* ---- Final CTA / booking -------------------------------------------------------------- */

.final-cta {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
}

.final-cta .lede {
  max-width: 36rem;
  margin-inline: auto;
}

.booking-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.booking-embed .calendly-inline-widget {
  min-height: 700px;
}

.booking-fallback {
  padding: 3rem 2rem;
  text-align: center;
}

.booking-fallback p {
  color: var(--text-soft);
  max-width: 32rem;
  margin-inline: auto;
}

/* ---- Scroll hint ---------------------------------------------------------------------------- */

.scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
  color: var(--accent);
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
  animation: scroll-drift 2.6s ease-in-out infinite;
}

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

@keyframes scroll-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---- Utilities ----------------------------------------------------------------------------- */

.no-pad-top {
  padding-top: 0;
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: 0.85rem;
}

.cred-list li {
  padding-left: 2rem;
  position: relative;
}

.cred-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ---- Compact CTA banner ------------------------------------------------------------------ */

.cta-banner {
  padding-block: 2.75rem;
}

.cta-banner h2 {
  font-size: 1.5rem;
}

.cta-banner .lede {
  max-width: 36rem;
  margin-inline: auto;
}

/* ---- Pricing cards (Work With Me) ------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--brand);
  border-width: 2px;
}

.price-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text);
  margin: 0.4rem 0 0.2rem;
}

.price-amount small {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 2rem;
  display: grid;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.97rem;
}

.price-card li {
  padding-left: 1.7rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
  text-align: center;
}

/* ---- Prose pages (about, method, problem, legal) ----------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-soft);
}

.prose h2 {
  margin-top: 2.4em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.3rem;
  color: var(--text-soft);
}

.prose li {
  margin-bottom: 0.5rem;
}

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-hero .lede {
  max-width: 42rem;
}

/* ---- Forms (email signup) ------------------------------------------------------------------ */

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
  max-width: 30rem;
}

.signup-form input[type="email"] {
  flex: 1 1 14rem;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

/* ---- Footer ----------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

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

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

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

.site-footer .footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-brand p {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.86rem;
}

.footer-disclaimer {
  font-size: 0.84rem;
  opacity: 0.85;
  max-width: 46rem;
  margin-top: 1rem;
}

/* ---- Motion ------------------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
