/*
Theme Name: Houston HOA Cameras
Theme URI: https://houstonhoacameras.com/
Author: S-Tech Solutions LLC
Author URI: https://s-techsol.com/
Description: Lightweight block theme for Houston HOA Cameras. Core blocks plus named patterns; no page builder, no jQuery.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: hhc
*/

/* Colors, type and spacing live in theme.json. This file holds component styles for the patterns.
   Class names: .hhc-* are pattern parts; .is-style-* are block styles registered in functions.php. */

:root {
	--hhc-radius: 10px;
	--hhc-shadow: 0 1px 2px rgba(46, 57, 67, .08), 0 8px 28px rgba(46, 57, 67, .08);
	--hhc-amber: #E7A33A;
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:where(a, button, summary, input, select, textarea, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
	border-radius: 2px;
}
p { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; }
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }

/* ---------- Header ---------- */
.hhc-top { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.hhc-top__inner { min-height: 84px; gap: 28px; }
.hhc-logo img { display: block; width: 272px; height: auto; }
.hhc-nav { margin-left: auto; }
.hhc-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); text-decoration: none; }
.hhc-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--oak); }
.hhc-nav .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; border-radius: 8px; box-shadow: var(--hhc-shadow); padding: 6px 0; min-width: 240px !important; }
.hhc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 16px; }
.hhc-phone { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; white-space: nowrap; }
.hhc-phone a { color: var(--wp--preset--color--ink); text-decoration: none; }
.hhc-phone span { display: block; font: 400 .75rem var(--wp--preset--font-family--system); color: var(--wp--preset--color--ink-2); }
.hhc-contact .wp-block-button__link { min-height: 44px; padding: 0 18px; }

/* Show the menu button below 960px, not just below core's 600px. */
@media (max-width: 960px) {
	.hhc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hhc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hhc-nav { order: 4; margin-left: 4px; }
	.wp-block-buttons.hhc-contact { order: 3; }
	.hhc-phone { margin-left: auto; }
}
@media (max-width: 640px) { .wp-block-buttons.hhc-contact { display: none; } }
.hhc-nav .wp-block-navigation__responsive-container-open {
	min-height: 44px; padding: 0 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; gap: 6px; align-items: center;
}
.hhc-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 20px; }
.hhc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: 6px 0; }

@media (max-width: 640px) {
	.hhc-top__inner { min-height: 66px; gap: 10px; }
	.hhc-logo img { width: 196px; }
	.hhc-phone { font-size: 1rem; }
	.hhc-phone span { display: none; }
}

/* ---------- Sections ---------- */
.hhc-section { padding-block: var(--wp--preset--spacing--60); }
.hhc-section.is-flush-top { padding-top: 0; }
.wp-block-columns.hhc-split { gap: 56px; }
@media (max-width: 960px) { .wp-block-columns.hhc-split { flex-wrap: wrap !important; gap: 32px; } .wp-block-columns.hhc-split > .wp-block-column { flex-basis: 100% !important; } }

