/*
 * EnvoClean brand layer — loaded last in every layout.
 * Spec: docs/superpowers/specs/2026-10-08-visual-foundation-design.md
 * Inter: SIL Open Font License 1.1 (webroot/font/inter/LICENSE).
 */

@font-face {
	font-family: 'Inter';
	src: url('../font/inter/inter-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--brand-lime: #5DE813;
	--brand-green: #4CAF1A; /* decorative only: white text on it fails WCAG AA */
	--brand-forest: #3A610E;
	--brand-ink: #16240A;
	--brand-tint: #F2F8EC;
	--brand-white: #FFFFFF;
	--brand-text: #3B4634;
	--brand-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	/* Lit buttons ("Lit buttons" below): a slightly lighter top (~+8% lightness) to the button
	   colour, and a glow in the same colour at 60%. Ink on the lime top: 10.6:1; white on the
	   forest top: 5.9:1 (a bigger lift would drop it towards 4.5:1). */
	--btn-lime-top: color-mix(in srgb, var(--brand-lime), white 15%);
	--btn-lime-glow: color-mix(in srgb, var(--brand-lime) 60%, transparent);
	--btn-forest-top: color-mix(in srgb, var(--brand-forest), white 8%);
	--btn-forest-glow: color-mix(in srgb, var(--brand-forest) 60%, transparent);
}

/* One font everywhere. Type selectors only, so icon-font classes (.fa, [class^="hs-icon"], .pe-7s-*, revicons) still win. */
body, body * {
	font-family: var(--brand-font);
}
body {
	color: var(--brand-text);
	-webkit-font-smoothing: antialiased;
}

/* Theme teal (#19ba9b) -> brand greens. The theme declares these with !important. */
.g-color-primary,
.g-color-primary--hover:hover { color: var(--brand-forest) !important; }
.g-bg-primary,
.g-bg-primary--hover:hover { background-color: var(--brand-forest) !important; }
.g-brd-primary { border-color: var(--brand-green) !important; }
.g-bg-primary--before::before { background-color: var(--brand-green) !important; }

.u-btn-primary,
.u-btn-teal,
.u-btn-cyan {
	color: var(--brand-white) !important;
	background-color: var(--brand-forest) !important;
	border-color: var(--brand-forest) !important;
}
.u-btn-primary:hover, .u-btn-primary:focus,
.u-btn-teal:hover, .u-btn-teal:focus,
.u-btn-cyan:hover, .u-btn-cyan:focus {
	color: var(--brand-white) !important;
	background-color: var(--brand-ink) !important;
	border-color: var(--brand-ink) !important;
}

/* Scroll reveal (js/reveal.js). Only active once the script adds .reveal-ready to <html>. */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal-ready [data-reveal].is-revealed,
.reveal-ready [data-reveal-stagger] > .is-revealed {
	opacity: 1;
	transform: none;
}

/* Section backgrounds: light rhythm, dark accents. */
.section--light,
.section--tint,
.section--forest,
.section--ink {
	padding: 80px 0;
}
@media (max-width: 767.98px) {
	.section--light, .section--tint, .section--forest, .section--ink { padding: 56px 0; }
}

.section--light { background-color: var(--brand-white); color: var(--brand-text); }
.section--tint { background-color: var(--brand-tint); color: var(--brand-text); }
.section--forest { background-color: var(--brand-forest); color: var(--brand-white); }
.section--ink { background-color: var(--brand-ink); color: var(--brand-white); }

/* Dark sections: theme colour classes use !important, so match it. */
.section--forest :is(h1, h2, h3, h4, h5, h6, p, li, label, small),
.section--ink :is(h1, h2, h3, h4, h5, h6, p, li, label, small) {
	color: var(--brand-white) !important;
}
.section--forest a:not(.btn),
.section--ink a:not(.btn) {
	color: var(--brand-lime);
}
.section--forest .btn,
.section--ink .btn {
	color: var(--brand-ink) !important;
	background-color: var(--brand-lime) !important;
	border-color: var(--brand-lime) !important;
}
.section--forest .btn:hover, .section--forest .btn:focus,
.section--ink .btn:hover, .section--ink .btn:focus {
	color: var(--brand-ink) !important;
	background-color: var(--brand-white) !important;
	border-color: var(--brand-white) !important;
}
.section--ink .form-control {
	color: var(--brand-ink);
	background-color: var(--brand-white);
}
/* Field errors from FormHelper (div.error-message under the input, input.form-error).
   White on #B3261E is 6.4:1; the red block also stands out on the ink band. */
.error-message {
	display: block;
	margin-top: 8px;
	padding: 8px 12px;
	color: var(--brand-white);
	background-color: #B3261E;
	font-weight: 600;
}
.form-control.form-error {
	border: 2px solid #B3261E;
	box-shadow: 0 0 0 2px #FF8A80;
}
/* A forest card on a forest band would vanish: make it ink. */
.section--forest .g-bg-primary {
	background-color: var(--brand-ink) !important;
}

/* The logo is green; give it a white disc on dark bands. */
.brand-badge {
	box-sizing: content-box;
	padding: 14px;
	border-radius: 50%;
	background-color: var(--brand-white);
}

/* Tile hover: lift + deeper shadow; overlay-card accent bar widens. */
.brand-tile {
	transition: transform .35s ease, box-shadow .35s ease;
}
.brand-tile:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(22, 36, 10, .18);
}
.overlay-card__body::before {
	transition: width .35s ease;
}
.overlay-card:hover .overlay-card__body::before,
.overlay-card:focus-visible .overlay-card__body::before {
	width: 64px;
}
/* Cards with no EnvoClean photo (services with 'img' => null): a lime top line and
   forest green fading to ink, like the compact service hero, instead of a blank slate.
   Ink from 60% down, where the bottom-anchored text sits. Photo cards are unaffected.
   tests/TestCase/HomeServiceCardsTest.php checks the text contrast. */
