/* =====================================================
   Dual Balance Healthcare — Premium Chiropractic Website
   style.css — Custom styles beyond Tailwind utilities
   ===================================================== */

/* ── 1. Design Tokens ── */
:root {
  --charcoal:   #1e2a2a;
  --sage:       #4a6880;
  --sage-light: #7496b2;
  --beige:      #f5f0e8;
  --white:      #ffffff;
  --warm-gray:  #e8e4dc;
  --soft-green: #d4e5f0;
  --muted:      #7a8c8a;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0.0, 0, 0.2, 1);
}

/* ── 2. Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--beige);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage-light); }

/* ── 4. Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--charcoal);
}

.eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── 5. Scroll-Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── 6. Scroll Progress Bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── 7. Top Bar ── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  z-index: 900;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s;
}
#topbar.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--warm-gray);
}
.topbar-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.topbar-logo span { color: var(--sage); }
.topbar-phone {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

/* ── 8. Hero Section ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(74,124,111,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--sage);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: normal; color: var(--sage); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: hint-bounce 2.5s ease-in-out infinite;
}
.hero-hint svg { animation: hint-arrow 2.5s ease-in-out infinite; }
@keyframes hint-bounce { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes hint-arrow  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ── 9. Body Map ── */
.body-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.view-toggle {
  display: flex;
  gap: 0;
  background: var(--warm-gray);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 1.5rem;
}
.toggle-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 1.1rem;
  border-radius: 99px;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.toggle-btn.active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(30,42,42,0.10);
}
#body-map-container {
  position: relative;
  width: 100%;
  max-width: 260px;
}
#body-map-container svg { width: 100%; height: auto; }

/* SVG zone interactions */
.body-zone {
  fill: transparent;
  stroke: transparent;
  transition: fill 0.25s, stroke 0.25s;
  cursor: pointer;
  outline: none;
}
.body-zone:hover, .body-zone:focus {
  fill: var(--soft-green);
  stroke: var(--sage-light);
  stroke-width: 1.5;
}
.body-zone.active {
  fill: rgba(116,150,178,0.35);
  stroke: var(--sage);
  stroke-width: 2;
}

/* Pulse rings (only on zones without hover) */
.zone-pulse {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1;
  opacity: 0;
  animation: zone-breathe 3.5s ease-in-out infinite;
}
.zone-pulse:nth-child(odd)  { animation-delay: 0s; }
.zone-pulse:nth-child(even) { animation-delay: 1.2s; }
@keyframes zone-breathe {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.18; transform: scale(1.06); }
}

/* Body map tooltip */
#body-tooltip {
  position: fixed;
  background: var(--charcoal);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 800;
}
#body-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
#body-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--charcoal);
  border-bottom: 0;
}

/* ── 10. Side Panel ── */
#panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,42,42,0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 999;
}
#panel-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#side-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  height: 100vh;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.48s var(--ease);
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
#side-panel.open {
  transform: translateX(0);
}

.panel-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--warm-gray);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.panel-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-icon-wrap svg { width: 22px; height: 22px; stroke: var(--sage); }
.panel-title-group { flex: 1; }
#panel-zone-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}
.panel-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
#panel-close {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  margin-top: -0.1rem;
}
#panel-close:hover { background: var(--warm-gray); color: var(--charcoal); }

.panel-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.panel-section h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
#panel-symptoms {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
#panel-symptoms li {
  font-size: 0.92rem;
  color: var(--charcoal);
  padding-left: 1.1rem;
  position: relative;
}
#panel-symptoms li::before {
  content: '·';
  position: absolute;
  left: 0.2rem;
  color: var(--sage);
  font-weight: 700;
}
#panel-causes, #panel-treatment {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.panel-footer {
  padding: 1.25rem 1.75rem 2rem;
  border-top: 1px solid var(--warm-gray);
  position: sticky;
  bottom: 0;
  background: var(--white);
}
.btn-fix-pain {
  display: block;
  width: 100%;
  background: var(--sage);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-fix-pain:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,42,42,0.15);
}