/* Page header (H1 + answer block) on inner pages */
.hhc-page-head { background: linear-gradient(180deg, var(--wp--preset--color--sky-wash), #fff 90%); padding-block: 56px 32px; }
.hhc-page-head h1 { max-width: 20ch; }

/* ---------- Hero ---------- */
.hhc-hero { background: linear-gradient(180deg, var(--wp--preset--color--sky-wash), #fff 85%); padding-block: 64px 56px; }
.hhc-hero h1 { max-width: 17ch; }
.hhc-hero .hhc-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--ink-2); max-width: 56ch; }
.hhc-hero .wp-block-buttons { margin-top: 28px; gap: 12px; }
@media (max-width: 640px) {
	.hhc-hero { padding-block: 32px 40px; }
	.hhc-hero .wp-block-button { width: 100%; }
	.hhc-hero .wp-block-button__link { width: 100%; }
}

.hhc-plan { margin: 0; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--hhc-shadow); }
.hhc-plan__art { position: relative; border-radius: 8px; overflow: hidden; }
.hhc-plan img { display: block; width: 100%; height: auto; }
.hhc-plan__overlay, .hhc-plan__overlay img { position: absolute; inset: 0; width: 100%; height: 100% !important; }
.hhc-plan figcaption { font-size: .875rem; color: var(--wp--preset--color--ink-2); margin: 10px 6px 2px; text-align: left; }
.hhc-plan figcaption::before { content: ""; display: inline-block; width: 22px; height: 12px; margin-right: 10px; vertical-align: -1px; border-radius: 2px; background: rgba(231, 163, 58, .45); border: 1px solid #C98418; }

/* Check-mark list (credentials) */
.wp-block-list.is-style-checks { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.wp-block-list.is-style-checks li { display: flex; align-items: center; gap: 8px; }
.wp-block-list.is-style-checks li::before {
	content: ""; width: 16px; height: 16px; flex: none;
	background: var(--wp--preset--color--oak);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Answer block ---------- */
p.is-style-answer { font-size: var(--wp--preset--font-size--large); line-height: 1.65; max-width: 68ch; padding-left: 20px; border-left: 4px solid var(--wp--preset--color--oak); }
.hhc-answer { padding-block: 56px 8px; }

/* ---------- Service list (ruled rows, whole row clickable) ---------- */
.hhc-svc__item { position: relative; padding: 22px 40px 22px 0; border-top: 1px solid var(--wp--preset--color--line); }
.hhc-svc__item h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.hhc-svc__item h3 a::after { content: ""; position: absolute; inset: 0; }
.hhc-svc__item:hover h3 a { color: var(--wp--preset--color--oak); text-decoration: underline; }
.hhc-svc__item::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
	border-right: 2.4px solid var(--wp--preset--color--oak); border-top: 2.4px solid var(--wp--preset--color--oak); transform: rotate(45deg);
}
.hhc-svc__item p { color: var(--wp--preset--color--ink-2); font-size: 1rem; margin-top: 4px; }
.hhc-svc__item > * + * { margin-block-start: 4px; }

/* ---------- Why boards work with us ---------- */
.hhc-why { background: var(--wp--preset--color--oak-wash); }
.hhc-why__list { gap: 26px !important; }
.hhc-why__list h3 { font-size: 1.1875rem; }
.hhc-why__list p { color: var(--wp--preset--color--ink-2); max-width: 58ch; margin-top: 6px; }
.hhc-why__list > .wp-block-group > * + * { margin-block-start: 6px; }

/* Photo frame and placeholder */
.hhc-photo { position: relative; margin: 28px 0 0; border-radius: var(--hhc-radius); overflow: hidden; }
.hhc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hhc-photo--portrait { aspect-ratio: 4 / 5; }
.hhc-photo.is-placeholder { aspect-ratio: 4/5; background: repeating-linear-gradient(135deg, #D5E4DB 0 12px, #DEEBE3 12px 24px); display: flex; align-items: flex-end; }
.hhc-photo.is-placeholder p, .hhc-photo figcaption { background: rgba(255, 255, 255, .94); font-size: .8125rem; color: var(--wp--preset--color--ink-2); padding: 6px 10px; margin: 10px; border-radius: 4px; }
.hhc-photo figcaption { position: absolute; left: 0; bottom: 0; }
@media (max-width: 960px) { .hhc-photo--portrait { aspect-ratio: 4 / 5; }
.hhc-photo.is-placeholder { aspect-ratio: 3/2; } }

/* ---------- Process steps (ordered list) ---------- */
ol.is-style-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
ol.is-style-steps > li { counter-increment: s; position: relative; padding-top: 60px; color: var(--wp--preset--color--ink-2); font-size: 1rem; }
ol.is-style-steps > li strong { display: block; margin-bottom: 8px; font-family: var(--wp--preset--font-family--display); font-size: 1.1875rem; line-height: 1.3; color: var(--wp--preset--color--ink); }
ol.is-style-steps > li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--oak); color: #fff; font: 700 1.25rem/44px var(--wp--preset--font-family--display); text-align: center; z-index: 1; }
ol.is-style-steps > li::after { content: ""; position: absolute; top: 21px; left: 44px; right: -24px; height: 2px; background: #B9D3C5; }
ol.is-style-steps > li:last-child::after { display: none; }
@media (max-width: 960px) {
	ol.is-style-steps { grid-template-columns: 1fr; gap: 0; }
	ol.is-style-steps > li { padding: 0 0 28px 64px; min-height: 44px; }
	ol.is-style-steps > li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
}

/* ---------- Results ---------- */
.hhc-results__grid { margin-top: 32px; }
.hhc-result { margin: 0; padding: 26px 24px; background: var(--wp--preset--color--sky-wash); border-radius: var(--hhc-radius); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.45; }

/* ---------- Quote cards (hidden until real quotes exist) ---------- */
.hhc-quote { margin: 0; padding: 26px 24px; border-left: 4px solid var(--wp--preset--color--oak); background: #fff; }
.hhc-quote p { font-size: var(--wp--preset--font-size--large); }
.hhc-quote .hhc-quote__cite { display: block; margin-top: 12px; font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }

/* ---------- FAQ (native details) ---------- */
.wp-block-details { border-top: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.125rem/1.35 var(--wp--preset--font-family--display); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--wp--preset--color--oak); border-bottom: 2px solid var(--wp--preset--color--oak); transform: rotate(45deg); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.wp-block-details > :not(summary) { margin: 0 0 20px; color: var(--wp--preset--color--ink-2); max-width: 60ch; }

/* ---------- Comparison table ---------- */
.wp-block-table.is-style-compare { overflow-x: auto; }
.wp-block-table.is-style-compare table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
.wp-block-table.is-style-compare th, .wp-block-table.is-style-compare td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.wp-block-table.is-style-compare thead th { background: var(--wp--preset--color--ink); color: #fff; font-family: var(--wp--preset--font-family--display); }
.wp-block-table.is-style-compare tbody td:first-child { font-weight: 600; }
.wp-block-table.is-style-compare tbody tr:nth-child(even) { background: #F6F8F9; }

/* ---------- Case study cards and filter chips ---------- */
.hhc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.hhc-chips button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--wp--preset--color--ink); border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink); font: 700 .9375rem var(--wp--preset--font-family--display); cursor: pointer; }
.hhc-chips button[aria-pressed="true"] { background: var(--wp--preset--color--oak); border-color: var(--wp--preset--color--oak); color: #fff; }
.hhc-case { margin: 0; border-top: 4px solid var(--wp--preset--color--oak); padding-top: 18px; }
.hhc-case__meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.hhc-case[hidden] { display: none; }

/* ---------- Closing band: service area + call to action ---------- */
.hhc-close { background: var(--wp--preset--color--oak); color: #fff; padding-block: 72px; }
.hhc-close h2 { color: #fff; }
.hhc-close .hhc-area p { color: #E3F0E9; margin-top: 14px; font-size: 1.0625rem; }
.hhc-close .hhc-area a { color: #fff; }
.hhc-ask { background: #fff; color: var(--wp--preset--color--ink); border-radius: 12px; padding: 32px; }
.hhc-ask p { font-size: var(--wp--preset--font-size--large); }
.hhc-ask .wp-block-buttons { margin-top: 20px; }
@media (max-width: 640px) { .hhc-ask { padding: 24px; } .hhc-ask .wp-block-button, .hhc-ask .wp-block-button__link { width: 100%; } }

/* Simple call-to-action band for inner pages */
.hhc-cta { background: var(--wp--preset--color--oak-wash); border-radius: 12px; padding: 32px; }
.hhc-cta p { font-size: var(--wp--preset--font-size--large); max-width: 56ch; }

/* ---------- Last updated ---------- */
.hhc-updated { font-size: .875rem; color: var(--wp--preset--color--ink-2); padding-block: 32px; gap: .35em !important; }
.hhc-updated .wp-block-post-date { font-size: inherit; }

/* ---------- Footer ---------- */
.hhc-footer { background: var(--wp--preset--color--ink); color: #D5DCE2; padding-block: 44px 120px; font-size: var(--wp--preset--font-size--small); }
.hhc-footer a { color: #fff; }
.hhc-footer .hhc-footer__logo img { width: 260px; height: auto; }
.hhc-footer p + p { margin-top: 8px; }
.hhc-footer__links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; }
@media (min-width: 641px) { .hhc-footer { padding-bottom: 44px; } }

/* ---------- Mobile sticky call / assessment bar ---------- */
.hhc-sticky { display: none !important; }
@media (max-width: 640px) {
	.hhc-sticky {
		display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0 !important;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
		background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -4px 16px rgba(46, 57, 67, .08);
	}
	.hhc-sticky .wp-block-button, .hhc-sticky .wp-block-button__link { width: 100%; min-height: 50px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.hhc-plan img { aspect-ratio: 1264 / 848; }

/* Prose inside 1140px frames: left-aligned with the section edges, lines kept under ~70 characters. */
.wp-block-post-content.is-layout-constrained > :where(p, ul, ol, h2, h3, h4, .wp-block-details, .hhc-cta, .wp-block-buttons, .hhc-page-photo),
.hhc-answer.is-layout-constrained > p,
main.is-layout-constrained.hhc-section > :where(h1, p, .wp-block-buttons) {
	margin-left: max(0px, calc((100% - 1140px) / 2)) !important;
	max-width: 68ch;
}
.wp-block-post-content.is-layout-constrained > :where(h2, h3, h4) { margin-top: 2.5rem; }

/* Case studies list (shortcode output from the site plugin) */
.hhc-cases__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 32px; }
.hhc-case h3 { margin: 6px 0 8px; font-size: 1.1875rem; }
.hhc-case p { color: var(--wp--preset--color--ink-2); }

/* Related links at the end of service pages */
.hhc-related { border-top: 1px solid var(--wp--preset--color--line); padding-top: 24px; margin-top: 48px !important; }
.hhc-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.wp-block-post-content.is-layout-constrained > .hhc-related { max-width: 1140px; }
.wp-block-post-content.is-layout-constrained > :where(.wp-block-table) { margin-left: max(0px, calc((100% - 1140px) / 2)) !important; max-width: 900px; }
.wp-block-post-content.is-layout-constrained > .hhc-cases { max-width: 1140px; }
.wp-block-post-content > .wp-block-table + p, .wp-block-post-content > p + .wp-block-table { margin-top: 1.25rem; }

/* Inner page header: H1 aligned with the content's left edge */
.hhc-page-head.is-layout-constrained > h1 { margin-left: max(0px, calc((100% - 1140px) / 2)) !important; }
/* Steps and the forms need more room than a prose line */
.wp-block-post-content.is-layout-constrained > ol.is-style-steps { max-width: 1140px; }
.wp-block-post-content.is-layout-constrained > .wpforms-container { margin-left: max(0px, calc((100% - 1140px) / 2)) !important; max-width: 640px; margin-top: 32px !important; }

/* WPForms, matched to the theme */
.wpforms-container .wpforms-field-label { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1rem; color: var(--wp--preset--color--ink); }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container select, .wpforms-container textarea {
	width: 100% !important; max-width: none !important; min-height: 48px; padding: 10px 12px; font-size: 1rem;
	border: 1.5px solid #9AA6B1 !important; border-radius: 8px !important; background: #fff; color: var(--wp--preset--color--ink);
}
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus { outline: 3px solid var(--wp--preset--color--sky); outline-offset: 1px; border-color: var(--wp--preset--color--sky) !important; }
.wpforms-container .wpforms-submit {
	min-height: 52px !important; padding: 0 28px !important; border-radius: 8px !important; border: 2px solid var(--wp--preset--color--oak) !important;
	background: var(--wp--preset--color--oak) !important; color: #fff !important; font: 700 1.0625rem var(--wp--preset--font-family--display) !important; cursor: pointer;
}
.wpforms-container .wpforms-submit:hover { background: var(--wp--preset--color--oak-dark) !important; }
.wpforms-confirmation-container-full { background: var(--wp--preset--color--oak-wash) !important; border: 0 !important; border-left: 4px solid var(--wp--preset--color--oak) !important; padding: 20px 24px !important; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--ink) !important; }
.wp-block-table.is-style-compare thead td { background: var(--wp--preset--color--ink); }
.wp-block-table.is-style-compare:focus-visible { outline: 3px solid var(--wp--preset--color--sky); outline-offset: 4px; }

/* Photo under a page's answer block (3:2, prose width) */
.wp-block-post-content > .hhc-page-photo { max-width: 760px !important; margin-block: 28px 8px; }
.hhc-page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--hhc-radius); }

/* Case study groups: room between the intro line, the cards and what follows */
.wp-block-post-content > .hhc-cases { margin-block: 28px 56px; }

/* Client quotes on the Results page: one per row at reading width, so long and short quotes sit well together */
.wp-block-post-content > .hhc-quotes { max-width: 760px !important; margin-block: 28px 56px; display: grid; gap: 20px; }
.wp-block-post-content.is-layout-constrained > .hhc-quotes { margin-left: max(0px, calc((100% - 1140px) / 2)) !important; }
.hhc-quotes .hhc-quote { background: var(--wp--preset--color--oak-wash); border-radius: 0 var(--hhc-radius) var(--hhc-radius) 0; padding: 24px 28px; }
.hhc-quotes .hhc-quote p { font-size: 1.125rem; line-height: 1.55; color: var(--wp--preset--color--ink); }
.hhc-quotes .hhc-quote .hhc-quote__cite { margin-top: 12px; font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--ink-2); }

/* =====================================================================
   Inner pages (2026-11-18): page head with photo, content + sticky sidebar, green closing band
   ===================================================================== */
.hhc-page-head { padding-block: 56px 48px; }
.hhc-page-head__grid { display: grid; gap: 56px; align-items: center; }
.hhc-page-head__grid:has(.hhc-page-head__photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hhc-page-head h1 { margin: 0; max-width: 20ch; }
.hhc-lede { margin-top: 20px; font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--wp--preset--color--ink-2); max-width: 60ch; }
.hhc-lede p { margin: 0; }
.hhc-page-head__buttons { margin-top: 28px; gap: 12px; }
.hhc-page-head__photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--hhc-shadow); }
.hhc-page-head__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
	.hhc-page-head__grid:has(.hhc-page-head__photo) { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
	.hhc-page-head { padding-block: 28px 32px; }
	.hhc-page-head__buttons { display: none; } /* the sticky call/assessment bar covers this on phones */
}

.hhc-body { padding-block: 48px 72px; }
.hhc-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 64px; align-items: start; }
.hhc-body .wp-block-post-content > :where(p, ul, ol, h2, h3, .wp-block-details) { max-width: 70ch; }
.hhc-body .wp-block-post-content > h2 { margin-top: 56px; }
.hhc-body .wp-block-post-content > h2:first-child { margin-top: 0; }
.hhc-body--narrow .wp-block-post-content { max-width: 760px; }
.hhc-body__main .hhc-updated { padding: 40px 0 0; }

.hhc-side { position: sticky; top: 24px; display: grid; gap: 28px; }
.hhc-side > * { margin: 0 !important; }
.hhc-side__cta { background: var(--wp--preset--color--oak-wash); border-radius: 12px; padding: 24px; }
.hhc-side__title { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.3125rem; color: var(--wp--preset--color--ink); }
.hhc-side__cta p:not(.hhc-side__title) { margin-top: 8px; font-size: .9375rem; color: var(--wp--preset--color--ink-2); }
.hhc-side__cta .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
.hhc-side__cta .wp-block-button, .hhc-side__cta .wp-block-button__link { width: 100%; text-align: center; }
.wp-block-list.is-style-checks.hhc-side__facts { flex-direction: column; flex-wrap: nowrap; gap: 10px; margin: 0; font-size: .9375rem; }
.hhc-side__label { font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--ink-2); margin: 0 0 6px; }
.hhc-side__related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--line); }
.hhc-side__related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); font-weight: 600; text-decoration: none; }
.hhc-side__related a::after { content: "›"; color: var(--wp--preset--color--oak); font-size: 1.25rem; line-height: 1; }
.hhc-side__related a:hover { color: var(--wp--preset--color--oak); }
@media (max-width: 1099px) {
	.hhc-body__grid { grid-template-columns: 1fr; gap: 48px; }
	.hhc-side { position: static; }
	.hhc-side__cta, .hhc-side__facts { display: none !important; } /* the closing band and sticky bar cover these */
}

.hhc-band { padding-block: 64px; }
.hhc-band__inner { max-width: 760px; }
.hhc-band h2 { color: #fff; margin: 0; }
.hhc-band p { color: #E3F0E9; font-size: var(--wp--preset--font-size--large); margin-top: 12px; max-width: 56ch; }
.hhc-band .wp-block-buttons { margin-top: 28px; gap: 12px; }
.wp-block-button.is-style-on-dark .wp-block-button__link { background: #fff; color: var(--wp--preset--color--oak-dark); border: 2px solid #fff; }
.wp-block-button.is-style-on-dark .wp-block-button__link:hover { background: var(--wp--preset--color--oak-wash); }
.wp-block-button.is-style-ghost-on-dark .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.wp-block-button.is-style-ghost-on-dark .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 640px) {
	.hhc-band { padding-block: 48px; }
	.hhc-band .wp-block-button, .hhc-band .wp-block-button__link { width: 100%; }
}

/* ---------- Review fixes (2026-11-18) ---------- */
h1, h2, h3, .hhc-side__title { text-wrap: balance; }

/* Header: menu, phone and Contact button line up with the page's right edge on desktop */
@media (min-width: 961px) {
	.hhc-top__inner > .hhc-nav { margin-left: auto !important; }
	.hhc-nav .wp-block-navigation__container { gap: 6px 24px !important; }
	.hhc-top__inner { gap: 32px; }
}
@media (max-width: 640px) { .wp-block-buttons.hhc-page-head__buttons { display: none !important; } }

/* Lists in page text: site markers instead of browser bullets */
.hhc-body .wp-block-post-content ul.wp-block-list:not([class*="is-style"]):not(.hhc-jump) { list-style: none; padding-left: 0; }
.hhc-body .wp-block-post-content ul.wp-block-list:not([class*="is-style"]):not(.hhc-jump) > li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.hhc-body .wp-block-post-content ul.wp-block-list:not([class*="is-style"]):not(.hhc-jump) > li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--wp--preset--color--oak); }
/* Check lists inside page text: an even grid at body size (the small inline version stays in heroes) */
.hhc-body .wp-block-post-content .wp-block-list.is-style-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 10px 24px; font-size: 1rem; color: var(--wp--preset--color--ink); }

