/* Altair Plumbing: front-end styles. Mobile-first; desktop at 1024px. */

:root {
	--ap-graphite: #1F2326;
	--ap-steel: #4A5258;
	--ap-paper: #F7F7F5;
	--ap-mist: #ECEEEE;
	--ap-hairline: #D3D6D6;
	--ap-white: #FFFFFF;
	--ap-accent: #2BD46A; /* overridden inline from Business Details */
	--ap-display: var(--wp--preset--font-family--display, "Inter Tight", Arial, sans-serif);
	--ap-body: var(--wp--preset--font-family--body, Inter, Arial, sans-serif);
	--ap-bar-h: 72px;
	--ap-gutter: 20px;
}

/* ---------- Runtime state visibility ----------
   <html data-ap-hours> is "open" from the server and corrected by front.js. */
html[data-ap-hours="open"] [data-when]:not([data-when~="open"]),
html[data-ap-hours="after"] [data-when]:not([data-when~="after"]),
html[data-ap-hours="suspended"] [data-when]:not([data-when~="suspended"]) {
	display: none !important;
}

/* ---------- Base ---------- */
body { margin: 0; background: var(--ap-paper); color: var(--ap-graphite); font-family: var(--ap-body); font-size: 18px; line-height: 1.6; }
.wp-site-blocks > * + *, .ap-main.is-layout-flow > *, .ap-main > * { margin-block-start: 0; }
.ap-site-footer { margin-block-start: 0 !important; }
h1, h2, h3 { font-family: var(--ap-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.5vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ap-graphite); outline-offset: 2px; }
.ap-band--graphite :focus-visible { outline-color: var(--ap-paper); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.ap-wrap { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--ap-gutter); }
.ap-section { padding-block: clamp(48px, 7vw, 80px); }
.ap-section--tight { padding-bottom: 24px; }
.ap-section--flush { padding-top: 0; }
.ap-section--mist { background: var(--ap-mist); }
.ap-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.ap-band { padding-block: clamp(32px, 5vw, 56px); }
.ap-band--graphite { background: var(--ap-graphite); color: var(--ap-paper); }
.ap-band--graphite a:not(.ap-btn) { color: var(--ap-paper); }
.ap-band--mist { background: var(--ap-mist); }
.ap-heavy { font-weight: 800; }
.ap-light { font-family: var(--ap-display); font-weight: 300; }
.ap-lead { font-size: 20px; line-height: 1.6; }
.ap-textlink { font-weight: 700; }
.ap-prose { max-width: 808px; }
.ap-prose > * + * { margin-block-start: 24px; }
.ap-only-desktop { display: none; }
.ap-admin-note { border: 2px dashed var(--ap-steel); padding: 16px; color: var(--ap-steel); }

/* ---------- Buttons ---------- */
.ap-btn {
	box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 8px 24px; border: 2px solid var(--ap-graphite); border-radius: 0;
	font: 700 18px/1.2 var(--ap-body); text-align: center; text-decoration: none; cursor: pointer;
}
.ap-btn:hover { box-shadow: inset 0 0 0 2px currentColor; text-decoration: none; }
.ap-btn--call { background: var(--ap-accent); color: var(--ap-graphite); border-color: var(--ap-graphite); }
.ap-btn--call:hover { box-shadow: inset 0 0 0 2px var(--ap-graphite); }
.ap-btn--solid { background: var(--ap-graphite); color: var(--ap-paper); }
.ap-btn--outline { background: transparent; color: var(--ap-graphite); }
.ap-band--graphite .ap-btn--outline { color: var(--ap-paper); border-color: var(--ap-paper); }
.ap-band--graphite .ap-btn--solid { background: var(--ap-paper); color: var(--ap-graphite); border-color: var(--ap-paper); }
.ap-icon { flex: none; }
.ap-actions__buttons { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ap-actions__note { margin-top: 10px; font-size: 16px; color: var(--ap-steel); }
.ap-band--graphite .ap-actions__note { color: var(--ap-mist); }

/* ---------- Status ---------- */
.ap-status { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.4; }
.ap-status__mark { display: none; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.ap-status.is-live .ap-status__mark { display: inline-block; }
.ap-status.is-open .ap-status__mark { background: currentColor; }
.ap-status__mark--closed { display: inline-block; }

/* ---------- Header: two tiers (pattern "Two-tier site header") ---------- */
/* Top: brand, one short line, phone + status. Bottom: navigation, Chat, request action. Below 1024px the bottom tier moves into the Menu panel. */
.ap-hdr { background: var(--ap-paper); border-bottom: 2px solid var(--ap-graphite); position: relative; z-index: 5; }
.ap-hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.ap-hdr__top .ap-hdr__row { padding-block: 12px; }
.ap-hdr__main { border-top: 1px solid var(--ap-steel); }
.ap-hdr__main .ap-hdr__row { padding-block: 8px; }
.ap-brand { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; text-decoration: none; color: var(--ap-graphite); }
.ap-brand:hover { color: var(--ap-graphite); }
.ap-brand__mark { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--ap-graphite); color: var(--ap-paper); font: 800 15px/1 var(--ap-display); letter-spacing: .02em; }
.ap-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ap-brand__name { display: block; margin: 0; font: 900 20px/1.15 var(--ap-display); white-space: nowrap; }
.ap-brand__tag { display: block; font-size: 14px; line-height: 1.3; color: var(--ap-steel); }
.ap-brand__logo { display: block; max-height: 48px; width: auto; }
.ap-hdr__msg { flex: 1 1 auto; margin: 0; font-size: 15px; line-height: 1.4; color: var(--ap-steel); text-align: center; }
.ap-hdr__msg strong { color: var(--ap-graphite); }
.ap-hdr__msg a { color: var(--ap-graphite); font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.ap-hdr__act { flex: none; display: flex; align-items: center; gap: 12px; }
.ap-hdr__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.ap-hdr__tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ap-graphite); font: 800 20px/1 var(--ap-display); text-decoration: none; white-space: nowrap; }
.ap-hdr__tel .ap-icon { box-sizing: content-box; width: 18px; height: 18px; padding: 7px; background: var(--ap-accent); color: var(--ap-graphite); border: 2px solid var(--ap-graphite); }
.ap-hdr__tel:hover .ap-hdr__num { text-decoration: underline; text-underline-offset: 4px; }
.ap-hdr__status { font-size: 14px; margin: 0; white-space: nowrap; }
.ap-hdr__menu { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ap-graphite); background: transparent; color: var(--ap-graphite); font: 700 16px/1 var(--ap-body); cursor: pointer; }
.ap-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.ap-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ap-graphite); font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.ap-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ap-nav a[aria-current="page"] { font-weight: 800; box-shadow: inset 0 -2px 0 var(--ap-graphite); text-decoration: none; }
.ap-hdr__ctas { flex: none; display: flex; align-items: center; gap: 12px; }
.ap-hdr__ctas .ap-btn { min-height: 46px; padding: 0 20px; font-size: 17px; white-space: nowrap; }
.ap-mnav { border-top: 1px solid var(--ap-steel); background: var(--ap-paper); }
.ap-mnav[hidden] { display: none; }
.ap-mnav ul { display: flex; flex-direction: column; margin: 0; padding: 8px 0 16px; list-style: none; }
.ap-mnav li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--ap-mist); color: var(--ap-graphite); font: 700 18px/1.2 var(--ap-body); text-decoration: none; }
.ap-mnav li a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.ap-mnav__act { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0 24px; }
.ap-mnav__act .ap-btn { flex: 1 1 220px; }
@media (max-width: 1180px) { .ap-hdr__msg { display: none; } }
@media (max-width: 1023px) {
	.ap-hdr__main { display: none; }
	.ap-hdr__menu { display: inline-flex; }
}
@media (max-width: 599px) {
	.ap-hdr__row { gap: 10px; }
	.ap-brand { gap: 10px; }
	.ap-brand__tag, .ap-hdr__status { display: none; }
	.ap-brand__name { font-size: 17px; white-space: normal; }
	.ap-hdr__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.ap-hdr__act { gap: 8px; }
	.ap-hdr__tel { min-width: 44px; justify-content: center; }
}
.ap-chat { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ap-graphite); background: transparent; color: var(--ap-graphite); font: 700 16px/1 var(--ap-body); text-decoration: none; }
.ap-phone { font: 800 24px/1.15 var(--ap-display); text-decoration: none; white-space: nowrap; }

