/*
Theme Name: Pure Health Tile wall
Theme URI: https://purehealthwellness.org/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Block theme for Pure Health & Wellness Chiropractic Center, Cibolo, Texas (2026 rebuild, Sierra direction). Named for the wooden letter tiles on their reception wall that spell PURE HEALTH CHIROPRACTIC as a crossword. Light pages, one spruce footer, the logo's leaf green on the buttons, small oak tiles as marks. Zilla Slab + Red Hat Text, self-hosted.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: phw-tilewall
*/

/* ---------- fonts (SIL OFL, latin subset, self-hosted) ---------- */
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/zilla-slab-500.woff2) format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/zilla-slab-600.woff2) format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/red-hat-text-roman.woff2) format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/red-hat-text-italic.woff2) format('woff2'); }

:root {
	/* from their logo: spruce lettering and ring, leaf-green leaves; oak from the letter tiles; plaster from the office walls */
	--ink: #1E2B2B;
	--text: #33403F;
	--mute: #55625F;
	--spruce: #1F5656;
	--spruce-2: #2A6A6A;
	--spruce-deep: #143C3C;
	--spruce-ink: #102E2E;
	--leaf: #6CA23C;
	--leaf-hi: #80B651;
	--leaf-tint: #EEF5E7;
	--oak: #C6A474;
	--oak-edge: #A9864F;
	--oak-ink: #2B2218;
	--plaster: #EEF1F0;
	--plaster-2: #E3E8E6;
	--line: #D7DEDC;
	--field: #74827F;
	--white: #FFFFFF;
	--on-foot: #FFFFFF;
	--on-foot-soft: #C3D6D4;
	--err: #A3261C;
	--display: 'Zilla Slab', Rockwell, Georgia, serif;
	--body: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--r: 4px;
	--tip: 18px;          /* the one rounded corner on buttons and cards: a leaf tip */
	--wrap: 1200px;
	--gut: 24px;
	--pad: max(var(--gut), calc((100% - var(--wrap)) / 2));
	--bar-h: 78px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--spruce); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--spruce-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--spruce); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.35rem); }
h3 { font-size: 1.375rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: var(--ink); font-weight: 650; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.phw-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--spruce); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.phw-skip:focus { top: 12px; color: #fff; }
.phw-ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.phw-small { font-size: .9375rem; color: var(--mute); }

/* the letter tile: an oak square with a slab letter, like the ones on their wall */
.phw-tile { display: inline-grid; place-items: center; position: relative; width: 34px; height: 34px; flex: none; background: var(--oak); border-radius: 3px; box-shadow: inset 0 -2px 0 var(--oak-edge); color: var(--oak-ink); font: 600 1.15rem/1 var(--display); }
.phw-tile small { position: absolute; right: 3px; bottom: 3px; font: 600 .5rem/1 var(--body); }

/* small label above headings, with a blank tile as its mark */
.phw-kicker { display: flex; align-items: center; gap: .6em; margin: 0 0 .9em; color: var(--spruce); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.phw-kicker::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--oak); border-radius: 2px; box-shadow: inset 0 -2px 0 var(--oak-edge); }
.phw-lead { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.55; color: var(--text); max-width: 40em; }

/* ---------- buttons: the logo's leaf green, dark spruce text, one leaf-tip corner ---------- */
.phw-btn, .wp-block-button__link, .nf-form-cont input[type="submit"], .nf-form-cont input[type="button"].phw-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px;
	background: var(--leaf); color: var(--spruce-ink); border: 2px solid var(--leaf); border-radius: var(--r) var(--tip) var(--r) var(--r);
	font: 650 1rem/1.2 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.phw-btn:hover, .wp-block-button__link:hover, .nf-form-cont input[type="submit"]:hover { background: var(--leaf-hi); border-color: var(--leaf-hi); color: var(--spruce-ink); text-decoration: none; }