/* FAQ topic links */
.hhc-jump { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.hhc-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px; color: var(--wp--preset--color--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; background: #fff; }
.hhc-jump a:hover { border-color: var(--wp--preset--color--oak); color: var(--wp--preset--color--oak); }
.hhc-body .wp-block-post-content h2[id] { scroll-margin-top: 24px; }

/* Tables on phones: each row becomes a card with its column labels */
@media (max-width: 640px) {
	.wp-block-table.hhc-stack { overflow: visible !important; }
	.hhc-stack table, .hhc-stack tbody, .hhc-stack tr, .hhc-stack td, .hhc-stack th { display: block; width: 100% !important; min-width: 0 !important; }
	.hhc-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hhc-stack table { border: 0 !important; }
	.hhc-stack tr { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
	.hhc-stack td, .hhc-stack tbody th { border: 0 !important; padding: 5px 0 !important; white-space: normal !important; background: none !important; }
	.hhc-stack tr > :first-child { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.0625rem; color: var(--wp--preset--color--ink); }
	.hhc-stack td:not(:first-child)[data-label]::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 700; color: var(--wp--preset--color--ink-2); }
}

/* Contact form: real tap targets */
.wpforms-container .wpforms-field-checkbox ul { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 4px 16px; }
.wpforms-container .wpforms-field-checkbox li { display: flex !important; align-items: center; gap: 10px; min-height: 44px; margin: 0 !important; }
.wpforms-container .wpforms-field-checkbox input[type=checkbox] { width: 22px !important; height: 22px !important; margin: 0 !important; accent-color: var(--wp--preset--color--oak); flex: none; }
.wpforms-container .wpforms-field-checkbox label { font-size: 1rem !important; margin: 0 !important; }
@media (max-width: 640px) { .wpforms-container .wpforms-submit { width: 100% !important; min-height: 52px; } }

/* 404 */
main.hhc-section > .wp-block-buttons { margin-top: 28px; }
.hhc-404-links { margin-top: 28px; color: var(--wp--preset--color--ink-2); }

/* Homepage service icons */
.hhc-svc__item h3 { display: flex; align-items: center; gap: 14px; }
.hhc-svc__item h3::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--wp--preset--color--oak-wash) center / 24px no-repeat; }
.hhc-svc__item:nth-child(1) h3::before { background-image: url("assets/icons/camera-oak.svg?v=2"); }
.hhc-svc__item:nth-child(2) h3::before { background-image: url("assets/icons/plate-oak.svg?v=2"); }
.hhc-svc__item:nth-child(3) h3::before { background-image: url("assets/icons/eye-oak.svg"); }
.hhc-svc__item:nth-child(4) h3::before { background-image: url("assets/icons/key-oak.svg"); }
.hhc-svc__item:nth-child(5) h3::before { background-image: url("assets/icons/sun-oak.svg"); }
.hhc-svc__item:nth-child(6) h3::before { background-image: url("assets/icons/wrench-oak.svg"); }

