/* ========================================================================
   Hookstadt Chiropractic — styles
   Palette: calm clinical greens + warm bone/ivory. Elegant, light, trustworthy.
   ======================================================================== */

:root {
  --bg:        #f7f5ef;   /* warm bone */
  --bg-2:      #ffffff;
  --ink:       #1c2826;   /* near-black green */
  --ink-soft:  #46554f;
  --teal:      #1f4d4a;   /* deep clinical teal */
  --teal-2:    #2f6f69;
  --sage:      #7fa99b;
  --accent:    #c98a5e;   /* warm terracotta accent */
  --line:      #e3ded2;
  --shadow:    0 18px 50px -24px rgba(28, 40, 38, 0.35);
  --radius:    18px;
  --maxw:      1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.accent { color: var(--accent); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-2);
  margin-bottom: 0.9rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--teal-2); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.1rem, 4vw, 3rem);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.topbar.scrolled {
  background: rgba(247, 245, 239, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__mark { color: var(--teal); font-size: 1.4rem; transform: translateY(1px); }
.brand__dot { color: var(--accent); }
.topnav { display: flex; align-items: center; gap: 1.9rem; }
.topnav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.topnav a:hover { color: var(--ink); }
.topnav__cta { background: var(--teal); color: #fff !important; padding: .6rem 1.2rem; border-radius: 999px; }
.topnav__cta:hover { background: var(--teal-2); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 60; }
.hamburger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  font-family: var(--serif); font-size: 1.8rem;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--ink); }
.mobile-menu__call { color: var(--teal) !important; font-family: var(--sans); font-size: 1.1rem; font-weight: 600; border: 1.5px solid var(--teal); border-radius: 999px; padding: .6rem 1.4rem; }

/* ---------- spine nav (left rail) ---------- */
/* --bone-col is the fixed width of the clickable bone area; the rail and the
   bones are centered in it, and labels float to the right as chips so they
   never overlap the rail line. */
.spine {
  --bone-col: 30px;
  position: fixed; top: 50%; left: clamp(12px, 2vw, 26px);
  transform: translateY(-50%); z-index: 40;
}
.spine__rail {
  position: absolute; left: calc(var(--bone-col) / 2); top: -10px; bottom: -10px; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--sage), var(--teal));
  opacity: .3; pointer-events: none;
}
.spine__list { list-style: none; display: flex; flex-direction: column; gap: 20px; position: relative; }
.vert {
  position: relative; display: flex; align-items: center; cursor: pointer; background: none; border: 0; padding: 0;
}
.vert__bone {
  width: var(--bone-col); height: 10px; flex: 0 0 var(--bone-col);
  display: grid; place-items: center;
}
/* the actual bone shape is drawn as a pseudo-element so it can grow without
   shifting the rail alignment */
.vert__bone::before {
  content: ""; width: 14px; height: 9px; border-radius: 6px;
  background: var(--sage); opacity: .55;
  transition: width .35s cubic-bezier(.22,1,.36,1), background .35s, opacity .35s, box-shadow .35s;
}
.vert__label {
  margin-left: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft);
  background: rgba(247,245,239,.92); box-shadow: 0 2px 8px -3px rgba(28,40,38,.25);
  opacity: 0; transform: translateX(-6px); pointer-events: none;
  transition: opacity .25s, transform .25s, color .25s; white-space: nowrap;
}
.vert:hover .vert__label,
.vert:focus-visible .vert__label { opacity: 1; transform: translateX(0); }
.vert:hover .vert__bone::before { opacity: 1; }
.vert.active .vert__bone::before {
  width: 22px; background: var(--teal); opacity: 1;
  box-shadow: 0 0 0 4px rgba(31,77,74,.14);
}
.vert.active .vert__label { opacity: 1; transform: translateX(0); color: var(--teal); }