.phw-btn--line, .is-style-outline .wp-block-button__link { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.phw-btn--line:hover, .is-style-outline .wp-block-button__link:hover { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.phw-btn:focus-visible, .wp-block-button__link:focus-visible { outline-offset: 3px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.wp-block-button { margin: 0; }

/* ---------- header ---------- */
.phw-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.phw-header.is-scrolled { box-shadow: 0 6px 18px rgba(16, 46, 46, .08); }
.phw-bar__in { display: flex; align-items: center; gap: 18px; min-height: var(--bar-h); padding: 0 var(--pad); }
.phw-brand { display: block; flex: none; line-height: 0; }
.phw-brand__logo { display: block; width: 185px; height: 52px; }
.phw-nav { margin-left: auto; }
.phw-bar__cta { display: flex; align-items: center; gap: 16px; flex: none; }
.phw-bar__tel { display: inline-flex; align-items: center; gap: .4em; color: var(--spruce); font-weight: 700; text-decoration: none; white-space: nowrap; }
.phw-bar__tel:hover { text-decoration: underline; }
.phw-bar__book { white-space: nowrap; padding-left: 20px; padding-right: 20px; }
.phw-bar__menu { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: transparent; border: 2px solid var(--spruce); border-radius: var(--r); color: var(--spruce); font: 700 .9375rem/1 var(--body); cursor: pointer; }
.phw-bar__menu .phw-ico--close, .phw-bar__menu[aria-expanded="true"] .phw-ico--menu { display: none; }
.phw-bar__menu[aria-expanded="true"] .phw-ico--close { display: inline; }

.phw-menu { list-style: none; margin: 0; padding: 0; }
.phw-menu--bar { display: flex; align-items: center; gap: 2px; }
.phw-menu--bar > .phw-menu__item { position: relative; display: flex; align-items: center; }
.phw-menu--bar .phw-menu__link { display: block; padding: 10px 7px; color: var(--ink); font-weight: 600; font-size: .96875rem; text-decoration: none; white-space: nowrap; }
.phw-menu--bar .has-sub > .phw-menu__link { padding-right: 2px; }
.phw-menu--bar .phw-menu__link:hover, .phw-menu--bar .is-in > .phw-menu__link { color: var(--spruce); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; text-underline-offset: .5em; }
.phw-menu__toggle { display: inline-grid; place-items: center; width: 26px; height: 36px; padding: 0; background: none; border: 0; color: var(--spruce); cursor: pointer; border-radius: var(--r); }
.phw-menu__toggle .phw-ico { width: 18px; height: 18px; transition: transform .15s; }
.phw-menu__toggle[aria-expanded="true"] .phw-ico { transform: rotate(180deg); }
.phw-menu--bar .phw-sub { position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r) var(--tip) var(--r) var(--r); box-shadow: 0 14px 30px rgba(16, 46, 46, .12); display: none; }
.phw-menu--bar .phw-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.phw-menu--bar .is-open > .phw-sub, .phw-menu--bar .has-sub:hover > .phw-sub { display: block; }
.phw-menu--bar .phw-sub a { display: block; padding: 8px 8px; margin: 0; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.phw-menu--bar .phw-sub li { padding: 0 0 0 0; }
.phw-menu--bar .phw-sub a { padding-left: 8px; }
.phw-menu--bar .phw-sub a:hover, .phw-menu--bar .phw-sub a[aria-current] { color: var(--spruce); text-decoration: underline; background: var(--plaster); }

.phw-panel { border-top: 1px solid var(--line); background: var(--white); padding: 8px var(--pad) 20px; max-height: calc(100vh - var(--bar-h)); overflow-y: auto; }
.phw-menu--panel > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.phw-menu--panel .phw-menu__link { flex: 1; padding: 14px 0; color: var(--ink); font-weight: 650; text-decoration: none; }
.phw-menu--panel .phw-menu__link[aria-current] { color: var(--spruce); text-decoration: underline; }
.phw-menu--panel .phw-menu__toggle { width: 44px; height: 44px; }
.phw-menu--panel .phw-sub { display: none; flex-basis: 100%; list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 3px solid var(--leaf); }
.phw-menu--panel .is-open > .phw-sub { display: block; }
.phw-menu--panel .phw-sub a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; }
.phw-panel__contact { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0 0; }
.phw-panel__contact a { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; }

@media (max-width: 1239px) {
	.phw-nav { display: none; }
	.phw-bar__cta { margin-left: auto; }
	.phw-bar__menu { display: inline-flex; }
}
@media (min-width: 1240px) { .phw-panel { display: none !important; } }
@media (max-width: 767px) {
	:root { --bar-h: 66px; --gut: 18px; }
	.phw-brand__logo { width: 157px; height: 44px; }
	.phw-bar__tel, .phw-bar__book { display: none; }
	.phw-bar__in { gap: 12px; }
}

/* ---------- layout: sections and bands ---------- */
.phw-main { display: block; }
.phw-sec { padding: clamp(56px, 4rem + 2vw, 96px) var(--pad); }
.phw-sec--tight { padding-top: 24px; padding-bottom: clamp(48px, 3rem + 2vw, 80px); }
.phw-sec--plaster { background: var(--plaster); }
.phw-sec--line { border-top: 1px solid var(--line); }
.phw-sec > .wp-block-group, .phw-sec > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.phw-sec__head { max-width: 46rem; margin-bottom: 36px; }
.phw-sec__head p:last-child { margin-bottom: 0; }
.phw-sec__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; max-width: none; }
.phw-sec__head--row > :first-child { max-width: 44rem; }
.phw-more { margin: 1.2em 0 0; font-weight: 700; }
.phw-more a { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.phw-more a:hover { text-decoration: underline; }
.phw-rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.phw-rise.is-in { opacity: 1; transform: none; }

/* two columns: text + photo, prose + aside */
.phw-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.phw-split--even { grid-template-columns: 1fr 1fr; }
.phw-split--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.phw-split h2:not(:first-child), .phw-split h3:not(:first-child) { margin-top: 1.3em; }
@media (max-width: 959px) { .phw-split, .phw-split--even, .phw-split--photo { grid-template-columns: 1fr; gap: 36px; } }
.phw-prose { max-width: 720px; }
.phw-sec > .phw-prose { max-width: none; padding-right: max(0px, calc(100% - 720px)); } /* a reading column, left-aligned with the page */
.phw-prose h4 { font-size: 1.25rem; margin-top: 1.3em; }
.phw-prose h5, .phw-prose h6 { margin: 1.2em 0 .6em; font: 650 1.0625rem/1.6 var(--body); color: var(--ink); letter-spacing: 0; }
.phw-prose h2 { margin-top: 1.4em; }
.phw-prose h2:first-child, .phw-prose h3:first-child { margin-top: 0; }
.phw-prose h3 { margin-top: 1.3em; }

/* ticked lists */
.phw-checks { list-style: none; padding: 0; }
.phw-checks li { position: relative; padding-left: 30px; margin: 0 0 .55em; }
.phw-checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.phw-checks--cols { columns: 2; column-gap: 40px; }
.phw-checks--cols li { break-inside: avoid; }
@media (max-width: 600px) { .phw-checks--cols { columns: 1; } }
.phw-steps { counter-reset: s; list-style: none; padding: 0; }
.phw-steps li { counter-increment: s; position: relative; padding: 0 0 0 52px; margin: 0 0 18px; min-height: 34px; }
.phw-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; background: var(--oak); box-shadow: inset 0 -2px 0 var(--oak-edge); border-radius: 3px; color: var(--oak-ink); font: 600 1.1rem/1 var(--display); }

/* ---------- page head (inner pages): plaster band ---------- */
.phw-head { background: var(--plaster); padding: clamp(32px, 2rem + 2vw, 64px) var(--pad) clamp(40px, 2.5rem + 2vw, 72px); }
.phw-head > * { width: min(100%, var(--wrap)); max-width: none; margin-left: auto; margin-right: auto; }
.phw-head > h1 { padding-right: max(0px, calc(100% - 15em)); }
.phw-head > .phw-lead { padding-right: max(0px, calc(100% - 42em)); }
.phw-head__grid h1 { max-width: 15em; }
.phw-head .phw-lead { margin-bottom: 0; }
.phw-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.phw-head__grid .wp-block-image { margin: 0; }
.phw-head__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r) var(--tip) var(--r) var(--r); display: block; }
.phw-head__grid .wp-element-caption { margin-top: 10px; font-size: .875rem; color: var(--mute); }
@media (max-width: 899px) { .phw-head__grid { grid-template-columns: 1fr; gap: 28px; } }
.phw-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 22px; font-size: .875rem; color: var(--mute); }
.phw-crumbs li:not(:last-child)::after { content: "/"; margin: 0 .55em; color: var(--field); }
.phw-crumbs a { color: var(--mute); }
.phw-crumbs a:hover { color: var(--spruce); }