/* ── 11. How It Works ── */
#how-it-works { padding: 7rem 2rem; background: var(--white); }
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: var(--beige);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(30,42,42,0.08); }
.step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 1.25rem;
}
.step-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* CSS animated step icons */
.icon-identify .ring {
  stroke: var(--sage-light);
  stroke-width: 2;
  fill: none;
  animation: pulse-ring 2s ease-in-out infinite;
  transform-origin: center;
}
.icon-identify .dot {
  fill: var(--sage);
  animation: pulse-dot 2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse-ring  { 0%,100%{r:14px;opacity:0.5} 50%{r:18px;opacity:1} }
@keyframes pulse-dot   { 0%,100%{r:5px}  50%{r:7px} }

.icon-assess .scan-line {
  stroke: var(--sage);
  stroke-width: 1.5;
  animation: scan-vertical 2.5s linear infinite;
}
.icon-assess .body-outline { stroke: var(--sage-light); stroke-width: 1.5; fill: none; }
@keyframes scan-vertical { 0%{transform:translateY(-20px);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateY(20px);opacity:0} }

.icon-restore .arrow-up {
  stroke: var(--sage);
  stroke-width: 2;
  fill: none;
  animation: restore-bounce 1.8s ease-in-out infinite;
}
@keyframes restore-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* Connector lines between steps */
.step-connector {
  position: absolute;
  top: 50%;
  right: -1.25rem;
  width: 2.5rem;
  height: 1px;
  background: var(--warm-gray);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.step-connector.visible { transform: scaleX(1); }

/* ── 12. Conditions Grid ── */
#conditions { padding: 7rem 2rem; background: var(--beige); }
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.condition-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.condition-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,124,111,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.condition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(30,42,42,0.10);
  border-left-color: var(--sage);
}
.condition-card:hover::after { opacity: 1; }
.card-icon {
  width: 40px; height: 40px;
  background: var(--soft-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease);
}
.condition-card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
.card-icon svg { width: 20px; height: 20px; stroke: var(--sage); stroke-width: 1.8; }
.condition-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.condition-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }
.card-arrow {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.condition-card:hover .card-arrow { gap: 0.6rem; }

/* ── 13. Transformation Section ── */
#transformation { padding: 7rem 2rem; background: var(--charcoal); color: var(--white); }
#transformation .section-header h2 { color: var(--white); }
#transformation .section-header p  { color: rgba(245,240,232,0.6); }

.posture-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.posture-figure {
  text-align: center;
  flex: 1;
}
.posture-svg-wrap {
  width: 100px;
  height: 180px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.posture-svg-wrap svg { height: 100%; width: auto; }
.posture-figure label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.posture-figure.before label { color: rgba(245,240,232,0.5); }
.posture-figure.after  label { color: var(--sage-light); }
.posture-list {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.posture-list li { color: rgba(245,240,232,0.65); }
.posture-figure.after .posture-list li { color: var(--soft-green); }

.posture-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.posture-arrow {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--sage-light);
  stroke-width: 2;
  animation: arrow-pulse 2s ease-in-out infinite;
}
@keyframes arrow-pulse { 0%,100%{opacity:0.5;transform:translateX(0)} 50%{opacity:1;transform:translateX(4px)} }

/* Posture SVG silhouettes */
.figure-before { animation: posture-before 3s ease-in-out infinite alternate; }
.figure-after  { animation: posture-after  3s ease-in-out infinite alternate; }
@keyframes posture-before {
  0%  { transform: rotate(0deg) scaleX(1); }
  100%{ transform: rotate(2deg) scaleX(0.97); }
}
@keyframes posture-after {
  0%  { transform: scaleY(1); }
  100%{ transform: scaleY(1.01); }
}

/* ── 14. Stats / Why Choose Us ── */
#stats { padding: 7rem 2rem; background: var(--beige); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: 16px;
  transition: transform 0.3s var(--ease);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.3rem;
}
.stat-detail { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.principle-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--soft-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--sage);
}

/* ── 15. Interactive Spine ── */
#spine-section { padding: 7rem 2rem; background: var(--white); }
.spine-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.spine-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: 1.5px solid transparent;
}
.legend-item:hover, .legend-item.active {
  background: var(--soft-green);
  border-color: var(--sage-light);
  transform: translateX(4px);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--warm-gray);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.legend-item:hover .legend-dot,
.legend-item.active .legend-dot { background: var(--sage); transform: scale(1.3); }
.legend-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.legend-range {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: auto;
}

.spine-right {
  display: flex;
  justify-content: center;
  position: relative;
}
#spine-graphic {
  max-height: 420px;
  width: auto;
}