/* ---------- layout ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 3rem); position: relative; }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section__sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid;
  grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2rem;
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(6rem, 12vh, 9rem);
}
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.7rem); margin-bottom: 1.4rem; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 30rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.8rem; }
.hero__trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--serif); font-size: 1.35rem; color: var(--teal); }
.hero__trust span { font-size: 0.85rem; color: var(--ink-soft); }

.hero__spineart { display: flex; align-items: center; justify-content: center; height: 100%; }
.spine-svg { width: min(240px, 64%); height: auto; overflow: visible; transition: transform .3s ease; }
.vertebra-art { opacity: 0; animation: boneIn .6s forwards; transition: opacity .4s ease; }
.vert-body {
  fill: var(--bg); stroke: var(--sage); stroke-width: 2.2;
  transition: fill .45s ease, stroke .45s ease, filter .45s ease;
}
.vert-process {
  fill: none; stroke: var(--sage); stroke-width: 2.2; stroke-linecap: round;
  transition: stroke .45s ease;
}
/* illuminated as the visitor scrolls down the page */
.vertebra-art.lit .vert-body {
  fill: var(--teal); stroke: var(--teal);
  filter: drop-shadow(0 0 5px rgba(31,77,74,.45));
}
.vertebra-art.lit .vert-process { stroke: var(--teal-2); }
.disc-art { fill: var(--accent); opacity: 0; animation: discIn .6s forwards; }
@keyframes boneIn { to { opacity: 1; } }
@keyframes discIn { to { opacity: .5; } }

.scrollcue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--sage); border-radius: 14px; }
.scrollcue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--teal); border-radius: 2px; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- about ---------- */
.about { max-width: var(--maxw); margin: 0 auto; }
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait-ph {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(127,169,155,.5), transparent 60%),
    linear-gradient(160deg, var(--teal), var(--ink));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-family: var(--serif); font-size: 1.3rem; letter-spacing: .1em;
  box-shadow: var(--shadow);
}
.portrait-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about__body p { margin-bottom: 1.1rem; font-size: 1.07rem; color: var(--ink-soft); }
.about__body em { color: var(--ink); font-style: italic; }
.creds { list-style: none; margin-top: 1.8rem; display: grid; gap: .7rem; }
.creds li { padding-left: 0; font-size: 0.98rem; }
.creds__k { display: inline-block; min-width: 90px; font-weight: 600; color: var(--teal); }

/* ---------- services cards ---------- */
.services { max-width: var(--maxw); margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--sage), var(--teal)); color: #fff; font-size: 1.4rem; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- reviews ---------- */
.reviews { background: linear-gradient(180deg, transparent, rgba(127,169,155,.08) 30%, transparent); }
.quotes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote {
  background: var(--bg-2); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { color: var(--ink-soft); font-weight: 600; font-size: .92rem; margin-top: auto; }
.reviews__cta { text-align: center; margin-top: 2.5rem; color: var(--ink-soft); }
.reviews__cta a { color: var(--teal); font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.reviews__cta a:hover { border-color: var(--teal); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--bg); }
.contact__inner { max-width: 920px; margin: 0 auto; }
.contact .eyebrow { color: var(--sage); }
.contact .section__sub { color: rgba(247,245,239,.7); }
.contact .section__head h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.contact__item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .35rem; transition: background .25s, transform .25s;
}
a.contact__item:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.contact__k { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.contact__v { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact .btn--ghost { border-color: var(--sage); color: #fff; }
.contact .btn--ghost:hover { background: var(--sage); color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: #141d1b; color: rgba(247,245,239,.7); padding: 3rem 1.5rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: grid; gap: .6rem; }
.brand--footer { justify-content: center; color: #fff; font-size: 1rem; }
.footer__meta a { color: var(--sage); }
.footer__fine { font-size: .82rem; opacity: .6; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .vertebra-art, .disc-art { animation: none; opacity: .9; }
  .scrollcue span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .spine { display: none; }
  .topnav { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 7rem clamp(1.2rem, 5vw, 3rem) 4rem; text-align: left; }
  .hero__lede { max-width: 100%; }
  .hero__spineart { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.3rem; }
}