.overlay-card--plain {
	background:
		linear-gradient(var(--brand-lime), var(--brand-lime)) top / 100% 4px no-repeat,
		linear-gradient(to bottom, var(--brand-forest) 0%, var(--brand-ink) 60%);
}
@media (prefers-reduced-motion: reduce) {
	.brand-tile, .overlay-card__body::before { transition: none; }
	.brand-tile:hover { transform: none; }
}

/* Remaining unclassed theme teal (links, open FAQ question, focus, selection, back-to-top). */
a { color: var(--brand-forest); }
a:hover, a:focus, a:active { color: var(--brand-ink); }
.card-header > a:not(.collapsed) {
	color: var(--brand-forest);
	border-color: var(--brand-green) !important;
}
.form-control:focus { border-color: var(--brand-green); }
::selection { color: var(--brand-white); background-color: var(--brand-forest); }
.u-go-to-v1:hover, .u-go-to-v1:focus { background-color: var(--brand-forest); }

/* Site footer (element/Footer/footer.php). */
.site-footer {
	background-color: var(--brand-ink);
	color: rgba(255, 255, 255, .72);
	font-size: .92rem;
	line-height: 1.7;
}
.site-footer p { color: inherit; } /* the theme colours every <p> dark grey */
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--brand-lime); }
.site-footer__main { padding: 64px 0 40px; }
.site-footer__col { margin-bottom: 32px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer__brand img { background: var(--brand-white); border-radius: 50%; padding: 4px; }
.site-footer__brand span { font-size: 1.25rem; font-weight: 700; color: var(--brand-white); letter-spacing: -.01em; }
.site-footer__about { margin-bottom: 16px; max-width: 32ch; }
.site-footer__contact li { margin-bottom: 6px; }
.site-footer__contact .fa { width: 18px; color: var(--brand-lime); }
.site-footer__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.site-footer .site-footer__cta {
	color: var(--brand-ink);
	background-color: var(--brand-lime);
	border: 0;
	border-radius: 8px;
	padding: 9px 18px;
	font-weight: 600;
}
.site-footer .site-footer__cta:hover, .site-footer .site-footer__cta:focus { color: var(--brand-ink); background-color: var(--brand-white); }
.site-footer__social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
}
.site-footer__title {
	margin-bottom: 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand-white);
}
.site-footer__list li { margin-bottom: 6px; }
.site-footer__list--two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.site-footer__areas { margin-bottom: 0; }
.site-footer__badge { display: inline-block; margin-top: 18px; opacity: .8; }
.site-footer__badge:hover { opacity: 1; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .8rem;
	color: rgba(255, 255, 255, .55);
}
/* Same as the legal line beside it: 5.8:1 on the ink footer (WCAG AA 4.5:1). .4 was 3.7:1. */
.site-footer__credit, .site-footer__credit a { color: rgba(255, 255, 255, .55); }
@media (max-width: 575.98px) {
	.site-footer__main { padding-top: 48px; }
	.site-footer__list--two-col { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column; }
}

