/* ============================================================
   Thompson Valley Chiropractic — Spec Preview
   Design system + layout. Self-contained, system fonts only.
   ============================================================ */

:root {
  /* Brand */
  --evergreen:      #0f5e57;
  --evergreen-deep: #093f3a;
  --evergreen-dark: #062a27;
  --cream:          #f3ede2;
  --cream-soft:     #faf6ef;
  --terracotta:     #c8894a;
  --terracotta-dk:  #a76c34;
  --ink:            #1c2422;
  --ink-soft:       #43514d;
  --line:           rgba(15, 94, 87, 0.16);
  --white:          #ffffff;

  /* Type */
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  --fs-lede:    clamp(1.12rem, 1.02rem + 0.55vw, 1.4rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.3vw, 3.1rem);
  --fs-h1:      clamp(2.5rem, 1.6rem + 4.4vw, 5rem);

  /* Space scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
  --sp-7: 9rem;

  --maxw: 1280px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--terracotta); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(168, 108, 52, 0.9);
}
.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(168, 108, 52, 0.95); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.btn-ghost.dark { color: var(--evergreen-deep); border-color: var(--line); background: transparent; }
.btn-ghost.dark:hover { background: rgba(15,94,87,0.06); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0.75rem 0;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(6, 42, 39, 0.6);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-icon {
  width: 17px; height: 34px; flex: none; fill: #fff; color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.32));
  transition: fill 0.4s var(--ease);
}
.brand-icon-accent { fill: var(--terracotta); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.14rem; color: #fff;
  letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(6,42,39,0.45);
  transition: color 0.4s var(--ease);
}
.brand-text > span {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; color: var(--terracotta);
  margin-top: 0.32rem;
}
.site-header.scrolled .brand-icon { fill: var(--evergreen-deep); }
.site-header.scrolled .brand-text strong { color: var(--evergreen-deep); text-shadow: none; }
.site-header:not(.scrolled) .site-nav a { text-shadow: 0 1px 10px rgba(6,42,39,0.45); }
.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); margin-left: auto; }
.site-nav a {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: #fff;
  position: relative; padding: 0.3rem 0; transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terracotta); transition: width 0.35s var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.site-header.scrolled .site-nav a { color: var(--evergreen-deep); }
.btn-header {
  background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
  padding: 0.6rem 1.2rem; font-size: 0.9rem; border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-header:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }
.site-header.scrolled .btn-header { background: var(--evergreen); border-color: var(--evergreen); }
.site-header.scrolled .btn-header:hover { background: var(--evergreen-deep); }
.btn-phone-label { opacity: 0.75; font-weight: 500; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}
/* Keep the header call button from clipping off the right edge on phones */
@media (max-width: 480px) {
  .header-inner { gap: 0.75rem; }
  .btn-header { padding: 0.55rem 1rem; font-size: 0.85rem; white-space: nowrap; }
  .btn-phone-label { display: none; }
  .brand-icon { height: 30px; }
  .brand-text strong { font-size: 1.02rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background:
    radial-gradient(120% 85% at 6% 4%, rgba(200,137,74,0.18), transparent 50%),
    radial-gradient(90% 110% at 96% 96%, rgba(15,94,87,0.55), transparent 62%),
    linear-gradient(155deg, var(--evergreen-deep) 0%, var(--evergreen-dark) 82%);
  overflow: hidden;
}
/* Subtle grain-free texture: faint diagonal weave that reads as intentional depth */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(243,237,226,0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 100% at 80% 30%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  min-height: min(100svh, 860px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(6.5rem, 12vh, 8.5rem) clamp(1.4rem, 5vw, 4rem) clamp(3rem, 6vh, 4.5rem);
}
/* Left content panel */
.hero-panel { position: relative; z-index: 2; }
.hero-panel-inner { width: 100%; max-width: 34rem; }
.eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: var(--fs-eyebrow); font-weight: 600; color: var(--terracotta);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 2px; background: var(--terracotta); border-radius: 2px;
}
.hero-title { font-size: var(--fs-h1); color: #fff; margin-bottom: 1.5rem; max-width: 15ch; text-wrap: balance; }
.hero-lede { font-size: var(--fs-lede); max-width: 46ch; color: rgba(243,237,226,0.86); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-meta {
  position: relative;
  margin-top: clamp(2.6rem, 6vh, 4rem);
  display: grid; grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3.4rem);
  justify-content: start;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(243,237,226,0.22);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta-num { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); line-height: 1; color: #fff; }
.hero-meta-label { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.02em; color: rgba(243,237,226,0.72); max-width: 15ch; }

/* Right visual — contained, framed portrait card. The scouted photo is
   soft/low-res, so we present it smaller and framed (blur is far less
   visible than full-bleed) with a warm grade + an offset accent frame
   that echoes the About section, so it reads as composed, not a snapshot. */
.hero-visual { position: relative; z-index: 1; }
.hero-visual::before {
  /* warm glow bloom behind the card */
  content: ""; position: absolute; z-index: -1;
  inset: -14% -10% -14% -16%;
  background: radial-gradient(58% 58% at 62% 42%, rgba(200,137,74,0.22), transparent 72%);
  filter: blur(6px);
}
.hero-visual::after {
  /* offset accent frame */
  content: ""; position: absolute; z-index: 0;
  right: clamp(-1.4rem, -1.6vw, -0.9rem); bottom: clamp(-1.4rem, -1.6vw, -0.9rem);
  width: 64%; height: 72%;
  border: 1.5px solid rgba(200,137,74,0.5); border-radius: 22px;
}
.hero-portrait {
  position: relative; z-index: 1; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  border: 1px solid rgba(243,237,226,0.14);
  box-shadow: 0 50px 90px -46px rgba(0,0,0,0.7), 0 8px 24px -18px rgba(0,0,0,0.5);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(0.28) saturate(0.9) contrast(1.05) brightness(0.94);
}
.hero-portrait-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,42,39,0.12) 0%, transparent 34%, rgba(6,42,39,0.62) 100%),
    linear-gradient(115deg, rgba(9,63,58,0.28), transparent 46%);
}
.hero-portrait-cap {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(6,42,39,0.5); backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid rgba(243,237,226,0.2);
  color: var(--cream); font-family: var(--sans); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.01em;
  padding: 0.5rem 0.9rem; border-radius: 999px;
}

@media (max-width: 860px) {
  .hero {
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(200,137,74,0.16), transparent 55%),
      linear-gradient(160deg, var(--evergreen-deep) 0%, var(--evergreen-dark) 85%);
  }
  .hero-inner {
    grid-template-columns: 1fr; min-height: 0;
    padding-top: clamp(6rem, 16vh, 7.5rem);
    gap: clamp(2.2rem, 7vw, 3rem);
  }
  .hero-visual { order: 2; max-width: 30rem; }
  .hero-portrait { aspect-ratio: 3 / 4; }
  .hero-visual::after { width: 58%; height: 66%; }
}
@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; }
  .hero-meta-item:last-child { grid-column: span 2; }
  .hero-visual::before, .hero-visual::after { display: none; }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.strip {
  position: relative;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(200,137,74,0.16), transparent 60%),
    var(--evergreen);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.1rem, 4vw, 3rem);
}
.strip-text {
  position: relative;
  max-width: 40ch; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(1.35rem, 1rem + 1.5vw, 2.1rem);
  line-height: 1.38; text-wrap: balance;
}
.strip-text::before {
  content: ""; display: block; width: 2.4rem; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  margin: 0 auto 1.4rem;
}