/* ---------- home hero: headline row, then the specialties rail + crossfading photo ---------- */
.phw-hero { padding: clamp(28px, 1.5rem + 2vw, 56px) var(--pad) 0; background: var(--white); position: relative; isolation: isolate; }
.phw-hero > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.phw-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; padding-bottom: 36px; }
.phw-hero__top h1 { margin: 0; max-width: 13em; }
.phw-hero__top .phw-lead { margin: 0; font-size: 1.125rem; }
.phw-hero__top .wp-block-buttons { margin-top: 20px; }
.phw-hero__body { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding: 44px 0 clamp(44px, 3rem + 1vw, 72px); }
.phw-hero__body::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--plaster); } /* the wall band, full width */
@media (max-width: 959px) {
	.phw-hero__top { grid-template-columns: 1fr; padding-bottom: 28px; }
	.phw-hero__body { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
	.phw-hero__body > :first-child { order: 2; }
}

.phw-rail__label { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.phw-rail ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.phw-rail li { border-bottom: 1px solid var(--line); }
.phw-rail li a { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--spruce); font: 500 1.375rem/1.2 var(--display); text-decoration: none; }
.phw-rail li a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.phw-rail__more { margin: 14px 0 0; font-size: .9375rem; color: var(--mute); }
@media (max-width: 959px) {
	.phw-rail ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; border-top: 0; }
	.phw-rail li { border-top: 1px solid var(--line); border-bottom: 0; }
	.phw-rail li a { font-size: 1.2rem; }
}

