/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 100000;
	background: var( --wp--preset--color--ink );
	color: var( --wp--preset--color--white );
	padding: 0.75rem 1.25rem;
	border-radius: 6px;
}
.skip-link:focus {
	left: 1rem;
}

/* ===================================================================
   Per-module light/dark/green system — the brief's core requirement:
   pick a block style on any Group section, no code change needed.
=================================================================== */
.is-style-module-light {
	background-color: var( --wp--preset--color--paper );
	color: var( --wp--preset--color--ink );
}
.is-style-module-soft {
	background-color: var( --wp--preset--color--soft-sage );
	color: var( --wp--preset--color--ink );
}
.is-style-module-dark {
	background-color: var( --wp--preset--color--ink );
	color: var( --wp--preset--color--white );
}
.is-style-module-green {
	background-color: var( --wp--preset--color--sage );
	color: var( --wp--preset--color--white );
}
.is-style-module-band {
	position: relative;
	background-color: var( --wp--preset--color--band );
	background-image: radial-gradient( 900px 380px at 50% -12%, rgba( 124, 198, 132, 0.3 ), transparent 62% );
	background-repeat: no-repeat;
	background-position: top center;
	color: var( --wp--preset--color--white );
}
.is-style-module-band > * {
	position: relative;
}
.is-style-module-dark :where( h1, h2, h3, h4, h5, h6, p, li, label, dt, dd ),
.is-style-module-green :where( h1, h2, h3, h4, h5, h6, p, li, label, dt, dd ),
.is-style-module-band :where( h1, h2, h3, h4, h5, h6, p, li, label, dt, dd ) {
	color: inherit;
}
.is-style-module-dark a:not( .wp-block-button__link ),
.is-style-module-green a:not( .wp-block-button__link ),
.is-style-module-band a:not( .wp-block-button__link ) {
	color: var( --wp--preset--color--light-sage );
}
.is-style-module-dark a:not( .wp-block-button__link ):hover,
.is-style-module-green a:not( .wp-block-button__link ):hover,
.is-style-module-band a:not( .wp-block-button__link ):hover {
	color: var( --wp--preset--color--white );
}
.is-style-module-dark .wp-block-separator,
.is-style-module-green .wp-block-separator,
.is-style-module-band .wp-block-separator {
	background-color: rgba( 255, 255, 255, 0.2 );
	color: rgba( 255, 255, 255, 0.2 );
}

/* Buttons */
.wp-block-button__link {
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.wp-block-button:not( .is-style-outline ) .wp-block-button__link:hover {
	background-color: var( --wp--preset--color--deep-forest ) !important;
	transform: translateY( -2px );
	box-shadow: 0 12px 24px -12px rgba( 61, 122, 91, 0.9 );
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var( --wp--preset--color--ink ) !important;
	border: 1.6px solid var( --wp--preset--color--border );
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var( --wp--preset--color--sage );
	color: var( --wp--preset--color--sage ) !important;
	transform: translateY( -2px );
}
.is-style-module-dark .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-module-green .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-module-band .wp-block-button.is-style-outline .wp-block-button__link {
	color: var( --wp--preset--color--white ) !important;
	border-color: rgba( 255, 255, 255, 0.3 );
}
.is-style-module-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-module-green .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-module-band .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var( --wp--preset--color--light-sage );
	color: var( --wp--preset--color--light-sage ) !important;
}
@media ( prefers-reduced-motion: reduce ) {
	.wp-block-button__link { transition: none; }
	.wp-block-button__link:hover { transform: none; }
}

/* Brand icon + wordmark */
.us-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
}
.us-brand-icon {
	display: inline-flex;
	line-height: 0;
	flex: none;
}
.us-brand-word {
	font: 800 21px "Archivo", sans-serif;
	letter-spacing: -0.02em;
	color: var( --wp--preset--color--ink );
}
.us-brand-word span {
	color: var( --wp--preset--color--light-sage );
}
.us-footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.us-footer-brand__word {
	font: 800 20px "Archivo", sans-serif;
	letter-spacing: -0.02em;
	color: var( --wp--preset--color--white );
}
.us-footer-brand__word span {
	color: var( --wp--preset--color--light-sage );
}

