/* ==========================================================================
   Foothills Chiropractic Health Center
   Design system + components
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:        #0E2B2F;
  --ink-soft:   #1B4448;
  --teal:       #16736D;
  --teal-bright:#2AA79F;
  --teal-pale:  #DCEFEC;
  --clay:       #C4643F;
  --clay-pale:  #F7E9E2;
  --gold:       #D9A441;

  /* Neutrals */
  --cream:      #FCFAF6;
  --sand:       #F4EFE6;
  --sand-deep:  #E8E0D2;
  --line:       #E2DAcb;
  --body:       #40514F;
  --muted:      #6E807D;
  --white:      #FFFFFF;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --maxw: 1200px;

  /* Effects */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(14,43,47,.06), 0 1px 2px rgba(14,43,47,.04);
  --shadow:    0 12px 32px rgba(14,43,47,.10), 0 2px 8px rgba(14,43,47,.05);
  --shadow-lg: 0 30px 70px rgba(14,43,47,.16), 0 8px 20px rgba(14,43,47,.07);
  --ease: cubic-bezier(.22,.61,.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: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

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

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); }
h4 { font-size: 1.125rem; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
  font-family: var(--sans);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--teal-bright); opacity: .8;
}
.eyebrow--center::before { display: none; }

.ital { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1; color: var(--teal); }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
.wrap--wide { width: min(100% - (var(--gut) * 2), 1400px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.section-head { max-width: 44rem; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 + p { margin-top: 1.1rem; }

.bg-sand  { background: var(--sand); }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); color: #C9D8D6; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.75rem;
  border: 1px solid transparent; border-radius: 100px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  /* Long labels must wrap rather than force the page wider than the viewport. */
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(22,115,109,.28); }
.btn--primary:hover { background: #12645F; box-shadow: 0 12px 28px rgba(22,115,109,.36); }

.btn--clay { background: var(--clay); color: var(--white); box-shadow: 0 6px 18px rgba(196,100,63,.28); }
.btn--clay:hover { background: #B0552F; box-shadow: 0 12px 28px rgba(196,100,63,.36); }

.btn--ghost { background: transparent; border-color: rgba(14,43,47,.22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(14,43,47,.04); }

.btn--light { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.32); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); }

.btn--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn--white:hover { box-shadow: var(--shadow-lg); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

/* --- Header / Nav --------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #A9C2BF;
  font-size: .8rem; letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; padding-block: .4rem;
}
.topbar a { color: #DCEAE8; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--white); }
.topbar-status { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--open { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); animation: pulse 2.4s ease-in-out infinite; }
.dot--closed { background: #F87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.22); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }
.topbar-hide { display: none; }
@media (min-width: 720px) { .topbar-hide { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,250,246,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s;
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(14,43,47,.08); border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.075rem; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }

.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 940px) { .nav { display: flex; } }
.nav a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); padding-block: .4rem; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--teal-bright); border-radius: 2px; transition: right .32s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

.header-cta { display: none; }
@media (min-width: 940px) { .header-cta { display: inline-flex; } }

.burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
@media (min-width: 940px) { .burger { display: none; } }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  padding: 7rem var(--gut) 2.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  font-family: var(--serif); font-size: 1.75rem; color: var(--ink);
  text-decoration: none; padding-block: .7rem; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1.75rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,43,47,.94) 0%, rgba(14,43,47,.86) 34%, rgba(14,43,47,.45) 62%, rgba(14,43,47,.25) 100%),
    linear-gradient(to top, rgba(14,43,47,.6), transparent 45%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -12%; top: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,167,159,.34), transparent 68%);
  filter: blur(24px); pointer-events: none;
}
.hero-inner { position: relative; padding-block: clamp(5rem, 14vw, 9.5rem); max-width: 42rem; }
.hero .eyebrow { color: var(--teal-bright); }
.hero .eyebrow::before { background: var(--teal-bright); }
.hero h1 { color: var(--white); margin-block: 1.25rem 1.5rem; }
.hero h1 .ital { color: #7FD8CF; }
.hero-lead { color: rgba(255,255,255,.82); font-size: clamp(1.075rem, 1rem + .5vw, 1.35rem); max-width: 34rem; }
.hero .btn-row { margin-top: 2.25rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem;
  margin-top: 3.25rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-fact strong {
  display: block; font-family: var(--serif); font-size: 1.85rem;
  color: var(--white); font-weight: 600; line-height: 1.1;
}
.hero-fact span { font-size: .82rem; color: rgba(255,255,255,.62); letter-spacing: .05em; text-transform: uppercase; }

/* Hero entrance animation */
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }
.hero-inner > *:nth-child(5) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Page hero (interior pages) */
.page-hero { position: relative; background: var(--ink); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 100% at 12% 0%, #17494C 0%, #0E2B2F 62%);
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -30%; z-index: -1;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,167,159,.26), transparent 70%); filter: blur(20px);
}
.page-hero .wrap { padding-block: clamp(3.5rem, 9vw, 6rem); position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); margin-block: 1rem .9rem; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 40rem; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--teal-bright); }
.page-hero .eyebrow::before { background: var(--teal-bright); }