.phw-banner__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r) var(--tip) var(--r) var(--r); background: var(--plaster-2); }
.phw-banner__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.phw-banner__slide.is-on { opacity: 1; }
.phw-banner__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phw-banner__slide--storefront img { object-position: 50% 30%; }
.phw-banner__slide--reception img { object-position: 50% 45%; }
.phw-banner__slide--room-a img { object-position: 50% 60%; }
.phw-banner__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.phw-banner__cap { margin: 0; font-size: .9375rem; color: var(--mute); }
.phw-banner__ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.phw-banner__dot { position: relative; width: 32px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.phw-banner__dot::before { content: ""; position: absolute; left: 9px; top: 13px; width: 14px; height: 14px; border-radius: 2px; background: var(--white); border: 2px solid var(--spruce); }
.phw-banner__dot[aria-current]::before { background: var(--oak); border-color: var(--oak-edge); }
.phw-banner__pause { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; padding: 0; background: var(--white); border: 2px solid var(--spruce); border-radius: var(--r) 14px var(--r) var(--r); color: var(--spruce); cursor: pointer; }
.phw-banner__pause .phw-ico { width: 20px; height: 20px; }
.phw-banner__pause .phw-ico--play, .phw-banner__pause.is-paused .phw-ico--pause { display: none; }
.phw-banner__pause.is-paused .phw-ico--play { display: inline; fill: currentColor; }
.phw-banner__pause:hover { background: var(--spruce); color: #fff; }
@media (max-width: 419px) { .phw-rail ul { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .phw-banner__stage { aspect-ratio: 4 / 3; } .phw-banner__cap { font-size: .875rem; } }

/* ---------- facts strip ---------- */
.phw-facts { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.phw-facts li { padding: 4px 28px; border-left: 1px solid var(--line); }
.phw-facts li:first-child { border-left: 0; padding-left: 0; }
.phw-facts strong { display: block; font: 600 1.75rem/1.15 var(--display); color: var(--spruce); margin-bottom: 6px; }
.phw-facts span { font-size: .9375rem; color: var(--mute); }
@media (max-width: 899px) { .phw-facts { grid-template-columns: 1fr 1fr; row-gap: 28px; } .phw-facts li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 479px) { .phw-facts { grid-template-columns: 1fr; } .phw-facts li { border-left: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); } .phw-facts li:last-child { border-bottom: 0; } }

/* ---------- service cards ---------- */
.phw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.phw-card { position: relative; }
.phw-card__img { margin: 0 0 18px; }
.phw-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r) var(--tip) var(--r) var(--r); }
.phw-card__h { margin: 0 0 .35em; font-size: 1.5rem; }
.phw-card__h a { color: var(--spruce); text-decoration: none; }
.phw-card__h a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r) var(--tip) var(--r) var(--r); }
.phw-card:hover .phw-card__h a { text-decoration: underline; text-decoration-thickness: 2px; }
.phw-card:focus-within { outline: 3px solid var(--spruce); outline-offset: 6px; border-radius: var(--r) var(--tip) var(--r) var(--r); }
.phw-card__h a:focus-visible { outline: none; }
.phw-card p { margin: 0; color: var(--text); }
@media (max-width: 959px) { .phw-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .phw-cards { grid-template-columns: 1fr; } }