/* ===================================================================
   Header
=================================================================== */
.us-header {
	border-bottom: 1px solid var( --wp--preset--color--border );
	position: sticky;
	top: 0;
	z-index: 40;
	background: var( --wp--preset--color--paper );
}
.us-primary-nav .wp-block-navigation-item > a,
.us-primary-nav .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	font: 500 15px "Hanken Grotesk", sans-serif;
	color: var( --wp--preset--color--slate );
}
.us-primary-nav .wp-block-navigation-item > a:hover {
	color: var( --wp--preset--color--ink );
}
.us-nav-cta .wp-block-button__link {
	padding: 10px 18px !important;
}

/* ===================================================================
   Footer
=================================================================== */
.us-footer .wp-block-navigation-item > a {
	color: rgba( 255, 255, 255, 0.85 );
	padding: 0.2rem 0;
}
.us-footer .wp-block-navigation-item > a:hover {
	color: var( --wp--preset--color--light-sage );
}
.us-footer-nav .wp-block-navigation__container {
	gap: 0.35rem;
}
.us-legal-nav .wp-block-navigation-item > a {
	font-size: 0.85rem;
}
.us-footer .wp-block-social-link {
	background: rgba( 255, 255, 255, 0.08 );
}
.us-footer .wp-block-social-link:hover {
	background: var( --wp--preset--color--sage );
}

/* Blog hub pillar tabs */
.us-pillar-tabs .wp-block-navigation-item > a {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 999px;
	font-size: 0.9rem;
	color: var( --wp--preset--color--ink );
}
.us-pillar-tabs .wp-block-navigation-item > a:hover {
	border-color: var( --wp--preset--color--sage );
	color: var( --wp--preset--color--sage );
}

/* Hero image placeholder sizing */
.us-hero-image img {
	border-radius: 12px;
	max-height: 480px;
	object-fit: cover;
}

/* Hero radial glow, matching the hi-fi design */
.us-hero {
	position: relative;
	overflow: hidden;
}
.us-hero::before {
	content: '';
	position: absolute;
	top: -8%;
	left: 50%;
	transform: translateX( -50% );
	width: 600px;
	max-width: 160%;
	height: 320px;
	background: radial-gradient( 600px 320px at 50% 50%, rgba( 77, 118, 89, 0.14 ), transparent 70% );
	pointer-events: none;
}
.us-hero > * {
	position: relative;
}

/* ===================================================================
   Scroll reveal (motion.js adds/observes these classes)
=================================================================== */
.us-reveal {
	/* Content stays fully visible even if JS never runs — only a
	   subtle position shift is gated behind the reveal, never opacity. */
	transform: translateY( 18px );
	transition: transform 0.6s ease;
}
.us-reveal--visible {
	transform: none;
}
@media ( prefers-reduced-motion: reduce ) {
	.us-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Numbered steps */
.us-step-num {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var( --wp--preset--color--sage );
	color: var( --wp--preset--color--white );
	display: flex;
	align-items: center;
	justify-content: center;
	font: 800 20px "Archivo", sans-serif;
	margin: 0 0 18px;
}
.is-style-module-light .wp-block-columns:has( .us-step-num ) {
	text-align: center;
}

/* Testimonial quote mark */
.us-quote-mark {
	font: 800 60px "Archivo", sans-serif;
	line-height: 0.7;
	margin-bottom: 14px;
	color: var( --wp--preset--color--light-sage );
}

/* Card grid inside Query Loop (blog cards / related posts) share the Cards module look */
.wp-block-post-template {
	gap: 1.5rem;
}
.wp-block-post-template li {
	list-style: none;
	background: var( --wp--preset--color--white );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 12px;
	padding: 1.25rem;
}
.wp-block-post-template .wp-block-post-featured-image img {
	border-radius: 8px;
}

/* Early-access / status badge pill */
.us-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba( 104, 183, 111, 0.4 );
	background: rgba( 104, 183, 111, 0.12 );
	padding: 6px 14px;
	border-radius: 20px;
	margin: 0 auto 22px;
}

