/* ===========================================================
   Advanced Healthcare Chiropractic — Spec preview
   Woodcrest Marketing
   Design system
   =========================================================== */

:root {
  /* Brand palette */
  --pine:        #123c34;   /* primary deep forest */
  --pine-deep:   #0c2b25;
  --pine-soft:   #1c4f45;
  --cream:       #f5efe4;   /* secondary warm paper */
  --cream-deep:  #ece3d2;
  --terra:       #cf7a45;   /* accent warm terracotta */
  --terra-deep:  #b5602c;
  --sage:        #8aa295;
  --ink:         #16211d;
  --ink-soft:    #40514a;

  /* Semantic */
  --bg:          var(--cream);
  --surface:     #fbf8f1;
  --text:        var(--ink);
  --muted:       var(--ink-soft);

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.14rem + 0.55vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.38rem + 1.1vw, 2.4rem);
  --step-3:  clamp(1.95rem, 1.5rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.3rem, 1.15rem + 5vw, 5.6rem);

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

  --wrap: 1240px;
  --radius: 18px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------- reset ------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
ul { list-style: none; padding: 0; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

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

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

/* ------------------- buttons ------------------- */
.btn {
  --btn-bg: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(181, 96, 44, 0.7);
}
.btn-solid:hover { background: var(--terra-deep); box-shadow: 0 18px 34px -14px rgba(181, 96, 44, 0.8); }
.btn-solid.tight { align-self: flex-start; }

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border-color: rgba(18, 60, 52, 0.28);
}
.btn-ghost:hover { border-color: var(--pine); background: rgba(18, 60, 52, 0.05); }
.btn-ghost.light { color: var(--cream); border-color: rgba(245, 239, 228, 0.4); }
.btn-ghost.light:hover { border-color: var(--cream); background: rgba(245, 239, 228, 0.1); }

/* ------------------- header ------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 1rem 0;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(18, 60, 52, 0.08);
  padding: 0.55rem 0;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pine);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: transform .4s var(--ease);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 6px;
  border: 1.5px solid rgba(245, 239, 228, 0.35); border-radius: 50%;
}
.brand-mark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--pine); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; gap: 1.7rem; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.2rem 0;
  transition: color .25s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--pine); }
.site-nav a:hover::after { transform: scaleX(1); }

.btn-pill {
  display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
  background: transparent; border: 1.5px solid rgba(18, 60, 52, 0.22);
  border-radius: 100px; padding: 0.5rem 1.1rem; text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.btn-pill:hover { border-color: var(--pine); transform: translateY(-2px); }
.btn-pill-label { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); font-weight: 700; }
.btn-pill-number { font-weight: 700; color: var(--pine); font-size: 0.95rem; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 6rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-texture {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(207, 122, 69, 0.28), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(138, 162, 149, 0.22), transparent 60%),
    linear-gradient(160deg, var(--pine-deep), var(--pine) 55%, var(--pine-soft));
}
.hero-texture::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}
/* radiating "therapy wave" rings — the hero signature graphic */
.hero-rings {
  position: absolute; z-index: -1; pointer-events: none;
  top: 4%; right: -10%;
  width: min(64vw, 760px); aspect-ratio: 1;
  background: repeating-radial-gradient(
    circle at 68% 34%,
    transparent 0 25px,
    rgba(245, 239, 228, 0.11) 25px 27px,
    transparent 27px 51px
  );
  -webkit-mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 66%);
  opacity: 0.95;
}
.hero-rings::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(
    circle at 68% 34%,
    transparent 0 25px,
    rgba(207, 122, 69, 0.26) 25px 27px,
    transparent 27px 76px
  );
  -webkit-mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 58%);
  mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 58%);
  animation: ringpulse 7s var(--ease) infinite;
}
/* the emanation point — a soft source glow the rings radiate from */
.hero-rings::before {
  content: ""; position: absolute;
  top: 34%; left: 68%; width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,122,69,0.9), rgba(207,122,69,0) 70%);
  box-shadow: 0 0 40px 14px rgba(207, 122, 69, 0.35);
  animation: sourceglow 7s var(--ease) infinite;
}
@keyframes ringpulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.035); }
}
@keyframes sourceglow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.32fr 0.92fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: stretch;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative; z-index: 1;
}
.hero-copy { position: relative; min-width: 0; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1;
  top: -6%; left: -12%; width: 60%; height: 55%;
  background: radial-gradient(60% 60% at 40% 40%, rgba(207,122,69,0.22), transparent 70%);
  filter: blur(22px); pointer-events: none;
  animation: heroglow 12s ease-in-out infinite;
}
@keyframes heroglow {
  0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0.9; }
  50%      { transform: translate(4%, 3%) scale(1.12);   opacity: 1; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--cream);
  margin-bottom: 1.6rem;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(207,122,69,0.25); }