/* ---------- conditions ---------- */
.phw-condlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.phw-condlist li { border-bottom: 1px solid var(--line); }
.phw-condlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.phw-condlist a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--spruce); border-right: 2px solid var(--spruce); transform: rotate(45deg); flex: none; margin-right: 4px; }
.phw-condlist a:hover { color: var(--spruce); text-decoration: underline; }
@media (max-width: 599px) { .phw-condlist { grid-template-columns: 1fr; } }
.phw-conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.phw-cond { padding: 28px 0; border-top: 1px solid var(--line); }
.phw-cond h2 { font-size: 1.5rem; margin-bottom: .4em; }
.phw-cond p { margin-bottom: 0; }
.phw-cond .phw-more { margin-top: .7em; font-size: .9375rem; }
@media (max-width: 799px) { .phw-conds { grid-template-columns: 1fr; } }

/* ---------- doctors and team ---------- */
.phw-docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.phw-docs__img { margin: 0 0 14px; }
.phw-docs__img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 18%; border-radius: var(--r); }
.phw-docs h3 { margin: 0 0 .25em; font-size: 1.3125rem; }
.phw-docs h3 a { color: var(--spruce); text-decoration: none; }
.phw-docs h3 a:hover { text-decoration: underline; }
.phw-docs__role { margin: 0; font-size: .9375rem; color: var(--mute); }
@media (max-width: 959px) { .phw-docs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459px) { .phw-docs { grid-template-columns: 1fr; } .phw-docs__img img { aspect-ratio: 4 / 3; } }
.phw-docs--full { grid-template-columns: 1fr; gap: 0; }
.phw-docs--full .phw-docs__item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.phw-docs--full .phw-docs__item:first-child { border-top: 0; padding-top: 0; }
.phw-docs--full .phw-docs__img { margin: 0; }
.phw-docs--full h3 { font-size: 1.625rem; scroll-margin-top: calc(var(--bar-h) + 20px); }
.phw-docs--full .phw-docs__role { margin-bottom: 1em; }
.phw-docs--full .phw-docs__text p:last-child { margin-bottom: 0; max-width: 40em; }
@media (max-width: 699px) { .phw-docs--full .phw-docs__item { grid-template-columns: 1fr; gap: 18px; } .phw-docs--full .phw-docs__img { max-width: 260px; } }
.phw-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.phw-team li { padding: 16px 0; border-top: 1px solid var(--line); }
.phw-team strong { display: block; font: 500 1.25rem/1.3 var(--display); color: var(--spruce); }
.phw-team span { display: block; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.phw-team small { display: block; margin-top: 6px; font-size: .9375rem; color: var(--text); }

/* ---------- reviews ---------- */
.phw-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.phw-review { margin: 0; padding: 24px 0 0; border-top: 3px solid var(--leaf); }
.phw-review blockquote { margin: 0 0 14px; }
.phw-review blockquote p { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.phw-review blockquote p::before { content: "“"; } .phw-review blockquote p::after { content: "”"; }
.phw-review figcaption { font-weight: 700; color: var(--ink); }
.phw-review figcaption span { display: block; font-weight: 400; font-size: .875rem; color: var(--mute); }
.phw-reviews__more { margin: 28px 0 0; font-weight: 600; }
.phw-stars { color: var(--oak-edge); letter-spacing: .06em; }
@media (max-width: 899px) { .phw-reviews { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- office photo strip ---------- */
.phw-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.phw-strip li, .phw-strip figure { margin: 0; }
.phw-strip a { display: block; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.phw-strip img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); }
.phw-strip__cap { display: block; margin-top: 10px; font-size: .9375rem; color: var(--mute); }
.phw-strip a:hover .phw-strip__cap { color: var(--spruce); text-decoration: underline; }
@media (max-width: 799px) { .phw-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- photos inside pages (core Image blocks) ---------- */
.phw-fig { margin: 0; }
.phw-fig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r) var(--tip) var(--r) var(--r); }
.phw-fig--tall img { aspect-ratio: 3 / 4; }
.phw-fig .wp-element-caption { margin-top: 10px; font-size: .875rem; color: var(--mute); }
.phw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2em 0; }
.phw-pair .phw-fig img { aspect-ratio: 1 / 1; border-radius: var(--r); }

/* ---------- map + visit ---------- */
.phw-visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.phw-map { margin: 0; }
.phw-map svg { display: block; width: 100%; height: auto; border-radius: var(--r) var(--tip) var(--r) var(--r); background: var(--white); border: 1px solid var(--line); }
.phw-map figcaption { margin-top: 10px; font-size: .875rem; color: var(--mute); }
.phw-addr { font-style: normal; margin: 0 0 .8em; }
.phw-iconline { display: flex; align-items: center; gap: .5em; font-weight: 700; }
.phw-iconline a { text-decoration: none; } .phw-iconline a:hover { text-decoration: underline; }
@media (max-width: 899px) { .phw-visit { grid-template-columns: 1fr; gap: 32px; } }
.phw-towns { columns: 2; column-gap: 32px; }

/* ---------- hours ---------- */
.phw-hours { width: 100%; max-width: 380px; border-collapse: collapse; margin: 0 0 1em; font-size: .9375rem; }
.phw-hours caption { text-align: left; font: 500 1.25rem/1.3 var(--display); color: var(--spruce); margin-bottom: 6px; }
.phw-hours th, .phw-hours td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.phw-hours th { font-weight: 600; color: var(--ink); padding-left: 0; }
.phw-hours td { text-align: right; padding-right: 0; }
.phw-hours .is-closed td { color: var(--mute); }
.phw-hours .is-today th, .phw-hours .is-today td { font-weight: 700; color: var(--spruce-ink); }
.phw-hours .is-today th::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; background: var(--leaf); border-radius: 1px; }