/* Spine SVG styles */
.spine-group { cursor: pointer; }
.disc {
  fill: var(--warm-gray);
  rx: 4;
  transition: fill 0.25s;
}
.vertebra-body {
  fill: var(--beige);
  stroke: var(--warm-gray);
  stroke-width: 0.5;
  transition: fill 0.25s, stroke 0.25s;
}
.spine-group:hover .disc,
.spine-group.highlighted .disc { fill: var(--sage-light); }
.spine-group:hover .vertebra-body,
.spine-group.highlighted .vertebra-body {
  fill: var(--soft-green);
  stroke: var(--sage);
}
.spine-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 7px;
  fill: var(--muted);
  text-anchor: end;
}

#spine-tooltip {
  position: fixed;
  background: var(--charcoal);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  pointer-events: none;
  max-width: 220px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 800;
}
#spine-tooltip.visible { opacity: 1; }
.spine-tip-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--sage-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* ── 16. Testimonials ── */
#testimonials { padding: 7rem 2rem; background: var(--beige); overflow: hidden; }
.carousel-outer {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.carousel-track-outer { overflow: hidden; }
#carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.initials-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
}
.stars { color: #f0a500; font-size: 0.75rem; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.testimonial-card blockquote::before { content: '\201C'; color: var(--sage-light); font-size: 1.5rem; font-style: normal; line-height: 0; vertical-align: -0.4rem; margin-right: 0.2rem; }
.attribution strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700; display: block; }
.attribution span   { font-size: 0.75rem; color: var(--muted); }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--charcoal);
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.carousel-dots { display: flex; gap: 0.4rem; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm-gray);
  transition: all 0.25s;
  cursor: pointer;
}
.dot.active { background: var(--sage); width: 20px; border-radius: 3px; }

/* ── 17. Booking CTA ── */
#booking { padding: 7rem 2rem; background: var(--white); }
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.booking-left h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.booking-left p  { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }

/* Map block */
.map-block { display: flex; flex-direction: column; gap: 0.9rem; }
.map-header { display: flex; flex-direction: column; gap: 0.35rem; }
.map-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}
.map-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.map-block iframe {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(30,42,42,0.10);
  display: block;
}
.map-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.map-address svg { flex-shrink: 0; color: var(--sage); margin-top: 1px; }
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--charcoal);
  font-weight: 500;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* Form styles */
#booking-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--beige);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8c8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.field-error {
  font-size: 0.75rem;
  color: #c0392b;
  display: none;
}
.field-error.show { display: block; }

.btn-submit {
  background: var(--sage);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  width: 100%;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn-submit:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,42,42,0.15);
}
.btn-submit:disabled { opacity: 0.65; cursor: default; transform: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem;
  background: var(--soft-green);
  border-radius: 16px;
}
.form-success.show { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.form-success .check-icon { font-size: 2rem; }
.form-success h3 { font-size: 1.2rem; color: var(--charcoal); }
.form-success p  { font-size: 0.88rem; color: var(--muted); }

/* ── 18. Sticky CTA ── */
#sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--sage);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(74,124,111,0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 888;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.25s;
  cursor: pointer;
  letter-spacing: 0.02em;
}
#sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#sticky-cta:hover { background: var(--charcoal); }
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--soft-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%,100%{ box-shadow: 0 0 0 0 rgba(212,229,240,0.7); }
  50%    { box-shadow: 0 0 0 6px rgba(212,229,240,0); }
}

/* ── Scroll Nudge Arrow ── */
#scroll-nudge {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.52rem 1.1rem 0.52rem 0.8rem;
  border-radius: 99px;
  background: rgba(245, 240, 232, 0.94);
  border: 1.5px solid var(--warm-gray);
  color: var(--sage);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 22px rgba(30,42,42,0.13);
  opacity: 0; pointer-events: none;
  z-index: 700;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
#scroll-nudge.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#scroll-nudge:hover {
  background: rgba(245, 240, 232, 1);
  box-shadow: 0 7px 30px rgba(30,42,42,0.18);
}
#scroll-nudge:active { transform: translateX(-50%) translateY(2px); }
#scroll-nudge svg {
  flex-shrink: 0;
  animation: nudge-bounce 1.8s ease-in-out infinite;
}
.nudge-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
@keyframes nudge-bounce {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(4px); }
}
@media (max-width: 768px) {
  #scroll-nudge { bottom: 20px; padding: 0.45rem 0.9rem 0.45rem 0.65rem; }
  .nudge-label  { font-size: 0.65rem; }
}

