/* ==========================================================================
   Bones & Joints Clinic — site.css
   Design system aligned to Aescora Brand Identity v1.0
   Midnight Navy #082B4C · Clinical Teal #00A6A6 · Warm Gold #E6AD3C
   Heritage Sage #6BAF92 carried over from the B&J clinic logo.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy:        #082B4C;
  --navy-deep:   #04192E;
  --navy-soft:   #1B4269;
  --teal:        #00A6A6;
  --teal-dark:   #00807F;
  --teal-wash:   #E6F5F5;
  --sage:        #6BAF92;
  --sage-wash:   #EDF5F1;
  --gold:        #E6AD3C;

  /* Surface + ink */
  --paper:       #F4F7F8;
  --white:       #FFFFFF;
  --ink:         #10222F;
  --ink-soft:    #4C6070;
  --ink-faint:   #7C8E9A;
  --rule:        #DCE6E9;

  /* Type */
  --display: "Montserrat", "Avenir Next", Arial, sans-serif;
  --body:    "Noto Sans", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;

  /* Scale (minor third, mobile-first) */
  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.15rem;
  --t-lg:   1.4rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.15rem;
  --t-3xl:  2.6rem;

  /* Space */
  --gap:    1rem;
  --gap-2:  1.5rem;
  --gap-3:  2.25rem;
  --gap-4:  3.5rem;
  --gap-5:  5rem;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
}