/* ---------- call to action band ---------- */
.phw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(28px, 2rem + 1vw, 48px); background: var(--plaster); border-radius: var(--r) var(--tip) var(--r) var(--r); border-left: 6px solid var(--leaf); }
.phw-cta h2 { margin-bottom: .25em; }
.phw-cta p { margin: 0; max-width: 34em; }
.phw-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.phw-sec--plaster .phw-cta { background: var(--white); }

/* ---------- side cards ---------- */
.phw-aside, .phw-ccard { position: sticky; top: calc(var(--bar-h) + 24px); padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--leaf); border-radius: var(--r) var(--tip) var(--r) var(--r); }
.phw-aside h2 { font-size: 1.375rem; }
.phw-aside .phw-hours { margin: 1em 0 1.2em; }
.phw-aside .phw-btn { width: 100%; }
.phw-ccard__big { margin: 0 0 12px; font: 600 1.75rem/1.2 var(--display); }
.phw-ccard__big a { text-decoration: none; } .phw-ccard__big a:hover { text-decoration: underline; }
.phw-ccard__list { list-style: none; padding: 0; margin: 0 0 18px; }
.phw-ccard__list li { display: flex; gap: 10px; padding: 8px 0; overflow-wrap: anywhere; }
.phw-ccard__list .phw-ico { color: var(--spruce); margin-top: 3px; }
@media (max-width: 959px) { .phw-aside, .phw-ccard { position: static; } }

/* ---------- files (patient forms) ---------- */
.phw-files { list-style: none; padding: 0; margin: 0; }
.phw-files li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.phw-files li:first-child { border-top: 1px solid var(--line); }
.phw-files a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.phw-files a .phw-ico { color: var(--spruce); width: 1.4em; height: 1.4em; }
.phw-files small { font-weight: 400; color: var(--mute); }
.phw-files p { margin: 4px 0 0 calc(1.4em + 10px); font-size: .9375rem; color: var(--mute); }

