@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:ital,wght@1,500&family=Ovo&display=swap');

:root {
  --ink: #1A1A1A;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --sage: #2F6F5E;
  --sage-dark: #234F42;
  --sage-light: #E8EEE9;
  --gray: #6B6B6B;
  --gray-light: #9A9A9A;
  --border: #E5E1D8;
  --figure-fill: #A9C4B5;
  --figure-line: #3E6B57;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: 'Ovo', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.lede {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 620px;
}

.quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }
.btn-reversed { background: var(--white); color: var(--sage-dark); }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #33332F;
  z-index: 100;
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav-logo img { height: 64px; }
.nav-links {
  display: flex;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  gap: 28px;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Inter', Arial, sans-serif;
}
.nav-links a { color: #C9C4B6; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: #7FCBB0; }
.nav-cta { flex-shrink: 0; }

.nav-links li.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #C9C4B6;
  font-size: 0.75rem;
  padding: 4px 6px;
}
/* Outer wrapper starts flush against the nav item (zero gap) so the hover chain
   never breaks while the mouse travels down into the visible card below. The
   16px of breathing room is padding — part of this element's hoverable box —
   rather than a true gap that mouse events could fall through. */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 200;
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  transform: translateY(6px);
  transition: transform 0.15s ease;
}
.nav-links li.has-dropdown:hover .nav-dropdown-inner,
.nav-links li.has-dropdown:focus-within .nav-dropdown-inner {
  transform: translateY(0);
}
.nav-dropdown .group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  font-weight: 600;
  margin: 12px 0 4px;
}
.nav-dropdown .group-label:first-child { margin-top: 0; }
.nav-dropdown a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-dropdown a:hover { background: var(--sage-light); color: var(--sage-dark); }
.nav-dropdown a.nav-pricing-link {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gray-light);
  margin-top: 12px;
}
.nav-dropdown a.nav-pricing-link:hover { color: var(--sage-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #C9C4B6; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    background: #1A1A1A;
    border-bottom: 1px solid #33332F;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 32px 24px;
    gap: 2px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li.has-dropdown { flex-wrap: wrap; justify-content: space-between; }
  .dropdown-toggle { display: inline-flex; }
  .nav-dropdown {
    position: static;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
  }
  .nav-dropdown.open { display: block; }
  .nav-dropdown-inner {
    border: none;
    padding: 0 0 8px 12px;
    min-width: 0;
    width: 100%;
    transform: none;
    background: transparent;
  }
  .nav-dropdown-inner a { color: #C9C4B6; }
  .nav-dropdown-inner a:hover { background: rgba(255,255,255,0.06); color: #7FCBB0; }
}

/* Spine divider — signature brand element */
.spine-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 64px 0;
}
.spine-divider .line { flex: 1; max-width: 120px; height: 1px; background: var(--border); }
.spine-divider .dots { display: flex; align-items: center; gap: 7px; }
.spine-divider .dots span { display: block; border-radius: 50%; background: var(--sage); }
.spine-divider .dots span:nth-child(1) { width: 5px; height: 5px; opacity: 0.5; }
.spine-divider .dots span:nth-child(2) { width: 7px; height: 7px; opacity: 0.7; }
.spine-divider .dots span:nth-child(3) { width: 9px; height: 9px; }
.spine-divider .dots span:nth-child(4) { width: 7px; height: 7px; opacity: 0.7; }
.spine-divider .dots span:nth-child(5) { width: 5px; height: 5px; opacity: 0.5; }

/* Sections */
section { padding: 88px 0; }
.stat-band { background: var(--sage-dark); padding: 28px 0; }
.stat-band-grid { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.stat-band-grid .stat { flex: 1; min-width: 180px; max-width: 280px; text-align: center; padding: 0 32px; position: relative; }
.stat-band-grid .stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 48px; background: rgba(255,255,255,0.25); }
.stat-num { display: block; font-family: 'Ovo', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 6px; }
.stat-label { display: block; font-size: 0.95rem; color: #CFE3D9; letter-spacing: 0.02em; }
.stat-band-grid .stat-rating { display: flex; align-items: center; justify-content: center; margin-top: 14px; }
@media (max-width: 860px) {
  .stat-band-grid { flex-direction: column; gap: 32px; }
  .stat-band-grid .stat + .stat::before { display: none; }
}

.section-tight { padding: 56px 0; }
.section-sage { background: var(--sage); color: var(--white); }
.section-sage .eyebrow { color: #CFE3D9; }
.section-sage .lede { color: #DCEAE3; }
.section-light { background: var(--sage-light); }
.section-ink { background: var(--ink); color: var(--paper); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
  padding: 120px 0 90px;
  text-align: center;
}
.hero .eyebrow { justify-content: center; text-align: center; }
.hero h1 { max-width: 780px; margin: 0 auto 20px; }
.hero .lede { margin: 0 auto 36px; text-align: center; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Video hero */
.hero-video-wrap {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0;
}
.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.5), rgba(20,20,20,0.68));
  z-index: 1;
}
.hero-video-wrap .wrap { position: relative; z-index: 2; width: 100%; }
.hero-video-wrap .eyebrow { color: #B9E0CE; }
.hero-video-wrap h1, .hero-video-wrap .lede { color: var(--paper); }
.hero-video-wrap .lede { color: #E4E1D6; }
.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250,249,246,0.45);
}
.btn-outline-light:hover { border-color: var(--paper); opacity: 1; background: rgba(250,249,246,0.08); }

/* Grid / cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.card:target { border-color: var(--sage); background: var(--sage-light); transition: background 0.3s ease, border-color 0.3s ease; }
.card-photo { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center; margin: 14px 0 20px 0; border-radius: 12px; }
.card .num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sage);
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: block;
}

.check-list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  padding-left: 22px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.photo-block {
  border-radius: 16px;
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--sage-light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; }

.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-duo .photo-block { aspect-ratio: 3/4; }
@media (max-width: 640px) {
  .photo-duo { grid-template-columns: 1fr; }
}

/* Condition tags */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Body map — clickable conditions figure */
[id] { scroll-margin-top: 100px; }

.body-map-section .wrap { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .body-map-section .wrap { grid-template-columns: 1fr; }
}
.body-map-photo { position: relative; width: 100%; max-width: 720px; margin: 0 auto; border-radius: 16px; background: #F2EFE8; }
.body-map-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
.body-map-photo .hotspot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.body-map-photo .hotspot::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(47, 111, 94, 0.45);
  animation: hotspot-pulse 2.4s ease-out infinite;
}
.body-map-photo .hotspot::after {
  content: "";
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 12px rgba(47, 111, 94, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}
.body-map-photo .hotspot:hover::after,
.body-map-photo .hotspot:focus-visible::after {
  background: var(--sage-dark);
  transform: scale(1.3);
  outline: none;
}
.hotspot-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink);
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 300;
}
.hotspot-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.hotspot:hover .hotspot-tip,
.hotspot:focus-visible .hotspot-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.hotspot.tip-below .hotspot-tip {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translate(-50%, -4px);
}
.hotspot.tip-below .hotspot-tip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ink);
}
.hotspot.tip-below:hover .hotspot-tip,
.hotspot.tip-below:focus-visible .hotspot-tip {
  transform: translate(-50%, 0);
}
.hotspot.tip-left .hotspot-tip {
  bottom: auto;
  top: 50%;
  left: auto;
  right: calc(100% + 12px);
  transform: translate(4px, -50%);
}
.hotspot.tip-left .hotspot-tip::after {
  top: 50%;
  left: 100%;
  bottom: auto;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-left-color: var(--ink);
}
.hotspot.tip-left:hover .hotspot-tip,
.hotspot.tip-left:focus-visible .hotspot-tip {
  transform: translate(0, -50%);
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.4); opacity: 1; }
  75% { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}
