/* Willow Chiropractic — static site styles */
:root {
  --sage-900: #1f2d2a;
  --sage-700: #3d574c;
  --sage-500: #5f7d6e;
  --sage-300: #b9cbb4;
  --sage-100: #e7eee3;
  --cream: #faf6ef;
  --sand: #ece4d4;
  --bark: #5b4636;
  --ink: #1f2a23;
  --muted: #5d6b62;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(44, 64, 51, .25);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-logo: "Montserrat", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-700); }
a:hover { color: var(--sage-900); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; color: var(--sage-900); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--sage-900); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sage-500); outline-offset: 3px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sage-500); margin-bottom: .8rem; }
.accent { color: var(--sage-500); font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--sage-700);
  background: var(--sage-700); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--sage-900); border-color: var(--sage-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { padding: .5rem 1rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--sage-700); }
.btn-ghost:hover { background: var(--sage-100); color: var(--sage-900); border-color: var(--sage-700); }
.btn-light { background: #fff; color: var(--sage-900); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--sage-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--sand); box-shadow: 0 4px 20px -14px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--sage-900); }
.brand img { height: 66px; width: auto; }
.wordmark { display: flex; flex-direction: column; align-items: center; font-family: var(--font-logo); text-transform: uppercase; line-height: 1; }
.wm-1 { font-weight: 600; font-size: 1.75rem; letter-spacing: .16em; margin-right: -.16em; }
.wm-2 { font-weight: 500; font-size: .78rem; letter-spacing: .3em; margin-top: .35rem; margin-right: -.3em; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--sage-500); transition: width .2s; }
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--sage-900); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; font-family: var(--font-serif); font-style: italic; margin-bottom: .4rem; }
.attribution { color: var(--sage-500); font-weight: 500; font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.status-pill { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.6rem; padding: .45rem .95rem; background: #fff; border: 1px solid var(--sand); border-radius: 999px; font-size: .9rem; color: var(--muted); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #c2b8a6; }
.status-pill.open .dot { background: #3e9b5d; box-shadow: 0 0 0 4px rgba(62,155,93,.18); }
.status-pill.closed .dot { background: #c76b4f; }
.hero-art { display: flex; justify-content: center; margin-top: 7.5rem; }
.hero-logo { width: 100%; max-width: 480px; height: auto; }

/* Quick info */
.quick-info { padding-bottom: 2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.45;
  transition: transform .15s, box-shadow .2s; overflow-wrap: anywhere;
}
.quick-card strong { color: var(--ink); font-size: 1rem; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--muted); }
.qi-icon { font-size: 1.3rem; line-height: 1; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--sage-100); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; }
.fine-print { color: var(--muted); font-size: .93rem; margin-top: 1.4rem; }

/* About */
.about-wrap { max-width: 760px; }
.about-copy p { font-size: 1.12rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.service-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid rgba(63,90,71,.08); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.svc-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-100); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sage-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--sand); }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sage-700); color: #fff; font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 1rem; }
.tips { background: var(--sand); border-radius: var(--radius); padding: 1.8rem 2rem; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 2rem; }
.tips li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.tips li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-700); font-weight: 700; }

/* Hours + location */
.hours-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hours-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table th, .hours-table td { padding: .95rem 1.3rem; text-align: left; border-bottom: 1px solid var(--sage-100); vertical-align: top; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; width: 40%; }
.hours-table td { color: var(--muted); }
.hours-table tr.closed td { color: #a39a8b; }
.hours-table tr.today { background: var(--sage-700); }
.hours-table tr.today th, .hours-table tr.today td { color: #fff; }
.hours-table tr.today th::after { content: "Today"; margin-left: .6rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.2); padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.location-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.location-card address { font-style: normal; color: var(--muted); margin-bottom: 1.2rem; }
.location-card address strong { color: var(--ink); }
.map-wrap { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sage-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* CTA */
.cta { background: var(--sage-700) radial-gradient(circle at 85% 20%, rgba(185,203,180,.35), transparent 50%); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.15rem; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--sage-900); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 2rem; }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.brand-footer img { height: 54px; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.disclaimer { opacity: .7; }

/* Error pages */
.error-body { min-height: 100vh; display: flex; flex-direction: column; }
.error-page { flex: 1; display: grid; place-items: center; padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.error-inner { max-width: 640px; }
.error-logo { width: 110px; height: auto; margin: 0 auto 1.5rem; opacity: .9; }
.error-page .lead { margin-inline: auto; max-width: 44ch; }
.error-page .hero-actions { justify-content: center; }
.error-links { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-weight: 500; }
.error-body .site-footer { padding: 0 0 1.5rem; }
.error-body .footer-bottom { justify-content: center; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 92px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--sand); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
  .hero-grid, .hours-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .error-body .header-inner > .btn { display: none; }
  .services-grid, .quick-grid, .footer-grid { grid-template-columns: 1fr; }
  .tips ul { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