@media (min-width: 900px) {
  :root {
    --t-xl:  2rem;
    --t-2xl: 2.9rem;
    --t-3xl: 3.6rem;
  }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p  { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

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

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.15rem; }
.section { padding-block: var(--gap-4); }
.section--tight { padding-block: var(--gap-3); }
.section--navy { background: var(--navy); color: #D6E2EA; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--white { background: var(--white); }
.lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 60ch; }
.section--navy .lede { color: #A9C0D1; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy); padding: .7rem 1rem;
  font-weight: 700; z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm);
  padding: .8rem 1.35rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--call   { background: var(--teal); color: #fff; }
.btn--call:hover   { background: var(--teal-dark); }
.btn--wa     { background: #148A5F; color: #fff; }
.btn--wa:hover { background: #0F6E4B; }
.btn--ghost  { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--onnavy { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--onnavy:hover { background: #fff; color: var(--navy); }
.btn--gold   { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #D19B2C; }

/* ---------- 5. Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 40;
}
.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--navy); line-height: 1.1; letter-spacing: -.01em;
}
.brand__tag { font-size: .72rem; color: var(--sage); font-weight: 600; letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  padding: .5rem 0 1.1rem;
  border-top: 1px solid var(--rule);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .65rem .2rem;
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm);
  color: var(--navy); text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--teal-dark); }
.header-call { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a { padding: .3rem 0; }
  .site-nav a:hover { color: var(--teal-dark); }
  .header-call { display: inline-flex; margin-left: 1.5rem; }
}

/* ---------- 6. Hero + body map (signature element) ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); padding-block: var(--gap-3) var(--gap-4); }
.hero__grid { display: grid; gap: var(--gap-3); }
.hero h1 { margin-bottom: .45em; }
.hero__sub { font-size: var(--t-md); color: var(--ink-soft); max-width: 46ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  font-size: var(--t-sm); color: var(--ink-soft);
  padding-top: .9rem; margin-top: .3rem; border-top: 1px solid var(--rule);
}
.hero__meta b { color: var(--navy); font-weight: 600; }

.bodymap { background: var(--paper); border-radius: var(--radius-lg); padding: 1.25rem 1rem 1.5rem; }
.bodymap__prompt {
  font-family: var(--display); font-weight: 600; font-size: var(--t-md);
  color: var(--navy); margin: 0 0 .2rem; text-align: center;
}
.bodymap__hint { font-size: var(--t-xs); color: var(--ink-faint); text-align: center; margin: 0 0 .6rem; }
.bodymap__figure { max-width: 250px; margin-inline: auto; }

.fig-limb  { stroke: #C9D8DD; stroke-width: 17; stroke-linecap: round; fill: none; }
.fig-mass  { fill: #C9D8DD; }
.spot circle.hit { fill: transparent; }
.spot circle.dot {
  fill: var(--white); stroke: var(--navy-soft); stroke-width: 2.5;
  transition: fill .15s ease, stroke .15s ease, r .15s ease;
}
.spot { cursor: pointer; }
.spot:hover circle.dot { fill: var(--teal-wash); stroke: var(--teal); }
.spot.is-active circle.dot { fill: var(--teal); stroke: var(--navy); r: 12; }
.spot:focus-visible { outline: none; }
.spot:focus-visible circle.dot { stroke: var(--gold); stroke-width: 4; }

.chiprow { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1rem; }
.chip {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--white); color: var(--navy-soft);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.region-panel {
  margin-top: 1.1rem; background: var(--white);
  border: 1px solid var(--rule); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 1.1rem 1.15rem;
}
.region-panel h3 { margin-bottom: .35rem; font-size: var(--t-md); }
.region-panel ul { margin-bottom: .9rem; }
.region-panel li { font-size: var(--t-sm); color: var(--ink-soft); }
.region-panel__note { font-size: var(--t-xs); color: var(--ink-faint); margin: 0; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--gap-4); }
  .bodymap { padding: 1.75rem 1.5rem 2rem; }
}

/* ---------- 7. Visit steps (a real sequence, so numbered) ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.step__n {
  counter-increment: step;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--display); font-weight: 700;
}
.step__n::before { content: counter(step); }
.step h3 { font-size: var(--t-base); margin-bottom: .25rem; color: var(--white); }
.step p { font-size: var(--t-sm); margin: 0; color: #A9C0D1; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- 8. Services — hairline list, not a card grid ---------- */
.svc-list { border-top: 1px solid var(--rule); }
.svc {
  display: grid; gap: .3rem 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule);
}
.svc h3 { margin: 0; font-size: var(--t-md); }
.svc p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
@media (min-width: 780px) {
  .svc { grid-template-columns: 15rem 1fr; align-items: baseline; }
}

/* ---------- 9. Doctor ---------- */
.doctor { display: grid; gap: var(--gap-2); }
.doctor__photo {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sage-wash); max-width: 340px;
}
.doctor__photo img { width: 100%; height: auto; }
.creds { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.creds li {
  padding-left: 1.4rem; position: relative;
  font-size: var(--t-sm); color: var(--ink-soft);
}
.creds li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--sage);
}
@media (min-width: 860px) {
  .doctor { grid-template-columns: 340px 1fr; gap: var(--gap-3); align-items: start; }
}

/* ---------- 10. Clinic panels ---------- */
.clinics { display: grid; gap: var(--gap-2); }
.clinic {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--rule); overflow: hidden;
  display: grid; grid-template-columns: 8px 1fr;
}
.clinic__rail { background: var(--sage); }
.clinic__body { padding: 1.5rem 1.35rem; }
.clinic h3 { font-size: var(--t-lg); margin-bottom: .1rem; }
.clinic__area { font-size: var(--t-xs); color: var(--sage); font-weight: 700; margin: 0 0 .8rem; }
.clinic address { font-style: normal; font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: .9rem; }
.clinic__hours {
  font-size: var(--t-sm); color: var(--navy); border-top: 1px dashed var(--rule);
  padding-top: .8rem; margin-bottom: 1rem;
}
.clinic__hours b { font-weight: 600; }
.clinic__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.clinic__map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.clinic__map iframe { width: 100%; height: 230px; border: 0; display: block; }
@media (min-width: 880px) { .clinics { grid-template-columns: 1fr 1fr; } }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-family: var(--display); font-weight: 600; color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: .85rem;
  font-size: 1.5rem; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { font-size: var(--t-sm); color: var(--ink-soft); padding-bottom: 1rem; }

/* ---------- 12. Call band ---------- */
.callband { background: var(--teal); color: #fff; }
.callband .wrap { display: grid; gap: 1rem; padding-block: var(--gap-3); }
.callband h2 { color: #fff; margin-bottom: .2em; }
.callband p { color: #DEF5F5; margin: 0; }
.callband__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.callband .btn--gold { border-color: var(--gold); }
.callband .btn--onnavy:hover { color: var(--teal-dark); }
@media (min-width: 820px) {
  .callband .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-deep); color: #93AEC2; padding-block: var(--gap-3) var(--gap-2); font-size: var(--t-sm); }
.site-footer h4 { color: #fff; font-size: var(--t-sm); margin-bottom: .7rem; }
.site-footer a { color: #C6DCEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--gap-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-bottom {
  margin-top: var(--gap-2); padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: var(--t-xs); color: #7794AA;
}
.footer-bottom p { max-width: 80ch; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- 14. Sticky mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.15);
}
.actionbar a {
  padding: .85rem .5rem; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm); color: #fff;
}
.actionbar a + a { border-left: 1px solid rgba(255,255,255,.18); }
body { padding-bottom: 56px; }
@media (min-width: 900px) { .actionbar { display: none; } body { padding-bottom: 0; } }

/* ---------- 15. Page header (inner pages) ---------- */
.pagehead { background: var(--navy); color: #C6DCEA; padding-block: var(--gap-3); }
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead p { color: #A9C0D1; max-width: 60ch; margin: 0; }
.crumbs { font-size: var(--t-xs); color: #7794AA; margin-bottom: .9rem; }
.crumbs a { color: #A9C0D1; text-decoration: none; }

/* ---------- 16. Prose blocks ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--t-xl); margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.callout {
  background: var(--sage-wash); border-left: 4px solid var(--sage);
  padding: 1rem 1.15rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 1.4rem;
}
.callout p:last-child { margin-bottom: 0; }
