/*
Theme Name: Huddleston Chiropractic: Gauge
Theme URI: https://testhuddlestonchiropractic.dependentmedia.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Block theme for Huddleston Chiropractic (Dr. Richard Huddleston, D.C., Redmond, Oregon), built 2026-11 to the Sierra direction: light, photo-led, restrained. Gonstead precision carries the identity: the tick scale of the Nervo-Scope's dial under photos and labels, a centred plumb line through the home hero, the logo's navy and greys and nothing else, Urbanist + Inter. Only the home banner moves. Core blocks + Ninja Forms; no page builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: hud-gauge
*/

/* ---------- fonts (self-hosted, latin; Google Fonts builds trimmed by tools/make-fonts.py, OFL) ---------- */
@font-face { font-family: Urbanist; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/urbanist-latin-500-800.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin-400-700.woff2) format("woff2"); }

/* ---------- tokens: the logo's navy and its two greys, nothing else ---------- */
:root {
	--navy: #002C6C;        /* logo navy: headings, links, buttons (14.3:1 on white) */
	--navy-deep: #001C46;   /* footer, button hover */
	--grey: #5C5C5C;        /* logo dark grey: secondary text (6.7:1 on white, 6.0:1 on the band) */
	--steel: #848484;       /* logo light grey: ticks, rules, borders only (not text) */
	--text: #24282E;
	--line: #D9DBDE;
	--band: #F2F3F4;        /* pale grey bands */
	--white: #FFFFFF;
	--head: Urbanist, "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gut: clamp(18px, 4vw, 40px);
	--r: 14px;              /* the logo's swoosh: buttons round two opposite corners by this much */
	--bar-h: 0px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.45vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p, ul, ol, dl, blockquote, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hud-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.hud-skip:focus { top: 10px; color: #fff; }
.hud-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.hud-ico--play, .hud-ico--fb { fill: currentColor; stroke: none; }

/* ---------- the scale: the Nervo-Scope dial's ticks, zero tick in navy ---------- */
.hud-scale { display: block; height: 14px; border-top: 1px solid var(--steel);
	background:
		linear-gradient(var(--navy), var(--navy)) 50% 0 / 2px 14px no-repeat,
		repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 48px) 0 0 / 100% 9px no-repeat,
		repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat; }
.hud-eyebrow, .is-style-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 1rem; font: 600 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.hud-eyebrow::before, .is-style-eyebrow::before { content: ""; flex: none; width: 33px; height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 12'%3E%3Cg fill='%23848484'%3E%3Crect x='0' y='7' width='1' height='5'/%3E%3Crect x='5' y='7' width='1' height='5'/%3E%3Crect x='10' y='7' width='1' height='5'/%3E%3Crect x='22' y='7' width='1' height='5'/%3E%3Crect x='27' y='7' width='1' height='5'/%3E%3Crect x='32' y='7' width='1' height='5'/%3E%3C/g%3E%3Crect x='15.5' y='0' width='2' height='12' fill='%23002C6C'/%3E%3C/svg%3E") no-repeat; }
.hud-eyebrow--center { justify-content: center; }
.hud-lede { font-size: clamp(1.125rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 62ch; }

/* ---------- buttons: navy, the logo swoosh's two opposite rounded corners ---------- */
.hud-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.5rem;
	font: 600 1rem/1.2 var(--body); letter-spacing: .005em; text-decoration: none; cursor: pointer;
	background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 0 var(--r) 0 var(--r); transition: background-color .15s, color .15s, border-color .15s, border-radius .15s; }
.hud-btn:hover, .wp-block-button__link:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; text-decoration: none; border-radius: var(--r) 0 var(--r) 0; }
.hud-btn--line, .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); }
.hud-btn--line:hover, .is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.hud-btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.hud-btn--light:hover { background: transparent; border-color: #fff; color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.hud-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hud-more { margin: .25rem 0 0; font-weight: 600; }
.hud-more a, .hud-quote figcaption a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hud-more a:hover, .hud-quote figcaption a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.hud-header, header.wp-block-template-part { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.hud-bar__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); min-height: 78px; display: flex; align-items: center; gap: 20px; }
.hud-brand { text-decoration: none; flex: none; margin-right: auto; }
.hud-lockup { display: flex; align-items: center; gap: 12px; }
.hud-lockup__mark { width: 45px; height: 48px; }
.hud-lockup__text { display: flex; flex-direction: column; line-height: 1.05; }
.hud-lockup__name { font: 700 1.3rem/1.05 var(--head); color: var(--navy); letter-spacing: -0.005em; }
.hud-lockup__tag { margin-top: 4px; font: 500 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.hud-nav { display: none; }
.hud-menu { list-style: none; margin: 0; padding: 0; }
.hud-menu--bar { display: flex; align-items: center; gap: 2px; }
.hud-menu--bar > li { position: relative; margin: 0; }
.hud-menu--bar .hud-menu__link, .hud-menu--bar .hud-menu__toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 11px; font: 500 .98rem/1.2 var(--body); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.hud-menu--bar .hud-menu__toggle .hud-ico { width: 18px; height: 18px; transition: transform .15s; }
.hud-menu--bar .hud-menu__toggle[aria-expanded="true"] .hud-ico { transform: rotate(180deg); }
.hud-menu--bar .hud-menu__link:hover, .hud-menu--bar .hud-menu__toggle:hover { color: var(--navy); }
.hud-menu--bar .is-in > .hud-menu__link, .hud-menu--bar .is-in > .hud-menu__toggle { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
/* dropdown: text sits under the parent's text, opens to the right, with a hover bridge */
.hud-menu--bar .hud-sub { position: absolute; left: 0; top: 100%; min-width: 250px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--navy); box-shadow: 0 14px 30px rgba(0, 28, 70, .1); display: none; }
.hud-menu--bar .hud-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hud-menu--bar .has-sub:hover > .hud-sub, .hud-menu--bar .hud-menu__toggle[aria-expanded="true"] + .hud-sub { display: block; }
.hud-menu--bar .hud-sub li { margin: 0; }
.hud-menu--bar .hud-sub a { display: block; padding: 9px 11px; color: var(--text); text-decoration: none; font-size: .98rem; }
.hud-menu--bar .hud-sub a:hover, .hud-menu--bar .hud-sub a[aria-current] { color: var(--navy); background: var(--band); }
.hud-bar__cta { display: flex; align-items: center; gap: 14px; }
.hud-bar__tel { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.hud-bar__tel:hover { text-decoration: underline; }
.hud-bar__book { display: none; white-space: nowrap; }
.hud-bar__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px; font: 600 1rem/1 var(--body); color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 0 var(--r) 0 var(--r); cursor: pointer; }
.hud-bar__menu .hud-ico--close, .hud-bar__menu[aria-expanded="true"] .hud-ico--menu { display: none; }
.hud-bar__menu[aria-expanded="true"] .hud-ico--close { display: inline; }
.hud-panel { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 78px); overflow-y: auto; }
.hud-panel > nav, .hud-panel__contact { max-width: 1320px; margin: 0 auto; padding: 8px var(--gut); }
.hud-menu--panel > li { margin: 0; border-bottom: 1px solid var(--line); }
.hud-menu--panel .hud-menu__link, .hud-menu--panel .hud-menu__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 52px; padding: 10px 0; font: 600 1.1rem/1.2 var(--head); color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.hud-menu--panel .hud-menu__toggle[aria-expanded="true"] .hud-ico { transform: rotate(180deg); }
.hud-menu--panel .hud-sub { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: none; }
.hud-menu--panel .hud-menu__toggle[aria-expanded="true"] + .hud-sub { display: block; }
.hud-menu--panel .hud-sub a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; }
.hud-menu--panel [aria-current] { color: var(--navy); font-weight: 600; }
.hud-panel__contact { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 18px; }
.hud-panel__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
@media (max-width: 420px) { .hud-lockup__name { font-size: 1.08rem; } .hud-lockup__tag { font-size: .66rem; letter-spacing: .1em; } .hud-lockup__mark { width: 38px; height: 40px; } .hud-lockup { gap: 9px; } .hud-bar__menu { padding: 8px 11px; } }
@media (min-width: 760px) { .hud-bar__tel, .hud-bar__book { display: inline-flex; } }
@media (min-width: 760px) and (max-width: 899px) { .hud-bar__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hud-bar__tel { min-width: 44px; min-height: 44px; justify-content: center; } }
@media (min-width: 1240px) {
	.hud-nav { display: block; }
	.hud-bar__menu, .hud-panel { display: none !important; }
	.hud-bar__in { gap: 14px; }
}