/* FAQ (core Details block) */
.phw-faq { border-top: 1px solid var(--line); }
.phw-faq details, details.wp-block-details { border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
details.wp-block-details summary { position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; font: 500 1.1875rem/1.35 var(--display); color: var(--spruce); }
details.wp-block-details summary::-webkit-details-marker { display: none; }
details.wp-block-details summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--spruce); border-bottom: 2px solid var(--spruce); transform: rotate(45deg); transition: transform .15s; }
details.wp-block-details[open] summary::after { transform: rotate(-135deg); top: 28px; }
details.wp-block-details > :not(summary) { margin: 0 0 18px; max-width: 44em; }

/* office notice (medical records, licensing) */
.phw-notice { padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.phw-notice h3 { font-size: 1.25rem; }
.phw-notice p:last-child { margin-bottom: 0; }

/* ---------- forms (Ninja Forms, styled by the theme) ---------- */
.phw-form { max-width: 720px; }
.phw-form .nf-form-fields-required { margin: 0 0 18px; font-size: .9375rem; color: var(--mute); }
.phw-form .nf-form-content { padding: 0; max-width: none; }
.phw-form nf-fields-wrap { display: flex; flex-wrap: wrap; gap: 0 20px; }
.phw-form nf-field { display: block; flex: 1 1 100%; }
.phw-form nf-field:has(.phw-half) { flex: 1 1 calc(50% - 10px); }
@media (max-width: 599px) { .phw-form nf-field:has(.phw-half) { flex-basis: 100%; } }
.phw-form .nf-field-container { margin: 0 0 22px; }
.phw-form .field-wrap { display: flex; flex-direction: column; }
.phw-form .nf-field-label { order: 1; margin: 0 0 6px; }
.phw-form .nf-field-element { order: 2; }
.phw-form .nf-field-description { order: 3; margin-top: 6px; font-size: .875rem; color: var(--mute); }
.phw-form .nf-after-field { order: 4; }
.phw-form .nf-field-label label { font-weight: 650; color: var(--ink); font-size: 1rem; }
.phw-form .ninja-forms-req-symbol, .phw-form .nf-form-fields-required .ninja-forms-req-symbol { color: var(--err); }
.phw-form input[type="text"], .phw-form input[type="email"], .phw-form input[type="tel"], .phw-form select, .phw-form textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; background: var(--white); color: var(--ink); border: 1.5px solid var(--field); border-radius: var(--r); font: 400 1rem/1.4 var(--body);
}
.phw-form textarea { min-height: 130px; resize: vertical; }
.phw-form input:focus, .phw-form select:focus, .phw-form textarea:focus { outline: 3px solid var(--spruce); outline-offset: 1px; border-color: var(--spruce); }
.phw-form .nf-error .ninja-forms-field { border-color: var(--err) !important; }
.phw-form .nf-error-msg, .phw-form .nf-error-required-error { color: var(--err); font-size: .9375rem; font-weight: 600; margin-top: 6px; }
.phw-form .nf-form-errors .nf-error-msg { padding: 12px 14px; margin-bottom: 18px; border: 1.5px solid var(--err); border-radius: var(--r); background: #FBEFEE; }
.phw-form .list-radio-wrap ul, .phw-form .list-checkbox-wrap ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.phw-form .list-radio-wrap li, .phw-form .list-checkbox-wrap li { display: flex; align-items: center; gap: 8px; margin: 0 !important; width: auto !important; }
.phw-form .list-radio-wrap li input, .phw-form .list-checkbox-wrap li input { width: 20px !important; height: 20px; margin: 0 !important; accent-color: var(--spruce); flex: none; }
.phw-form .list-radio-wrap li label, .phw-form .list-checkbox-wrap li label { margin: 0 !important; font-weight: 400; color: var(--ink); }
.phw-form .submit-wrap .nf-field-element { order: 1; }
.phw-form input[type="submit"] { width: auto; min-width: 240px; }
.phw-form .nf-pass, .phw-form .nf-field-container .nf-field-element::after { display: none; }
.phw-thanks { padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--leaf); border-radius: var(--r) var(--tip) var(--r) var(--r); background: var(--white); }
.phw-thanks:focus { outline: none; }
.phw-thanks__check { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; background: var(--leaf); border-radius: 50%; color: var(--spruce-ink); }
.phw-thanks__check .phw-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.phw-thanks ol { padding-left: 1.2em; }
.phw-online { margin-top: 18px; font-size: .9375rem; color: var(--mute); }
.phw-confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

