/* Spaulding Family Chiropractic — site stylesheet
   Palette from the practice's business card; fonts self-hosted (see fonts.css). */

:root {
	--blue: #2b7bb9;
	--blue-dark: #1b5a8e;
	--blue-deep: #123f66;
	--blue-light: #eaf3fa;
	--blue-mist: #f5f9fc;
	--ink: #1f2933;
	--muted: #5b6b7a;
	--line: #dde5ec;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(18, 63, 102, .12);
	--serif: Merriweather, Georgia, "Times New Roman", serif;
	--sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.7 var(--serif); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--sans); line-height: 1.15; margin: 0 0 .5em; color: var(--blue-deep); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.2em; }
.section { padding: 80px 0; }
.alt { background: var(--blue-mist); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--blue-deep); padding: 10px 14px; border-radius: 8px; font: 700 .9rem/1 var(--sans); }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font: 700 .95rem/1 var(--sans); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Top bar */
.topbar { background: var(--blue-deep); color: #dbe9f5; font: 500 .82rem/1.3 var(--sans); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: .5em; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(18, 63, 102, .08); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { text-decoration: none; font-family: var(--sans); line-height: 1.1; }
.brand b { display: block; font-size: 1.25rem; font-weight: 700; color: var(--blue-deep); }
.brand small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font: 600 .92rem/1 var(--sans); }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--blue); color: var(--blue-deep); }
.menu-btn { display: none; font: 700 .85rem/1 var(--sans); background: none; border: 2px solid var(--blue-deep); color: var(--blue-deep); border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.header-cta { white-space: nowrap; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
	radial-gradient(60% 80% at 100% 0%, rgba(43, 123, 185, .16), transparent 60%),
	radial-gradient(45% 60% at 0% 100%, rgba(43, 123, 185, .10), transparent 60%), var(--blue-light); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero blockquote { margin: 22px 0 28px; padding: 0 0 0 20px; border-left: 4px solid var(--blue); font-style: italic; font-size: 1.15rem; color: var(--blue-deep); }
.hero blockquote cite { display: block; font: 600 .8rem/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo .badge { position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); font-family: var(--sans); }
.hero-photo .badge b { display: block; font-size: 1.5rem; font-weight: 700; color: var(--blue-deep); line-height: 1; }
.hero-photo .badge span { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Sub-page hero */
.page-hero { padding: 56px 0 48px; background:
	radial-gradient(60% 80% at 100% 0%, rgba(43, 123, 185, .14), transparent 60%), var(--blue-light); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero .lead { max-width: 720px; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.trust div { display: flex; gap: 12px; align-items: center; font: 600 .88rem/1.35 var(--sans); color: var(--blue-deep); }
.trust svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Specialties cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 2px 10px rgba(18, 63, 102, .04); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card ul { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--sans); font-size: .95rem; font-weight: 500; }
.card li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-light); border: 2px solid var(--blue); }
.member { margin-top: 28px; font: 600 .9rem/1.4 var(--sans); color: var(--muted); display: flex; gap: 10px; align-items: center; }
.member svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; flex: none; }

/* Quote band */
.quote { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-style: italic; line-height: 1.5; }
.quote cite { display: block; margin-top: 18px; font: 600 .82rem/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #bcd8ef; }

/* Two-column layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split.narrow-first { grid-template-columns: .8fr 1.2fr; }
.split.wide-first { grid-template-columns: 1.1fr .9fr; }

/* Office gallery + steps */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child img { aspect-ratio: 4 / 5; }
.gallery figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font: 700 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(18, 63, 102, .75)); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 54px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-light); color: var(--blue-deep); font: 700 1rem/38px var(--sans); text-align: center; }
.steps b { display: block; font-family: var(--sans); color: var(--blue-deep); }

/* Portrait + credentials */
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font: 600 .8rem/1.2 var(--sans); background: var(--blue-light); color: var(--blue-deep); border-radius: 999px; padding: 9px 14px; }

/* Captioned figure */
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.figure figcaption { padding: 12px 16px; background: var(--blue-light); font: 600 .82rem/1.4 var(--sans); color: var(--blue-deep); }

/* Stats */
.stats .wrap { text-align: center; }
.stats .lead { max-width: 640px; margin: 0 auto; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 36px 0 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; }
.stat b { display: block; font: 700 2.6rem/1 var(--sans); color: var(--blue); }
.stat span { display: block; margin-top: 10px; font: 600 .9rem/1.35 var(--sans); color: var(--ink); }
.source { font-size: .82rem; color: var(--muted); }

/* Visit: address, hours, map */
.visit address { font-style: normal; font-size: 1.1rem; line-height: 1.5; }
.phone-big { font: 700 1.6rem/1 var(--sans); color: var(--blue-deep); text-decoration: none; display: inline-block; margin: 6px 0 22px; }
.hours { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; margin: 8px 0 26px; }
.hours td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hours td:first-child { font-weight: 700; width: 34%; color: var(--blue-deep); }
.hours tr.today td { background: var(--blue-light); }
.hours tr.today td:first-child::after { content: "Today"; margin-left: 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); vertical-align: middle; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Download card */
.download-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.download-card svg { width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.download-card > div { flex: 1 1 260px; }
.download-card small { display: block; color: var(--muted); font: 500 .8rem/1.4 var(--sans); margin-top: 6px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dbe9f5; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #bcd8ef; padding: 56px 0 28px; font: 500 .9rem/1.6 var(--sans); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; margin: 8px 0; }
.foot-brand b { display: block; color: #fff; font-size: 1.1rem; }
.foot-hours { border-collapse: collapse; width: 100%; }
.foot-hours td { padding: 4px 0; vertical-align: top; }
.foot-hours td:first-child { color: #fff; font-weight: 700; width: 42%; }
.foot-hours tr.today td { color: #fff; }
.foot-hours tr.today td:first-child::after { content: "today"; margin-left: 8px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #8fc1e8; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 5px 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 900px) {
	.section { padding: 56px 0; }
	.hero { padding: 44px 0; }
	.hero .wrap, .split, .split.narrow-first, .split.wide-first { grid-template-columns: 1fr; gap: 36px; }
	.hero-photo { order: -1; max-width: 420px; }
	.hero-photo .badge { left: auto; right: -8px; }
	.trust .wrap, .cards { grid-template-columns: 1fr; }
	.stat-row { grid-template-columns: 1fr 1fr; }
	.foot-grid { grid-template-columns: 1fr; gap: 32px; }
	.menu-btn { display: inline-block; }
	.header-cta { display: none; }
	.brand small { display: none; }
	.brand b { font-size: 1.1rem; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.topbar .wrap { justify-content: center; }
	.topbar .addr { display: none; }
}