/* ---------- Mobile sticky bar ---------- */
.ap-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-sizing: border-box;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ap-paper); border-top: 2px solid var(--ap-graphite);
}
.ap-bar .ap-actions__buttons { flex-wrap: nowrap; gap: 8px; }
.ap-bar .ap-btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 6px 10px; font-size: 16px; line-height: 1.15; white-space: normal; }
.ap-bar .ap-btn:first-child { flex-grow: 1.25; }
body { padding-bottom: calc(var(--ap-bar-h) + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: calc(var(--ap-bar-h) + 16px); }

/* ---------- Home hero ---------- */
.ap-hero { padding-block: 28px 40px; }
.ap-hero__grid { display: grid; gap: 32px; }
.ap-hero__text { display: flex; flex-direction: column; gap: 20px; }
.ap-hero__title .ap-heavy { display: block; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.ap-hero__title .ap-light { display: block; margin-top: 8px; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.15; }
.ap-hero__title--service .ap-heavy { font-size: clamp(34px, 4.6vw, 60px); }
.ap-hero__title--service .ap-light { font-size: clamp(22px, 2.6vw, 32px); }
.ap-hero__phone { display: flex; flex-direction: column; gap: 6px; }
.ap-phone--hero { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: clamp(28px, 3.4vw, 40px); }
.ap-phone--hero .ap-icon { width: 28px; height: 28px; }
/* Home hero on phones: only the call button (it carries the number); the sticky bar carries the other action. */
.ap-hero__actions--home .ap-actions__buttons > a:not([href^="tel:"]) { display: none; }
.ap-hero__actions--home a[href^="tel:"] { width: 100%; box-sizing: border-box; white-space: normal; text-align: left; }
.ap-hero__status { margin-top: -8px; }
.ap-hero--service .ap-actions--hero .ap-btn--call { display: none; } /* the large number above is the call action on phones */
.ap-proof { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 2px solid var(--ap-graphite); }
.ap-hero__media { margin: 0; }
.ap-hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Emergency strip ---------- */
.ap-strip__inner { display: flex; flex-direction: column; gap: 16px; }
.ap-strip__text { font: 800 clamp(24px, 3vw, 32px)/1.2 var(--ap-display); }
.ap-strip__link { display: block; margin-top: 8px; font: 700 16px/1.4 var(--ap-body); }

/* ---------- After-hours block ---------- */
.ap-afterhours { box-sizing: border-box; background: var(--ap-mist); border: 2px solid var(--ap-graphite); }
.ap-main > .ap-afterhours { margin: 32px var(--ap-gutter) 0; }
.ap-afterhours__inner { display: flex; flex-direction: column; gap: 18px; padding: 28px 20px; }
.ap-afterhours__title { font-size: clamp(24px, 2.6vw, 30px); }
.ap-steps { margin: 0; padding: 0; list-style: none; counter-reset: ap-step; display: flex; flex-direction: column; gap: 14px; }
.ap-steps li { counter-increment: ap-step; display: flex; gap: 12px; }
.ap-steps li::before { content: counter(ap-step); flex: 0 0 28px; font: 800 28px/1 var(--ap-display); }
.ap-afterhours__gas { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; background: var(--ap-paper); border: 2px solid var(--ap-graphite); border-left-width: 8px; font-size: 18px; line-height: 1.5; }
.ap-afterhours__gas .ap-icon { margin-top: 2px; }
.ap-afterhours__response { font-size: 16px; color: var(--ap-steel); }

/* ---------- Services ---------- */
.ap-services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.ap-service-card a { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--ap-hairline); text-decoration: none; }
.ap-service-card h3 { font-size: 22px; }
.ap-service-card__more { font-weight: 700; text-decoration: underline; }
.ap-service-card a:hover h3 { text-decoration: underline; }
.ap-service-list { margin: 0; padding: 0; list-style: none; border-top: 6px solid var(--ap-graphite); border-bottom: 1px solid var(--ap-hairline); }
.ap-service-row { position: relative; display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--ap-hairline); }
.ap-service-row:first-child { border-top: 0; }
/* The name link covers the whole row: one link, one tab stop, the entire row clickable. */
.ap-service-row h2 a::after { content: ""; position: absolute; inset: 0; }
.ap-service-row:hover { background: var(--ap-mist); box-shadow: -12px 0 0 var(--ap-mist), 12px 0 0 var(--ap-mist); }
.ap-service-row:hover h2 a { text-decoration: underline; }
.ap-service-row h2 a:focus-visible { outline: none; }
.ap-service-row:has(h2 a:focus-visible) { outline: 3px solid var(--ap-graphite); outline-offset: 4px; }
.ap-service-row p { margin: 0; }
.ap-service-row__more { color: var(--ap-graphite); white-space: nowrap; }
.ap-service-row h2 { font-size: clamp(22px, 2.4vw, 28px); }
.ap-service-row h2 a { text-decoration: none; }
.ap-service-row h2 a:hover { text-decoration: underline; }