/* Proof strip under the homepage hero */
.hhc-proof { border-block: 1px solid var(--wp--preset--color--line); background: #fff; padding-block: 28px; }
.hhc-proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
.hhc-proof__item p { margin: 0; font-size: .9375rem; color: var(--wp--preset--color--ink-2); line-height: 1.45; }
.hhc-proof__item .hhc-proof__big { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.375rem; color: var(--wp--preset--color--oak-dark); margin-bottom: 4px; }
@media (max-width: 960px) { .hhc-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hhc-proof__grid { grid-template-columns: 1fr; gap: 16px; } .hhc-proof { padding-block: 24px; } }

/* Homepage results: same card style as the Results page */
.hhc-results__grid .hhc-case p:not(.hhc-case__meta) { color: var(--wp--preset--color--ink); font-size: 1.0625rem; }
p.hhc-results__more { margin-top: 32px; font-weight: 700; }

/* "Last updated" on the homepage sits at the top of the footer instead of in a white strip */
.home .hhc-updated { background: var(--wp--preset--color--ink); color: rgba(255, 255, 255, .7); margin: 0 !important; max-width: none !important; padding: 20px max(20px, calc((100% - 1140px) / 2)) 0; }
.home .hhc-updated { margin-inline: calc(var(--wp--style--root--padding-left, 20px) * -1) !important; }

/* ---------- Homepage rhythm (2026-11-18): tighter sections, shorter page ---------- */
.hhc-section { padding-block: clamp(40px, 5vw, 64px); }
.hhc-hero { padding-block: 48px 40px; }
.hhc-answer { padding-block: 36px 0; }
.hhc-svc__item { padding-block: 16px; }
.hhc-why__list { gap: 18px !important; }
ol.is-style-steps { margin-top: 28px; }
.hhc-results__grid { margin-top: 24px; }
p.hhc-results__more { margin-top: 24px; }
.hhc-close { padding-block: 56px; }
/* Hero credentials on one line where the column is wide enough */
@media (min-width: 1200px) {
	.hhc-hero .wp-block-list.is-style-checks { flex-wrap: nowrap; gap: 8px 18px; white-space: nowrap; font-size: .875rem; }
}
@media (max-width: 640px) {
	.hhc-hero { padding-block: 24px 32px; }
	.hhc-answer { padding-block: 28px 0; }
	.hhc-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 20px; }
	.hhc-proof__item .hhc-proof__big { font-size: 1.125rem; }
	.hhc-proof__item p { font-size: .875rem; }
	.hhc-photo--portrait { aspect-ratio: 3 / 2 !important; }
	.hhc-photo--portrait img { object-position: center 35%; }
	.hhc-close { padding-block: 40px; }
	.hhc-svc__item { padding-block: 14px; }
}
@media (min-width: 1100px) {
	.hhc-why__list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px !important; }
	.hhc-why .hhc-photo--portrait { aspect-ratio: 1 / 1; }
	.hhc-why .hhc-photo--portrait img { object-position: center 40%; }
}
@media (max-width: 640px) { .hhc-stack table, .hhc-stack tbody, .hhc-stack tr, .hhc-stack td, .hhc-stack th { box-sizing: border-box; } }

