/* Full Life Chiropractic: brand navy and blue from the logo, orange accent from "CHIROPRACTIC". */
:root {
  --navy: #1f3f8c;
  --navy-deep: #152c63;
  --blue: #4a72d9;
  --sky: #eaf1fb;
  --orange: #e8642c;
  --orange-deep: #c94f1c;
  --ink: #1d2433;
  --muted: #5a6478;
  --line: #e2e7f0;
  --paper: #ffffff;
  --cream: #f7f5f1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 44, 99, .06), 0 8px 24px rgba(21, 44, 99, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy-deep); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.demo-bar { background: var(--orange); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-deep); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy-deep); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav li a:hover { color: var(--navy); background: var(--sky); }
.site-nav li a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav-cta { padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { width: 128px; }
}

/* home hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy .lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--orange-deep); margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; }
}

/* sections */
.section { padding: 64px 0; }
.section-tint { background: var(--cream); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar h2 { font-size: 1.2rem; margin-bottom: .4em; }
.pillar p { margin: 0; color: var(--muted); font-size: 1rem; }
.pillar-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 700; margin-bottom: 14px; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.split-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-img { max-width: 360px; } }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--navy); color: #e6ecf8; border-radius: 22px; padding: 40px 44px; }
.callout h2 { color: #fff; }
.callout .eyebrow { color: #ffb48f; }
.callout p:last-child { margin: 0; max-width: 46em; }
.callout .btn-primary { background: #fff; color: var(--navy); }
@media (max-width: 760px) { .callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.topic-chips a { display: inline-block; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.topic-chips a:hover { border-color: var(--orange); color: var(--orange-deep); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 8px 0 56px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img--blank { background: linear-gradient(135deg, var(--sky), #f6e4da); }
.card-body { padding: 18px 20px 22px; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: .98rem; }
.card-title { font-size: 1.2rem; margin: 0 0 .4em; }
.meta { font-size: .9rem; color: var(--muted); margin-bottom: .4em; }

/* inner pages */
.page-hero { background: linear-gradient(180deg, var(--sky), #fff); padding: 48px 0 28px; }
.page-hero h1 { margin: 0; }
.page-hero .lede { font-size: 1.15rem; color: var(--muted); margin-top: .7em; max-width: 46em; }
.page-hero .meta { margin-top: .8em; }
.content-wrap { padding-top: 12px; padding-bottom: 56px; }
.back { margin-top: 40px; font-weight: 600; }

.prose { max-width: 760px; }
.prose h1, .prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: 12px; margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose a[href$=".pdf"]::after { content: " (PDF)"; font-size: .8em; color: var(--muted); }

/* health library */
.library-tools { margin: 4px 0 20px; }
.library-tools input { width: 100%; max-width: 420px; padding: 12px 16px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.topic-list ul { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0 0 2em; }
.topic-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.topic-list a { text-decoration: none; font-weight: 600; }
.prose:has(.topic-list) { max-width: none; }

/* video */
.yt { position: relative; margin: 1.2em 0; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.yt-poster, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: .9; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(232, 100, 44, .95); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.prose:has(.yt-row) { max-width: none; }
.yt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* forms */
.form { display: grid; gap: 14px; background: var(--cream); border-radius: var(--radius); padding: 28px; margin: 1.6em 0; max-width: 640px; }
.form h3 { margin: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .newsletter input { font: inherit; padding: 11px 14px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; }
.form-callout { background: var(--sky); }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 600; color: var(--navy); }
.hp { position: absolute; left: -9999px; }

.location-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--sky); border-radius: var(--radius); padding: 24px 28px; margin: 1.4em 0; }
.location-card h3 { margin: 0 0 .3em; }
.location-card p { margin: 0 0 .3em; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* events */
.event-list { list-style: none; padding: 0; margin: 0 0 24px; max-width: 760px; }
.event-list a { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.event-date { flex: 0 0 64px; text-align: center; background: var(--sky); border-radius: 12px; padding: 8px 4px; color: var(--navy); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.event-date b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-deep); }
.event-date small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.event-title { display: block; font-weight: 700; font-size: 1.1rem; color: var(--navy-deep); }

/* CTA band + footer */
.cta-band { background: var(--navy); color: #dfe7f7; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy-deep); color: #c9d4ec; padding: 56px 0 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb48f; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .8fr 1.3fr; gap: 36px; }
.footer-logo { width: 160px; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.footer-h { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 12px; }
.site-footer .muted { color: #9fb0d6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 4px 0; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; border-color: transparent; }
.newsletter .form-status { color: #ffb48f; margin-top: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: .85rem; color: #9fb0d6; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.yt-row .yt { margin: 0; }
