/*
Theme Name: Rehab Jacksonville FL
Author: SEO ALGORITHMS
Author URI: https://seoalgorithms.com/
Theme URI: https://rehabjacksonvillefl.com/
Description: Calm river theme for an independent guide to addiction treatment in Jacksonville, Florida.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rehab-jax
License: GNU General Public License v2 or later
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #123f4b;
	--teal: #0f4c5c;
	--teal-dark: #0a3a47;
	--ink-soft: #3d5a63;
	--accent: #c4502f;
	--accent-hover: #a9421f;
	--accent-soft: #d9603f;
	--sky: #eef4f6;
	--sky-2: #e4eef1;
	--sage: #eef2ea;
	--sage-ink: #4a7356;
	--blush: #fbeeea;
	--line: #d7e2e5;
	--pill: #f1ece4;
	--bg: #ffffff;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 2px 10px rgba(18, 63, 75, .06);
	--shadow-lift: 0 8px 24px rgba(18, 63, 75, .09);
	--font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1200px;
	--gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-soft);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 21px; font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.2;
	padding: 14px 24px; border-radius: var(--radius-sm); text-decoration: none;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary, .is-style-primary .wp-block-button__link, .btn-primary .wp-block-button__link { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary .wp-block-button__link:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-lift); }
.btn-outline, .btn-outline .wp-block-button__link { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover, .btn-outline .wp-block-button__link:hover { background: var(--teal); color: #fff; }
.btn-teal, .btn-teal .wp-block-button__link { background: var(--teal); color: #fff; }
.btn-teal:hover, .btn-teal .wp-block-button__link:hover { background: var(--teal-dark); color: #fff; }
.btn-sm { font-size: 16px; padding: 10px 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(18,63,75,.05); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 52px; height: 24px; color: var(--teal); }
.brand span { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -.01em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent-hover); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--teal); font: 600 15px var(--font-body); }

/* ---------- Wave dividers ---------- */
.wave-line { display: block; width: 100%; height: 22px; color: var(--line); }
.wave-line path { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Homepage: hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 560px; display: flex; align-items: center; background: #dfe9ec url(assets/images/hero-dock.webp) right center / cover no-repeat; padding: 72px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.7) 38%, rgba(255,255,255,0) 62%); }
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 19px; color: var(--ink); max-width: 470px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.crisis-line { font-size: 15px; color: var(--ink); font-weight: 500; margin: 0; }
.crisis-line a { color: var(--ink); text-decoration: none; font-weight: 700; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; width: 100%; color: #fff; }

/* ---------- Trust strip ---------- */
.trust { background: #fafcfc; padding: 22px 0 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { text-align: center; padding: 6px 18px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { display: block; width: 38px; height: 38px; margin: 0 auto 10px; color: var(--teal); }

/* ---------- Section shells ---------- */
.band { padding: 72px 0; }
.band-sky { background: var(--sky); }
.band-sage { background: var(--sage); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head p { font-size: 18px; color: var(--ink); margin: 0; }

/* ---------- Tonight ---------- */
.tonight { padding: 36px 0 44px; }
.tonight h2 { text-align: center; font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 22px; }
.tonight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tonight-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; line-height: 1.4; transition: box-shadow .2s ease, border-color .2s ease; }
.tonight-card:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
.tonight-card strong { font-weight: 700; display: block; }
.tonight-card .ic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tonight-card .ic svg { width: 28px; height: 28px; }
.tc-911 { background: var(--blush); border-color: #f2d9d1; }
.tc-911 .ic { background: var(--accent); }
.tc-988 { background: var(--sky); }
.tc-988 .ic { background: var(--teal); }
.tc-detox { background: var(--sage); }
.tc-detox .ic { background: transparent; color: var(--sage-ink); }
.tc-detox .ic svg { width: 46px; height: 46px; }

/* ---------- Levels of care ---------- */
.levels { padding: 60px 0 0; }
.levels-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.level-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px 24px; text-align: center; text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.level-card:hover { border-color: #b9ced3; box-shadow: var(--shadow-lift); color: var(--ink-soft); }
.level-card svg { width: 52px; height: 52px; color: var(--teal); margin: 0 auto 14px; display: block; }
.level-card h3 { font-size: 19px; margin-bottom: 8px; }
.level-card p { font-size: 15px; line-height: 1.5; margin: 0; }
.levels-link { text-align: center; margin: 26px 0 0; font-family: var(--font-display); font-size: 18px; }
.levels .wave-line { margin-top: 22px; }

/* ---------- Featured / sponsored ---------- */
.featured { padding: 40px 0; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.featured-body { padding: 30px 36px; align-self: center; }
.pill { display: inline-block; background: var(--pill); color: var(--ink); font-size: 14px; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.featured-body h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 8px; }
.featured-services { font-size: 17px; color: var(--ink); margin-bottom: 18px; }
.featured-note { font-size: 13.5px; color: #5b7178; margin: 18px 0 0; line-height: 1.5; }
.sponsor-admin-note { margin-top: 12px; padding: 10px 14px; border: 1.5px dashed var(--accent-soft); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); background: #fff8f5; }

/* ---------- Areas + paying ---------- */
.areas-paying { padding: 0; }
.ap-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.ap-areas { background: var(--sky); padding: 40px 36px 36px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.ap-paying { background: var(--sage); padding: 40px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 40px 36px; }
.ap-grid h2 { font-size: clamp(26px, 2.6vw, 32px); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-box img { display: block; width: 100%; height: auto; }
.map-pin { position: absolute; transform: translate(-6px, -100%); display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.map-pin svg { width: 18px; height: 24px; color: var(--teal); flex-shrink: 0; }
.map-pin:hover { color: var(--accent-hover); }
.area-chips { display: none; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; gap: 8px; }
.area-chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 15px; color: var(--ink); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.pay-card:hover { box-shadow: var(--shadow-lift); color: var(--ink-soft); }
.pay-card svg { width: 46px; height: 46px; color: var(--teal); display: block; margin: 0 auto 12px; }
.pay-card h3 { font-size: 18px; margin-bottom: 8px; }
.pay-card p { font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ---------- Vetting ---------- */
.vetting { padding: 0; background: var(--sky); }
.vet-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.vet-copy { padding: 52px 40px 48px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.vet-copy h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 20px; }
.vet-list { list-style: none; counter-reset: vet; padding: 0; margin: 0; }
.vet-list li { counter-increment: vet; position: relative; padding: 0 0 0 42px; margin: 0 0 14px; font-size: 17px; color: var(--ink); line-height: 1.5; }
.vet-list li::before { content: counter(vet); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 14px/28px var(--font-body); text-align: center; }
.vet-photo { position: relative; min-height: 340px; }
.vet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vetting .wave-line { color: var(--line); background: var(--sky); }

/* ---------- Families ---------- */
.families { padding: 44px 0; background: var(--sky-2); position: relative; overflow: hidden; }
.fam-grid { display: grid; grid-template-columns: 170px repeat(3, 1fr) 90px; gap: 20px; align-items: start; }
.fam-grid h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 6px; }
.fam-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.fam-card:hover { box-shadow: var(--shadow-lift); color: var(--ink-soft); }
.fam-card svg { flex: 0 0 44px; width: 44px; height: 44px; color: var(--teal); }
.fam-card h3 { font-size: 18px; margin-bottom: 6px; }
.fam-card p { font-size: 14.5px; line-height: 1.5; margin: 0; }
.marsh { width: 90px; height: 120px; color: #9db6a4; align-self: end; }

/* ---------- FAQ + final CTA ---------- */
.faq-cta { background: #f6f9fa; }
.faq { position: relative; padding: 44px 0 40px; }
.faq-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.faq h2 { font-size: clamp(26px, 2.6vw, 32px); }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 12px 44px 12px 18px; position: relative; font-size: 16px; color: var(--ink); font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list .answer { padding: 0 18px 16px; font-size: 16px; }
.final-cta { position: relative; background: var(--sage) url(assets/images/river-landscape.webp) center bottom / cover no-repeat; text-align: center; padding: 64px 0 72px; }
.final-cta h2 { margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 30px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 30px; }
.footer-row a { text-decoration: none; color: var(--teal); }
.footer-row a:hover { text-decoration: underline; }
.footer-crisis { color: var(--ink); font-weight: 600; }
.footer-legal { text-align: center; color: #5b7178; font-size: 13.5px; margin: 14px auto 0; max-width: 820px; line-height: 1.5; }

/* ---------- Inner pages (block content) ---------- */
.page-main { padding: 0 0 64px; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.page-hero { background: var(--sky); padding: 56px var(--gutter) 46px; margin-bottom: 40px; }
.page-hero > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); max-width: 860px; margin: 0 auto 12px; }
.breadcrumbs a { color: var(--teal); }

/* ---------- Mobile sticky help bar ---------- */
.help-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav ul { gap: 18px; }
	.levels-grid { grid-template-columns: repeat(3, 1fr); }
	.fam-grid { grid-template-columns: repeat(3, 1fr); }
	.fam-grid h2 { grid-column: 1 / -1; }
	.marsh { display: none; }
}
@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lift); margin: 0; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
	.main-nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.header-cta { display: none; }
	.ap-grid, .vet-grid { grid-template-columns: 1fr; }
	.ap-areas, .ap-paying, .vet-copy { padding-left: var(--gutter); padding-right: var(--gutter); }
	.featured-card { grid-template-columns: 1fr; }
	.featured-card img { min-height: 220px; max-height: 300px; }
	.faq-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
	body { font-size: 17px; padding-bottom: 64px; }
	:root { --gutter: 16px; }
	.brand span { font-size: 21px; }
	.brand svg { width: 40px; }
	.hero { min-height: 0; padding: 40px 0 90px; background-position: 72% center; }
	.hero::before { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.82) 60%, rgba(255,255,255,.55) 100%); }
	.hero .lede { font-size: 17px; }
	.hero-actions .btn { width: 100%; }
	.trust-grid { grid-template-columns: 1fr 1fr; row-gap: 18px; }
	.trust-item:nth-child(3) { border-left: 0; }
	.tonight-grid, .pay-grid, .fam-grid { grid-template-columns: 1fr; }
	.levels-grid { grid-template-columns: 1fr 1fr; }
	.level-card:last-child { grid-column: 1 / -1; }
	.featured-body { padding: 24px 20px; }
	.map-pin { display: none; }
	.area-chips { display: flex; }
	.band { padding: 52px 0; }
	.help-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(18,63,75,.08); padding: 8px 12px; gap: 8px; }
	.help-bar a { flex: 1; font-size: 15px; padding: 11px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Additions ---------- */
.vet-photo img { object-position: center 85%; }
.vet-more { margin: 18px 0 0 42px; font-family: var(--font-display); font-size: 17px; }
.crisis-box { background: var(--blush); border: 1px solid #f2d9d1; border-radius: var(--radius); padding: 14px 18px; color: var(--ink); font-size: 16px; }
.featured-inline { padding: 8px 0 24px; }

/* ---------- Fidelity pass 1 ---------- */
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); }
.hero .lede { font-size: 20px; max-width: 520px; }
.hero { min-height: 600px; }

.trust { background: #fff; padding: 34px 0 44px; }
.trust-item { font-size: 17.5px; padding: 10px 24px; }
.trust-item svg { width: 54px; height: 54px; margin-bottom: 14px; }

.tonight { padding: 52px 0 60px; }
.tonight h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 30px; }
.tonight-grid { gap: 26px; }
.tonight-card { font-size: 19.5px; padding: 30px 28px; gap: 22px; }
.tonight-card .ic { flex-basis: 72px; width: 72px; height: 72px; }
.tonight-card .ic svg { width: 36px; height: 36px; }
.tc-detox .ic { background: transparent; }
.tc-detox .ic svg { width: 62px; height: 62px; }

.levels { padding: 72px 0 0; }
.levels .section-head h2 { font-size: clamp(32px, 3.6vw, 46px); }
.levels .section-head p { font-size: 19px; }
.level-card { padding: 32px 20px 30px; }
.level-card svg { width: 66px; height: 66px; margin-bottom: 18px; }
.level-card h3 { font-size: 22px; }
.level-card p { font-size: 16px; }

.featured { position: relative; padding: 56px 0; background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.featured-body { padding: 40px 44px; }
.featured-body h2 { font-size: clamp(30px, 3.4vw, 44px); }
.featured-services { font-size: 20px; }
.featured-body .btn { font-size: 19px; padding: 16px 30px; }
.featured-note { font-size: 15px; }
.sponsor-admin-note { font-size: 13px; padding: 6px 10px; margin-top: 10px; }

.ap-areas, .ap-paying { padding-top: 52px; padding-bottom: 52px; }
.ap-grid h2 { font-size: clamp(30px, 3vw, 38px); }
.ap-areas { display: flex; flex-direction: column; }
.map-box { flex: 1; min-height: 360px; }
.map-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pin { font-size: 15.5px; z-index: 1; }
.map-pin.pin-left { transform: translate(calc(-100% + 6px), -100%); flex-direction: row-reverse; }
.pay-card { padding: 30px 18px; }
.pay-card svg { width: 58px; height: 58px; }
.pay-card h3 { font-size: 20px; }
.pay-card p { font-size: 15.5px; }

.vet-copy { padding-top: 64px; padding-bottom: 60px; }
.vet-copy h2 { font-size: clamp(32px, 3.4vw, 44px); max-width: 520px; }
.vet-list li { font-size: 19px; margin-bottom: 18px; }
.vet-list li::before { width: 32px; height: 32px; line-height: 32px; font-size: 15px; }
.vet-photo { min-height: 460px; }
.vetting > .wave-line { display: none; }

.families { padding: 64px 0 70px; }
.families::before, .families::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 22' preserveAspectRatio='none'%3E%3Cpath d='M0 11 C 120 1, 240 21, 360 11 S 600 1, 720 11 S 960 21, 1080 11 S 1320 1, 1440 11' fill='none' stroke='%23c5d6db' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.families::before { top: 10px; }
.families::after { bottom: 10px; }
.fam-grid { grid-template-columns: 190px repeat(3, 1fr) 110px; gap: 24px; }
.fam-grid h2 { font-size: clamp(32px, 3.4vw, 44px); }
.fam-card { padding: 28px 22px; gap: 18px; }
.fam-card svg { flex-basis: 58px; width: 58px; height: 58px; }
.fam-card h3 { font-size: 20px; }
.fam-card p { font-size: 15.5px; }
.marsh { width: 110px; height: 150px; }

.faq { padding: 60px 0 56px; background: linear-gradient(90deg, rgba(246,249,250,0) 0%, #f6f9fa 22%, #f6f9fa 78%, rgba(246,249,250,0) 100%), url(assets/images/river-landscape.webp) center bottom / cover no-repeat; }
.faq h2 { font-size: clamp(30px, 3.2vw, 40px); }
.faq-list summary { font-size: 17.5px; padding: 15px 48px 15px 20px; }
.final-cta { background: var(--sage); padding: 48px 0 54px; position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: url(assets/images/river-landscape.webp) center 80% / cover no-repeat; opacity: .55; z-index: 0; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%); }
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(32px, 3.6vw, 46px); }
.final-cta .btn { font-size: 19px; padding: 16px 32px; }

@media (max-width: 960px) {
	.map-box { min-height: 0; }
	.map-box img { position: static; height: auto; }
	.vet-photo { min-height: 300px; }
}
@media (max-width: 720px) {
	.tonight-card { font-size: 17px; padding: 20px; }
	.tonight-card .ic { flex-basis: 56px; width: 56px; height: 56px; }
	.families::before, .families::after { display: none; }
	.faq { background: #f6f9fa; }
	.final-cta::after { -webkit-mask-image: none; mask-image: none; opacity: .3; }
}

/* ---------- Fidelity pass 2 ---------- */
.hero-copy { max-width: 800px; }
.hero .btn { font-size: 19px; padding: 16px 28px; }
.trust-item + .trust-item { border-left-color: #c5d6db; }
.trust { padding: 40px 0 50px; }
.tc-988 .ic { background: #2a7fa6; }
.levels-grid { gap: 14px; }
.level-card { padding: 30px 14px 28px; }
.level-card h3 { font-size: 20.5px; }
.featured-services { color: var(--ink); font-weight: 500; }
.pay-card svg path:first-child { fill: rgba(15,76,92,.12); }
.vetting > .wave-line { display: block; }
.families { background: var(--sky); }
.fam-grid { grid-template-columns: auto repeat(3, 1fr); gap: 22px; position: relative; }
.fam-grid h2 { white-space: nowrap; margin-right: 8px; }
.fam-card h3 { font-size: 19px; }
.marsh { position: absolute; right: -96px; bottom: -40px; }
.faq { background: linear-gradient(90deg, rgba(246,249,250,0) 0%, rgba(246,249,250,.92) 20%, #f6f9fa 30%, #f6f9fa 70%, rgba(246,249,250,.92) 80%, rgba(246,249,250,0) 100%), url(assets/images/river-landscape.webp) center 70% / cover no-repeat; }
@media (max-width: 1360px) { .marsh { display: none; } }
@media (max-width: 1100px) { .fam-grid h2 { white-space: normal; } }

/* ---------- Fidelity pass 3 ---------- */
.hero h1 { font-weight: 500; letter-spacing: -.005em; }
.trust { padding: 52px 0 60px; }
.trust-item { font-size: 19px; }
.trust-item svg { width: 66px; height: 66px; margin-bottom: 16px; }
.tonight-card { font-size: 20.5px; }
.tonight-card .ic { flex-basis: 80px; width: 80px; height: 80px; }
.tonight-card .ic svg { width: 40px; height: 40px; }
.tc-detox .ic svg { width: 70px; height: 70px; }
.levels .section-head h2 { margin-bottom: 6px; }
.level-card h3 { font-weight: 600; }
.level-card svg { width: 72px; height: 72px; }
.featured-card { grid-template-columns: 1.15fr 1fr; }
.featured-services { font-size: 21px; }
.featured-body .btn { font-size: 20px; padding: 17px 34px; }
.map-box { border: 0; border-radius: 0; background: transparent; margin: 0 -36px -52px max(-24px, calc((100vw - var(--wrap)) / -2 - 24px)); }
.fam-card svg { flex-basis: 64px; width: 64px; height: 64px; }
.fam-card { padding: 32px 24px; }
.families::after { height: 30px; background-size: 100% 100%; opacity: 1; }
.faq { background: linear-gradient(90deg, rgba(246,249,250,0) 0%, rgba(246,249,250,0) 14%, #f6f9fa 27%, #f6f9fa 73%, rgba(246,249,250,0) 86%, rgba(246,249,250,0) 100%), url(assets/images/river-landscape.webp) center 75% / cover no-repeat; }
.final-cta::after { opacity: .85; }
@media (max-width: 960px) { .map-box { margin: 0; } }

.pain { padding: 64px 0; background: #fff; }
.pain-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.pain h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.pain-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pain-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18.5px; }
.pain-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--accent-soft); border-bottom: 2px solid var(--accent-soft); border-radius: 0 0 0 6px; transform: rotate(-20deg); }
.pain-close { font-family: var(--font-display); font-size: 21px; color: var(--teal); line-height: 1.4; margin: 0; }
.standard { padding: 64px 0 56px; background: #fff; }
.std-grid { list-style: none; counter-reset: std; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--teal); }
.std-grid li { counter-increment: std; padding: 22px 22px 6px 0; }
.std-grid li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.std-grid h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.std-grid h3::before { content: counter(std) ". "; color: var(--accent); }
.std-grid p { font-size: 16px; margin: 0; }
.std-link { text-align: center; margin: 26px 0 0; font-family: var(--font-display); font-size: 18px; }
.cta-close { margin: 18px 0 8px; color: var(--ink); font-weight: 600; font-size: 16.5px; }
.cta-alt { margin: 0; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; font-family: var(--font-display); font-size: 17px; }
@media (max-width: 960px) {
	.pain-grid { grid-template-columns: 1fr; gap: 12px; }
	.std-grid { grid-template-columns: 1fr 1fr; }
	.std-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
	.std-grid { grid-template-columns: 1fr; }
	.std-grid li, .std-grid li + li { padding: 16px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Accessibility + mobile QA pass ---------- */
/* Anchors and keyboard focus stop clear of the sticky header and the help bar. */
html { scroll-padding-top: 88px; }

/* Touch targets: 44px minimum (no layout change: min-height or padding on inline links). */
.btn, .wp-block-button__link { min-height: 44px; }
.brand { min-height: 44px; }
.nav-toggle { min-width: 44px; min-height: 44px; }
@media (min-width: 961px) {
	.main-nav a { padding: 13px 0; }
}
/* Block buttons: the colour belongs on the link, not its square wrapper. */
.wp-block-button.btn-primary, .wp-block-button.btn-primary:hover,
.wp-block-button.btn-outline, .wp-block-button.btn-outline:hover,
.wp-block-button.btn-teal, .wp-block-button.btn-teal:hover { background: none; box-shadow: none; }

@media (max-width: 1100px) {
	.fam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.main-nav { max-height: calc(100vh - 136px); overflow-y: auto; }
	.tonight-grid { grid-template-columns: minmax(0, 1fr); }
	/* Tablets get the 44px area chips instead of the small map pins. */
	.map-pin { display: none; }
	.area-chips { display: flex; }
	.area-chips a { display: inline-flex; align-items: center; min-height: 44px; }
	.levels-link a, .std-link a, .vet-more a, .cta-alt a:not(.btn), .footer-legal a { padding: 13px 0; }
	.vet-more a { padding: 14px 0; }
	.breadcrumbs a { padding: 13px 4px; margin: 0 -4px; }
	.footer-row { gap: 0 24px; }
	.footer-row > a { display: inline-flex; align-items: center; min-height: 44px; }
	/* Crisis and center numbers inside sentences: bigger hit area, same line layout. */
	a[href^="tel:"]:not(.btn):not(.tonight-card) { padding: 13px 8px; margin: 0 -8px; }
}
@media (max-width: 720px) {
	html { scroll-padding-bottom: 84px; }
	body { padding-bottom: 72px; }
	.site-header .wrap { gap: 12px; }
	.brand { flex-shrink: 1; min-width: 0; }
	.brand span { line-height: 1.15; }
	.nav-toggle { flex-shrink: 0; }
	.fam-grid { grid-template-columns: minmax(0, 1fr); }
	.fam-grid h2 { white-space: normal; }
	.help-bar a { min-width: 0; min-height: 44px; padding: 8px; line-height: 1.15; text-align: center; }
}
/* Short screens (phones held sideways): sticky bars would cover too much of the page. */
@media (max-width: 960px) and (max-height: 480px) {
	.site-header { position: relative; }
	.main-nav { max-height: none; }
	.help-bar { position: static; box-shadow: none; }
	body { padding-bottom: 0; }
	html { scroll-padding-top: 8px; scroll-padding-bottom: 8px; }
}