@media (max-width: 640px) {
  .body-map-photo .hotspot, .body-map-photo .hotspot::before { width: 26px; height: 26px; }
  .body-map-photo .hotspot::after { width: 10px; height: 10px; }
}
.condition-links { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.condition-links a { font-weight: 500; color: var(--gray); padding: 6px 0; border-bottom: 1px solid var(--border); transition: color 0.15s ease; }
.condition-links a:hover { color: var(--sage); }

/* Pricing table */
.price-list { border-top: 1px solid var(--border); }
.price-group-label {
  padding: 28px 12px 6px;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
}
.price-group-label:first-child { padding-top: 4px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease;
}
a.price-row { cursor: pointer; }
a.price-row:hover, a.price-row:focus-visible { background: var(--sage-light); }
a.price-row:hover .amount, a.price-row:focus-visible .amount { color: var(--sage); }
.price-row .name { font-weight: 600; }
.price-row .dur { color: var(--gray-light); font-size: 0.85rem; margin-top: 3px; }
.price-row .amount { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.3rem; color: var(--sage-dark); white-space: nowrap; transition: color 0.15s ease; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--sage);
  font-weight: 400;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 14px; color: var(--gray); max-width: 700px; }

/* Testimonial */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial p { font-size: 1.4rem; }
.testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Video testimonials */
.video-testimonial { text-align: center; }
.video-thumb {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.15);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb .play-btn::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--sage-dark);
  margin-left: 4px;
}
.video-testimonial .quote { font-size: 1rem; margin-bottom: 16px; }

.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #C9C4B6; transition: background 0.15s ease, color 0.15s ease; }
.footer-social a:hover { background: var(--sage); color: var(--white); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-badges { display: flex; justify-content: center; align-items: center; gap: 40px; margin: 24px 0 8px; flex-wrap: wrap; }
.footer-badges img { display: block; border-radius: 4px; }
.footer-badges-doctify { width: 140px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.footer-badges-doctify > div { width: 100%; }
.footer-badges-placeholder { width: 56px; height: 56px; flex-shrink: 0; }
@media (max-width: 600px) {
  .footer-badges-placeholder { display: none; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 72px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #33332F;
}
.footer-top h4 { font-family: 'Inter', Arial, sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #A8A49A; margin-bottom: 16px; font-weight: 600; }
.footer-top p, .footer-top a { color: #C9C4B6; font-size: 0.95rem; }
.footer-top a:hover { color: var(--white); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7A766C;
}
.footer-bottom .flinks { display: flex; gap: 24px; list-style: none; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Map */
.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 16px;
  filter: grayscale(0.2);
}

/* Utility */
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
