/*
 * Green Homes Group — base styles.
 * Tokens come from theme.json (--wp--preset--*). This file holds structural
 * and accessibility base rules that theme.json cannot express.
 */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------- Accessibility: focus visibility ---------- */
:where(a, button, input, select, textarea, summary, .wp-block-navigation-item__content):focus-visible {
	outline: 3px solid var(--wp--preset--color--green);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Skip link */
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--green-dark);
	color: var(--wp--preset--color--white);
	border-radius: 8px;
	text-decoration: none;
}

/* ---------- Sticky header ---------- */
.wp-block-template-part.ghg-header,
.ghg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* The "Make an Enquiry" CTA button in the header/nav keeps the brand button look */
.ghg-header .wp-block-button__link,
.ghg-cta .wp-block-button__link {
	box-shadow: 0 6px 16px -8px rgba(243, 146, 0, 0.7);
}

/* Navigation hover */
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--green);
}

/* ---------- Cards & surfaces (used from Phase 1 onward) ---------- */
.ghg-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 10px 30px -18px rgba(21, 82, 53, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ghg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(21, 82, 53, 0.35);
}

/* ---------- Footer ---------- */
.ghg-footer {
	background: #14212B;
	color: var(--wp--preset--color--white);
}
.ghg-footer :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}
.ghg-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	opacity: 0.85;
}
.ghg-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* ---------- Motion primitives (the "ooo" factor) ---------- */
/* Only hide for reveal when JS is present (.ghg-js). No-JS keeps content visible. */
.ghg-js .ghg-animate {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.ghg-js .ghg-animate.is-visible {
	opacity: 1;
	transform: none;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.ghg-animate,
	.ghg-js .ghg-animate {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================================
   Design-system components (Phase 1)
   ========================================================================= */

/* ---------- Button styles ---------- */
.wp-block-button.is-style-secondary > .wp-block-button__link {
	background-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--green-dark);
	box-shadow: 0 6px 16px -8px rgba(21, 82, 53, 0.6);
}
.wp-block-button.is-style-secondary > .wp-block-button__link:hover,
.wp-block-button.is-style-secondary > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--green-dark);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-ghost > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--green-dark);
	border: 2px solid var(--wp--preset--color--green-dark);
	box-shadow: none;
}
.wp-block-button.is-style-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-ghost > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--green-dark);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--green-dark);
}
/* Ghost button on dark backgrounds */
.has-green-dark-background-color .wp-block-button.is-style-ghost > .wp-block-button__link,
.ghg-on-dark .wp-block-button.is-style-ghost > .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, 0.6);
}
.has-green-dark-background-color .wp-block-button.is-style-ghost > .wp-block-button__link:hover,
.has-green-dark-background-color .wp-block-button.is-style-ghost > .wp-block-button__link:focus,
.ghg-on-dark .wp-block-button.is-style-ghost > .wp-block-button__link:hover,
.ghg-on-dark .wp-block-button.is-style-ghost > .wp-block-button__link:focus {
	background-color: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* ---------- Section rhythm ---------- */
.ghg-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.ghg-section--tight { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

/* Centred section headings + intros read better when not full 1200px wide */
.ghg-section > h2.has-text-align-center,
.ghg-section > .has-text-align-center {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.ghg-section h2 { margin-bottom: 0.25rem; }

/* Anchored sections (e.g. #eligibility, #enquiry-form) clear the sticky header */
:where(#eligibility, #enquiry-form, [id]) { scroll-margin-top: 96px; }

/* ---------- Eyebrow label ---------- */
.ghg-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--green);
	margin-bottom: 0.5rem;
}

/* ---------- Hero ---------- */
.ghg-hero {
	background:
		radial-gradient(60% 80% at 85% 10%, rgba(122, 184, 47, 0.10), transparent 60%),
		linear-gradient(180deg, var(--wp--preset--color--green-tint) 0%, var(--wp--preset--color--white) 70%);
}
/* Headline: balanced lines, never break inside a word ("profession-al") */
.ghg-hero__title {
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
}
.ghg-hero__img img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 20px;
	box-shadow: 0 30px 60px -30px rgba(21, 82, 53, 0.6);
}
/* Lead photo: constrain tall/square source images to a banner matching the
   other service pages. The square (1024²) heat-pump source cannot fit both the
   roof solar panels (y~95) and the heat pump (to y~885) inside a 3:2 crop, which
   only yields 682px of height, so this is 4:3: panels and pump both stay in
   frame, at the cost of trimming the pump's concrete plinth. */
.ghg-lead-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 30%;
}