/* ============================================================
   Shared section bits
   ============================================================ */
.section-eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: var(--fs-eyebrow); font-weight: 700; color: var(--terracotta);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: var(--terracotta); }
.section-title { font-size: var(--fs-h2); color: var(--evergreen-deep); text-wrap: balance; max-width: 20ch; }
.section-title.light { color: #fff; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 10vw, var(--sp-7)) clamp(1.1rem, 4vw, 3rem);
}
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about-figure { position: relative; }
.about-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 40px 60px -40px rgba(6,42,39,0.6);
}
/* Unifying grade on scouted content photos so mixed-quality source images
   read cohesively; the hero portrait carries its own treatment. */
.about-figure img, .svc-media img, .gallery-item img {
  filter: saturate(0.94) contrast(1.03);
}
.about-figure::before {
  content: ""; position: absolute; inset: -14px -14px 26px 26px; z-index: -1;
  border: 1.5px solid var(--terracotta); border-radius: var(--radius); opacity: 0.55;
}
.about-figure-tag {
  position: absolute; left: -0.5rem; bottom: 1.4rem;
  background: var(--white); color: var(--evergreen-deep);
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  padding: 0.7rem 1.1rem; border-radius: 10px;
  box-shadow: 0 18px 30px -18px rgba(6,42,39,0.6);
}
.about-copy { max-width: 56ch; }
.about-copy .section-title { margin-bottom: 1.4rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.cred-list {
  list-style: none; padding: 0; margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.cred-list li {
  position: relative; padding-left: 1.8rem;
  font-weight: 500; color: var(--evergreen-deep);
}
.cred-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(200,137,74,0.18);
}

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

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(200,137,74,0.14), transparent 55%),
    var(--evergreen-deep);
  color: var(--cream);
  padding: clamp(4rem, 10vw, var(--sp-7)) clamp(1.1rem, 4vw, 3rem);
}
.approach-head { max-width: var(--maxw); margin: 0 auto; }
.approach-head .section-title { margin-bottom: 1.3rem; max-width: 22ch; }
.approach-lede { max-width: 60ch; color: rgba(243,237,226,0.82); font-size: var(--fs-lede); line-height: 1.5; }
.approach-steps {
  max-width: var(--maxw); margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.step {
  border-top: 2px solid rgba(200,137,74,0.55);
  padding-top: 1.5rem;
}
.step-num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--terracotta);
  display: block; line-height: 1; margin-bottom: 0.8rem;
}
.step h3 { font-size: var(--fs-h3); color: #fff; margin-bottom: 0.6rem; }
.step p { color: rgba(243,237,226,0.78); font-size: 1rem; }

@media (max-width: 720px) {
  .approach-steps { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 10vw, var(--sp-7)) clamp(1.1rem, 4vw, 3rem);
}
.services-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.services-head .section-title { max-width: 24ch; }

.services-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.svc {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -34px rgba(6,42,39,0.5); }
.svc-media { overflow: hidden; aspect-ratio: 16 / 10; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 1.5rem 1.6rem 1.7rem; }
.svc-body h3 { font-size: var(--fs-h3); color: var(--evergreen-deep); margin-bottom: 0.5rem; }
.svc-body p { color: var(--ink-soft); font-size: 0.98rem; }

/* Feature service spans full width, side-by-side */
.svc-feature { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.svc-feature .svc-media { flex: 1 1 52%; aspect-ratio: auto; min-height: 300px; }
.svc-feature .svc-body {
  flex: 1 1 48%; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: var(--evergreen); color: var(--cream);
}
.svc-feature .svc-body h3 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.svc-feature .svc-body p { color: rgba(243,237,226,0.85); font-size: var(--fs-lede); line-height: 1.5; }

@media (max-width: 780px) {
  .services-layout { grid-template-columns: 1fr; }
  .svc-feature { flex-direction: column; }
  .svc-feature .svc-media { min-height: 220px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: clamp(0.5rem, 1.4vw, 1rem);
  padding: 0 clamp(1.1rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
  max-width: var(--maxw); margin: 0 auto;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall { grid-row: span 2; }
.gallery-item:not(.gallery-tall) { aspect-ratio: 4 / 3; }

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-tall { grid-row: span 2; grid-column: span 2; aspect-ratio: 16/10; }
}

/* ============================================================
   VISIT / CONTACT
   ============================================================ */
.visit {
  background: var(--cream);
  padding: clamp(4rem, 10vw, var(--sp-7)) clamp(1.1rem, 4vw, 3rem);
}
.visit-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.visit-copy { max-width: 52ch; }
.visit-copy .section-title { margin-bottom: 1.3rem; max-width: 18ch; }
.visit-copy p { color: var(--ink-soft); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.visit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 40px 60px -44px rgba(6,42,39,0.55);
  border: 1px solid var(--line);
}
.visit-card-row { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.visit-card-row h3 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--terracotta); margin-bottom: 0.7rem;
}
.visit-card-row p { color: var(--evergreen-deep); font-weight: 500; }
.hours { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.96rem; color: var(--ink-soft); }
.hours li span:first-child { font-weight: 600; color: var(--evergreen-deep); }
.hours li.closed span { color: #97a29e; }
.visit-card-call {
  display: block; text-align: center; margin-top: 0.4rem;
  background: var(--evergreen); color: #fff; font-weight: 600; font-family: var(--sans);
  padding: 0.9rem; border-radius: 999px; font-size: 0.95rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.visit-card-call:hover { background: var(--evergreen-deep); transform: translateY(-2px); }

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--evergreen-dark);
  color: rgba(243,237,226,0.8);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.1rem, 4vw, 3rem) 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.brand-footer { margin-bottom: 1.3rem; }
.brand-footer .brand-text strong { font-size: 1.28rem; text-shadow: none; }
.footer-brand p { max-width: 34ch; font-size: 0.98rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; color: var(--terracotta); margin-bottom: 0.8rem; font-weight: 700;
}
.footer-cols p { font-size: 0.96rem; line-height: 1.9; }
.footer-cols a { transition: color 0.3s var(--ease); }
.footer-cols a:hover { color: #fff; }
.footer-base {
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid rgba(243,237,226,0.15);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(243,237,226,0.55);
}

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

/* ============================================================
   SPEC FOOTER (mandatory)
   ============================================================ */
.spec-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 1.1rem 1.4rem;
  line-height: 1.6;
}
.spec-footer a { color: var(--terracotta); text-decoration: underline; }

/* ============================================================
   REVEAL ANIMATIONS
   Progressive enhancement: elements are ONLY hidden once JS has
   confirmed it can animate them (adds .js-reveal to <html>). If
   JS never runs, errors, or a screenshot context skips it, every
   element stays fully visible. Content is never stranded.
   ============================================================ */
.reveal {
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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