/* Brand: thrivechiroia.fit — Thrive Family Chiropractic (thr77) */

:root {
  --thr77-max: 1120px;
  --thr77-radius: 18px;
  --thr77-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--dna-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--dna-ink, #16202e);
  background: var(--dna-bg, #f7f8fc);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--dna-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.thr77-skip {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100;
}
.thr77-skip:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.thr77-btn:focus-visible,
.thr77-nav a:focus-visible,
.thr77-tabs button:focus-visible,
.thr77-book-card:focus-within,
.thr77-book-pill:focus-within {
  outline: 3px solid color-mix(in srgb, var(--dna-accent, #3d5bb8) 75%, #000);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .thr77-btn:hover,
  .thr77-tile:hover { transform: none; }
}

body.thr77-nav-open { overflow: hidden; }

.thr77-shell {
  width: min(var(--thr77-max), calc(100% - 40px));
  margin-inline: auto;
}

.thr77-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dna-accent, #3d5bb8);
  margin-bottom: 10px;
}

.thr77-lede {
  font-size: 1.05rem;
  color: var(--dna-ink-soft, #5a6675);
  max-width: 38rem;
}

.thr77-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--thr77-ease), background .18s, color .18s, border-color .18s;
}
.thr77-btn:hover { transform: translateY(-1px); }
.thr77-btn--solid {
  background: var(--dna-accent, #3d5bb8);
  color: var(--dna-accent-ink, #fff);
}
.thr77-btn--ghost {
  background: transparent;
  color: var(--dna-ink, #16202e);
  border-color: var(--dna-line, #e6e9ef);
}
.thr77-btn--light {
  background: #fff;
  color: var(--dna-ink, #16202e);
}

/* Header — split */
.thr77-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--dna-bg, #f7f8fc) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dna-line, #e6e9ef);
}
.thr77-header-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.thr77-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.thr77-brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.thr77-brand small { display: block; color: var(--dna-ink-soft, #5a6675); font-size: 12px; }
.thr77-nav {
  display: flex; gap: 22px; justify-content: center;
}
.thr77-nav a {
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  color: var(--dna-ink-soft, #5a6675);
}
.thr77-nav a[aria-current="page"],
.thr77-nav a:hover { color: var(--dna-ink, #16202e); }
.thr77-header-acts {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
}
.thr77-phone {
  font-weight: 700; font-size: 14px; text-decoration: none;
  color: var(--dna-accent, #3d5bb8);
}
.thr77-burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--dna-line, #e6e9ef); background: var(--dna-surface, #fff);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer;
}
.thr77-burger span {
  display: block; width: 18px; height: 2px; background: var(--dna-ink, #16202e); border-radius: 2px;
}
.thr77-drawer {
  display: none; flex-direction: column; gap: 14px;
  padding: 8px 20px 20px; border-top: 1px solid var(--dna-line, #e6e9ef);
}
.thr77-drawer a { text-decoration: none; font-weight: 600; }
.thr77-drawer.is-open { display: flex; }

/* Hero — editorial (stamped) */
.thr77-hero-editorial { background: var(--dna-bg, #f7f8fc); }
.thr77-hero-editorial .thr77-hero-top {
  display: grid; grid-template-columns: 1.55fr .9fr; gap: 40px; align-items: end;
  padding: 72px 0 34px;
}
.thr77-hero-editorial h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  font-weight: 800; letter-spacing: -.03em; margin: 0;
}
.thr77-hero-editorial h1 em {
  font-style: normal; color: var(--dna-accent, #3d5bb8);
}
.thr77-hero-meta {
  border-left: 3px solid var(--dna-accent, #3d5bb8);
  padding-left: 18px;
}
.thr77-hero-meta p {
  font-size: 15.5px; color: var(--dna-ink-soft, #5a6675); margin-bottom: 18px;
}
.thr77-hero-band {
  position: relative; height: 240px; border-radius: var(--thr77-radius);
  overflow: hidden; margin-bottom: -40px;
  box-shadow: 0 30px 70px -34px rgba(20, 40, 90, .45);
}
.thr77-hero-band img {
  width: 100%; height: 100%; object-fit: cover;
}
.thr77-hero-band .thr77-chip {
  position: absolute; left: 22px; bottom: 20px; z-index: 2;
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}
.thr77-hero-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(22,32,46,.35), rgba(61,91,184,.25));
}
.thr77-hero-barcta {
  display: flex; gap: 12px; justify-content: flex-end; padding: 56px 0 64px;
}

/* Sections */
.thr77-section { padding: 84px 0; }
.thr77-section--soft { background: var(--dna-surface-2, #eef1f8); }
.thr77-section--ink {
  background: linear-gradient(140deg, var(--dna-ink, #16202e), color-mix(in srgb, var(--dna-accent, #3d5bb8) 55%, #16202e));
  color: #fff;
}
.thr77-section--ink .thr77-eyebrow { color: #c9d4f5; }
.thr77-section--ink .thr77-lede { color: rgba(255,255,255,.82); }

/* Approach / process zigzag */
.thr77-proc-zigzag .thr77-proc-head { max-width: 560px; margin-bottom: 40px; }
.thr77-proc-zigzag .thr77-proc-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 22px 0;
}
.thr77-proc-zigzag .thr77-proc-step:nth-child(even) .thr77-proc-vis { order: -1; }
.thr77-proc-vis {
  min-height: 170px; border-radius: var(--thr77-radius);
  background: linear-gradient(150deg, var(--dna-surface, #fff), color-mix(in srgb, var(--dna-accent, #3d5bb8) 22%, #fff));
  border: 1px solid var(--dna-line, #e6e9ef); position: relative;
}
.thr77-proc-vis b {
  position: absolute; left: 20px; top: 14px; font-size: 44px; font-weight: 800;
  color: var(--dna-accent, #3d5bb8); opacity: .45;
}
.thr77-proc-zigzag h3 { font-size: 22px; margin-bottom: 8px; }
.thr77-proc-zigzag p { color: var(--dna-ink-soft, #5a6675); max-width: 460px; }

/* Solutions / trust featuretiles */
.thr77-trust-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px;
}
.thr77-tile {
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: 16px; padding: 26px;
  transition: transform .18s var(--thr77-ease), border-color .18s;
}
.thr77-tile:hover {
  transform: translateY(-3px);
  border-color: var(--dna-accent, #3d5bb8);
}
.thr77-tile .dna-ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dna-surface-2, #eef1f8);
  border: 1px solid var(--dna-line, #e6e9ef);
  color: var(--dna-accent, #3d5bb8); margin-bottom: 14px;
}
.thr77-tile h3 { font-size: 18px; margin-bottom: 8px; }
.thr77-tile p { font-size: 14.5px; color: var(--dna-ink-soft, #5a6675); margin: 0; }

/* Services iconrows */
.thr77-svc-iconrows .thr77-svc-head { max-width: 560px; margin-bottom: 36px; }
.thr77-svc-rows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px;
}
.thr77-svc-r {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 14px 0;
}
.thr77-svc-ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dna-surface-2, #eef1f8);
  border: 1px solid var(--dna-line, #e6e9ef);
  color: var(--dna-accent, #3d5bb8);
}
.thr77-svc-r h3 { font-size: 17px; margin-bottom: 4px; }
.thr77-svc-r p { font-size: 14px; color: var(--dna-ink-soft, #5a6675); margin: 0; }
.thr77-svc-more { margin-top: 28px; }

/* Testimonials / care stories */
.thr77-story-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px;
}
.thr77-story {
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: 16px; padding: 24px;
}
.thr77-story .dna-ic { color: var(--dna-accent, #3d5bb8); margin-bottom: 12px; }
.thr77-story h3 { font-size: 17px; }
.thr77-story p { font-size: 14.5px; color: var(--dna-ink-soft, #5a6675); margin: 0; }
.thr77-label {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dna-ink-soft, #5a6675); margin-bottom: 8px;
}

/* Casestudies */
.thr77-case-list { display: grid; gap: 16px; margin-top: 32px; }
.thr77-case {
  display: grid; grid-template-columns: 120px 1fr; gap: 22px;
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: 16px; padding: 22px 24px; align-items: start;
}
.thr77-case b {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dna-accent, #3d5bb8);
}
.thr77-case h3 { font-size: 18px; margin-bottom: 6px; }
.thr77-case p { margin: 0; color: var(--dna-ink-soft, #5a6675); font-size: 14.5px; }

/* About quoteled */
.thr77-about-quoteled {
  background: var(--dna-surface-2, #eef1f8); padding: 84px 0;
}
.thr77-about-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.thr77-about-quoteled blockquote {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.32; font-weight: 600; margin: 12px 0 0;
}
.thr77-about-quoteled blockquote span { color: var(--dna-accent, #3d5bb8); }
.thr77-who {
  display: flex; gap: 14px; align-items: center; margin-top: 26px;
}
.thr77-av {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(150deg, var(--dna-accent, #3d5bb8), var(--dna-accent-2, #7a8fd4));
}
.thr77-who b { display: block; font-size: 15px; }
.thr77-who small { color: var(--dna-ink-soft, #5a6675); font-size: 13px; }
.thr77-about-body p { color: var(--dna-ink-soft, #5a6675); font-size: 15.5px; }

/* CTA band */
.thr77-cta-band {
  background: linear-gradient(120deg, var(--dna-accent, #3d5bb8), var(--dna-accent-2, #6f84d4));
  color: #fff; padding: 76px 0; text-align: center;
}
.thr77-cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 12px; }
.thr77-cta-band p { font-size: 17px; opacity: .92; margin: 0 auto 26px; max-width: 34rem; }

/* Page chrome */
.thr77-pagehead { padding: 56px 0 10px; }
.thr77-crumb { font-size: 13.5px; color: var(--dna-ink-soft, #5a6675); margin-bottom: 12px; }
.thr77-crumb a { text-decoration: none; font-weight: 600; }

/* Services page tabs */
.thr77-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px;
}
.thr77-tabs button {
  border: 1px solid var(--dna-line, #e6e9ef);
  background: var(--dna-surface, #fff);
  border-radius: 999px; padding: 10px 16px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  color: var(--dna-ink-soft, #5a6675);
}
.thr77-tabs button.is-active {
  background: var(--dna-accent, #3d5bb8);
  color: #fff; border-color: transparent;
}
.thr77-tab-panel {
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: var(--thr77-radius); padding: 28px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
}
.thr77-tab-panel img {
  border-radius: 14px; width: 100%; height: 260px; object-fit: cover;
}
.thr77-tab-panel[hidden] { display: none !important; }

/* About page extras */
.thr77-split {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center;
}
.thr77-frame {
  border-radius: var(--thr77-radius); overflow: hidden;
  border: 1px solid var(--dna-line, #e6e9ef);
  min-height: 320px;
}
.thr77-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.thr77-bullets { display: grid; gap: 10px; margin-top: 18px; }
.thr77-bullets li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 15px;
}
.thr77-bullets li::before {
  content: "✓"; color: var(--dna-accent, #3d5bb8); font-weight: 800;
}

/* Contact — info-bar */
.thr77-infobar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: var(--thr77-radius); overflow: hidden; margin-bottom: 28px;
}
.thr77-infobar > div {
  padding: 20px 22px; border-right: 1px solid var(--dna-line, #e6e9ef);
}
.thr77-infobar > div:last-child { border-right: 0; }
.thr77-infobar h3 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dna-ink-soft, #5a6675); margin-bottom: 6px;
}
.thr77-infobar p { margin: 0; font-size: 14.5px; font-weight: 600; }
.thr77-infobar a { text-decoration: none; color: var(--dna-accent, #3d5bb8); }

.contact-page.thr77-contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start;
}
.thr77-contact-info {
  background: var(--dna-surface-2, #eef1f8);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: var(--thr77-radius); padding: 26px;
}
.thr77-contact-info h2 { font-size: 22px; margin-bottom: 16px; }
.contact-block { margin-bottom: 16px; }
.contact-block h3 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dna-ink-soft, #5a6675); margin-bottom: 4px;
}
.contact-block p { margin: 0; font-size: 15px; }
.contact-block a { color: var(--dna-accent, #3d5bb8); text-decoration: none; font-weight: 600; }

/* Booking timeline */
.thr77-book {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  background: var(--dna-surface, #fff);
  border: 1px solid var(--dna-line, #e6e9ef);
  border-radius: var(--thr77-radius); overflow: hidden; min-height: 420px;
}
.thr77-book-rail {
  background: var(--dna-surface-2, #eef1f8);
  border-right: 1px solid var(--dna-line, #e6e9ef); padding: 24px 18px;
}
.thr77-book-rail ol { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
.thr77-book-rail li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  opacity: .55;
}
.thr77-book-rail li.is-active,
.thr77-book-rail li.is-done { opacity: 1; }
.thr77-book-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: var(--dna-surface, #fff);
  border: 2px solid var(--dna-line, #e6e9ef);
  color: var(--dna-ink-soft, #5a6675);
}
.thr77-book-rail li.is-active .thr77-book-dot,
.thr77-book-rail li.is-done .thr77-book-dot {
  border-color: var(--dna-accent, #3d5bb8);
  background: var(--dna-accent, #3d5bb8); color: #fff;
}
.thr77-book-rail b { display: block; font-size: 13.5px; }
.thr77-book-rail small { color: var(--dna-ink-soft, #5a6675); font-size: 12px; }
.thr77-book-panel { padding: 26px; }
.thr77-book-panel h3 { font-size: 20px; margin-bottom: 6px; }
.thr77-book-subh { margin-top: 22px; }
.thr77-book-lede { color: var(--dna-ink-soft, #5a6675); font-size: 14.5px; margin-bottom: 16px; }
.thr77-book-error {
  background: color-mix(in srgb, #c0392b 12%, #fff);
  border: 1px solid color-mix(in srgb, #c0392b 35%, #fff);
  color: #8b1e1e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
}
.thr77-book-grid { display: grid; gap: 10px; }
.thr77-book-card,
.thr77-book-pill {
  display: grid; gap: 4px;
  border: 1.5px solid var(--dna-line, #e6e9ef);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.thr77-book-card input,
.thr77-book-pill input { position: absolute; opacity: 0; pointer-events: none; }
.thr77-book-card.is-on,
.thr77-book-pill.is-on {
  border-color: var(--dna-accent, #3d5bb8);
  background: color-mix(in srgb, var(--dna-accent, #3d5bb8) 8%, #fff);
}
.thr77-book-card span,
.thr77-book-pill span { font-size: 13px; color: var(--dna-ink-soft, #5a6675); }
.thr77-book-formats,
.thr77-book-days { display: grid; gap: 10px; margin-top: 8px; }
.thr77-book-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.thr77-book-fields label {
  display: grid; gap: 6px; font-size: 13px; font-weight: 700;
}
.thr77-book-fields input,
.thr77-book-fields textarea {
  border: 1.5px solid var(--dna-line, #e6e9ef);
  border-radius: 10px; padding: 11px 12px; background: #fff;
}
.thr77-book-full { grid-column: 1 / -1; }
.thr77-book-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; gap: 12px;
}
.thr77-book--done { padding: 40px 32px; display: block; }
.thr77-book-muted { color: var(--dna-ink-soft, #5a6675); font-size: 14.5px; }
.thr77-book-muted a { color: var(--dna-accent, #3d5bb8); font-weight: 700; }

/* Privacy */
.thr77-prose { max-width: 720px; }
.thr77-prose h2 { font-size: 22px; margin-top: 28px; }
.thr77-prose p, .thr77-prose li { color: var(--dna-ink-soft, #5a6675); }
.thr77-prose ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 6px; }

/* Footer — stacked */
.thr77-footer {
  background: var(--dna-ink, #16202e); color: #e8ecf5; padding: 48px 0 28px;
}
.thr77-footer a { color: #c9d4f5; text-decoration: none; }
.thr77-footer-stack {
  display: grid; gap: 14px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 22px;
}
.thr77-footer-stack h2 { font-size: 26px; color: #fff; margin: 0; }
.thr77-footer-stack p { margin: 0; color: rgba(255,255,255,.72); max-width: 36rem; }
.thr77-footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.6);
}
.thr77-footer-base nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .thr77-header-in { grid-template-columns: 1fr auto; }
  .thr77-nav, .thr77-phone { display: none; }
  .thr77-burger { display: inline-flex; }
  .thr77-hero-editorial .thr77-hero-top,
  .thr77-proc-zigzag .thr77-proc-step,
  .thr77-about-grid,
  .thr77-split,
  .thr77-tab-panel,
  .contact-page.thr77-contact,
  .thr77-book { grid-template-columns: 1fr; }
  .thr77-proc-zigzag .thr77-proc-step:nth-child(even) .thr77-proc-vis { order: 0; }
  .thr77-trust-tiles,
  .thr77-story-grid { grid-template-columns: 1fr; }
  .thr77-svc-rows { grid-template-columns: 1fr; }
  .thr77-case { grid-template-columns: 1fr; }
  .thr77-infobar { grid-template-columns: 1fr 1fr; }
  .thr77-infobar > div:nth-child(2) { border-right: 0; }
  .thr77-infobar > div:nth-child(-n+2) { border-bottom: 1px solid var(--dna-line, #e6e9ef); }
  .thr77-book-rail { border-right: 0; border-bottom: 1px solid var(--dna-line, #e6e9ef); }
  .thr77-book-fields { grid-template-columns: 1fr; }
  .thr77-hero-barcta { justify-content: flex-start; }
}