/* ── Jane App Block ── */
.btn-jane {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  margin: 1.5rem 0 1rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-jane:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,42,42,0.15);
}
.jane-intro { color: var(--muted); line-height: 1.7; font-size: 0.93rem; }
.jane-note  { font-size: 0.8rem; color: var(--muted); }
.jane-note a { color: var(--sage); text-decoration: underline; }

/* ── 19. Footer ── */
footer {
  background: var(--charcoal);
  color: rgba(245,240,232,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.footer-brand .topbar-logo { font-size: 1.2rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sage-light); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.78rem;
}

/* ── 20. Utility ── */
.max-w-content { max-width: 1200px; margin: 0 auto; width: 100%; }
.honeypot { display: none !important; }

/* ── 21. Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #topbar { padding: 0 1.25rem; }
  .topbar-phone { font-size: 0.8rem; }

  #hero { padding: 5rem 1.25rem 3rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-left { order: 1; }
  .body-map-wrap { order: 2; }
  #body-map-container { max-width: 200px; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-hint { justify-content: center; }

  /* Mobile side panel: slide from bottom */
  #side-panel {
    width: 100%;
    height: 85vh;
    top: auto;
    bottom: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #side-panel.open { transform: translateY(0); }

  .steps-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .step-connector { display: none; }
  .conditions-grid { grid-template-columns: 1fr; }
  .spine-layout { grid-template-columns: 1fr; gap: 2rem; }
  .spine-right { display: none; }

  .booking-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Mobile carousel: CSS scroll snap */
  #carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transition: none;
  }
  .testimonial-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
  }

  .posture-stage { gap: 1.5rem; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* Sticky CTA full-width on mobile */
  #sticky-cta {
    bottom: 0; right: 0; left: 0;
    border-radius: 0;
    justify-content: center;
    padding: 1rem;
    font-size: 0.9rem;
  }

  #transformation { padding: 5rem 1.25rem; }
  #how-it-works, #conditions, #stats, #spine-section,
  #testimonials, #booking { padding: 5rem 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ── 22. Neuro-Regulation Section ── */
#neuro {
  padding: 7rem 2rem;
  background: var(--beige);
  position: relative;
  overflow: hidden;
}
#neuro::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,111,0.07) 0%, transparent 68%);
  right: -80px; top: -120px;
  pointer-events: none;
}

.neuro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 5rem;
  position: relative;
}

.neuro-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.neuro-text h2 em { font-style: normal; color: var(--sage); }