/* Featured post — image + content side by side, image fills its column */
.us-featured-post .wp-block-post-template {
	align-items: stretch;
}
.us-featured-post .wp-block-post-template > li {
	padding: 0;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
}
.us-featured-post .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
}
.us-featured-post .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.us-featured-post .wp-block-group {
	padding: 32px;
}
@media ( max-width: 700px ) {
	.us-featured-post .wp-block-post-template > li {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
   Remove WordPress's automatic block-gap between top-level sections.
   Each module already has its own vertical padding; a gap on top of that
   leaves a sliver of the page's base background showing between modules —
   invisible between two same-colour sections, but a stray pale line
   wherever a dark module sits next to another (e.g. CTA form -> footer).
=================================================================== */
main {
	--wp--style--block-gap: 0;
}
main.wp-block-group > .wp-block-group {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* Same gap, one level up — header/main/footer are themselves siblings under
   .wp-site-blocks and were getting the same 24px block-gap treatment. */
.wp-site-blocks > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ===================================================================
   WPForms — bring it in line with the brand system instead of the
   plugin's own defaults (20px base font, blue submit button, no dark-mode
   awareness at all).
=================================================================== */
.wpforms-container {
	font-size: 1rem !important;
	margin: 0 auto !important;
}
.wpforms-form {
	font-size: 1rem !important;
	margin: 0 !important;
}
.wpforms-field {
	padding: 10px 0 !important;
}
.wpforms-field-label {
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 0.9rem;
	margin-bottom: 6px;
}
.wpforms-field-description {
	font-size: 0.85rem;
	margin-top: 6px;
}
.wpforms-field input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-field textarea,
.wpforms-field select {
	font-family: "Hanken Grotesk", sans-serif;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 8px;
	padding: 0 15px;
}
.wpforms-field input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	height: 48px;
}
.wpforms-field textarea {
	padding-top: 12px;
	padding-bottom: 12px;
}
.wpforms-submit {
	background: var( --wp--preset--color--sage ) !important;
	border: none !important;
	border-radius: 7px !important;
	font: 600 0.9375rem "Hanken Grotesk", sans-serif !important;
	padding: 13px 22px !important;
	transition: background-color 0.18s ease, transform 0.18s ease;
}
.wpforms-submit:hover {
	background: var( --wp--preset--color--deep-forest ) !important;
	transform: translateY( -2px );
}
@media ( prefers-reduced-motion: reduce ) {
	.wpforms-submit { transition: none; }
	.wpforms-submit:hover { transform: none; }
}

/* On dark/green/band modules, WPForms' own near-black label colour is
   invisible against the background — the label sits directly on the module
   background (outside the field box), so only its colour needs to adapt.
   The input/textarea box itself always stays solid white with dark text,
   regardless of the surrounding module — that's the one part that shouldn't
   change with context. */
.is-style-module-dark .wpforms-field-label,
.is-style-module-green .wpforms-field-label,
.is-style-module-band .wpforms-field-label,
.is-style-module-dark .wpforms-field-description,
.is-style-module-green .wpforms-field-description,
.is-style-module-band .wpforms-field-description,
.is-style-module-dark .wpforms-field-sublabel,
.is-style-module-green .wpforms-field-sublabel,
.is-style-module-band .wpforms-field-sublabel {
	color: rgba( 255, 255, 255, 0.92 ) !important;
}
.wpforms-field input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-field textarea,
.wpforms-field select {
	background: #fff !important;
	border-color: var( --wp--preset--color--border ) !important;
	color: rgba( 0, 0, 0, 0.85 ) !important;
}

/* Short Enquiry form (id 93) — compact single row: name, email, submit
   all inline, matching the hi-fi's CTA-band form treatment exactly. */
#wpforms-form-87 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 12px;
	max-width: 640px;
	margin: 0 auto !important;
}
#wpforms-form-87 .wpforms-field-container {
	display: contents;
}
#wpforms-form-87 .wpforms-field {
	flex: 0 0 190px;
	padding: 0 !important;
}
#wpforms-form-87 .wpforms-field input {
	width: 100%;
}
#wpforms-form-87 .wpforms-submit-container {
	flex: 0 0 auto;
	margin: 0 !important;
}
#wpforms-form-87 .wpforms-submit {
	height: 48px;
}
/* This specific CTA-band form matches the hi-fi's own dark, label-less
   treatment — placeholder text only, translucent-dark input box — rather
   than the generic white-box/visible-label styling used elsewhere. */
#wpforms-form-87 .wpforms-field-label,
#wpforms-form-87 .wpforms-field-description {
	display: none;
}
#wpforms-form-87 input:not([type="submit"]) {
	background: #2c2b28 !important;
	border: 1px solid #3d3b36 !important;
	color: #fff !important;
	height: 48px;
}
#wpforms-form-87 input::placeholder {
	color: rgba( 255, 255, 255, 0.55 ) !important;
}
@media ( max-width: 560px ) {
	#wpforms-form-87 .wpforms-submit-container {
		flex-basis: 100%;
	}
	#wpforms-form-87 .wpforms-submit {
		width: 100%;
	}
}
