/* =========================================================
   True Health Chiropractic — site styles
   Palette matches the reference site (colors captured via
   computed styles from truehealth-7ctj2qpi.manus.space)
   ========================================================= */

:root {
  --teal:        oklch(0.48 0.12 195);   /* header / primary brand teal */
  --teal-dark:   oklch(0.32 0.10 195);   /* footer */
  --teal-accent: rgb(44, 162, 162);      /* "Chiropractic" wordmark, icons */
  --navy:        oklch(0.25 0.08 240);   /* interior page hero blocks */
  --ink:         oklch(0.22 0.02 240);   /* body copy */
  --muted:       rgb(102, 102, 102);
  --mint-bg:     rgb(226, 238, 238);     /* light section background */
  --cream-bg:    rgb(248, 245, 238);     /* testimonial section background */
  --gold:        rgb(244, 168, 34);      /* call button */
  --gold-soft:   rgb(208, 153, 69);      /* stat numbers */
  --star-gold:   rgb(250, 206, 25);      /* star ratings */
  --white:       #ffffff;
  --border:      rgba(15, 40, 45, 0.10);
  --shadow:      0 10px 30px rgba(10, 35, 40, 0.08);
  --radius:      14px;
  --header-h:    76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: #142430;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: .6em;
}

.section {
  padding: 84px 0;
}
.section--tight { padding: 64px 0; }
.section--mint { background: var(--mint-bg); }
.section--cream { background: var(--cream-bg); }
.section--white { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #2a1a00; }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(244,168,34,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: rgba(20,40,45,.25); color: var(--navy); }
.btn-outline-dark:hover { background: rgba(20,40,45,.06); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { box-shadow: 0 8px 20px rgba(20,110,110,.30); }
.btn-navy { background: #16202b; color: #fff; }
.btn-navy:hover { box-shadow: 0 8px 20px rgba(10,20,30,.30); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--teal);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(10,25,30,.45), rgba(10,25,30,0) 140%);
  box-shadow: none;
}
.site-header.is-scrolled {
  background: var(--teal);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { width: 34px; height: 34px; }
.brand-text .name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  display: block;
}
.brand-text .tag {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  display: block;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  border-bottom-color: rgba(255,255,255,.75);
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .header-actions .btn-teal.desktop-only { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #123138 0%, #1b4a52 45%, #2c6b6b 100%);
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(9,32,38,.86) 0%, rgba(9,32,38,.55) 42%, rgba(9,32,38,.28) 65%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.10) 0, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(255,255,255,.08) 0, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 140px 24px 90px;
  margin: 0 auto 0 0;
  margin-left: max(24px, calc((100% - 1180px) / 2));
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  color: #fff;
  margin-bottom: .05em;
}
.hero h1 .accent { color: var(--teal-accent); display: block; }
.hero .lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  max-width: 520px;
}
.hero .lede strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stat-pill {
  background: rgba(10, 30, 35, .45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  min-width: 110px;
  backdrop-filter: blur(2px);
}
.stat-pill .num { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.5rem; color: var(--gold-soft); }
.stat-pill .label { font-size: .78rem; color: rgba(255,255,255,.85); }

/* Marquee ticker */
.ticker-wrap {
  background: var(--teal);
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 3;
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  width: max-content;
}
/* Spacing lives on each item (not the flex container's gap) so the two
   duplicated sets below are pixel-identical halves — that's what makes
   the -50% translateX loop seamless instead of hitching at the seam. */
.ticker span { font-size: .85rem; font-weight: 600; letter-spacing: .02em; opacity: .95; margin-right: 40px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 56px) 24px 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .eyebrow { color: var(--teal-accent); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card .icon {
  width: 44px; height: 44px;
  color: var(--teal-accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.center { text-align: center; }

/* ---------- Doctor / about split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #16414a, #0c262c);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  text-align: center;
  padding: 20px;
}
.photo-frame svg { width: 64px; height: 64px; opacity: .5; margin-bottom: 10px; }
.photo-frame > img.real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ---------- About page photo carousel (matches the reference site) ---------- */
.about-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  height: 520px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .about-carousel { height: 360px; } }
.about-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.about-carousel .slide.is-active { opacity: 1; z-index: 1; }
.about-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-carousel .slide .fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #16414a, #0c262c);
}
.about-carousel .slide img[data-broken="true"] { display: none; }
.about-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.4), transparent 55%);
  pointer-events: none;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.carousel-nav:hover { background: rgba(0,0,0,.6); }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.is-active { width: 22px; background: #fff; }
.carousel-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
/* BJ Palmer quote — sits as its own card below the carousel photo rather
   than overlapping it, so long photo captions never collide with it. */
.about-carousel-wrap { display: flex; flex-direction: column; }
.about-carousel-wrap .about-carousel { border-radius: var(--radius) var(--radius) 0 0; }
.carousel-quote {
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 16px 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.carousel-quote .mark { color: var(--gold-soft); font-size: 1.8rem; font-family: "Playfair Display", serif; line-height: 1; margin-bottom: 6px; }
.carousel-quote p { font-size: .82rem; font-style: italic; color: rgba(255,255,255,.9); margin-bottom: 8px; }
.carousel-quote .who { font-size: .76rem; color: var(--teal-accent); font-weight: 700; margin: 0; }
.badge-float {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-float .num { font-family: "Playfair Display", serif; font-weight: 700; color: var(--gold-soft); font-size: 1.4rem; }
.badge-float .label { font-size: .72rem; }

.pill-tag {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal-accent);
  margin: 0 8px 8px 0;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.quote-card .stars { color: var(--star-gold); font-size: .95rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card .mark { font-size: 1.6rem; color: var(--border); position: absolute; top: 18px; right: 22px; }
.quote-card p.quote { font-style: italic; color: #33454d; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-card .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--mint-bg); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.quote-card .who .name { font-weight: 700; font-size: .92rem; color: #142430; }
.quote-card .who .role { font-size: .78rem; color: var(--muted); }

.rating-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 12px 26px;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  margin: 22px auto 0;
  width: fit-content;
}
.rating-strip .stars { color: var(--star-gold); }

/* ---------- Insurance ---------- */
.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.check-card svg { width: 20px; height: 20px; color: var(--teal-accent); flex-shrink: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: #142430;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height .25s ease;
}
.faq-item.is-open .answer { max-height: 300px; margin-top: 12px; }
.faq-item .chev { transition: transform .2s ease; flex-shrink: 0; }
.faq-item.is-open .chev { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card, .form-card, .hours-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 30px;
}
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--teal-accent); flex-shrink: 0; margin-top: 2px; }
.info-row .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-row .value { font-weight: 700; color: #142430; }

.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.hours-row:last-child { border-bottom: 0; }
.hours-row.today { background: var(--mint-bg); border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.hours-row .closed { color: #b23b3b; font-weight: 700; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .96rem;
  background: #fbfcfc;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-accent);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.schedule-embed iframe, .schedule-embed .rw-embed-wrap {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: var(--radius);
}
.schedule-embed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
}

/* ---------- Steps (new patient) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mint-bg);
  -webkit-text-stroke: 1.5px var(--teal-accent);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.85);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .name { font-family: "Playfair Display", serif; font-weight: 700; color: #fff; font-size: 1.15rem; }
.footer-brand .loc { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-accent); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: inherit; font-weight: 700; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--teal-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; font-size: .8rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { text-decoration: underline; }
.support-note {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  padding-bottom: 18px;
}
.support-note a { color: var(--teal-accent); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.icon-list { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; }
.icon-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #142430; }
.icon-list svg { width: 18px; height: 18px; color: var(--teal-accent); }

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .hero-inner { padding: 120px 20px 70px; margin-left: 0; }
}