.neuro-intro {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.neuro-intro strong { color: var(--charcoal); font-weight: 600; }

/* SNS comparison */
.sns-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.sns-card {
  padding: 1.1rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--warm-gray);
  background: var(--white);
}
.sns-card.sns-sympathetic {
  border-color: rgba(194,122,90,0.35);
  background: rgba(253,247,243,1);
}
.sns-card.sns-parasympathetic {
  border-color: rgba(74,124,111,0.35);
  background: rgba(244,250,248,1);
}
.sns-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.sns-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sns-system {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
}
.sns-mode {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.6rem;
  padding-left: 0.9rem;
}
.sns-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.sns-list li {
  font-size: 0.76rem;
  color: var(--muted);
  padding-left: 0.75rem;
  position: relative;
  line-height: 1.4;
}
.sns-sympathetic  .sns-list li::before { content: '·'; position: absolute; left: 0.1rem; color: #c27a5a; font-weight: 700; }
.sns-parasympathetic .sns-list li::before { content: '·'; position: absolute; left: 0.1rem; color: var(--sage); font-weight: 700; }

.sns-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.25rem;
}
.sns-balance-icon {
  font-size: 1.3rem;
  color: var(--sage);
  animation: balance-sway 3s ease-in-out infinite;
}
@keyframes balance-sway { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
.sns-balance span {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Vagus callout */
.vagus-callout {
  background: var(--soft-green);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.vagus-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
}
.vagus-icon-wrap svg { width: 20px; height: 20px; }
.vagus-callout h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.vagus-callout p {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Nervous system diagram */
.neuro-diagram-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
#nervous-system-svg { max-height: 430px; width: auto; }

/* SVG element classes */
.ns-brain    { fill: none; stroke: var(--sage-light); stroke-width: 1.5; }
.ns-brainstem{ fill: var(--soft-green); stroke: var(--sage); stroke-width: 0.8; }
.ns-spine    { stroke: var(--sage); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.ns-vertebra { fill: var(--white); stroke: var(--warm-gray); stroke-width: 0.8; }
.ns-vagus    { fill: none; stroke: var(--sage-light); stroke-width: 1.8; }
.ns-sympathetic { fill: none; stroke: #c27a5a; stroke-width: 1.2; stroke-dasharray: 2,3; }
.ns-organ-heart { fill: none; stroke: #c27a5a; stroke-width: 1.5; }
.ns-organ-lung  { fill: rgba(116,150,178,0.12); stroke: var(--sage-light); stroke-width: 1.2; }
.ns-organ-gut   { fill: rgba(116,150,178,0.1);  stroke: var(--sage-light); stroke-width: 1; }
.ns-label       { font-family: 'DM Sans', sans-serif; font-size: 7px; fill: var(--muted); }
.ns-region-label{ font-family: 'Plus Jakarta Sans', sans-serif; font-size: 6.5px; font-weight: 700; fill: var(--sage); text-anchor: start; }

/* Spine signal pulse */
.ns-spine-pulse {
  stroke: var(--sage-light);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 14 500;
  stroke-dashoffset: 14;
  animation: spine-signal-travel 5s linear infinite;
  opacity: 0.45;
}
@keyframes spine-signal-travel { to { stroke-dashoffset: -514; } }

/* Vagus nerve signal (travelling dot) */
.ns-vagus-signal {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-dasharray: 6 300;
  stroke-dashoffset: 6;
  animation: vagus-signal-travel 3s linear infinite;
  opacity: 0.9;
}
@keyframes vagus-signal-travel { to { stroke-dashoffset: -306; } }

/* Heart pulse */
.ns-heart-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: ns-heartbeat 1.5s ease-in-out infinite;
}
@keyframes ns-heartbeat {
  0%,100%{ transform: scale(1); }
  25%    { transform: scale(1.18); }
  45%    { transform: scale(0.95); }
}

/* Lung breathing */
.ns-lung-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: ns-breathe 4.5s ease-in-out infinite;
}
@keyframes ns-breathe {
  0%,100%{ transform: scaleY(1);    opacity: 0.5; }
  50%    { transform: scaleY(1.10); opacity: 0.85; }
}

/* Assessment block */
.assessment-section {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 4rem;
  border-top: 1px solid var(--warm-gray);
}
.assessment-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.assessment-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.assessment-header p { font-size: 0.92rem; color: var(--muted); }
.assessment-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.assessment-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.assessment-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(30,42,42,0.08); }
.a-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--sage);
  display: block;
  margin-bottom: 0.7rem;
}
.assessment-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.assessment-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* Neuro responsive */
@media (max-width: 1024px) {
  .assessment-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .neuro-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .neuro-diagram-wrap { display: none; } /* hide diagram on mobile, text-only */
  .sns-grid { grid-template-columns: 1fr 1fr; }
  .sns-balance { display: none; }
  .assessment-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }
  #neuro { padding: 5rem 1.25rem; }
  .neuro-wrapper { margin-bottom: 3rem; }
}
@media (max-width: 480px) {
  .sns-grid { grid-template-columns: 1fr; }
  .assessment-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.5rem; }
  .testimonial-card { flex: 0 0 92vw; }
}