/* ---------- blog ---------- */
.phw-query .phw-posts, .phw-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.phw-posts > li { position: relative; }
.phw-posts .wp-block-post-featured-image { margin: 0 0 16px; }
.phw-posts .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r) var(--tip) var(--r) var(--r); display: block; }
.phw-posts .wp-block-post-title { font-size: 1.375rem; margin: 0 0 .3em; }
.phw-posts .wp-block-post-title a { color: var(--spruce); text-decoration: none; }
.phw-posts .wp-block-post-title a:hover { text-decoration: underline; }
.phw-posts .wp-block-post-date { font-size: .875rem; color: var(--mute); margin-bottom: .5em; }
.phw-posts .wp-block-post-excerpt__excerpt { margin: 0; }
.phw-posts .wp-block-post-excerpt__more-text { margin: .6em 0 0; font-weight: 700; }
@media (max-width: 959px) { .phw-query .phw-posts, .phw-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .phw-query .phw-posts, .phw-posts { grid-template-columns: 1fr; } }
.wp-block-query-pagination { display: flex; gap: 24px; margin-top: 40px; font-weight: 700; }
.phw-post-img img { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r) var(--tip) var(--r) var(--r); display: block; margin: 0 0 36px; }
.phw-head .wp-block-post-date { color: var(--mute); font-size: .9375rem; }
.phw-prose img { border-radius: var(--r); }
.phw-prose .wp-block-image, .phw-prose figure { margin: 1.5em 0; }
.phw-links { list-style: none; padding: 0; margin: 0; }
.phw-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.phw-links a { font-weight: 700; }

/* ---------- footer: the one dark band ---------- */
.phw-foot { background: var(--spruce-deep); color: var(--on-foot-soft); font-size: .9375rem; }
.phw-foot a { color: var(--on-foot); text-decoration: none; }
.phw-foot a:hover { text-decoration: underline; }
.phw-foot :focus-visible { outline-color: #fff; }
.phw-foot__in { display: grid; grid-template-columns: 1.35fr 1fr .8fr .8fr; gap: 40px; padding: 64px var(--pad) 44px; }
.phw-foot__name { margin: 0 0 18px; font: 600 1.375rem/1.25 var(--display); color: var(--on-foot); }
.phw-foot__name span { display: block; margin-top: 4px; font: 400 .9375rem/1.4 var(--body); color: var(--on-foot-soft); }
.phw-foot__facts { list-style: none; padding: 0; margin: 0; }
.phw-foot__facts li { display: flex; gap: 10px; padding: 5px 0; }
.phw-foot__facts .phw-ico { color: var(--leaf-hi); margin-top: 3px; }
.phw-foot__h { margin: 0 0 14px; font: 500 1.1875rem/1.3 var(--display); color: var(--on-foot); }
.phw-foot__col ul { list-style: none; padding: 0; margin: 0; }
.phw-foot__col li { padding: 4px 0; }
.phw-foot .phw-hours th, .phw-foot .phw-hours td { border-color: rgba(255, 255, 255, .16); color: var(--on-foot-soft); }
.phw-foot .phw-hours th { color: var(--on-foot); }
.phw-foot .phw-hours .is-today th, .phw-foot .phw-hours .is-today td { color: var(--on-foot); }
.phw-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--pad) 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.phw-foot__base p { margin: 0; }
.phw-credit a, .phw-foot .phw-credit a { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 1023px) { .phw-foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .phw-foot__in { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ---------- phone bottom bar: exactly Call + Book an appointment ---------- */
.phw-callbar { display: none; }
@media (max-width: 767px) {
	html { scroll-padding-bottom: 88px; } /* keyboard focus never lands under the bottom bar */
	body { padding-bottom: 64px; }
	.phw-callbar { display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 46, 46, .08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
	.phw-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; text-decoration: none; border-radius: var(--r) var(--tip) var(--r) var(--r); }
	.phw-foot .phw-callbar__call, .phw-callbar__call { color: var(--spruce); border: 2px solid var(--spruce); background: var(--white); }
	.phw-foot .phw-callbar__book, .phw-callbar__book { color: var(--spruce-ink); background: var(--leaf); border: 2px solid var(--leaf); }
	.phw-callbar a:focus-visible { outline: 3px solid var(--spruce); outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.phw-rise { opacity: 1; transform: none; }
}