.hero-title {
  font-size: var(--step-4);
  color: var(--cream);
  margin-bottom: 1.6rem;
  letter-spacing: -0.022em;
  overflow-wrap: break-word;
}
.hero-title span { display: block; }

.hero-lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(245, 239, 228, 0.82);
  max-width: 40ch;
  margin-bottom: 2.2rem;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.6rem);
  border-top: 1px solid rgba(245, 239, 228, 0.18);
  padding-top: 1.6rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--cream); font-weight: 600; }
.hero-facts span { font-size: 0.82rem; color: rgba(245, 239, 228, 0.6); letter-spacing: 0.02em; }

/* hero card */
.hero-panel {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 0.6rem;
}
.hero-card {
  flex: 1;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(245, 239, 228, 0.11), rgba(245, 239, 228, 0.045));
  border: 1px solid rgba(245, 239, 228, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(245, 239, 228, 0.16);
}
.hero-card::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,122,69,0.5), transparent 70%);
  filter: blur(10px);
}
.hero-card-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); font-weight: 700; margin-bottom: 0.8rem; }
.hero-card-title { font-family: var(--font-display); font-size: 2rem; color: var(--cream); margin-bottom: 0.9rem; line-height: 1.05; }
.hero-card-body { font-size: 0.95rem; color: rgba(245, 239, 228, 0.78); margin-bottom: 1.4rem; }
.hero-card-meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 600; color: var(--cream);
  padding-top: 1.3rem; margin-top: 0.2rem;
  border-top: 1px solid rgba(245, 239, 228, 0.14);
}

/* animated acoustic-wave equalizer inside the featured card */
.wave-viz {
  margin-top: auto;
  display: flex; align-items: center; gap: 4px;
  height: 74px; padding: 0.4rem 0 1.4rem;
}
.wave-viz span {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 100px;
  transform-origin: center;
  background: linear-gradient(180deg, var(--terra), rgba(207, 122, 69, 0.28));
  transform: scaleY(0.24);
  animation: eq 1.7s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * -0.11s);
}
@keyframes eq {
  0%, 100% { transform: scaleY(0.22); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* hero secondary CTA card */
.hero-cta-card {
  display: flex; flex-direction: column; gap: 0.15rem;
  text-decoration: none;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.6rem;
  background: linear-gradient(135deg, var(--terra), var(--terra-deep));
  color: #fff;
  box-shadow: 0 18px 40px -22px rgba(181, 96, 44, 0.9);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hero-cta-card::after {
  content: ""; position: absolute; right: -30%; top: -60%;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}
.hero-cta-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -22px rgba(181, 96, 44, 1); }
.hero-cta-eyebrow { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.82); }
.hero-cta-num { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.01em; }
.hero-cta-sub { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.9); margin-top: 0.2rem; }
.hero-cta-arrow { transition: transform .3s var(--ease); }
.hero-cta-card:hover .hero-cta-arrow { transform: translateX(5px); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--terra); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--terra);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