/* ═══════════════════════════════════════
   TOPBAR NAV LINKS
════════════════════════════════════════ */
.topbar-nav {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  margin: 0 0.5rem;
  overflow: hidden;
}
.topbar-nav-link {
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.topbar-nav-link::before { content: '/'; margin-right: 0.5rem; color: var(--warm-gray); font-weight: 400; }
.topbar-nav-link:hover { color: var(--sage); }
#topbar.scrolled .topbar-nav-link { color: var(--charcoal); }
#topbar.scrolled .topbar-nav-link:hover { color: var(--sage); }
@media (max-width: 860px) { .topbar-nav { display: none; } }

/* ═══════════════════════════════════════
   BIO SECTION
════════════════════════════════════════ */
#bio {
  padding: 7rem 2rem;
  background: var(--white);
  max-width: 1000px;
  margin: 0 auto;
}
#bio .section-header { max-width: 1000px; margin: 0 auto 3.5rem; }
.bio-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.bio-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.bio-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--soft-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  margin: 0 auto;
}
.bio-credentials { display: flex; flex-direction: column; gap: 0.5rem; }
.bio-badge {
  display: block;
  background: var(--soft-green);
  color: var(--sage);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  line-height: 1.4;
}
.bio-body { display: flex; flex-direction: column; gap: 1rem; }
.bio-body p { font-size: 0.95rem; color: #4a5568; line-height: 1.85; }
.bio-highlights {
  margin-top: 0.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 1px solid var(--warm-gray);
  padding-top: 1.25rem;
}
.bio-highlight {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.85rem; color: var(--charcoal); font-weight: 500;
}
.bio-highlight svg { flex-shrink: 0; color: var(--sage); margin-top: 2px; }
@media (max-width: 720px) {
  #bio { padding: 5rem 1.25rem; }
  .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-avatar { width: 90px; height: 90px; }
}

/* ═══════════════════════════════════════
   TREATMENT PROCEDURES
════════════════════════════════════════ */
#treatment {
  padding: 7rem 2rem;
  background: var(--beige);
}
#treatment .section-header { max-width: 1000px; margin: 0 auto 3.5rem; }
.treatment-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.visit-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(30,42,42,0.07);
}
.visit-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--warm-gray);
}
.visit-tag {
  display: inline-block;
  background: var(--soft-green);
  color: var(--sage);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 99px;
  margin-bottom: 0.75rem;
}
.visit-tag-alt { background: var(--beige); color: var(--charcoal); }
.visit-card-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.4rem;
}
.visit-duration {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--muted); font-weight: 500;
  margin-bottom: 0.75rem;
}
.visit-intro { font-size: 0.875rem; color: #4a5568; line-height: 1.7; }
.visit-steps { padding: 1.25rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.visit-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem; font-weight: 800;
  color: var(--sage-light);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-top: 3px;
  width: 22px;
}
.visit-step strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.2rem; }
.visit-step p { font-size: 0.82rem; color: #6b7a8a; line-height: 1.7; margin: 0; }

.treatment-faq {
  max-width: 1000px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem;
}
.faq-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.faq-item strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.25rem; }
.faq-item p { font-size: 0.82rem; color: #6b7a8a; line-height: 1.65; margin: 0; }

@media (max-width: 768px) {
  #treatment { padding: 5rem 1.25rem; }
  .treatment-cards { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   PRIVACY PANEL
════════════════════════════════════════ */
#privacy-overlay {
  position: fixed; inset: 0;
  background: rgba(30,42,42,0.45);
  z-index: 1050; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#privacy-overlay.open { opacity: 1; pointer-events: auto; }
#privacy-panel {
  position: fixed; top: 0; right: 0;
  width: min(620px, 100vw); height: 100vh;
  background: var(--white); z-index: 1100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -8px 0 48px rgba(30,42,42,0.18);
}
#privacy-panel.open { transform: translateX(0); }
.privacy-panel-hdr {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  z-index: 1;
}
#privacy-close-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background 0.2s, color 0.2s;
}
#privacy-close-btn:hover { background: var(--soft-green); color: var(--charcoal); }
.privacy-panel-body { padding: 2rem 1.75rem 3.5rem; overflow-y: auto; flex: 1; }
.privacy-panel-body h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800;
  color: var(--charcoal); margin-bottom: 0.3rem;
}
.privacy-panel-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.5rem; }
.privacy-panel-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--charcoal); margin: 1.75rem 0 0.4rem;
}
.privacy-panel-body p, .privacy-panel-body li { font-size: 0.875rem; color: #4a5568; line-height: 1.8; }
.privacy-panel-body ul { padding-left: 1.2rem; margin: 0.4rem 0; }
.privacy-panel-body li { margin-bottom: 0.2rem; }
.privacy-panel-body a { color: var(--sage); text-decoration: underline; }
.privacy-divider { border: none; border-top: 1px solid var(--warm-gray); margin: 1.5rem 0; }
.privacy-custom-note {
  background: var(--soft-green); border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  font-size: 0.875rem; color: var(--charcoal); line-height: 1.7;
}