/* Site header (element/Menu/header.php + js/header.js): sticky, translucent (solid on phones), hides while scrolling. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background-color: rgba(22, 36, 10, .72);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: transform .3s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header { background-color: rgba(22, 36, 10, .95); }
}
.site-header--hidden { transform: translateY(-100%); }
.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
}
.site-header a { text-decoration: none; }
.site-header__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-white); }
.site-header__brand:hover, .site-header__brand:focus { color: var(--brand-white); }
.site-header__brand img { background: var(--brand-white); border-radius: 50%; padding: 3px; }
.site-header__brand span { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

.site-header__links { display: flex; align-items: center; gap: 4px; margin: 0; }
.site-header__link {
	position: relative;
	display: inline-block;
	padding: 8px 12px;
	font-size: .92rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .88);
}
.site-header__link::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 2px;
	height: 2px;
	border-radius: 1px;
	background: var(--brand-lime);
	transform: scaleX(0);
	transition: transform .25s ease;
}
.site-header__link:hover, .site-header__link:focus { color: var(--brand-white); }
.site-header__link:hover::after, .site-header__link:focus::after { transform: scaleX(1); }
.site-header__link .fa { font-size: .8em; margin-left: 2px; }

.site-header__call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 12px;
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .9rem;
	color: var(--brand-ink);
	background-color: var(--brand-lime);
}
.site-header__call:hover, .site-header__call:focus { color: var(--brand-ink); background-color: var(--brand-white); }

/* Services menu: CSS-only on desktop (hover / keyboard focus). */
.site-header__dropdown { position: relative; }
.site-header__menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1;
	min-width: 460px;
	margin: 0;
	padding: 14px;
	grid-template-columns: 1fr 1fr;
	gap: 2px 16px;
	border-radius: 12px;
	background-color: rgba(22, 36, 10, .97);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.site-header__dropdown:hover .site-header__menu,
.site-header__dropdown:focus-within .site-header__menu { display: grid; }
.site-header__menu a {
	display: block;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: .9rem;
	color: rgba(255, 255, 255, .85);
}
.site-header__menu a:hover, .site-header__menu a:focus { color: var(--brand-white); background-color: rgba(93, 232, 19, .14); }

.site-header__panel { display: flex; align-items: center; }
.site-header__toggle { display: none; }