/* Services menu: the cost page sits below a divider, apart from the services */
.hhc-nav .wp-block-navigation__submenu-container .hhc-nav__aside { border-top: 1px solid var(--wp--preset--color--line); margin-top: 6px; padding-top: 6px; }
.hhc-nav .wp-block-navigation__responsive-container.is-menu-open .hhc-nav__aside { margin-top: 10px; padding-top: 10px; }

/* Contact page: form beside a contact card */
.hhc-page-head:has(+ .hhc-body--narrow) { padding-block-end: 8px; }
.hhc-page-head h1 { text-wrap: balance; }
.hhc-body--narrow:has(.wpforms-container) { padding-block-start: 32px; }
.hhc-body--narrow .wp-block-post-content:has(.wpforms-container) { max-width: none; }
.wpforms-container .wpforms-field-checkbox li { width: auto !important; padding: 0 !important; float: none !important; }
.wpforms-container .wpforms-field-checkbox ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.wp-block-post-content:has(.wpforms-container) > ul.wp-block-list,
.wp-block-post-content:has(.wpforms-container) > p:not(:empty) { background: var(--wp--preset--color--oak-wash); margin: 0 !important; padding: 24px 28px; }
.wp-block-post-content:has(.wpforms-container) > ul.wp-block-list { border-radius: 14px 14px 0 0; padding-bottom: 8px; }
.wp-block-post-content:has(.wpforms-container) > p:not(:empty) { border-radius: 0 0 14px 14px; padding-top: 8px; font-size: 1rem; }
.wp-block-post-content:has(.wpforms-container) > p:empty { display: none; }
@media (min-width: 961px) {
  .wp-block-post-content:has(.wpforms-container) { display: grid; grid-template-columns: minmax(0, 640px) 340px; column-gap: 64px; grid-template-rows: auto auto 1fr; align-items: start; }
  .wp-block-post-content:has(.wpforms-container) > ul.wp-block-list { grid-column: 2; grid-row: 1; }
  .wp-block-post-content:has(.wpforms-container) > p:not(:empty) { grid-column: 2; grid-row: 2; }
  .wp-block-post-content:has(.wpforms-container) > .wpforms-container { grid-column: 1; grid-row: 1 / span 3; margin: 0 !important; max-width: none; }
}
@media (max-width: 960px) {
  .wp-block-post-content:has(.wpforms-container) > .wpforms-container { margin-top: 32px !important; }
}
@media (max-width: 480px) {
  .wpforms-container .wpforms-field-checkbox ul { grid-template-columns: 1fr !important; }
  body:has(.wpforms-container) .hhc-sticky { display: none !important; }
}
.hhc-page-head__grid:not(:has(.hhc-page-head__photo)) h1 { max-width: 30ch; }
.wp-block-post-content:has(.wpforms-container) > ul.wp-block-list > li { padding-left: 0 !important; margin-bottom: 6px !important; }
.wp-block-post-content:has(.wpforms-container) > ul.wp-block-list > li::before { display: none; }
.wp-block-post-content:has(.wpforms-container) a[href^="tel:"] { white-space: nowrap; font-weight: 700; }
@media (max-width: 960px) {
  .wp-block-post-content:has(.wpforms-container) { display: flex; flex-direction: column; }
  .wp-block-post-content:has(.wpforms-container) > .wpforms-container { order: 1; margin: 0 0 40px !important; }
  .wp-block-post-content:has(.wpforms-container) > ul.wp-block-list { order: 2; }
  .wp-block-post-content:has(.wpforms-container) > p:not(:empty) { order: 3; }
}
.hhc-body .wp-block-post-content:has(.wpforms-container) > ul.wp-block-list { padding: 24px 28px 4px !important; }
.hhc-body .wp-block-post-content:has(.wpforms-container) > p:not(:empty) { padding: 8px 28px 24px !important; color: var(--wp--preset--color--ink-2); }