/* ---------- Card styling (group block style + .ghg-card) ---------- */
.wp-block-group.is-style-ghg-card,
.ghg-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--50);
	box-shadow: 0 10px 30px -18px rgba(21, 82, 53, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}
.wp-block-group.is-style-ghg-card:hover,
.ghg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(21, 82, 53, 0.35);
}
.ghg-card img { border-radius: 12px; }

/* Media card: image bleeds to the card edges, rounded top corners */
.wp-block-group.is-style-ghg-card.ghg-card--media { overflow: hidden; padding-top: 0; }
.ghg-card--media .ghg-card__img {
	margin: 0 calc(-1 * var(--wp--preset--spacing--50)) var(--wp--preset--spacing--40);
}
.ghg-card--media .ghg-card__img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

/* ---------- Trust bar ---------- */
.ghg-trustbar { background: var(--wp--preset--color--green-tint); }

/* ---------- Accreditation strip (light, front-end) ---------- */
.ghg-accred-strip { background: #F0F7F4; }
.ghg-accred-item {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--white);
	border: none;
	background: var(--wp--preset--color--green-dark);
	border-radius: 10px;
	padding: 0.7rem 1.2rem;
	font-size: 0.95rem;
	white-space: nowrap;
	box-shadow: 0 6px 16px -10px rgba(21, 82, 53, 0.6);
}

/* ---------- Trust stats (count-up) ---------- */
.ghg-stat { text-align: center; }
.ghg-stat__num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	line-height: 1;
	color: var(--wp--preset--color--green);
}
.ghg-stat__label {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--wp--preset--color--ink);
}

/* ---------- How it works (numbered steps) ---------- */
.ghg-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--green-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
}

/* ---------- FAQ accordion (core/details) ---------- */
.ghg-faq .wp-block-details {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 0.25rem 1.25rem;
	background: var(--wp--preset--color--white);
	margin-bottom: 0.75rem;
	transition: box-shadow 0.2s ease;
}
.ghg-faq .wp-block-details[open] {
	box-shadow: 0 10px 30px -20px rgba(21, 82, 53, 0.4);
	border-color: var(--wp--preset--color--green);
}
.ghg-faq summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--green-dark);
	cursor: pointer;
	padding: 1rem 0;
	list-style-position: inside;
}
.ghg-faq summary:focus-visible { outline: 3px solid var(--wp--preset--color--green); outline-offset: 2px; }