/* marquee */
.hero-marquee {
  border-top: 1px solid rgba(245, 239, 228, 0.16);
  padding: 1.1rem 0;
  position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee-track span { font-family: var(--font-display); font-size: 1.35rem; color: rgba(245, 239, 228, 0.7); font-style: italic; }
.marquee-track .sep { color: var(--terra); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================
   ABOUT
   =========================================================== */
.about { padding: clamp(4rem, 9vw, var(--sp-7)) 0 clamp(3rem, 6vw, 5rem); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.section-label {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--terra-deep); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--terra); }
.section-label.light { color: var(--terra); }
.about-heading { font-size: var(--step-3); color: var(--pine); max-width: 17ch; line-height: 1.1; }
.about-body { padding-top: 0.6rem; }
.about-body p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.08rem; line-height: 1.7; }
.about-body p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.2rem; line-height: 0.8;
  float: left; color: var(--pine); font-weight: 600;
  margin: 0.1rem 0.7rem 0 0; padding-right: 0.05rem;
}
.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--pine); text-decoration: none; font-size: 0.98rem;
  margin-top: 0.4rem;
}
.text-link-arrow { transition: transform .3s var(--ease); }
.text-link:hover .text-link-arrow { transform: translateX(6px); }

.stat-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.6rem;
  border-top: 1px solid var(--cream-deep);
}
.stat {
  position: relative;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-left: clamp(1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--cream-deep);
}
.stat::before {
  content: ""; position: absolute; top: 0; left: -1px;
  width: 2px; height: 34px; background: var(--terra);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat:first-child::before { left: 0; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--pine); line-height: 0.95; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}
.stat-unit { font-size: 0.55em; color: var(--terra); margin-left: 0.05em; }
.stat-label { font-size: 0.92rem; color: var(--muted); max-width: 20ch; line-height: 1.45; }

/* ===========================================================
   THERAPIES
   =========================================================== */
.therapies {
  background: var(--pine);
  color: var(--cream);
  padding: clamp(4rem, 9vw, var(--sp-7)) 0;
  position: relative;
  overflow: hidden;
}
.therapies::before {
  content: ""; position: absolute; top: -10%; left: -5%; width: 40%; height: 60%;
  background: radial-gradient(circle, rgba(138,162,149,0.16), transparent 70%);
  pointer-events: none;
}
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.split {
  max-width: none;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(245, 239, 228, 0.16);
}
.section-head.split .section-title { margin-bottom: 0; }
.section-head.split .section-intro { padding-bottom: 0.35rem; }
.section-title { font-size: var(--step-3); color: var(--cream); margin-bottom: 1.1rem; }
.section-intro { font-size: 1.1rem; color: rgba(245, 239, 228, 0.75); max-width: 46ch; }
.therapies .section-title { color: var(--cream); }