/* ---------- How it works, why us, credentials ---------- */
.ap-how__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.ap-how__steps { align-items: stretch; grid-auto-rows: auto; }
.ap-how__steps li { background: var(--ap-paper); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 0; height: auto; }
.ap-how__n { font: 300 48px/1 var(--ap-display); }
.ap-why__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
/* Tablet: a 6-column grid so 3 = one row, 4 = 2 + 2, 5 = 3 + 2; never one card alone on a row. */
@media (min-width: 600px) {
	.ap-why__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ap-why__grid > li { grid-column: span 2; }
	.ap-why__grid--n1 > li { grid-column: span 6; }
	.ap-why__grid--n2 > li, .ap-why__grid--n4 > li { grid-column: span 3; }
	.ap-why__grid--n5 > li:nth-child(n+4) { grid-column: span 3; }
}
/* Desktop: every card on one row. */
@media (min-width: 1100px) {
	.ap-why__grid--n4, .ap-why__grid--n5 { grid-template-columns: repeat(var(--ap-why-n), minmax(0, 1fr)); }
	.ap-why__grid--n4 { --ap-why-n: 4; }
	.ap-why__grid--n5 { --ap-why-n: 5; }
	.ap-why__grid--n4 > li, .ap-why__grid--n5 > li, .ap-why__grid--n5 > li:nth-child(n+4) { grid-column: auto; }
}
.ap-why__item { background: var(--ap-paper); border-top: 6px solid var(--ap-graphite); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ap-why__item h3 { font-size: 22px; }

/* ---------- Reviews ---------- */
.ap-reviews__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ap-hairline); }
.ap-review { padding: 24px 0; border-top: 1px solid var(--ap-hairline); display: flex; flex-direction: column; gap: 10px; }
.ap-review blockquote { margin: 0; font-size: 20px; line-height: 1.55; max-width: 760px; }
.ap-review__meta { font-size: 16px; color: var(--ap-steel); display: flex; flex-direction: column; gap: 4px; }
.ap-review__who { display: block; }
.ap-stars { color: var(--ap-graphite); letter-spacing: 2px; }
.ap-reviews .ap-textlink { display: inline-block; margin-top: 24px; }

/* ---------- Service area, area line ---------- */
.ap-area__grid { display: grid; gap: 24px; }
.ap-area__grid > div { display: flex; flex-direction: column; gap: 12px; }
.ap-area__list { columns: 2; column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.ap-area__list li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--ap-hairline); }
.ap-inline-phone { font-weight: 700; }
.ap-area-line { padding-block: 32px; border-top: 2px solid var(--ap-graphite); }

/* ---------- CTA band ---------- */
.ap-cta__inner { display: flex; flex-direction: column; gap: 20px; }
.ap-cta__title { font-size: clamp(28px, 3vw, 40px); }
.ap-cta__text { display: flex; flex-direction: column; gap: 8px; }
.ap-cta__line { margin: 0; font-size: 18px; line-height: 1.5; }

/* ---------- Footer ---------- */
.ap-footer { border-top: 2px solid var(--ap-graphite); padding-block: 48px 32px; font-size: 16px; }
.ap-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.ap-footer__col { display: flex; flex-direction: column; gap: 6px; }
.ap-footer__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ap-footer__name { font: 900 20px/1.2 var(--ap-display); }
.ap-footer__head { font-weight: 700; }
.ap-footer__phone { font-weight: 700; font-size: 18px; }
.ap-footer__legal { padding-top: 20px; border-top: 1px solid var(--ap-hairline); color: var(--ap-steel); }
.ap-footer__legal strong { color: var(--ap-graphite); }

/* ---------- Breadcrumb ---------- */
.ap-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 20px 0 0; list-style: none; font-size: 16px; color: var(--ap-steel); }
.ap-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.ap-breadcrumb [aria-current] { color: var(--ap-graphite); }