/* Mobile: hamburger + full-width panel (opened by header.js). */
@media (max-width: 991.98px) {
	.site-header__toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		margin: 12px 0; /* keeps the top row at 68px when the open panel wraps below it */
		padding: 10px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		cursor: pointer;
	}
	.site-header__toggle span { display: block; height: 2px; border-radius: 1px; background: var(--brand-white); transition: transform .25s ease, opacity .25s ease; }
	.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.site-header__panel { display: none; width: 100%; padding: 8px 0 18px; }
	.site-header__panel.is-open { display: block; }
	.site-header__links { flex-direction: column; align-items: stretch; }
	.site-header__link { display: block; padding: 10px 4px; }
	.site-header__link::after { display: none; }
	.site-header__menu { display: grid; position: static; min-width: 0; padding: 0 0 6px 12px; background: none; box-shadow: none; }
	.site-header__call { margin: 12px 0 0; }
	/* Solid on phones: translucent let page text bleed through the bar and the open menu. */
	.site-header { background-color: var(--brand-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
	/* The open menu is taller than a phone screen and the header is sticky, so it scrolls itself (69px = 68px row + 1px border). */
	.site-header__panel.is-open { max-height: calc(100vh - 69px); max-height: calc(100dvh - 69px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Flash pop-ups (element/flash/*.php, Noty layout "topRight"; noty.css put them at top: 20px
   over the header, covering the Call button and, on phones, the menu button). Below the 69px
   sticky header instead, and under its z-index (1030) so the open mobile menu covers them;
   above the cookie banner (1025) and the call bar (1020). Phones: full width with margins.
   tests/js/flash.test.js */
#noty_layout__topRight { top: 81px; z-index: 1028; }
@media (max-width: 575.98px) {
	#noty_layout__topRight { left: 12px; right: 12px; width: auto; max-width: none; }
}

/* Mobile sticky call bar (element/Footer/footer.php). Sits under the header (z-index), so the open menu covers it. */
.call-bar { display: none; }
@media (max-width: 991.98px) {
	.call-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1020;
		min-height: 56px;
		padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
		font-size: 1.05rem;
		font-weight: 700;
		color: var(--brand-ink);
		background-color: var(--brand-lime);
		box-shadow: 0 -4px 16px rgba(22, 36, 10, .18);
		text-decoration: none;
	}
	.call-bar:hover, .call-bar:focus { color: var(--brand-ink); background-color: var(--brand-white); }
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
	/* Bottom-right widgets would sit on the bar. Back-to-top is redundant on phones (the header reappears
	   on scroll); the reCAPTCHA badge must stay visible, so it moves up. Both are positioned inline by script. */
	.u-go-to-v1 { display: none !important; }
	.grecaptcha-badge { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
	/* iOS Safari zooms the page when a field under 16px is focused. */
	.form-control, input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.site-header, .site-header__link::after, .site-header__toggle span { transition: none; }
}
/* In-page links (/#services, /#contact …) land below the sticky header, not under it. */
section[id] { scroll-margin-top: 80px; }

/* Gallery page (templates/Pages/gallery.php). */
.gallery-page__intro { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.gallery-page__title { margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.gallery-filter {
	padding: 7px 16px;
	border: 1px solid #d9e6cf;
	border-radius: 999px;
	background: var(--brand-white);
	color: var(--brand-forest);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
}
.gallery-filter span { margin-left: 4px; font-weight: 500; opacity: .6; }
.gallery-filter[aria-pressed="true"] { border-color: var(--brand-forest); background: var(--brand-forest); color: var(--brand-white); }
.gallery-wall { columns: 1; column-gap: 12px; }
@media (min-width: 480px) { .gallery-wall { columns: 2; } }
@media (min-width: 768px) { .gallery-wall { columns: 3; } }
@media (min-width: 1200px) { .gallery-wall { columns: 4; } }
.gallery-tile {
	position: relative;
	display: block;
	margin: 0 0 12px;
	break-inside: avoid;
	border-radius: 10px;
	overflow: hidden;
	background: #e6efdc;
}
.gallery-tile[hidden] { display: none; }
.gallery-tile img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.gallery-tile__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px 12px 10px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--brand-white);
	background: linear-gradient(to top, rgba(10, 22, 4, .85), rgba(10, 22, 4, 0));
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s ease, transform .3s ease;
}
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.04); }
.gallery-tile:hover .gallery-tile__caption, .gallery-tile:focus-visible .gallery-tile__caption { opacity: 1; transform: none; }
.gallery-tile:focus-visible { outline: 3px solid var(--brand-forest); outline-offset: 2px; }
@media (hover: none) { .gallery-tile__caption { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.gallery-tile img, .gallery-tile__caption { transition: none; }
	.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: none; }
}

/* Gallery lightbox (js/gallery.js). */
.gallery-lightbox { max-width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: var(--brand-ink); color: var(--brand-white); overflow: visible; }
.gallery-lightbox::backdrop { background: rgba(10, 18, 6, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gallery-lightbox__figure { margin: 0; }
.gallery-lightbox__img { display: block; max-width: 100%; max-height: calc(94vh - 80px); margin: 0 auto; border-radius: 12px 12px 0 0; }
.gallery-lightbox__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; }
.gallery-lightbox__title { margin: 0; color: var(--brand-white); font-weight: 600; }
.gallery-lightbox__service { color: var(--brand-lime); font-weight: 600; }
.gallery-lightbox__service:hover, .gallery-lightbox__service:focus { color: var(--brand-white); }
.gallery-lightbox__prev, .gallery-lightbox__next, .gallery-lightbox__close {
	position: absolute;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--brand-ink);
	font-size: 26px; line-height: 44px; text-align: center;
	cursor: pointer;
}
.gallery-lightbox__prev { left: -22px; top: 45%; }
.gallery-lightbox__next { right: -22px; top: 45%; }
.gallery-lightbox__close { right: -14px; top: -14px; font-size: 22px; }
.gallery-lightbox__prev:hover, .gallery-lightbox__next:hover, .gallery-lightbox__close:hover { background: var(--brand-lime); }
@media (max-width: 575.98px) {
	.gallery-lightbox__prev { left: 6px; }
	.gallery-lightbox__next { right: 6px; }
	.gallery-lightbox__close { right: 6px; top: 6px; }
}

/* Homepage "Our Recent Cleaning Work" mosaic (element/Page/Blocks/gallery.php). */
.work-mosaic__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.work-mosaic__title { margin: 0 0 4px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.work-mosaic__button { padding: 10px 18px; border-radius: 8px; font-weight: 600; color: var(--brand-white) !important; background-color: var(--brand-forest) !important; }
.work-mosaic__button:hover, .work-mosaic__button:focus { background-color: var(--brand-ink) !important; }
.work-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
.work-mosaic__tile { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #dfe9d5; }
.work-mosaic__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-mosaic__tile--hero { grid-row: span 2; }
.work-mosaic__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .9rem; font-weight: 600; color: var(--brand-white); background: linear-gradient(to top, rgba(10, 22, 4, .85), rgba(10, 22, 4, 0)); }
.work-mosaic__tile:hover img, .work-mosaic__tile:focus-visible img { transform: scale(1.04); }
.work-mosaic__tile:focus-visible { outline: 3px solid var(--brand-forest); outline-offset: 2px; }
.work-mosaic__tile--more { background: var(--brand-forest); }
.work-mosaic__tile--more img { opacity: .25; }
.work-mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--brand-white); }
@media (max-width: 767.98px) {
	.work-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.work-mosaic__tile--hero { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
	.work-mosaic__tile img { transition: none; }
	.work-mosaic__tile:hover img, .work-mosaic__tile:focus-visible img { transform: none; }
}

/* Crawlable service links under the gallery wall. */
.gallery-services { margin-top: 32px; text-align: center; }
.gallery-services__title { margin-bottom: 10px; font-weight: 600; color: var(--brand-ink); }
.gallery-services ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0; }
.gallery-services a { font-weight: 600; color: var(--brand-forest); text-decoration: underline; text-underline-offset: 3px; }

/* Cleaning Cost Calculator page (templates/Pages/cost_calculator.php). */
.calc-hero {
	/* Dark on the left for the heading, fading so the photo shows on the right. */
	background-image: linear-gradient(90deg, rgba(22, 36, 10, .88) 0%, rgba(22, 36, 10, .62) 45%, rgba(22, 36, 10, .18) 100%), url('../img/hero/pressure-washing-paving-newcastle-quayside.webp');
	background-size: cover;
	background-position: center 60%;
	padding: 110px 0;
}
.calc-hero__title { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.calc-hero__lead { max-width: 36rem; font-size: 1.15rem; opacity: .9; }
.calc-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.calc-hero__badges li { padding: 5px 14px; border-radius: 999px; background: var(--brand-lime); color: var(--brand-ink) !important; font-weight: 700; font-size: .85rem; }
.calc-section__title, .faq-page__title, .faq-page__heading { margin-bottom: 24px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.calc__inputs { padding: 24px; border-radius: 14px; background: var(--brand-white); box-shadow: 0 6px 20px rgba(17, 38, 34, .08); }
.calc__group { margin: 0 0 20px; padding: 0; border: 0; }
.calc__label { margin-bottom: 12px; font-size: 1rem; font-weight: 700; color: var(--brand-ink); }
.calc__surfaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.calc__surface { position: relative; display: block; padding: 12px; border: 2px solid #d9e6cf; border-radius: 10px; cursor: pointer; }
.calc__surface input { position: absolute; opacity: 0; }
.calc__surface:has(input:checked) { border-color: var(--brand-forest); background: var(--brand-tint); }
.calc__surface:has(input:focus-visible) { outline: 3px solid var(--brand-forest); outline-offset: 2px; }
.calc__surface-name { display: block; font-weight: 700; color: var(--brand-ink); }
.calc__surface-note { display: block; font-size: .8rem; color: var(--brand-text); }
.calc__seal { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; cursor: pointer; }
.calc__seal[hidden] { display: none; }
.calc__seal input { width: 20px; height: 20px; accent-color: var(--brand-forest); }
.calc__dims { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__dim label { display: block; margin-bottom: 6px; font-weight: 600; }
.calc__dim input[type="number"] { width: 100%; padding: 10px 12px; border: 2px solid #d9e6cf; border-radius: 8px; font-size: 1.1rem; font-weight: 700; }
.calc__dim input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--brand-forest); }
.calc__area { margin: 14px 0 0; }
.calc__submit { padding: 10px 22px; border-radius: 8px; font-weight: 600; color: var(--brand-white) !important; background: var(--brand-forest) !important; }
.calc__submit[hidden] { display: none; }
.calc__result { position: sticky; top: 90px; padding: 24px; border-radius: 14px; background: var(--brand-ink); color: var(--brand-white); }
.calc__result p { color: var(--brand-white); }
.calc__result-label { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.calc__range { margin: 6px 0; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-lime) !important; }
.calc__detail { margin: 0 0 12px; opacity: .85; }
.calc__minimum, .calc__error { margin: 0 0 12px; font-weight: 600; }
.calc__minimum[hidden], .calc__error[hidden] { display: none; }
.calc__notice { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--brand-lime); border-radius: 6px; background: rgba(93, 232, 19, .1); font-size: .92rem; line-height: 1.55; }
.calc__cta { display: block; padding: 12px; border-radius: 8px; font-weight: 700; text-align: center; color: var(--brand-ink) !important; background: var(--brand-lime) !important; }
.calc__cta:hover, .calc__cta:focus { background: var(--brand-white) !important; }
.calc__call { display: block; margin-top: 10px; text-align: center; color: var(--brand-white); }
.calc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; counter-reset: step; }
.calc-steps li { position: relative; padding: 22px 20px 20px 64px; border-radius: 12px; background: var(--brand-tint); }
.calc-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-forest); color: var(--brand-white); font-weight: 800; line-height: 32px; text-align: center; }
.calc-steps h3, .calc-factors h3 { margin-bottom: 6px; font-size: 1.05rem; font-weight: 700; color: var(--brand-ink); }
.calc-steps p, .calc-factors p { margin: 0; }
.calc-factors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-factors > div { padding: 20px; border-radius: 12px; background: var(--brand-tint); box-shadow: 0 4px 14px rgba(17, 38, 34, .06); }
.calc-faq__item { margin-bottom: 10px; padding: 14px 18px; border-radius: 10px; background: var(--brand-tint); }
.calc-faq__item summary { font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.calc-faq__item p { margin: 10px 0 0; }
.faq-page__heading { margin: 40px 0 16px; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.faq-page .lead { margin-bottom: 8px; }
.calc-cta { text-align: center; }
.calc-cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.calc-cta .btn { margin: 8px 8px 0; padding: 12px 24px; border-radius: 8px; font-weight: 700; }
.calc-cta__call { display: inline-block; margin-top: 8px; }
@media (max-width: 991.98px) {
	.calc { grid-template-columns: 1fr; }
	.calc__result { position: static; }
	.calc-steps, .calc-factors { grid-template-columns: 1fr; }
}

/* Cost calculator shortcuts (element/Sidebar/sidebar.php, homepage pricing section). */
.calc-float {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9rem;
	color: var(--brand-ink) !important;
	background: var(--brand-lime);
	box-shadow: 0 8px 20px rgba(17, 38, 34, .25);
	text-decoration: none;
}
.calc-float:hover, .calc-float:focus { background: var(--brand-white); }
.btn-brand { padding: 10px 22px; border-radius: 8px; font-weight: 600; color: var(--brand-white) !important; background-color: var(--brand-forest) !important; }
.btn-brand:hover, .btn-brand:focus { background-color: var(--brand-ink) !important; }
@media (max-width: 575.98px) { .calc-float { display: none; } } /* would cover page headings on phones */
/* Parallax: the hero photo holds still while the page scrolls over it. Desktop
   only (iOS ignores fixed backgrounds and they jank on touch) and never for
   reduced-motion visitors. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.calc-hero { background-attachment: fixed; }
}

/* Homepage intro under the hero: the wave SVG already gives white space, so trim the top padding. */
#services.section--light { padding-top: 24px; }
.home-intro__title {
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--brand-ink);
	text-wrap: balance;
}

/* Error pages (templates/Error/*, layout/error.php). Top padding clears the fixed header. */
.error-page { padding-top: 130px; }
.error-page__intro {
	display: grid;
	grid-template-columns: minmax(160px, 260px) 1fr;
	gap: 48px;
	align-items: center;
	max-width: 960px;
	margin: 0 auto 56px;
}
.error-page__robot { width: 100%; height: auto; }
.error-page__code {
	margin-bottom: 8px;
	color: var(--brand-forest);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.error-page__title {
	margin-bottom: 16px;
	color: var(--brand-ink);
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
	text-wrap: balance;
}
.error-page__heading {
	margin-bottom: 24px;
	color: var(--brand-ink);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
	text-align: center;
}
.error-page__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 24px;
	border-radius: 14px;
	background: var(--brand-tint);
	color: var(--brand-text) !important;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.error-page__card:hover,
.error-page__card:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22, 36, 10, .12); }
.error-page__card .fa { color: var(--brand-forest); font-size: 1.6rem; }
.error-page__card strong { color: var(--brand-ink); font-size: 1.05rem; }
.error-page__signoff { max-width: 640px; margin: 48px auto 0; color: var(--brand-text); font-style: italic; text-align: center; }
@media (max-width: 767.98px) {
	.error-page { padding-top: 100px; }
	.error-page__intro { grid-template-columns: 1fr; gap: 16px; text-align: center; }
	.error-page__robot { max-width: 180px; margin: 0 auto; }
}

/* Legal pages (Pages/terms.php, privacy.php, cookies.php): one readable column. */
.legal-page { padding-top: 130px; }
.legal-page .container { max-width: 820px; }
.legal-page__title { margin-bottom: 8px; color: var(--brand-ink); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.legal-page__meta { margin-bottom: 32px; color: var(--brand-text); font-size: .85rem; }
.legal-page h2 { margin: 40px 0 12px; scroll-margin-top: 90px; color: var(--brand-ink); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; }
.legal-page h3 { margin: 24px 0 8px; color: var(--brand-ink); font-size: 1.05rem; font-weight: 700; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 1.3rem; }
.legal-page li { margin-bottom: 6px; }
.legal-page__part { margin-top: 56px; padding-top: 24px; border-top: 3px solid var(--brand-tint); color: var(--brand-forest); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal-page__toc { margin: 0 0 16px; padding: 20px 24px; border-radius: 14px; background: var(--brand-tint); }
.legal-page__toc strong { display: block; margin-bottom: 8px; color: var(--brand-ink); }
.legal-page__toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
.legal-page__toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 767.98px) { .legal-page { padding-top: 100px; } }

/* Article sidebar (element/Article/sidebar.php): sticky "more guides" card. */
.article-sidebar { padding: 24px; border-radius: 14px; background: var(--brand-tint); }
.article-sidebar__eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-forest); }
.article-sidebar__title { margin: 0 0 16px; font-size: 1.375rem; font-weight: 700; color: var(--brand-ink); }
.article-sidebar__list { margin: 0; padding: 0; list-style: none; }
.article-sidebar__item { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--brand-ink); font-size: .9375rem; font-weight: 500; line-height: 1.35; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.article-sidebar__item:hover, .article-sidebar__item:focus-visible { background: var(--brand-white); color: var(--brand-forest); }
.article-sidebar__thumb { flex: 0 0 72px; width: 72px; height: 54px; object-fit: cover; border-radius: 8px; transition: transform .3s ease; }
.article-sidebar__item:hover .article-sidebar__thumb { transform: scale(1.05); }
.article-sidebar__cta { display: block; margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--brand-forest); color: var(--brand-white); font-weight: 600; text-align: center; text-decoration: none; }
.article-sidebar__cta:hover, .article-sidebar__cta:focus-visible { background: var(--brand-ink); color: var(--brand-white); }
@media (min-width: 768px) {
	.article-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
}
@media (prefers-reduced-motion: reduce) {
	.article-sidebar__item, .article-sidebar__thumb { transition: none; }
}