/* --- Trust strip ---------------------------------------------------------- */
.trust {
  background: var(--white); border-bottom: 1px solid var(--line);
}
.trust ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line);
}
.trust li {
  background: var(--white); padding: 1.6rem 1.5rem;
  display: flex; align-items: flex-start; gap: .9rem;
}
.trust svg { width: 24px; height: 24px; flex: none; color: var(--teal); margin-top: 2px; }
.trust strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.trust span { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* --- Split (image + text) ------------------------------------------------- */
.split {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse .split-media { order: -1; }
@media (min-width: 900px) { .split--reverse .split-media { order: 2; } }

.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.split-media--tall img { aspect-ratio: 3 / 4; }
.media-badge {
  position: absolute; bottom: -1.25rem; left: -1.25rem;
  background: var(--white); border-radius: var(--r);
  padding: 1.05rem 1.35rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .85rem; max-width: 15rem;
}
@media (max-width: 560px) { .media-badge { left: .75rem; bottom: -1rem; } }
.media-badge svg { width: 26px; height: 26px; color: var(--teal); flex: none; }
.media-badge strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.media-badge span { font-size: .78rem; color: var(--muted); }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.card-body p { font-size: .94rem; color: var(--body); }
.card-link {
  margin-top: auto; padding-top: .35rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; color: var(--teal); text-decoration: none;
}
.card-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.chip {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  color: var(--ink); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .38rem .75rem; border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* --- Body map (Where does it hurt) --------------------------------------- */
.bodymap {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .bodymap { grid-template-columns: minmax(260px, .8fr) 1.2fr; } }

.bodymap-figure {
  position: relative; justify-self: center;
  width: min(100%, 320px);
  background: linear-gradient(170deg, var(--white), var(--teal-pale));
  border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bodymap-canvas { position: relative; cursor: crosshair; }
.bodymap-canvas.is-full { cursor: default; }
.bodymap-canvas svg { width: 100%; height: auto; display: block; }

/* Pain markers -------------------------------------------------------- */
.pin {
  cursor: grab;
  /* Only the marker swallows touch gestures, so a swipe that starts on the
     rest of the figure still scrolls the page. */
  touch-action: none;
}
.pin.is-drag { cursor: grabbing; }
.pin-dot {
  fill: var(--clay);
  filter: drop-shadow(0 2px 3px rgba(14,43,47,.35));
  transition: r .2s var(--ease);
}
.pin-ring {
  fill: var(--clay); fill-opacity: .18;
  stroke: var(--clay); stroke-width: 1.5;
  transform-origin: center; transform-box: fill-box;
  animation: pinPulse 2.8s ease-out infinite;
}
.pin.is-drag .pin-ring { animation: none; fill-opacity: .3; }
.pin.is-drag .pin-dot { r: 13; }
.pin:hover .pin-ring { fill-opacity: .3; }
.pin-num {
  fill: #fff; font-family: var(--sans); font-size: 11px; font-weight: 700;
  pointer-events: none; user-select: none;
}
@keyframes pinPulse {
  0%   { transform: scale(.9); opacity: .75; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { stroke: var(--ink); stroke-width: 2.5; }

.bodymap-hint {
  position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(14,43,47,.9); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: .45rem .85rem; border-radius: 100px;
  pointer-events: none; white-space: nowrap;
  animation: hintBob 2.6s ease-in-out infinite;
}
.bodymap-hint svg { width: 15px; height: 15px; }
@keyframes hintBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }

.bodymap-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem; padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.bodymap-count { font-size: .8rem; color: var(--muted); }
.bodymap-clear {
  background: none; border: 0; cursor: pointer; padding: .2rem .1rem;
  font-size: .8rem; font-weight: 600; color: var(--clay);
  text-decoration: underline; text-underline-offset: 3px;
}
.bodymap-clear:hover { color: #9E4526; }

.bodymap-a11y { margin-top: .9rem; }
.bodymap-a11y summary {
  cursor: pointer; font-size: .8rem; color: var(--muted);
  list-style: none; text-decoration: underline; text-underline-offset: 3px;
}
.bodymap-a11y summary::-webkit-details-marker { display: none; }
.bodymap-a11y summary:hover { color: var(--ink); }
button.tag { border: 0; cursor: pointer; font-family: inherit; }
button.tag:hover:not(:disabled) { background: var(--teal); color: #fff; }
button.tag:disabled { opacity: .45; cursor: not-allowed; }

/* Panel cards, one per marked area ------------------------------------ */
.spot-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .35rem; }
.spot-card { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.spot-card:first-child { border-top: 0; padding-top: 0; }
.spot-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.spot-head h3 { flex: 1; font-size: 1.25rem; }
.spot-badges { display: flex; gap: .25rem; flex: none; }
.spot-badge {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--clay); color: #fff;
  font-size: .78rem; font-weight: 700;
}
.spot-remove {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.spot-remove svg { width: 14px; height: 14px; }
.spot-remove:hover { background: var(--clay-pale); border-color: var(--clay); color: var(--clay); }
.spot-card p { font-size: .94rem; }

.bodymap-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow); min-height: 22rem;
  display: flex; flex-direction: column;
}
.bodymap-panel h3 { margin-bottom: .6rem; }
.bodymap-panel .panel-body { animation: fadeSwap .45s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-hint { color: var(--muted); font-size: .95rem; }
.panel-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.5rem; margin-bottom: .6rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--teal-pale); color: #0F5B56;
  font-size: .82rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 100px;
}
.tag--soft { background: var(--sand); color: var(--ink-soft); font-weight: 500; }
.bodymap-panel .btn { margin-top: auto; align-self: flex-start; }
.bodymap-panel .panel-body > .btn { margin-top: 1.75rem; }

/* --- Doctors -------------------------------------------------------------- */
.doc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.doc-initials {
  width: 62px; height: 62px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--white);
  background: linear-gradient(140deg, var(--teal-bright), var(--teal));
  box-shadow: 0 6px 16px rgba(22,115,109,.3);
}
.doc-head h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.doc-role { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.doc p { font-size: .96rem; }
.doc-creds { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .5rem; }

/* --- Insurance marquee ---------------------------------------------------- */
.marquee { overflow: hidden; position: relative; padding-block: .5rem; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--sand), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--sand), transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee img {
  height: 38px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s;
  mix-blend-mode: multiply;
}
.marquee img:hover { filter: none; opacity: 1; }

/* --- Fee table ------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption {
  text-align: left; padding: 1.4rem 1.5rem .35rem;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink);
}
thead th {
  text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  padding: .9rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--sand);
  white-space: nowrap;
}
tbody td { padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #FAFCFB; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
tbody td small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: .15rem; }
.price { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.price--muted { color: var(--muted); font-family: var(--sans); font-size: .95rem; font-weight: 500; }

/* --- Price cards ---------------------------------------------------------- */
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.9rem 1.75rem; position: relative;
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard--featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.pcard-flag {
  position: absolute; top: -.75rem; left: 1.75rem;
  background: var(--teal); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px;
}
.pcard h3 { font-size: 1.2rem; }
.pcard-price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin-block: .35rem .1rem; }
.pcard-price sup { font-size: 1.1rem; vertical-align: super; color: var(--muted); }
.pcard-per { font-size: .86rem; color: var(--muted); }
.pcard ul { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.pcard li { display: flex; gap: .6rem; font-size: .9rem; align-items: flex-start; }
.pcard li svg { width: 17px; height: 17px; flex: none; color: var(--teal); margin-top: 3px; }

/* --- Hours ---------------------------------------------------------------- */
.hours { display: flex; flex-direction: column; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .82rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .96rem;
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 500; }
.hours .time { font-variant-numeric: tabular-nums; opacity: .85; }
.hours li.is-today {
  color: var(--white); font-weight: 700;
  border-radius: 10px; padding-inline: .85rem; margin-inline: -.85rem;
  background: rgba(42,167,159,.18);
  border-bottom-color: transparent;
}
.hours li.is-today .time { opacity: 1; }
.hours li.is-closed .time { color: #E3A08D; opacity: .9; }
.today-flag {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--teal-bright); color: var(--ink); padding: .15rem .5rem; border-radius: 100px; margin-left: .55rem;
}

.status-card {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: 1.05rem 1.25rem; margin-bottom: 1.75rem;
}
.status-card strong { color: var(--white); display: block; font-size: 1rem; }
.status-card span { font-size: .85rem; opacity: .75; }

/* --- Contact / Forms ------------------------------------------------------ */
.form { display: grid; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,167,159,.16);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E807D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
@media (min-width: 620px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; } }
.form-note { font-size: .82rem; color: var(--muted); }

.info-panel {
  background: var(--ink); color: #C4D6D4; border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.info-panel h3 { color: var(--white); margin-bottom: 1.25rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding-block: .9rem; }
.info-row + .info-row { border-top: 1px solid rgba(255,255,255,.12); }
.info-row svg { width: 20px; height: 20px; flex: none; color: var(--teal-bright); margin-top: 3px; }
.info-row strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: .1rem; }
.info-row a { color: #C4D6D4; text-decoration: none; }
.info-row a:hover { color: var(--white); text-decoration: underline; }

.map-frame {
  border: 0; width: 100%; height: 100%; min-height: 340px;
  border-radius: var(--r-lg); filter: grayscale(.25) contrast(1.05);
}

.dl-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.35rem 1.5rem; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.dl-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--teal-pale); color: var(--teal);
}
.dl-icon svg { width: 22px; height: 22px; }
.dl-card strong { display: block; color: var(--ink); font-size: .98rem; }
.dl-card span { font-size: .85rem; color: var(--muted); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  font-weight: 600; color: var(--ink); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .32s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq .faq-body { padding: 0 .25rem 1.5rem; max-width: 52rem; animation: fadeSwap .35s var(--ease); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(14,43,47,.95) 12%, rgba(14,43,47,.72) 58%, rgba(14,43,47,.5) 100%);
}
.cta-band .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); position: relative; }
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 40rem; margin-top: 1rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  font-weight: 600; color: var(--white); text-decoration: none; margin-top: 1.75rem;
  transition: color .25s;
}
.cta-phone:hover { color: var(--teal-bright); }
.cta-phone svg { width: .78em; height: .78em; color: var(--teal-bright); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: #0A2225; color: #8CA5A3; padding-block: clamp(3.5rem, 7vw, 5rem) 0; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.site-footer h4 {
  color: var(--white); font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.15rem;
}
.site-footer a { color: #8CA5A3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer li + li { margin-top: .65rem; }
.site-footer p { font-size: .92rem; line-height: 1.7; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--teal-bright); }
.footer-brand p { margin-top: 1.1rem; max-width: 26rem; }
.social { display: flex; gap: .65rem; margin-top: 1.5rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.social a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.footer-disclaimer { font-size: .78rem; line-height: 1.6; opacity: .55; padding-bottom: 1.75rem; max-width: 60rem; }

/* --- Mobile call bar ------------------------------------------------------ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  box-shadow: 0 -6px 24px rgba(14,43,47,.14);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.callbar.is-visible { transform: none; }
@media (min-width: 940px) { .callbar { display: none; } }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .75rem; text-decoration: none; font-size: .9rem; font-weight: 600;
  background: var(--white); color: var(--ink);
}
.callbar a.primary { background: var(--teal); color: var(--white); }
.callbar svg { width: 17px; height: 17px; }
@media (max-width: 939px) { body { padding-bottom: 0; } }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }

/* --- Utilities ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; z-index: 999;
  background: var(--teal); color: var(--white); padding: .8rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { height: 1px; background: var(--line); border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* --- Contact form success state ------------------------------------------ */
.form-success {
  background: var(--white); border: 1px solid var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
  border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
  animation: fadeSwap .45s var(--ease);
}
.form-success svg { width: 42px; height: 42px; color: var(--teal); margin-bottom: 1rem; }
.form-success h3 { margin-bottom: .5rem; }
.form-success a { color: var(--teal); font-weight: 600; }