/* ---------- Service page body ---------- */
.ap-service-body { display: grid; gap: 48px; padding-block: 48px 64px; border-top: 1px solid var(--ap-hairline); }
.ap-service-content { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.ap-service-content > * { margin: 0 !important; }
.ap-content-section { display: flex; flex-direction: column; gap: 16px; }
.ap-content-section h2 { font-size: clamp(28px, 3.4vw, 40px); }
.ap-ruled-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ap-hairline); }
.ap-ruled-list li { padding: 14px 0; border-top: 1px solid var(--ap-hairline); }
.ap-expect { margin: 0; padding: 0; list-style: none; counter-reset: ap-x; display: grid; gap: 20px; }
.ap-expect li { counter-increment: ap-x; border-top: 2px solid var(--ap-graphite); padding-top: 16px; }
.ap-expect li::before { content: counter(ap-x); display: block; font: 300 44px/1 var(--ap-display); margin-bottom: 8px; }
.ap-pricing { background: var(--ap-mist); padding: 28px 24px; }
.ap-faq .wp-block-details { border-top: 1px solid var(--ap-hairline); padding: 6px 0; margin: 0; }
.ap-faq .wp-block-details:last-child { border-bottom: 1px solid var(--ap-hairline); }
.ap-faq summary { display: flex; align-items: center; min-height: 44px; padding: 8px 0; cursor: pointer; font: 800 20px/1.3 var(--ap-display); }
.ap-faq details > :not(summary) { margin: 4px 0 14px; }
.ap-rail { display: none; }

/* ---------- Emergency page ---------- */

/* ---------- About ---------- */
.ap-about .wp-block-media-text { gap: 32px; }
.ap-about .wp-block-media-text__media:empty { display: none; }
/* Intro: H1 across the top; photo 5/12, story 7/12, 48px gap; stacked H1, photo, text on phones. */
.ap-about > * { margin-block: 0; }
.ap-about > .wp-block-media-text, .ap-about > .ap-team { box-sizing: border-box; max-width: 1200px; margin-inline: auto; padding-inline: var(--ap-gutter); } /* pages made before v1.5 */
.ap-about-intro h1 { margin: 0; max-width: 24ch; }
.ap-about-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 32px 0 0; align-items: start; }
.ap-about-cols > .wp-block-column { flex-basis: auto !important; margin: 0; min-width: 0; }
.ap-about-photo .ap-ph { min-height: 320px; width: 100%; box-sizing: border-box; }
.ap-about-photo img { display: block; width: 100%; height: auto; }
.ap-about-text > * { margin: 0; }
.ap-about-text p { max-width: min(65ch, 34em); line-height: 1.6; } /* 65ch, capped so lines stay near 60–75 characters in Inter */
.ap-about-text .ap-about-attrib { margin-top: 16px; font-size: 16px; color: var(--ap-steel); }
@media (min-width: 782px) {
	.ap-about-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}
/* The team: H2, paragraph (65ch), photo at full section width. */
.ap-about-team > * { margin: 0; }
.ap-about-team > h2 + p { margin-top: 16px; max-width: min(65ch, 34em); line-height: 1.6; }
.ap-about-team > p + .ap-about-team__photo, .ap-about-team > p + figure, .ap-about-team > p + .wp-block-image, .ap-about-team > p + .wp-block-gallery { margin-top: 32px; }
.ap-about-team__photo { width: 100%; min-height: 360px; box-sizing: border-box; }
.ap-split { display: grid; gap: 16px; }

/* ---------- Contact ---------- */
.ap-contact-intro { padding-block: 32px 24px; display: flex; flex-direction: column; gap: 10px; }
.ap-contact { display: grid; gap: 32px; padding-bottom: 64px; }
.ap-contact__aside { display: flex; flex-direction: column; gap: 32px; }
.ap-contact__aside > * { margin: 0 !important; }
.ap-aside__title { font-size: 24px; margin-bottom: 10px; }
.ap-request { border: 2px solid var(--ap-graphite); padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--ap-white); min-width: 0; }
.ap-request__title { font-size: 26px; }
.ap-consent { font-size: 16px; color: var(--ap-steel); }
.ap-textphoto { border-top: 1px solid var(--ap-hairline); padding-top: 16px; }
.ap-textphoto .ap-btn { width: 100%; }
.ap-reach, .ap-hours, .ap-booking { display: flex; flex-direction: column; gap: 8px; }
.ap-hours__table { width: 100%; border-collapse: collapse; }
.ap-hours__table th, .ap-hours__table td { text-align: left; font-weight: 400; padding: 8px 0; border-top: 1px solid var(--ap-hairline); }
.ap-hours__table tr.is-today th, .ap-hours__table tr.is-today td { font-weight: 700; }
.ap-hours__closure { font-size: 16px; color: var(--ap-steel); }
.ap-leak-note { margin: 4px 0 20px; padding: 14px 16px; background: var(--ap-mist); border-top: 6px solid var(--ap-graphite); font-size: 18px; }