/* Homepage service cards (2026-11-18): each service reads as a clickable card, and lifts on hover */
.hhc-svc { gap: 16px !important; }
.hhc-svc__item {
	border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff;
	padding: 20px 56px 20px 20px !important;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hhc-svc__item::after { right: 24px; transition: transform .15s ease; }
.hhc-svc__item:hover, .hhc-svc__item:has(a:focus-visible) {
	border-color: var(--wp--preset--color--oak); box-shadow: var(--hhc-shadow); transform: translateY(-2px);
}
.hhc-svc__item:hover::after { transform: translateX(4px) rotate(45deg); }
.hhc-svc__item:hover h3::before { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--oak); }
.hhc-svc__item:has(a:focus-visible) { outline: 3px solid var(--wp--preset--color--sky); outline-offset: 2px; }
.hhc-svc__item h3 a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
	.hhc-svc__item, .hhc-svc__item::after { transition: none; }
	.hhc-svc__item:hover { transform: none; }
}
@media (max-width: 640px) { .hhc-svc__item { padding: 16px 48px 16px 16px !important; } .hhc-svc__item::after { right: 20px; } }
.hhc-svc__item > h3 { margin-top: 0 !important; } .hhc-svc__item > p { margin-top: 10px !important; margin-bottom: 0; }