/* Article hero parallax (js/parallax.js): photo overscans the frame so it can drift without gaps. */
.parallax-section { border-radius: 14px; }
.parallax-section .parallax-background { top: -30%; height: 130%; }
.parallax-section .content-section { justify-content: flex-start; align-items: flex-end; padding: 24px clamp(20px, 4vw, 40px) clamp(20px, 3vw, 32px); will-change: transform, opacity; }
.parallax-section .content-section h1 { margin: 0; }
/* Dark scrim at the bottom so the white title reads over pale photos. */
.parallax-section::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(22, 36, 10, .7), rgba(22, 36, 10, 0) 65%); pointer-events: none; }

/* Cookie banner (element/Cookies/cookies.php + js/consent.js). Accept and Decline are deliberately
   identical: PECR needs refusing to be as easy as accepting. On phones it sits above the call bar. */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1025; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 760px; margin: 0 auto; padding: 16px 20px; border-radius: 14px; background: var(--brand-ink); color: var(--brand-white); box-shadow: 0 10px 30px rgba(22, 36, 10, .3); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 300px; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--brand-white); } /* the theme colours every <p> #555: 2.2:1 on ink */
/* Every link state stays lime on ink (the global a:hover/:focus/:active rule would turn it ink on ink). */
.cookie-banner__text a, .cookie-banner__text a:hover, .cookie-banner__text a:focus, .cookie-banner__text a:active { color: var(--brand-lime); text-decoration: underline; }
.cookie-banner__text a:hover { text-decoration-thickness: 2px; }
.cookie-banner__text a:focus-visible { outline: 2px solid var(--brand-white); outline-offset: 2px; border-radius: 2px; }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__btn { min-width: 112px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 8px; background: var(--brand-lime); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }
.cookie-banner__btn:hover, .cookie-banner__btn:focus-visible { background: var(--brand-white); }
@media (max-width: 991.98px) { .cookie-banner { left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (max-width: 575.98px) { .cookie-banner__actions { width: 100%; } .cookie-banner__btn { flex: 1; } }
/* Footer "Cookie settings" (reopens the banner): a button styled like the footer links. */
.site-footer__settings, .legal-page__settings { padding: 0; border: 0; background: none; font: inherit; text-decoration: none; cursor: pointer; }
.site-footer__settings { color: rgba(255, 255, 255, .85); }
.site-footer__settings:hover, .site-footer__settings:focus-visible { color: var(--brand-lime); }
.legal-page__settings { color: var(--brand-forest); font-weight: 600; text-decoration: underline; }

/* Contact form Message (element/Page/Contact/form.php): grows to fit its text (js/autogrow.js;
   field-sizing where supported), capped so Submit stays on screen. The min-height shows ten
   lines without JS (14-16px Inter, line-height 1.5, .8em + .6em padding, 1px borders). */
#hf-message {
	min-height: calc(16.4em + 2px);
	min-height: calc(10lh + 1.4em + 2px);
	max-height: 70vh;
	field-sizing: content;
	resize: vertical;
}

/* Lit buttons: a lighter-top gradient, 1px top highlight, darker bottom edge, tight contact
   shadow and a soft glow in the button's own colour; pressing flips it to a pressed-in look.
   Each button picks its colours (--btn-top, --btn-bottom, --btn-glow) from the tokens in :root;
   one rule draws them all. Without color-mix() the variables are invalid, so the gradient and
   shadows drop out and the existing flat background-color shows. */
:is(.u-btn-primary, .u-btn-teal, .u-btn-cyan, .btn-brand, .work-mosaic__button, .article-sidebar__cta, .calc__submit) {
	--btn-top: var(--btn-forest-top);
	--btn-bottom: var(--brand-forest);
	--btn-glow: var(--btn-forest-glow);
}
:is(.section--forest .btn, .section--ink .btn, .calc__cta, .site-footer .site-footer__cta, .cookie-banner__btn, .call-bar) {
	--btn-top: var(--btn-lime-top);
	--btn-bottom: var(--brand-lime);
	--btn-glow: var(--btn-lime-glow);
}
:is(.u-btn-primary, .u-btn-teal, .u-btn-cyan, .btn-brand, .work-mosaic__button, .article-sidebar__cta, .calc__submit,
	.section--forest .btn, .section--ink .btn, .calc__cta, .site-footer .site-footer__cta, .cookie-banner__btn) {
	background-image: linear-gradient(var(--btn-top), var(--btn-bottom)) !important;
	box-shadow:
		inset 0 1px 0 #ffffff59, /* top highlight */
		inset 0 -2px 0 #0003, /* bottom shade */
		0 1px 2px #0006, /* contact */
		0 8px 24px -6px var(--btn-glow) !important; /* glow, own colour */
}
/* Hover: the same face (the gradient covers the old flat hover colours), a slightly brighter glow. */
:is(.u-btn-primary, .u-btn-teal, .u-btn-cyan, .btn-brand, .work-mosaic__button, .article-sidebar__cta, .calc__submit,
	.section--forest .btn, .section--ink .btn, .calc__cta, .site-footer .site-footer__cta, .cookie-banner__btn):hover {
	background-image: linear-gradient(var(--btn-top), var(--btn-bottom)) !important;
	box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #0003, 0 1px 2px #0006, 0 10px 28px -6px var(--btn-glow) !important;
}
/* The phone call bar: lit face and edges, no glow (it spans the screen); keeps its upward shadow. */
.call-bar {
	background-image: linear-gradient(var(--btn-top), var(--btn-bottom));
	box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #0003, 0 -4px 16px rgba(22, 36, 10, .18);
}
/* Outline/ghost buttons keep their look: just a light contact shadow, plus the press below. */
.u-btn-outline-white { box-shadow: 0 1px 2px #0004; }

/* Every button (lit, outline, call bar): press in on :active, clear focus ring, disabled state.
   Only box-shadow and translate animate (translate moves the painted box, not the layout). */
:is(.btn:not(.btn-link), .cookie-banner__btn, .call-bar, .article-sidebar__cta) {
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .1s ease, translate .1s ease;
}
:is(.btn:not(.btn-link), .cookie-banner__btn, .call-bar, .hero__btn, .article-sidebar__cta):active {
	translate: 0 1px;
	box-shadow: inset 0 2px 4px #0004 !important;
}
:is(.btn:not(.btn-link), .cookie-banner__btn, .call-bar, .hero__btn, .article-sidebar__cta):focus-visible {
	outline: 3px solid var(--btn-ring, var(--brand-ink)) !important; /* Bootstrap's .btn:focus sets outline: 0 */
	outline-offset: 3px;
}
.call-bar:focus-visible { outline-offset: -6px; } /* the bar touches the screen edges */
:is(.section--forest, .section--ink, .site-footer, .cookie-banner, .calc__result, .hero, .g-bg-green) { --btn-ring: var(--brand-white); }
:is(.btn, .cookie-banner__btn):is(:disabled, .disabled, [aria-disabled="true"]) {
	box-shadow: none !important;
	opacity: .55;
	translate: none;
	cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
	:is(.btn:not(.btn-link), .cookie-banner__btn, .call-bar, .article-sidebar__cta) { transition: none; }
	:is(.btn:not(.btn-link), .cookie-banner__btn, .call-bar, .hero__btn, .article-sidebar__cta):active { translate: none; }
}