/* ---------- page frame ---------- */
.hud-main { display: block; }
.hud-sec { padding: clamp(56px, 7vw, 104px) var(--gut); }
.hud-sec > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.hud-sec--band { background: var(--band); }
.hud-sec--tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.hud-sec--flush-top { padding-top: 0; }
.hud-sec--rule { position: relative; }
.hud-head { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.hud-head > * { max-width: var(--wrap); }
.hud-head h1 { max-width: 22ch; margin-left: 0; }
.hud-head .hud-lede { margin-left: 0; margin-bottom: 0; }
.hud-head .hud-crumbs, .hud-head .hud-eyebrow, .hud-head p { margin-left: auto; margin-right: auto; }
.hud-head > h1, .hud-head > .hud-lede, .hud-head > .wp-block-heading { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.hud-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 1.4rem; padding: 0; font-size: .9rem; color: var(--grey); }
.hud-crumbs li { margin: 0; }
.hud-crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--steel); }
.hud-crumbs a { color: var(--grey); }
.hud-prose > * { max-width: 760px; }
.hud-prose h2 { margin-top: 1.8em; }
.hud-prose h3 { margin-top: 1.5em; }
.hud-prose > *:first-child { margin-top: 0; }

/* two columns of core blocks */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-column { flex: 1 1 320px; min-width: 0; }
.wp-block-column > *:last-child { margin-bottom: 0; }
.wp-block-image { margin: 0 0 1.2em; }
.wp-block-image img { width: 100%; }
.wp-block-image figcaption, .hud-fig figcaption { margin-top: 10px; font-size: .875rem; color: var(--grey); }
.hud-fig { margin: 0; }
.hud-fig .hud-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hud-fig--tall .hud-img { aspect-ratio: 4 / 5; }
.hud-fig--wide .hud-img { aspect-ratio: 16 / 10; }
.wp-block-image.is-style-scaled { position: relative; }
.wp-block-image.is-style-scaled img { border-bottom: 1px solid var(--steel); }
.wp-block-image.is-style-scaled::after { content: ""; display: block; height: 13px;
	background:
		linear-gradient(var(--navy), var(--navy)) 50% 0 / 2px 13px no-repeat,
		repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 48px) 0 0 / 100% 9px no-repeat,
		repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat; }