/* Request form (theme-rendered). Field borders use Steel (7.4:1) to meet WCAG 1.4.11; Hairline is too light for controls. */
.ap-form { display: flex; flex-direction: column; gap: 20px; }
.ap-form__note { font-size: 16px; color: var(--ap-steel); margin: 0; }
.ap-form__row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .ap-form__row { grid-template-columns: 1fr 1fr; } }
.ap-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ap-field > label, .ap-field > legend { font: 700 16px/1.4 var(--ap-body); color: var(--ap-graphite); padding: 0; }
.ap-field--choices > legend { margin-bottom: 4px; }
.ap-req { color: #A3141B; }
.ap-optional { font-weight: 400; color: var(--ap-steel); }
.ap-field input[type="text"], .ap-field input[type="tel"], .ap-field input[type="email"], .ap-field select, .ap-field textarea {
	box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--ap-steel); border-radius: 0;
	background: var(--ap-white); color: var(--ap-graphite); font: 400 18px/1.4 var(--ap-body); -webkit-appearance: none; appearance: none;
}
.ap-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ap-graphite) 50%), linear-gradient(135deg, var(--ap-graphite) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.ap-field textarea { min-height: 120px; resize: vertical; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: 3px solid var(--ap-graphite); outline-offset: 1px; border-color: var(--ap-graphite); }
.ap-field input[aria-invalid="true"], .ap-field select[aria-invalid="true"], .ap-field textarea[aria-invalid="true"] { border-color: #A3141B; border-width: 3px; }
.ap-field__error { margin: 0; color: #A3141B; font: 700 16px/1.4 var(--ap-body); }
.ap-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 18px; font-weight: 400; cursor: pointer; }
.ap-choice input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: var(--ap-graphite); }
.ap-choice--consent { align-items: flex-start; font-size: 16px; line-height: 1.5; }
.ap-choice--consent input { margin-top: 1px; }
.ap-form__submit { align-self: flex-start; min-height: 56px; padding: 8px 36px; font-size: 18px; cursor: pointer; }
.ap-form__summary { border: 3px solid #A3141B; padding: 16px 20px; background: var(--ap-white); }
.ap-form__summary:focus { outline: 3px solid var(--ap-graphite); outline-offset: 2px; }
.ap-form__summary h3 { margin: 0 0 8px; font-size: 20px; color: #A3141B; }
.ap-form__summary ul { margin: 0; padding-left: 20px; }
.ap-form__summary a { color: #A3141B; font-weight: 700; }
.ap-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap-request__fallback { border: 2px solid var(--ap-graphite); padding: 16px 20px; background: var(--ap-mist); }
.ap-request__fallback p:last-child { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }

/* ---------- Thank You ---------- */
.ap-thanks__inner { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.ap-thanks__booking, .ap-thanks__urgent > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 2px solid var(--ap-graphite); padding-top: 20px; }

/* ---------- Admin-only badges ---------- */
.ap-preview-badge { position: fixed; left: 8px; bottom: calc(var(--ap-bar-h) + 12px); z-index: 99999; max-width: min(520px, calc(100% - 16px)); padding: 10px 14px; background: var(--ap-graphite); color: var(--ap-paper); font: 400 14px/1.4 var(--ap-body); }
.ap-preview-badge--warn { bottom: calc(var(--ap-bar-h) + 72px); background: #7A4A00; }

/* ---------- 600px ---------- */
@media (min-width: 600px) {
	:root { --ap-gutter: 24px; }
	.ap-proof { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }
	.ap-area__list { columns: 3; }
	.ap-expect { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ap-strip__inner, .ap-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
	.ap-afterhours__inner { padding: 32px; }
	.ap-request { padding: 32px; }
}

/* ---------- 1024px: desktop ---------- */
@media (min-width: 1024px) {
	body { padding-bottom: 0; }
	.ap-bar { display: none; }
	.ap-only-mobile { display: none !important; }
	.ap-only-desktop { display: inline; }

	.ap-hero { padding-block: 64px 72px; }
	.ap-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
	.ap-hero__actions--home .ap-actions__buttons > a:not([href^="tel:"]) { display: inline-flex; }
	.ap-hero__actions--home a[href^="tel:"] { width: auto; white-space: nowrap; }
	.ap-hero--service .ap-actions--hero .ap-btn--call { display: inline-flex; }
	.ap-hero .ap-btn { min-height: 60px; padding-inline: 20px; }
	.ap-hero__img { aspect-ratio: 4 / 5; }
	.ap-hero__media--wide .ap-hero__img { aspect-ratio: 4 / 3; }

	.ap-main > .ap-afterhours { max-width: 1152px; margin: 32px auto 0; }
	.ap-afterhours__inner { padding: 40px; }

	.ap-service-row { grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; gap: 32px; }
	.ap-service-row__more { justify-self: end; }
	.ap-area__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
	.ap-review { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
	.ap-review__meta { order: -1; }

	.ap-service-body { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: start; padding-block: 64px 80px; }
	.ap-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; border: 2px solid var(--ap-graphite); padding: 28px; background: var(--ap-white); }
	.ap-rail__title { font-size: 24px; }
	.ap-phone--rail { font-size: 28px; }
	.ap-rail .ap-actions__buttons { flex-direction: column; align-items: stretch; }
	.ap-rail__proof { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--ap-hairline); font-size: 16px; display: flex; flex-direction: column; gap: 6px; }
	.ap-rail__response { font-size: 16px; color: var(--ap-steel); }

	.ap-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }

	.ap-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
	.ap-request { padding: 36px; }
	.ap-contact-intro { padding-block: 56px 32px; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Fixes from QA */

/* ---------- v1.1: chat section, legal links, consent split, demo, placeholders ---------- */
html:not([data-ap-consent="yes"]) [data-consent="yes"],
html[data-ap-consent="yes"] [data-consent="no"] { display: none !important; }
.ap-contact__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.ap-chatbox { border-top: 2px solid var(--ap-graphite); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.ap-chatbox:focus { outline: none; }
.ap-chatbox:focus-visible { outline: 3px solid var(--ap-graphite); outline-offset: 4px; }
.ap-chatbox__title { font: 800 clamp(22px, 3vw, 28px)/1.15 var(--ap-display); margin: 0; }
.ap-chatbox__frame { min-height: 420px; border: 1px solid var(--ap-steel); background: #fff; }
.ap-chatbox__loading { padding: 16px; color: var(--ap-steel); margin: 0; }
.ap-legal-links { font-size: 15px; margin: 12px 0 0; }
.ap-legal-links a { color: var(--ap-graphite); }
.ap-demo-tag { display: inline-block; padding: 2px 8px; margin-right: 6px; background: var(--ap-graphite); color: var(--ap-paper); font: 700 12px/1.4 var(--ap-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.ap-ph { display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; min-height: 220px; background: repeating-linear-gradient(135deg, var(--ap-mist) 0 14px, var(--ap-paper) 14px 28px); border: 2px dashed var(--ap-steel); color: var(--ap-graphite); font: 600 16px/1.4 var(--ap-body); text-align: center; }
.ap-ph--portrait { min-height: 320px; }
.ap-ph--chat { min-height: 160px; }
.ap-demo-banner { position: relative; z-index: 99999; background: var(--ap-graphite); color: var(--ap-paper); padding: 10px 16px; font: 500 15px/1.45 var(--ap-body); }
.ap-demo-banner a { color: var(--ap-paper); font-weight: 700; }
.ap-demo-banner details { display: inline; }
.ap-demo-banner summary { display: inline; cursor: pointer; text-decoration: underline; }
.ap-demo-banner ul { margin: 8px 0 0; padding-left: 20px; columns: 2 220px; }


/* ---------- v1.2: hero service-area line, pricing diagnostic sentence ---------- */
.ap-nowrap { white-space: nowrap; }
.ap-hero__area { margin: -8px 0 0; font-size: 16px; line-height: 1.5; color: var(--ap-graphite); }
.ap-hero__area a { color: var(--ap-graphite); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.ap-area:focus { outline: none; }
.ap-pricing__diagnostic { margin-top: 16px; font-weight: 700; }

/* ---------- v1.3: Home layout ---------- */
.ap-strip--compact { padding-top: 16px; padding-bottom: 16px; }
.ap-strip--compact .ap-strip__inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ap-strip--compact .ap-strip__text { font: 700 18px/1.4 var(--ap-body); }
.ap-why__links { margin: 0; }
.ap-why__links a { white-space: nowrap; }

/* ---------- v1.4: header alignment ---------- */
.ap-review__meta .ap-demo-tag { align-self: flex-start; }

/* ---------- v1.4.1: Services index title block, same width and left edge as the list ---------- */
.ap-page-head > * + * { margin-block-start: 24px; }
.ap-page-head .wp-block-post-content > * { max-width: 65ch; margin-left: 0; margin-right: 0; }

/* ---------- v1.5.1: same-background neighbours get one section space, not two ---------- */
/* Paper (page background) sections: .ap-section without --mist, plus the service-page body. Mist: --mist sections and mist bands. */
:is(.ap-section:not(.ap-section--mist), .ap-service-body) + :is(.ap-section:not(.ap-section--mist):not(.ap-band), .ap-service-body),
.ap-section--mist + :is(.ap-section--mist, .ap-band--mist),
.ap-band--mist + .ap-section--mist,
.ap-band--graphite + .ap-band--graphite { padding-top: 0; }
/* The service body's hairline divided two doubled gaps; with one gap it would sit flush on the content, so it goes. */
.ap-hero + .ap-service-body { border-top: 0; }
.ap-consent-links { margin: 4px 0 0 34px; font-size: 16px; }
.ap-consent-links a { color: var(--ap-graphite); }

/* ===== v1.6.0: Contact rebuilt around one primary action; status component ===== */
/* Status: clock icon, semibold text, ink color (never the accent). */
.ap-status { color: var(--ap-graphite); font-weight: 600; }
.ap-status__icon { flex: none; display: none; }
.ap-status.is-live .ap-status__icon { display: block; }
/* Contact grid: main 7/12, side 5/12, 48px gap, both columns start at the same y. Stacked below 1024px. */
.ap-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 40px 64px; }
.ap-contact__main, .ap-contact__aside { margin: 0 !important; }
.ap-contact__main { gap: 24px; }
.ap-contact__main > * { margin: 0 !important; }
.ap-contact__title { margin: 0; line-height: 1.1; }
.ap-contact__sub { margin: 16px 0 0; font-size: clamp(24px, 3vw, 30px); }
.ap-contact__aside { gap: 40px; }
@media (min-width: 1024px) {
	.ap-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-top: 56px; }
}
.ap-booking__embed { width: 100%; min-height: 420px; }
.ap-booking__embed.ap-ph { min-height: 420px; }
.ap-booking__embed iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.ap-booking__link { margin: 0; }
/* The short form */
.ap-field textarea#ap-f-details { min-height: 0; }
.ap-choices-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ap-choice--pill { position: relative; justify-content: center; text-align: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 2px solid var(--ap-steel); background: var(--ap-white); font-size: 16px; line-height: 1.25; }
.ap-choice--pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-choice--pill:has(input:checked) { border-color: var(--ap-graphite); background: var(--ap-graphite); color: var(--ap-white); }
.ap-choice--pill:has(input:focus-visible) { outline: 3px solid var(--ap-graphite); outline-offset: 2px; }
.ap-field--consent { gap: 8px; }
.ap-field--consent > .ap-choice--consent { font: 400 15px/1.5 var(--ap-body); color: var(--ap-graphite); }
.ap-agree { margin: 0 0 0 34px; font-size: 15px; color: var(--ap-steel); }
.ap-agree a { color: var(--ap-graphite); }
.ap-form__submit { align-self: flex-start; }
.ap-form__response { margin: -8px 0 0; font-size: 16px; color: var(--ap-steel); }
.ap-hours p, .ap-reach p { margin: 0; }

/* ===== v1.7.0: one button size per group; tertiary request link; Emergency page ===== */
/* Every button in a group shares one height and padding: rows stretch to the tallest; no per-button size variants. */
.ap-actions__buttons { align-items: stretch; }
.ap-actions__buttons > .ap-btn { min-height: 52px; }
@media (min-width: 1024px) { .ap-hero .ap-actions__buttons > .ap-btn { min-height: 60px; } }
/* "Describe the problem →": on the button row 16px after the last button; wraps below, left-aligned, 12px gap (the row's gap). */
.ap-actions__more { align-self: center; font: 400 18px/1.4 var(--ap-body); color: var(--ap-graphite); text-decoration: none; }
.ap-actions__more:hover, .ap-actions__more:focus-visible { text-decoration: underline; }
.ap-actions__more:focus-visible { outline: 3px solid var(--ap-graphite); outline-offset: 3px; }
.ap-band--graphite .ap-actions__more { color: var(--ap-paper); }
.ap-band--graphite .ap-actions__more:focus-visible { outline-color: var(--ap-paper); }
.ap-hero__actions--home .ap-actions__more { display: none; }
@media (min-width: 1024px) { .ap-hero__actions--home .ap-actions__more { display: inline; } }

/* Emergency hero. 375px order: H1 → status → Call → Stop the damage → facts → trust line. */
.ap-emergency__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ap-emergency__head { display: flex; flex-direction: column; gap: 20px; }
.ap-emergency__head h1 { font-size: clamp(36px, 5.5vw, 60px); }
.ap-emergency__facts { display: flex; flex-direction: column; gap: 28px; }
.ap-emergency__aside > * { margin: 0; }
@media (min-width: 1024px) {
	.ap-emergency__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head aside" "facts aside"; column-gap: 56px; row-gap: 32px; align-items: start; }
	.ap-emergency__head { grid-area: head; }
	.ap-emergency__aside { grid-area: aside; }
	.ap-emergency__facts { grid-area: facts; }
}
/* Facts: label/value rows in the Why-card label and body styles. */
.ap-facts { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.ap-facts__row { display: flex; flex-direction: column; gap: 6px; }
.ap-facts dt { font: 800 22px/1.1 var(--ap-display); letter-spacing: -0.01em; color: var(--ap-graphite); }
.ap-facts dd { margin: 0; }
/* Stacked groups (service rail): equal rows so two buttons match even when one label wraps; the link sits left under them. */
@media (min-width: 1024px) {
	.ap-rail .ap-actions__buttons { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
	.ap-rail .ap-actions__buttons:has(> .ap-actions__more) { grid-template-rows: 1fr 1fr; grid-auto-rows: auto; }
	.ap-rail .ap-actions__more { justify-self: start; }
}

/* ===== v1.7.1: Contact refinement ===== */
/* Grid: nothing in the main column crosses into the gap. One block gap in the main column: 48px mobile, 64px desktop. */
.ap-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.ap-contact > * { min-width: 0; margin: 0 !important; }
.ap-contact__main, .ap-contact__rest, .ap-contact__aside, .ap-contact__lead { display: flex; flex-direction: column; min-width: 0; }
.ap-contact__main { gap: 24px; } /* H1 sits 24px above the first block */
.ap-contact__rest { gap: 48px; }
.ap-contact__lead { gap: 24px; }
.ap-contact__callback { display: flex; flex-direction: column; gap: 20px; }
.ap-contact__aside, .ap-contact__side { display: flex; flex-direction: column; gap: 40px; }
.ap-contact__stop > * { margin: 0; }
html[data-ap-hours="open"] .ap-contact__stop { display: none; }
.ap-booking__embed { box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; }
.ap-booking__embed.ap-ph { min-height: 420px; }
.ap-booking__embed iframe { max-width: 100%; }
@media (min-width: 1024px) {
	.ap-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
	.ap-contact__rest { gap: 64px; }
}
/* The form sits under its heading: no card. */
.ap-request { border: 0; padding: 0 !important; background: none; }
/* "How soon?": same height, border and text size as the inputs; equal widths. One row when it fits, stacked on narrow screens. */
.ap-choices-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 600px) { .ap-choices-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-choice--pill { box-sizing: border-box; min-height: 52px; height: auto; padding: 12px; border: 2px solid var(--ap-steel); font: 400 18px/1.4 var(--ap-body); white-space: nowrap; }
.ap-choice--pill:has(input:checked) { border-color: var(--ap-graphite); background: var(--ap-graphite); color: var(--ap-paper); font-weight: 700; }
/* "By sending, you agree…": applies to the whole form; left-aligned directly above Send. */
.ap-form .ap-agree { margin: 0 0 -8px; font-size: 15px; color: var(--ap-steel); }
.ap-contact__sub { margin: 0; }

/* ===== v1.8.0: Home refinements ===== */
/* Emergency band: the full (after-hours) band gets the closing band's padding on both sides. The hidden compact band
   before it no longer counts as a same-background neighbour. */
.ap-strip--compact + .ap-strip { padding-top: clamp(32px, 5vw, 56px); }
.ap-strip--compact .ap-strip__link { display: inline; margin: 0 0 0 12px; font: 700 16px/1.4 var(--ap-body); color: var(--ap-paper); }
/* Hero: 32px from the action row (or the mobile status) to the trust-line rule. */
.ap-hero__text > .ap-proof { margin-top: 12px; }
@media (min-width: 1024px) {
	/* Photo top on the H1 cap height (≈0.15em below the line box top). */
	.ap-hero:not(.ap-hero--service) .ap-hero__grid { align-items: start; }
	.ap-hero:not(.ap-hero--service) .ap-hero__media { margin-top: calc(clamp(36px, 5vw, 64px) * 0.15); }
	/* Home Stop the damage: gas warning full width, steps in three equal columns. */
	.home .ap-afterhours .ap-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
	.home .ap-afterhours .ap-steps li { flex-direction: column; gap: 10px; }
	.home .ap-afterhours .ap-steps li strong { display: block; margin-bottom: 4px; }
}

/* ===== v1.9.0: spacing and background system ===== */
/* Tokens (theme.json spacing presets "Section" and "Band" point here). */
:root { --ap-section-space: 64px; --ap-band-space: 40px; --ap-heading-gap: 32px; }
@media (min-width: 1024px) { :root { --ap-section-space: 96px; --ap-band-space: 48px; } }

/* Every top-level section: --section-space top and bottom. The emergency band: --band-space. */
.ap-section, .ap-hero, .ap-hero.ap-section, .ap-cta.ap-band { padding-block: var(--ap-section-space); }
.ap-strip.ap-band, .ap-strip--compact.ap-band, .ap-strip--compact + .ap-strip { padding-block: var(--ap-band-space); }
.ap-section__head { margin-bottom: var(--ap-heading-gap); }

/* Same-background collapse (kept): two adjacent same-background sections share one --section-space. */
:is(.ap-section:not(.ap-section--mist), .ap-service-body) + :is(.ap-section:not(.ap-section--mist):not(.ap-band), .ap-service-body),
.ap-section--mist + :is(.ap-section--mist, .ap-band--mist),
.ap-band--mist + .ap-section--mist { padding-top: 0; }

/* Content flow: backgrounds by position, starting light. Reordering or removing a section keeps the alternation. */
.ap-flow > * { margin: 0 !important; }
.ap-flow > :nth-child(odd) { background: var(--ap-paper); }
.ap-flow > :nth-child(even) { background: var(--ap-mist); }
/* Inside the flow neighbours always differ, so every section keeps its full top padding... */
.ap-flow > * + * { padding-top: var(--ap-section-space) !important; }
/* ...except the first one after a visible Stop the damage section (both light): one shared space. */
html:not([data-ap-hours="open"]) .ap-stop + .ap-flow > :first-child { padding-top: 0; }

/* Stop the damage as a Home section: light, the bordered box inside, equal space above and below. */
.ap-stop { background: var(--ap-paper); }
.ap-main > .ap-stop .ap-afterhours, .ap-stop .ap-afterhours { margin: 0; }
.ap-afterhours__title { margin-bottom: calc(var(--ap-heading-gap) - 18px); }

/* Cards take the opposite surface of their section. */
.ap-card { background: var(--ap-mist); }
.ap-section--mist .ap-card { background: var(--ap-paper); }
.ap-flow > :nth-child(odd) .ap-card { background: var(--ap-mist); }
.ap-flow > :nth-child(even) .ap-card { background: var(--ap-paper); }

/* Where we work: heading to content at the standard heading gap. */
.ap-area__grid > div > h2 { margin-bottom: calc(var(--ap-heading-gap) - 12px); }

/* ===== static 2.1: assistant notes and the demo chat example ===== */
.ap-reach__note { font-size: 16px; color: var(--ap-steel); }
.ap-chatdemo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-chatdemo__cap { font-size: 15px; color: var(--ap-steel); }
.ap-chatdemo__log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-chatdemo__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.45; }
.ap-chatdemo__msg--you { align-self: flex-end; background: var(--ap-graphite); color: var(--ap-paper); border-bottom-right-radius: 4px; }
.ap-chatdemo__msg--bot { align-self: flex-start; background: var(--ap-mist); color: var(--ap-graphite); border-bottom-left-radius: 4px; }
/* Personalized demo note (prospect demos only). */
.ap-demo-note { background: var(--ap-graphite); color: var(--ap-paper); font: 600 14px/1.4 var(--ap-body); text-align: center; padding: 8px 16px; }

/* ===== static 2.5: full-bleed photo hero ("hero_style": "full-bleed") =====
   The photo sits behind the headline on the right and fades into a dark backdrop on the left (below 700px: photo on top, fading down). */
.ap-hero.ap-hero--photo { --ap-hero-dark: var(--ap-graphite); position: relative; overflow: hidden; isolation: isolate; background: var(--ap-hero-dark); color: var(--ap-paper); }
.ap-hero--photo .ap-hero__photo { position: absolute; z-index: -2; top: 0; right: 0; width: 100%; height: 300px; object-fit: cover; object-position: var(--ap-hero-focus, 50% 30%); }
.ap-hero--photo::before {
	content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
	background: linear-gradient(0deg, var(--ap-hero-dark) 0%, var(--ap-hero-dark) calc(100% - 300px), color-mix(in srgb, var(--ap-hero-dark) 55%, transparent) calc(100% - 200px), transparent calc(100% - 90px));
}
.ap-hero.ap-hero--photo { padding-top: 260px; }
.ap-hero--photo .ap-hero__grid { grid-template-columns: minmax(0, 1fr); }
.ap-hero--photo .ap-hero__title .ap-heavy { color: var(--ap-paper); }
.ap-hero--photo .ap-hero__title .ap-light { color: color-mix(in srgb, var(--ap-paper) 78%, var(--ap-hero-dark)); font-weight: 350; }
.ap-hero--photo .ap-btn--outline { background: transparent; border-color: color-mix(in srgb, var(--ap-paper) 80%, transparent); color: var(--ap-paper); box-shadow: none; }
.ap-hero--photo .ap-btn--outline:hover { background: color-mix(in srgb, var(--ap-paper) 12%, transparent); border-color: var(--ap-paper); color: var(--ap-paper); }
.ap-hero--photo .ap-actions__more, .ap-hero--photo .ap-actions__more:hover { color: var(--ap-paper); }
.ap-hero--photo .ap-status, .ap-hero--photo .ap-actions__note { color: var(--ap-paper); }
.ap-hero--photo .ap-proof { border-top-color: color-mix(in srgb, var(--ap-paper) 22%, transparent); color: color-mix(in srgb, var(--ap-paper) 88%, var(--ap-hero-dark)); }
.ap-hero--photo .ap-proof a { color: inherit; }
.ap-hero--photo :focus-visible { outline-color: var(--ap-paper); }
@media (min-width: 700px) {
	.ap-hero.ap-hero--photo { padding-top: var(--ap-section-space); min-height: 560px; display: flex; align-items: center; }
	.ap-hero--photo > .ap-wrap { width: 100%; }
	.ap-hero--photo .ap-hero__photo { width: 72%; height: 100%; }
	.ap-hero--photo::before {
		background: linear-gradient(90deg, var(--ap-hero-dark) 0%, var(--ap-hero-dark) 30%, color-mix(in srgb, var(--ap-hero-dark) 90%, transparent) 42%, color-mix(in srgb, var(--ap-hero-dark) 45%, transparent) 56%, transparent 72%);
	}
	.ap-hero--photo .ap-hero__text { max-width: 600px; }
}
@media (min-width: 1024px) { .ap-hero.ap-hero--photo { min-height: 600px; } }