.therapy-list { display: flex; flex-direction: column; }
.therapy {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.7rem, 3vw, 2.5rem) clamp(0.8rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(245, 239, 228, 0.16);
  transition: padding-left .45s var(--ease), background-color .45s var(--ease);
}
.therapy::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px;
  background: var(--terra); transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease);
}
.therapy:last-child { border-bottom: 1px solid rgba(245, 239, 228, 0.16); }
.therapy:hover {
  padding-left: clamp(1.4rem, 2.6vw, 2.4rem);
  background: linear-gradient(90deg, rgba(245,239,228,0.05), transparent 60%);
}
.therapy:hover::before { transform: scaleY(1); }
.therapy-index {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--terra); font-style: italic; width: 2.6rem;
  transition: transform .45s var(--ease);
}
.therapy:hover .therapy-index { transform: translateY(-2px); }
.therapy-name {
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--cream); margin-bottom: 0.4rem;
  transition: color .3s var(--ease);
}
.therapy:hover .therapy-name { color: #fff; }
.therapy-desc { color: rgba(245, 239, 228, 0.7); max-width: 52ch; font-size: 1rem; }
.therapy-tags { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.therapy-tags span {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  color: rgba(245, 239, 228, 0.7);
  border: 1px solid rgba(245, 239, 228, 0.22);
  padding: 0.32rem 0.8rem; border-radius: 100px; white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.therapy:hover .therapy-tags span { border-color: var(--terra); color: var(--cream); }

/* ===========================================================
   CONDITIONS
   =========================================================== */
.conditions { padding: clamp(4rem, 9vw, var(--sp-7)) 0; background: var(--surface); }
.conditions-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.conditions-intro { position: sticky; top: 6rem; }
.conditions-intro .section-title { color: var(--pine); max-width: 16ch; margin-bottom: 1.2rem; }
.conditions-intro .section-intro { color: var(--muted); margin-bottom: 2rem; }
.conditions-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
}
.conditions-list li {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  font-weight: 600; color: var(--pine);
  display: flex; align-items: center; gap: 0.8rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.conditions-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.conditions-list li:hover {
  transform: translateY(-3px);
  border-color: var(--terra);
  background: #fff;
}
.conditions-list li:hover::before { transform: scale(1.5); }

/* ===========================================================
   VISIT
   =========================================================== */
.visit {
  position: relative;
  background: var(--pine-deep);
  color: var(--cream);
  padding: clamp(4rem, 9vw, var(--sp-7)) 0;
  overflow: hidden;
}
.visit-texture {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(207,122,69,0.25), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(138,162,149,0.18), transparent 60%);
}
.visit-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.visit-heading { font-size: var(--step-3); color: var(--cream); max-width: 16ch; margin-bottom: 1.3rem; }
.visit-lead { color: rgba(245, 239, 228, 0.78); font-size: 1.1rem; max-width: 42ch; margin-bottom: 2rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.visit-details {
  background: rgba(245, 239, 228, 0.06);
  border: 1px solid rgba(245, 239, 228, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.7rem;
}
.detail-block { border-bottom: 1px solid rgba(245, 239, 228, 0.14); padding-bottom: 1.5rem; }
.detail-block:last-child { border-bottom: none; padding-bottom: 0; }
.detail-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); font-weight: 700; margin-bottom: 0.6rem; }
.detail-text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--cream); }
.hours-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hours-list li { display: flex; justify-content: space-between; font-size: 0.95rem; color: rgba(245, 239, 228, 0.86); }
.hours-list li span:first-child { color: rgba(245, 239, 228, 0.6); font-weight: 600; }
.hours-list li.muted { color: rgba(245, 239, 228, 0.45); }
.detail-phone { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); text-decoration: none; transition: color .3s var(--ease); }
.detail-phone:hover { color: var(--terra); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--pine); color: var(--cream); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.footer-brand .brand-name { color: var(--cream); font-size: 1.3rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { color: rgba(245, 239, 228, 0.65); font-size: 0.95rem; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: rgba(245, 239, 228, 0.82); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--terra); }

/* spec footer (mandated) */
.spec-footer {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.7);
  text-align: center;
  font-size: 0.8rem;
  padding: 1.2rem 1.4rem;
  line-height: 1.6;
}
.spec-footer a { color: var(--terra); }

/* ===========================================================
   REVEAL ANIMATIONS
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pulse::after { animation: none; }
  .wave-viz span { animation: none; transform: scaleY(0.5); }
  .hero-rings::after, .hero-rings::before, .hero-copy::before { animation: none; }
  .btn:hover, .conditions-list li:hover { transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 26rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-heading { max-width: 24ch; }
  .conditions-grid { grid-template-columns: 1fr; }
  .conditions-intro { position: static; }
  .visit-grid { grid-template-columns: 1fr; }
  .hero-spine { display: none; }
}

@media (max-width: 820px) {
  .section-head.split { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .section-head.split .section-title { margin-bottom: 0; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .therapy { grid-template-columns: auto 1fr; }
  .therapy-tags { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; margin-top: 0.6rem; }
  .stat-band { grid-template-columns: 1fr; gap: 0; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--cream-deep); padding-top: 1.5rem; margin-top: 1.5rem; }
  .stat::before { top: -1px; left: 0; width: 34px; height: 2px; }
  .stat:first-child { border-top: none; padding-top: 0; margin-top: 0; }
  .stat:first-child::before { display: none; }
  .conditions-list { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .btn-pill { padding: 0.45rem 0.9rem; }
  .btn-pill-number { font-size: 0.85rem; }
  .hero-actions .btn, .visit-actions .btn { width: 100%; }
  .conditions-intro .btn.tight { width: 100%; }
}