.wp-block-separator { border: 0; height: 14px; margin: 2.5rem auto; max-width: var(--wrap);
	border-top: 1px solid var(--steel);
	background: linear-gradient(var(--navy), var(--navy)) 50% 0 / 2px 14px no-repeat, repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 48px) 0 0 / 100% 7px no-repeat; }
.wp-block-list li::marker { color: var(--steel); }

/* ---------- home hero: centred on a plumb line, banner beneath ---------- */
.hud-hero { padding: clamp(28px, 4vw, 56px) var(--gut) clamp(48px, 6vw, 88px); text-align: center; }
.hud-hero > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.hud-hero::before { content: ""; display: block; width: 1px; height: clamp(16px, 2.4vw, 28px); margin: 0 auto 16px; background: var(--navy); }
.hud-hero .hud-eyebrow { justify-content: center; }
.hud-hero h1 { max-width: 19ch; margin-bottom: .45em; }
.hud-hero .hud-lede { max-width: 60ch; margin-bottom: 0; }
.hud-hero .wp-block-buttons { justify-content: center; margin-top: 1.75rem; }
.hud-hero__note { margin: 1rem auto 0; font-size: .9375rem; color: var(--grey); }
.hud-hero .hud-banner { max-width: 1080px; margin-top: 0; text-align: left; }
.hud-hero .hud-banner::before { content: ""; display: block; width: 1px; height: clamp(24px, 3vw, 40px); margin: 14px auto 0; background: var(--navy); }
.hud-banner { position: relative; }
.hud-banner__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--band); }
.hud-banner__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hud-banner__slide.is-on { opacity: 1; }
.hud-banner__slide img { width: 100%; height: 100%; object-fit: cover; }
.hud-banner__slide--room img { object-position: 50% 62%; }
.hud-banner__slide--window img { object-position: 50% 45%; }
.hud-banner__slide--desk img { object-position: 50% 58%; }
.hud-banner .hud-scale { border-top: 0; }
.hud-banner__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; }
.hud-banner__cap { margin: 0; font-size: .9375rem; color: var(--grey); }
.hud-banner__ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.hud-banner__dot { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hud-banner__dot span { display: block; width: 3px; height: 16px; background: var(--steel); transition: height .2s, background-color .2s; }
.hud-banner__dot[aria-current="true"] span { height: 28px; background: var(--navy); }
.hud-banner__dot:hover span { background: var(--navy); }
.hud-banner__pause { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: 8px; padding: 8px 14px; font: 600 .9375rem/1 var(--body); color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 0 var(--r) 0 var(--r); cursor: pointer; }
.hud-banner__pause:hover { background: var(--band); }
.hud-banner__pause .hud-ico--play, .hud-banner.is-paused .hud-banner__pause .hud-ico--pause { display: none; }
.hud-banner.is-paused .hud-banner__pause .hud-ico--play { display: inline; }
@media (max-width: 759px) {
	.hud-hero { text-align: left; padding-top: 28px; }
	.hud-hero::before, .hud-hero .hud-banner::before { display: none; }
	.hud-hero .hud-eyebrow { justify-content: flex-start; }
	.hud-hero h1, .hud-hero .hud-lede, .hud-hero__note { margin-left: 0; }
	.hud-hero .wp-block-buttons { justify-content: flex-start; }
	.hud-hero .hud-banner { margin: 28px calc(-1 * var(--gut)) 0; }
	.hud-banner__stage { aspect-ratio: 4 / 3; }
	.hud-banner__bar { padding: 10px var(--gut) 0; align-items: flex-start; }
	.hud-banner__pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hud-banner__pause { padding: 8px 12px; min-width: 44px; justify-content: center; }
}

/* ---------- intro: statement left, text right ---------- */
.hud-intro { display: grid; gap: clamp(20px, 4vw, 64px); }
@media (min-width: 900px) { .hud-intro { grid-template-columns: 5fr 7fr; align-items: start; } }
.hud-intro h2 { margin-bottom: 0; }
.hud-intro__txt p:last-child { margin-bottom: 0; }

/* ---------- section heads ---------- */
.hud-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.hud-sechead h2 { margin: 0; max-width: 24ch; }
.hud-sechead p { margin: 0; max-width: 52ch; color: var(--grey); }

/* ---------- cards ---------- */
.hud-cards, .hud-groups--full, .hud-posts, .hud-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 760px) { .hud-cards, .hud-groups--full, .hud-posts, .hud-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hud-card, .hud-post, .hud-group { margin: 0; }
.hud-card__link, .hud-post__link { display: block; text-decoration: none; color: inherit; }
.hud-card__fig { margin-bottom: 16px; }
.hud-card__h { display: flex; align-items: center; gap: 8px; margin: 0 0 .4em; }
.hud-card__h .hud-ico { width: 20px; height: 20px; transition: transform .15s; }
.hud-card__link:hover .hud-card__h { text-decoration: underline; text-underline-offset: 4px; }
.hud-card__link:hover .hud-card__h .hud-ico { transform: translateX(3px); }
.hud-card p { margin: 0; color: var(--text); }

/* who we help (home: three columns of text beside the window photo) */
.hud-window { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .hud-window { grid-template-columns: 6fr 6fr; } }
.hud-groups--list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hud-groups--list .hud-group { padding: 22px 0; border-top: 1px solid var(--line); }
.hud-groups--list .hud-group:last-child { border-bottom: 1px solid var(--line); }
.hud-group__h { margin-bottom: .35em; }
.hud-groups--list p { margin-bottom: .35em; }
.hud-group__fig { margin-bottom: 16px; }

/* Gonstead analysis steps */
.hud-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); }
.hud-step { display: grid; gap: 18px clamp(24px, 4vw, 56px); margin: 0; align-items: center; }
@media (min-width: 760px) {
	.hud-step { grid-template-columns: 5fr 7fr; }
	.hud-step:nth-child(even) .hud-step__fig { order: 2; }
}
.hud-step__n { margin: 0 0 .35rem; font: 700 .9rem/1 var(--head); letter-spacing: .12em; color: var(--grey); }
.hud-step h3 { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.75rem); }
.hud-step__txt p:last-child { margin-bottom: 0; }