/* ---------- TrustBox container ---------- */
.ghg-trustbox { min-height: 120px; }
.ghg-trustbox__fallback {
	text-align: center;
	color: var(--wp--preset--color--green-dark);
	font-family: var(--wp--preset--font-family--heading);
}
.ghg-trustbox__stars { color: #00B67A; font-size: 1.8rem; letter-spacing: 0.1em; display: block; margin-bottom: 0.25rem; }
.ghg-trustbox__fallback p { margin: 0; font-size: 1.02rem; }

/* ---------- Reusable CTA band ---------- */
.ghg-cta-band { background: var(--wp--preset--color--green-dark); color: var(--wp--preset--color--white); }
.ghg-cta-band :where(h1,h2,h3) { color: var(--wp--preset--color--white); }

/* ---------- Enquiry / contact form ---------- */
.ghg-form {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--50);
	box-shadow: 0 10px 30px -18px rgba(21, 82, 53, 0.25);
}
.ghg-form__row { margin-bottom: 1.1rem; }
.ghg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ghg-form label { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 600; margin-bottom: 0.35rem; color: var(--wp--preset--color--green-dark); }
.ghg-form input[type="text"],
.ghg-form input[type="email"],
.ghg-form input[type="tel"],
.ghg-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}
.ghg-form input:focus, .ghg-form textarea:focus {
	outline: 3px solid var(--wp--preset--color--green);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--green);
}
.ghg-form .req { color: var(--wp--preset--color--orange-dark); }
.ghg-form__consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-family: var(--wp--preset--font-family--body); color: var(--wp--preset--color--ink); }
.ghg-form__consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.ghg-form__submit { border: 0; cursor: pointer; margin-top: 0.5rem; }
.ghg-form__purpose { font-size: 0.85rem; color: #555; margin-top: 0.75rem; }
/* honeypot — visually and programmatically hidden from humans */
.ghg-form__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.ghg-form__notice { padding: 0.9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; }
.ghg-form__notice--ok { background: var(--wp--preset--color--green-tint); color: var(--wp--preset--color--green-dark); border: 1px solid var(--wp--preset--color--green); }
.ghg-form__notice--err { background: #FDECEA; color: #8A1C10; border: 1px solid #E0B4AE; }

/* ---------- Eligibility checker wizard ---------- */
.ghg-elig {
	max-width: 640px;
	margin-inline: auto;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--50);
	box-shadow: 0 16px 40px -24px rgba(21, 82, 53, 0.4);
}
.ghg-elig__progress { height: 8px; border-radius: 99px; background: var(--wp--preset--color--green-tint); overflow: hidden; margin-bottom: 1.25rem; }
.ghg-elig__progress > span { display: block; height: 100%; background: var(--wp--preset--color--green); transition: width 0.35s ease; }
.ghg-elig__step { font-family: var(--wp--preset--font-family--heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--wp--preset--color--green); margin: 0 0 0.25rem; }
.ghg-elig__step--result { color: var(--wp--preset--color--orange-dark); }
.ghg-elig__q { margin: 0.25rem 0 0.5rem; }
.ghg-elig__help { color: #555; font-size: 0.95rem; margin: 0 0 1rem; }
.ghg-elig__options { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.ghg-elig__opt {
	text-align: left;
	padding: 1.1rem 1.35rem;
	border: 2px solid var(--wp--preset--color--green);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--wp--preset--color--green-dark);
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ghg-elig__opt:hover,
.ghg-elig__opt.is-selected {
	border-color: var(--wp--preset--color--green);
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--green-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -14px rgba(21, 82, 53, 0.7);
}
.ghg-elig__opt:focus-visible { outline: 3px solid var(--wp--preset--color--green); outline-offset: 2px; }
.ghg-elig__nav { min-height: 1.5rem; }
.ghg-elig__back, .ghg-elig__restart { background: none; border: 0; color: var(--wp--preset--color--green-dark); font: inherit; font-weight: 600; cursor: pointer; padding: 0.5rem 0; text-decoration: underline; }
.ghg-elig__result-body { font-size: 1.05rem; }
.ghg-elig__subject { font-size: 0.85rem; color: #555; }
.ghg-elig__cta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Sticky enquiry CTA ---------- */
.ghg-sticky-cta {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 200;
	display: inline-block;
	padding: 0.85rem 1.4rem;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-decoration: none;
	border-radius: 99px;
	box-shadow: 0 12px 28px -10px rgba(243, 146, 0, 0.8);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.ghg-sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
.ghg-sticky-cta:hover, .ghg-sticky-cta:focus { background: var(--wp--preset--color--orange-dark); color: var(--wp--preset--color--white); }
/* Hide the sticky CTA on the contact page itself (form already there) */
.page-id-11 .ghg-sticky-cta { display: none; }
@media (prefers-reduced-motion: reduce) {
	.ghg-sticky-cta { transition: opacity 0.2s ease; transform: none; }
}

/* ---------- Cookie consent banner ---------- */
.ghg-cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 300;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
	padding: 1.1rem 1.25rem;
}
.ghg-cookie-banner[hidden] { display: none; }
/* Re-opened from a "Cookie preferences" link: pulse so the click visibly registers. */
@keyframes ghg-banner-attention {
	0%   { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.55); }
	100% { box-shadow: 0 0 0 16px rgba(243, 146, 0, 0); }
}
.ghg-cookie-banner.is-attention { animation: ghg-banner-attention 900ms ease-out 2; }
@media (prefers-reduced-motion: reduce) {
	.ghg-cookie-banner.is-attention { animation: none; outline: 2px solid var(--wp--preset--color--orange); outline-offset: 3px; }
}
.ghg-cookie-banner__inner {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: 1200px;
	margin-inline: auto;
}
.ghg-cookie-banner__text { flex: 1 1 360px; }
.ghg-cookie-banner__text strong { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--green-dark); }
.ghg-cookie-banner__text p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--wp--preset--color--ink); }
.ghg-cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ghg-cookie-btn {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	border-radius: 8px;
	padding: 0.7rem 1.2rem;
	cursor: pointer;
	border: 2px solid transparent;
	font-size: 0.95rem;
}
.ghg-cookie-btn--primary { background: var(--wp--preset--color--green); color: var(--wp--preset--color--white); }
.ghg-cookie-btn--primary:hover { background: var(--wp--preset--color--green-dark); }
.ghg-cookie-btn--ghost { background: transparent; color: var(--wp--preset--color--green-dark); border-color: var(--wp--preset--color--line); }
.ghg-cookie-btn--ghost:hover { border-color: var(--wp--preset--color--green); }
.ghg-cookie-btn:focus-visible { outline: 3px solid var(--wp--preset--color--green); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.ghg-accred-item { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
	.ghg-form__grid { grid-template-columns: 1fr; }
	.ghg-sticky-cta { right: 0.75rem; bottom: 0.75rem; padding: 0.7rem 1.1rem; font-size: 0.9rem; }
	.ghg-cookie-banner__actions { width: 100%; }
	.ghg-cookie-btn { flex: 1; }

	/* Mobile nav: logo stays left, hamburger right; hide the large enquiry CTA
	   (the sticky CTA + the menu's Contact Us cover enquiries on mobile). */
	.ghg-header-cta { display: none !important; }

	/* Guarantee comfortable side padding on mobile (>= 20px) for all sections.
	   .ghg-header already has global padding, so it is covered by .has-global-padding
	   below — do NOT also pad its inner row or it double-pads. */
	.has-global-padding,
	.ghg-hero, .ghg-section, .ghg-section--tight, .ghg-trustbar,
	.ghg-accred-strip, .ghg-eligibility, .ghg-faq, .ghg-cta-band, .ghg-statsband {
		padding-left: 24px;
		padding-right: 24px;
	}

	/* Sticky CTA becomes a full-width bottom bar on mobile */
	.ghg-sticky-cta {
		left: 12px;
		right: 12px;
		bottom: 12px;
		text-align: center;
		border-radius: 12px;
		padding: 0.95rem 1rem;
		font-size: 1.05rem;
	}
}

/* =========================================================================
   Design pass v2 (full design + content pass)
   ========================================================================= */

/* ---------- Announcement bar (above the nav, every page) ---------- */
.ghg-announce {
	background: var(--wp--preset--color--green-dark);
	color: #fff;
	font-size: 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
}
.ghg-announce__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	gap: 0.9rem 1.25rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.ghg-announce a { color: #fff; text-decoration: none; font-weight: 600; }
.ghg-announce__text a { text-decoration: underline; }
.ghg-announce__btn {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink) !important;
	padding: 3px 16px;
	border-radius: 99px;
	font-weight: 700;
	font-size: 0.82rem;
	white-space: nowrap;
}
.ghg-announce__btn:hover { background: #fff; }

/* ---------- Mobile menu overlay (dark green, white links, orange CTA) ---------- */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #14212B !important;
}
.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.is-menu-open .wp-block-navigation__container { gap: 0.25rem; }
/* Standardise EVERY mobile-menu link — top-level and submenu items identical:
   same size, weight, colour, padding. No size-based hierarchy. */
.is-menu-open .wp-block-navigation-item__content,
.is-menu-open .wp-block-navigation-item__content:hover,
.is-menu-open .wp-block-navigation-item__content:focus,
.is-menu-open .wp-block-navigation-submenu .wp-block-navigation-item__content {
	color: #fff !important;
	font-size: 1.25rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600 !important;
	opacity: 1 !important;
	padding: 0.55rem 0 !important;
	line-height: 1.2;
}
.is-menu-open .wp-block-navigation__submenu-icon { color: #fff; }
.is-menu-open .wp-block-navigation__submenu-icon svg { fill: #fff; }
/* Hide the "Services Overview" duplicate inside the mobile overlay only.
   On desktop the "Services" parent is a click-toggle (not a link), so the
   Overview child is how /services/ is reached; in the burger menu the
   parent already reveals the submenu, so the extra item is redundant. */
.is-menu-open .ghg-hide-in-overlay { display: none !important; }
/* Match submenu item spacing to the top-level item spacing (even rhythm).
   WP forces gap:normal on the submenu container, so use sibling margins. */
.is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item + .wp-block-navigation-item {
	margin-top: 16px !important;
}
.wp-block-navigation__responsive-container-close {
	top: 20px !important;
	right: 24px !important;
}
.is-menu-open .wp-block-navigation__responsive-container-close svg { fill: #fff; width: 30px; height: 30px; }
.ghg-mobile-cta { display: none; }
.is-menu-open .ghg-mobile-cta {
	display: inline-block;
	margin-top: 1.75rem;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	padding: 0.95rem 2.4rem;
	border-radius: 99px;
	text-decoration: none;
	font-size: 1.1rem;
}
.is-menu-open .ghg-mobile-cta:hover { background: var(--wp--preset--color--orange-dark); color: #fff; }

/* ---------- Soft green tint for alternating sections ---------- */
.ghg-tint { background-color: #F0F7F4 !important; }

/* ---------- Stats band (4 count-up cards) ---------- */
.ghg-statsband { background: var(--wp--preset--color--green-dark); }
.ghg-statsband .ghg-eyebrow { color: #fff; opacity: 0.85; }
.ghg-statsband h2 { color: #fff; }
.ghg-statsband .ghg-stat__num { color: var(--wp--preset--color--orange); }
.ghg-statsband .ghg-stat__label { color: #fff; opacity: 0.95; }
.ghg-statsband .ghg-stat { padding: 0.5rem; }

/* ---------- Service / feature card icon ---------- */
.ghg-card__icon,
.ghg-feature__icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: var(--wp--preset--color--green-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}
.ghg-card__icon svg,
.ghg-feature__icon svg { width: 32px; height: 32px; }
.ghg-card__arrow { font-weight: 700; }
.ghg-card__arrow a { text-decoration: none; }

/* ---------- Why-GHG feature columns ---------- */
.ghg-feature { text-align: left; }
.ghg-feature h3 { margin: 0 0 0.35rem; }

/* ---------- Comparison table (grants) ---------- */
.ghg-table-wrap { overflow-x: auto; }
.ghg-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -20px rgba(21,82,53,0.35); }
.ghg-table th, .ghg-table td { border: 1px solid var(--wp--preset--color--line); padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; }
.ghg-table thead th { background: var(--wp--preset--color--green); color: #fff; font-family: var(--wp--preset--font-family--heading); }
.ghg-table tbody th { background: #F0F7F4; font-weight: 700; color: var(--wp--preset--color--green-dark); }

/* ---------- Step timeline (reuses .ghg-step__num) ---------- */
.ghg-timeline { counter-reset: step; }

/* ---------- Contact form: constrain everything to content width ---------- */
.ghg-form, .ghg-form * { box-sizing: border-box; }
.ghg-form input, .ghg-form textarea, .ghg-form select { max-width: 100%; }
.ghg-contact-map iframe { width: 100%; max-width: 100%; display: block; }

/* "What happens next" steps */
.ghg-next-steps .ghg-step__num { background: var(--wp--preset--color--orange); color: var(--wp--preset--color--ink); }

/* ---------- Readable legal / policy pages ---------- */
.page-id-12 .wp-block-post-content,
.page-id-13 .wp-block-post-content {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.75;
}
.page-id-12 .wp-block-post-content h2,
.page-id-13 .wp-block-post-content h2 { margin-top: 2rem; }

/* ---------- "TBC" client-confirm badge (replaces raw <<PLACEHOLDER>> notes) ---------- */
.ghg-tbc {
	display: inline-block;
	background: var(--wp--preset--color--green-dark);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	padding: 2px 9px;
	border-radius: 6px;
	vertical-align: middle;
}

/* ---------- Prominent service-page CTA buttons ---------- */
.ghg-cta-lg .wp-block-button__link { font-size: 1.1rem; padding: 1rem 2rem; }

@media (max-width: 781px) {
	.ghg-cta-lg .wp-block-button,
	.ghg-cta-lg .wp-block-button__link { width: 100%; }
	.ghg-table th, .ghg-table td { padding: 0.7rem 0.8rem; font-size: 0.92rem; }
}

/* =========================================================================
   Static Trustpilot reviews section (staging preview; live widget at go-live)
   ========================================================================= */
.ghg-reviews { max-width: 1140px; margin: 0 auto; }

/* Green header bar */
.ghg-reviews__header {
	background: var(--wp--preset--color--green-dark);
	color: #fff;
	border-radius: 14px;
	padding: 1rem 1.5rem;
	display: flex;
	gap: 0.6rem 1.5rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--heading);
	box-shadow: 0 12px 30px -18px rgba(21, 82, 53, 0.6);
}
.ghg-tp-logo { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.15rem; font-weight: 700; }
.ghg-tp-star { width: 32px; height: 32px; max-width: 40px; max-height: 40px; flex: 0 0 auto; }
.ghg-reviews__score { font-size: 1.05rem; }
.ghg-reviews__score strong { font-size: 1.3rem; }
.ghg-tp-stars { display: inline-flex; gap: 3px; }
.ghg-tp-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7em;
	height: 1.7em;
	background: #00B67A;
	color: #fff;
	border-radius: 4px;
	font-size: 0.95rem;
	line-height: 1;
}
.ghg-reviews__count { font-size: 0.95rem; opacity: 0.9; }

/* Review cards */
.ghg-reviews__grid {
	display: flex;
	gap: 1.4rem;
	margin-top: 1.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
	scroll-behavior: smooth;
}
.ghg-reviews__grid::-webkit-scrollbar { display: none; }
.ghg-reviews__grid > .ghg-review {
	flex: 0 0 calc((100% - 2 * 1.4rem) / 3);
	scroll-snap-align: start;
}
.ghg-review {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.5rem;
	margin: 0;
	box-shadow: 0 12px 30px -20px rgba(21, 82, 53, 0.3);
	display: flex;
	flex-direction: column;
}
.ghg-review__stars { color: var(--wp--preset--color--orange); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.ghg-review blockquote { margin: 0 0 1.1rem; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; color: var(--wp--preset--color--ink); }
.ghg-review blockquote::before { content: "\201C"; }
.ghg-review blockquote::after { content: "\201D"; }
.ghg-review figcaption { margin-top: auto; display: flex; flex-direction: column; }
.ghg-review__name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--wp--preset--color--green-dark); }
.ghg-review__meta { font-size: 0.82rem; color: #00B67A; font-weight: 600; }

.ghg-reviews__caption { text-align: center; font-size: 0.82rem; color: #777; margin: 1.5rem 0 0.75rem; }
.ghg-reviews__cta { text-align: center; margin: 0; }
.ghg-reviews__btn {
	display: inline-block;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-decoration: none;
	padding: 0.85rem 2rem;
	border-radius: 10px;
	box-shadow: 0 8px 20px -10px rgba(243, 146, 0, 0.8);
}
.ghg-reviews__btn:hover { background: var(--wp--preset--color--orange-dark); color: #fff; }

@media (max-width: 781px) {
	/* Horizontal scroll-snap carousel on mobile */
	.ghg-reviews__grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 1rem;
		padding-bottom: 0.75rem;
		margin-left: -4px;
		margin-right: -4px;
	}
	.ghg-reviews__grid > .ghg-review { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: center; }
	.ghg-reviews__header { gap: 0.4rem 1rem; padding: 0.9rem 1rem; }
}

/* ---------- "Website by" credit bar ---------- */
.ghg-credit { background: #0e1720; color: rgba(255,255,255,0.55); text-align: center; padding: 0.65rem 1rem; font-size: 0.8rem; line-height: 1.4; }
.ghg-credit__link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s ease; }
.ghg-credit__link:hover, .ghg-credit__link:focus { color: #fff; }
.ghg-credit__logo { height: 18px; width: auto; display: block; }
/* On mobile the sticky CTA floats over the page bottom and covers this bar;
   reserve space below the credit content so the whitfield.it logo + text
   clear the floating CTA. Placed AFTER the base .ghg-credit rule so its
   `padding` shorthand doesn't reset this padding-bottom. */
@media (max-width: 781px) {
	.ghg-credit { padding-bottom: 92px; }
}