/* credentials as instrument readouts */
.hud-readouts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--steel); }
@media (min-width: 640px) { .hud-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hud-readouts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hud-readout { position: relative; padding: 26px 22px 6px 0; }
.hud-readout::before { content: ""; position: absolute; left: 0; top: -1px; width: 2px; height: 14px; background: var(--navy); }
.hud-readout dt { font: 800 clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--head); color: var(--navy); letter-spacing: -0.02em; margin: 0 0 10px; }
.hud-readout dd { margin: 0; color: var(--text); font-size: 1rem; }

/* testimonials */
.hud-quote { margin: clamp(36px, 5vw, 64px) 0 0; padding: 0 0 0 clamp(20px, 3vw, 36px); border-left: 2px solid var(--navy); max-width: 860px; }
.hud-quote blockquote { margin: 0 0 .8rem; }
.hud-quote blockquote p { margin: 0; font: 500 clamp(1.2rem, 1.05rem + .5vw, 1.5rem)/1.45 var(--head); color: var(--navy); }
.hud-quote figcaption { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95rem; color: var(--grey); }
.hud-quote figcaption a { font-weight: 600; }
.hud-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hud-quotes__item { margin: 0; padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--line); display: grid; gap: 4px 48px; }
@media (min-width: 900px) { .hud-quotes__item { grid-template-columns: 4fr 8fr; } .hud-quotes__item blockquote, .hud-quotes__by { grid-column: 2; } .hud-quotes__h { grid-row: 1 / span 2; } }
.hud-quotes__h { font-size: 1.35rem; margin: 0; }
.hud-quotes__item blockquote { margin: 0; }
.hud-quotes__item blockquote p { margin: 0; font-size: 1.0625rem; }
.hud-quotes__by { margin: .6rem 0 0; font-weight: 600; color: var(--grey); }
.hud-quotes__by::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--navy); }

/* office strip */
.hud-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .hud-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hud-strip li { margin: 0; }
.hud-strip a { display: block; }
.hud-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.hud-strip a:hover img { opacity: .88; }

/* service area */
.hud-area { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .hud-area { grid-template-columns: 7fr 5fr; } }
.hud-area__map svg { display: block; width: 100%; height: auto; }
.hud-towns { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.2em; }
.hud-towns li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy); font-size: .95rem; }
.hud-towns li:last-child { font-weight: 400; color: var(--grey); border-style: dashed; }
.hud-area__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 0; }

/* closing call to action */
.hud-cta { display: grid; gap: 20px 48px; align-items: center; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--steel); position: relative; }
.hud-cta::before { content: ""; position: absolute; left: 0; top: -1px; width: 2px; height: 14px; background: var(--navy); }
@media (min-width: 900px) { .hud-cta { grid-template-columns: 1fr auto; } }
.hud-cta h2 { margin-bottom: .3em; }
.hud-cta p { margin: 0; color: var(--text); max-width: 56ch; }
.hud-cta__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hud-cta__tel { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.85rem)/1 var(--head); color: var(--navy); text-decoration: none; white-space: nowrap; }
.hud-cta__tel:hover { text-decoration: underline; }

/* recent articles */
.hud-recent li { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.hud-recent__date, .hud-post__date { display: block; margin: 0 0 6px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.hud-recent h3 { font-size: 1.2rem; margin-bottom: .4em; }
.hud-recent h3 a { text-decoration: none; }
.hud-recent h3 a:hover { text-decoration: underline; }
.hud-recent p:last-child { margin: 0; font-size: .98rem; }

/* ---------- inner pages ---------- */
.hud-split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .hud-split { grid-template-columns: 7fr 5fr; } .hud-split--rev { grid-template-columns: 5fr 7fr; } }
.hud-split > * { min-width: 0; }
.hud-split__media .hud-fig + .hud-fig { margin-top: 24px; }
.hud-pair { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hud-pair .hud-fig .hud-img { aspect-ratio: 4 / 5; }
.hud-about-logo { max-width: 340px; margin: 0 0 1.5rem; }
.hud-ins { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.hud-ins li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.hud-ins .hud-ico { color: var(--navy); }
.hud-visit { padding: clamp(22px, 3vw, 32px); background: var(--band); border-top: 2px solid var(--navy); }
.hud-visit__big { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 1.6rem/1.1 var(--head); }
.hud-visit__big a { text-decoration: none; }
.hud-visit__big a:hover { text-decoration: underline; }
.hud-visit__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.hud-visit__list li { display: flex; gap: 12px; margin: 0; }
.hud-visit__list .hud-ico { margin-top: 3px; color: var(--navy); }
.hud-visit__list a { display: inline-flex; align-items: center; gap: 4px; }
.hud-visit__note { font-size: .95rem; margin: 0 0 10px; }

/* first visit: numbered stages on a scale */
.hud-visitsteps { list-style: none; counter-reset: v; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--steel); }
@media (min-width: 900px) { .hud-visitsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hud-visitsteps > li { counter-increment: v; position: relative; margin: 0; padding: 28px 24px 8px 0; }
.hud-visitsteps > li::before { content: counter(v, decimal-leading-zero); display: block; margin-bottom: 10px; font: 700 .9rem/1 var(--head); letter-spacing: .12em; color: var(--grey); }
.hud-visitsteps > li::after { content: ""; position: absolute; left: 0; top: -1px; width: 2px; height: 14px; background: var(--navy); }
.hud-visitsteps h3 { font-size: 1.2rem; }
.hud-visitsteps p { margin: 0; }

/* ---------- gallery (Our office) + lightbox ---------- */
.hud-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.hud-filters li { margin: 0; }
.hud-filters button { min-height: 44px; padding: 8px 16px; font: 600 .95rem/1 var(--body); color: var(--navy); background: #fff; border: 1px solid var(--steel); cursor: pointer; }
.hud-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.wp-block-gallery.hud-gallery { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; margin: 0; }
@media (min-width: 760px) { .wp-block-gallery.hud-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px !important; } }
.wp-block-gallery.hud-gallery figure.wp-block-image { width: auto !important; margin: 0 !important; display: block; position: relative; }
.wp-block-gallery.hud-gallery figure.wp-block-image a, .wp-block-gallery.hud-gallery figure.wp-block-image > button { display: block; height: auto !important; flex: none; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.wp-block-gallery.hud-gallery figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover !important; }
.wp-block-gallery.hud-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--grey); padding: 8px 0 0; margin: 0; font-size: .85rem; text-align: left; text-shadow: none; max-height: none; overflow: visible; }
.wp-block-gallery.hud-gallery figure.is-hidden { display: none !important; }
.hud-lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(0, 16, 40, .94); color: #fff; }
.hud-lightbox.is-open { display: flex; flex-direction: column; }
.hud-lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.hud-lightbox__count { font-size: .95rem; padding-left: 8px; }
.hud-lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.hud-lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.hud-lightbox__cap { padding: 12px 20px 20px; text-align: center; font-size: .95rem; min-height: 3em; }
.hud-lightbox button { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .45); cursor: pointer; }
.hud-lightbox button:hover { background: rgba(255, 255, 255, .2); }
.hud-lightbox button .hud-ico { width: 26px; height: 26px; }
.hud-lightbox :focus-visible { outline-color: #fff; }
.hud-lightbox__prev, .hud-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.hud-lightbox__prev { left: 8px; }
.hud-lightbox__next { right: 8px; }
@media (max-width: 759px) { .hud-lightbox__stage { padding: 0 8px; } .hud-lightbox__prev, .hud-lightbox__next { top: auto; bottom: 64px; transform: none; } }

/* ---------- forms (Ninja Forms, styled here) ---------- */
.hud-form { max-width: 720px; }
.hud-form .nf-form-title, .hud-form .nf-before-form-content { display: none; }
.hud-form .nf-form-fields-required { margin: 0 0 18px; font-size: .95rem; color: var(--grey); }
.hud-form .nf-field-container { margin: 0 0 20px; }
.hud-form .nf-field-label { margin: 0 0 6px; }
.hud-form .nf-field-label label, .hud-form legend { font-weight: 600; color: var(--text); font-size: 1rem; }
.hud-form .ninja-forms-req-symbol { color: var(--navy); font-weight: 700; }
.hud-form .nf-field-description, .hud-form .nf-field-description p { margin: 6px 0 0; font-size: .92rem; color: var(--grey); }
.hud-form input[type="text"], .hud-form input[type="email"], .hud-form input[type="tel"], .hud-form select, .hud-form textarea { width: 100%; min-height: 50px; padding: 11px 14px; font: 400 1rem/1.4 var(--body); color: var(--text); background: #fff; border: 1px solid #8F9399; border-radius: 0; }
.hud-form textarea { min-height: 120px; height: 120px; }
.hud-form input:focus, .hud-form select:focus, .hud-form textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hud-form .list-radio-wrap ul, .hud-form .list-checkbox-wrap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hud-form .list-radio-wrap li, .hud-form .list-checkbox-wrap li { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 36px; }
.hud-form .list-radio-wrap input, .hud-form .list-checkbox-wrap input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.hud-form .list-radio-wrap label, .hud-form .list-checkbox-wrap label { font-weight: 400; margin: 0; }
.hud-form .nf-error .ninja-forms-field { border-color: #A4161A; }
.hud-form .nf-error-msg, .hud-form .nf-error-required-error { margin-top: 6px; color: #A4161A; font-size: .92rem; font-weight: 600; }
.hud-form .nf-form-errors .nf-error-msg { margin-bottom: 12px; }
.hud-form .submit-container input[type="button"], .hud-form input[type="submit"], .hud-form .submit-wrap input { display: inline-flex; min-height: 52px; padding: .8rem 1.75rem; font: 600 1.0625rem/1.2 var(--body); color: #fff; background: var(--navy); border: 2px solid var(--navy); border-radius: 0 var(--r) 0 var(--r); cursor: pointer; }
.hud-form .submit-container input:hover { background: var(--navy-deep); border-radius: var(--r) 0 var(--r) 0; }
.hud-form .nf-field-element .ninja-forms-field[disabled] { opacity: .7; }
.hud-thanks { padding: clamp(24px, 3vw, 36px); border-top: 2px solid var(--navy); background: var(--band); }
.hud-thanks__mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; color: #fff; background: var(--navy); border-radius: 0 var(--r) 0 var(--r); }
.hud-thanks__mark .hud-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.hud-thanks h2 { font-size: 1.6rem; }
.hud-thanks ol { margin: 0 0 1em; }
.hud-thanks:focus { outline: none; }

/* ---------- blog ---------- */
.hud-post__img { display: block; margin-bottom: 14px; border-bottom: 1px solid var(--steel); }
.hud-post__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hud-post__h { font-size: 1.3rem; margin-bottom: .4em; }
.hud-post__link:hover .hud-post__h { text-decoration: underline; text-underline-offset: 4px; }
.hud-post p { margin: 0; font-size: .98rem; }
.hud-pages ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 40px 0 0; }
.hud-pages a, .hud-pages span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; }
.hud-pages .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.hud-article .hud-head h1 { max-width: 26ch; }
.hud-post-meta { margin: 0; color: var(--grey); font-size: .95rem; }
.hud-post-image { margin: 0 0 2rem; }
.hud-post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hud-prose--article > * { margin-left: auto; margin-right: auto; }
.hud-author { display: flex; gap: 16px; align-items: center; margin-top: 2.5rem; padding-top: 20px; border-top: 1px solid var(--line); font-size: .98rem; }
.hud-author__img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 20%; flex: none; }
.hud-author p { margin: 0; }

/* ---------- footer: the one dark band ---------- */
.hud-foot, footer.wp-block-template-part { background: var(--navy-deep); color: #E3E7EE; }
.hud-foot__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gut) 36px; display: grid; gap: 36px; }
@media (min-width: 760px) { .hud-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hud-foot__in { grid-template-columns: 4fr 2.4fr 2.4fr 3.2fr; } }
.hud-foot a { color: #fff; }
.hud-foot__plate { display: inline-block; margin: 0 0 22px; padding: 14px 18px; background: #fff; border-radius: 0 var(--r) 0 var(--r); }
.hud-foot__plate img { width: 200px; height: auto; }
.hud-foot__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hud-foot__facts li { display: flex; gap: 12px; margin: 0; }
.hud-foot__facts .hud-ico { margin-top: 3px; color: #AFC0DA; }
.hud-foot__h { margin: 0 0 14px; font: 600 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #C4CFDF; }
.hud-foot__col ul { list-style: none; padding: 0; margin: 0; }
.hud-foot__col li { margin: 0 0 10px; }
.hud-foot__col ul a { text-decoration: none; }
.hud-foot__col ul a:hover { text-decoration: underline; }
.hud-foot__big { margin: 0 0 16px; font: 700 1.65rem/1 var(--head); }
.hud-foot__big a { text-decoration: none; }
.hud-foot__fb a { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.hud-foot__base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9rem; color: #C4CFDF; border-top: 1px solid rgba(255, 255, 255, .16); }
.hud-foot__base p { margin: 0; }
.hud-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hud-foot :focus-visible { outline-color: #fff; }

/* ---------- phone bar: Call + Book an appointment, phones only ---------- */
.hud-callbar { display: none; }
@media (max-width: 759px) {
	:root { --bar-h: 64px; }
	body { padding-bottom: var(--bar-h); }
	.hud-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1.6fr; height: var(--bar-h); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 28, 70, .08); padding-bottom: env(safe-area-inset-bottom); }
	.hud-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 1.05rem/1 var(--body); text-decoration: none; }
	.hud-callbar__call { color: var(--navy) !important; background: #fff; }
	.hud-callbar__book { color: #fff !important; background: var(--navy); border-radius: var(--r) 0 0 0; }
}

/* ---------- 404 ---------- */
.hud-404 { text-align: left; }

/* ---------- one quiet fade-in on scroll (site.js adds .hud-fade; reduced motion: none) ---------- */
.hud-fade { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.hud-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hud-fade { opacity: 1; transform: none; transition: none; }
	.hud-banner__slide { transition: none; }
	*, *::before, *::after { transition-duration: 0s !important; }
}
@media print { .hud-header, .hud-callbar, .hud-banner__bar, .hud-foot { display: none !important; } }
.hud-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 640px; }
.hud-links li { margin: 0; border-top: 1px solid var(--line); }
.hud-links li:last-child { border-bottom: 1px solid var(--line); }
.hud-links a { display: block; padding: 14px 0; font: 600 1.15rem/1.3 var(--head); text-decoration: none; }
.hud-links a:hover { text-decoration: underline; }

/* ---------- page pieces made by build-pages.php ---------- */
.hud-trio { display: grid; gap: clamp(20px, 2.5vw, 32px); }
@media (min-width: 760px) { .hud-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hud-trio .wp-block-image { margin: 0; }
.hud-trio .wp-block-image img, .hud-split__media .wp-block-image:not(.hud-tall) img { aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-image.hud-tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.hud-split__media .wp-block-image.hud-tall { max-width: 420px; }
.hud-fig-plain { margin: 0; }
.hud-fig-plain img { aspect-ratio: 4 / 5; object-fit: cover; }
.hud-gquote { font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); line-height: 1.3; }
.hud-gquote + p { color: var(--grey); font-size: .95rem; }
.hud-count { margin: -10px 0 18px; font-size: .9rem; color: var(--grey); }
.hud-split__text > *:last-child { margin-bottom: 0; }
.hud-split .wp-block-buttons { margin-top: 1.25rem; }
.hud-head .hud-eyebrow { margin-bottom: .9rem; }
.hud-foot a.hud-btn--light { color: var(--navy); }
.hud-foot a.hud-btn--light:hover { color: #fff; }
/* the scale sits directly under the photo, the caption beneath it */
.wp-block-image.is-style-scaled { display: flex; flex-direction: column; }
.wp-block-image.is-style-scaled img { order: 0; }
.wp-block-image.is-style-scaled::after { order: 1; }
.wp-block-image.is-style-scaled figcaption { order: 2; }
.hud-head .hud-lede { max-width: 64ch; }
/* very narrow phones (320–359): the name wraps onto two lines so the lockup and Menu fit */
@media (max-width: 359px) {
	.hud-lockup__name { max-width: 7.2em; font-size: 1.12rem; line-height: 1.02; }
	.hud-lockup__tag { margin-top: 3px; }
	.hud-bar__in { gap: 10px; }
}
