/*!
 * ROCKLINE — component composition layer.
 * Twenty Twenty-Five child theme.
 *
 * WHAT BELONGS HERE, AND WHAT DOES NOT
 * ------------------------------------
 * Every colour, font, font-size, spacing step and element style (paragraph,
 * heading, link, button, caption, quote, list, table, code, separator, image)
 * lives in theme.json, where the client can retune it from the Site Editor.
 *
 * This file carries only what a block support cannot express:
 *   - the logo-reveal loader (keyframes, SVG state classes)
 *   - layered/absolute positioning (hero photo, texture, card corner-mark)
 *   - clip-path chamfers and :hover states
 *   - repeating background images (footer hazard band, hero texture)
 *   - the Forminator form skin, whose markup we do not author
 *   - breakpoint overrides
 *
 * Colours are read straight from the theme.json presets — no alias layer, and
 * no hex fallbacks. A literal fallback silently freezes a brand colour the day
 * the preset is retuned, and the page keeps rendering so nobody notices.
 */

/* ==================================================================
   00 — Page shell
   ================================================================== */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-delay: 0ms !important;
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Corners are square by design across the whole system. The only permitted
   softening is the 45deg chamfer on primary CTAs, derived from the wordmark's
   shear — see .is-style-rockline-cut. */
.rl-main :where(input, select, textarea, button) {
	border-radius: 0;
}

/* A visible focus ring is non-negotiable: every interactive control here is
   square and dark-on-dark, so the browser default is close to invisible. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

/* ==================================================================
   01 — Logo-reveal loader
   Markup is printed by rockline_render_loader() on wp_body_open.
   Timings here must stay in sync with the T object in rockline-loader.js.
   ================================================================== */

html.rl-loading,
html.rl-loading body {
	overflow: hidden;
}

.rl-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	pointer-events: none; /* nothing in here is interactive */
}

/* The backdrop clears on its own while the triangle is still travelling, so the
   page underneath fades up during the move rather than after it. */
.rl-loader__bg {
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--black);
	transition: opacity 420ms var(--wp--custom--ease-standard); /* = T.pageFade */
}

.rl-loader__bg.rl-clear {
	opacity: 0;
}

/* Logo starts at 1360px, shrinking only when the viewport cannot hold it. */
.rl-loader__stage {
	position: relative;
	width: min(1360px, 92vw);
	aspect-ratio: 366.43 / 124.68;
}

.rl-loader__stage svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible; /* the texture grows past the logo's box */
}

#rl-tex-svg {
	transform-origin: 0 0;
	transition:
		transform 440ms var(--wp--custom--ease-standard),
		opacity 440ms var(--wp--custom--ease-standard);
}

/* The pattern breathes while the page finishes loading — only ever seen on a
   slow connection, where the sequence outruns the assets. Pulses around the
   settled 0.4, since by now it has already dropped to its hero opacity. */
#rl-tex-svg.rl-holding {
	animation: rlHold 1100ms var(--wp--custom--ease-standard) infinite alternate;
}

@keyframes rlHold {
	from { opacity: .4; }
	to   { opacity: .22; }
}

/* The logo is fully on screen from the first frame — no entrance.
   These only ever animate on the way out. */
.rl-glyph,
.rl-sign {
	transform-box: fill-box;
	transform-origin: center;
	transition:
		opacity 150ms var(--wp--custom--ease-standard),
		transform 150ms var(--wp--custom--ease-standard);
}

.rl-glyph.rl-out {
	opacity: 0;
	transform: translateY(-7px) scaleY(.82);
}

.rl-sign.rl-out {
	opacity: 0;
	transform: translateY(-4px);
	transition-duration: 240ms;
}

/* Each shard grows downward out of the one above it.
   Duration must match T.buildDur in rockline-loader.js. */
.rl-shard {
	opacity: 0;
	transform: scaleY(.35);
	transform-box: fill-box;
	transform-origin: top;
	transition:
		opacity 150ms var(--wp--custom--ease-standard),
		transform 150ms var(--wp--custom--ease-standard);
}

.rl-shard.rl-in {
	opacity: 1;
	transform: none;
}

/* The seed shard IS the orange triangle inside the "R" — same geometry, same
   place. On screen from the first frame and never animated in, so it survives
   the letter dissolve and then rides the texture layer to the hero. */
.rl-shard.rl-seed {
	opacity: 1;
	transform: none;
	transition: none;
}

/* ==================================================================
   02 — Header
   The <header> element is the template part's own wrapper. Its sticky
   positioning cannot be a block attribute: any wrapper element around a
   sticky box confines the sticky region to that wrapper's own height.
   ================================================================== */

.rl-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--wp--preset--color--black);
	border-bottom: 1px solid var(--wp--preset--color--grey-700);
}

.rl-header__inner {
	max-width: 1440px;
	margin-inline: auto;
	min-height: 64px;
}

.rl-header__logo {
	flex: none;
	display: flex;
	align-items: center;
}

.rl-header__logo img,
.rl-header__logo .custom-logo {
	display: block;
	width: 158px;
	height: auto;
}

/* Sits after the logo and is pushed right by the parent's space-between. */
.rl-header__actions {
	flex: 0 1 auto;
}

/* ==================================================================
   03 — Button variants (registered as block styles, so they are pickable
   from the editor's Styles panel rather than typed in as a CSS class)
   ================================================================== */

/* Primary CTA — the 45deg chamfer. clip-path has no block support. */
.is-style-rockline-cut > .wp-block-button__link {
	height: var(--wp--custom--control-h-lg);
	padding-inline: 26px;
	font-size: var(--wp--preset--font-size--btn-lg);
	line-height: var(--wp--custom--control-h-lg);
	clip-path: polygon(
		0 0,
		calc(100% - var(--wp--custom--button-chamfer)) 0,
		100% var(--wp--custom--button-chamfer),
		100% 100%,
		0 100%
	);
}

/* Dark CTA — sits on the orange band, so it inverts on hover instead of
   lightening (which would vanish into the band). */
.is-style-rockline-dark > .wp-block-button__link {
	height: 56px;
	padding-inline: 28px;
	font-size: var(--wp--preset--font-size--btn-xl);
	line-height: 56px;
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

.is-style-rockline-dark > .wp-block-button__link:hover,
.is-style-rockline-dark > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--orange);
	text-decoration: none;
}

/* Secondary — hairline box, no fill. */
.is-style-rockline-outline > .wp-block-button__link {
	height: var(--wp--custom--control-h-lg);
	padding-inline: 22px;
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--control-h-lg);
	background-color: transparent;
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--grey-600);
	transition:
		border-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard),
		background-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.is-style-rockline-outline > .wp-block-button__link:hover,
.is-style-rockline-outline > .wp-block-button__link:focus {
	background-color: var(--wp--custom--orange-08);
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

/* Quiet — reads as a phone number, not a button. */
.is-style-rockline-quiet > .wp-block-button__link {
	height: auto;
	padding: 4px 0;
	background-color: transparent;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.2;
	letter-spacing: .03em;
	white-space: nowrap;
	transition: color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.is-style-rockline-quiet > .wp-block-button__link:hover,
.is-style-rockline-quiet > .wp-block-button__link:focus {
	background-color: transparent;
	color: var(--wp--preset--color--orange);
	text-decoration: none;
}

/* ==================================================================
   04 — Eyebrow (numbered section label)
   Six typography properties repeated across three instances — a component
   class earns its place here. Only the text COLOUR varies per instance, and
   that stays a block attribute so it is editable.
   ================================================================== */

.rl-eyebrow > p {
	font-family: var(--wp--preset--font-family--signature);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-eyebrow);
	text-transform: uppercase;
}

hr.is-style-rockline-eyebrow-rule {
	flex: 0 0 auto;
	width: 24px;
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--wp--preset--color--grey-600);
	opacity: 1;
}

/* ==================================================================
   05 — Hero
   ================================================================== */

.rl-hero {
	position: relative;
	overflow: hidden;
	height: clamp(640px, 90vh, 920px);
	min-height: 640px;
}

/* Standing in for the photo before it fades up, and behind it if it 404s. */
.rl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 70% at 78% 30%, var(--wp--custom--orange-16), transparent 60%),
		repeating-linear-gradient(-12deg, color-mix(in srgb, var(--wp--preset--color--white) 2.5%, transparent) 0 2px, transparent 2px 34px),
		linear-gradient(160deg, var(--wp--preset--color--grey-800) 0%, var(--wp--preset--color--black) 55%, color-mix(in srgb, var(--wp--preset--color--black) 60%, black) 100%);
}

/* core/image renders <figure><img>, so the positioning goes on the figure and
   the object-fit on the img. */
.rl-hero__bg {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	/* Timed to finish just as the loader lifts, so the photo is already settled
	   behind the pattern rather than fading in after the reveal. */
	animation: rlHeroBg 1100ms 900ms both var(--wp--custom--ease-standard);
}

.rl-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 62%;
}

@keyframes rlHeroBg {
	from { opacity: 0; }
	to   { opacity: .62; }
}

/* The texture's resting place — top-right of the hero. The loader flies its
   finished pattern onto exactly this box and hands over.
   Empty element + background-image on purpose: there is no <img> for an author
   to delete, and the aspect-ratio matches element-texture.svg's viewBox
   (-2.71 0 127.86 124.68) so the handoff cannot drift. */
.rl-hero__texture {
	position: absolute;
	top: 0;
	right: 0;
	width: min(20vw, 300px);
	aspect-ratio: 127.86 / 124.68;
	background: url("../images/element-texture.svg") no-repeat center / 100% 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms var(--wp--custom--ease-standard);
}

.rl-hero__texture.rl-on {
	opacity: .4;
}

/* No JS: the loader never runs, so reveal the texture immediately. */
html:not(.rl-js) .rl-hero__texture {
	opacity: .4;
}

.rl-hero__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* The constrained layout caps children at 1440px and centres them with auto
   margins. In a flex column an auto cross-axis margin overrides align-items,
   so without this the children shrink-to-fit instead of stretching. */
.rl-hero__content > * {
	width: 100%;
}

.rl-hero__eyebrow-wrap,
.rl-hero__cta-wrap {
	animation: rlUp 700ms 700ms both var(--wp--custom--ease-standard);
}

.rl-hero__cta-wrap {
	animation-delay: 1150ms;
}

@keyframes rlUp {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rl-h1 {
	max-width: 25ch;
}

.rl-h1 em {
	font-style: normal;
	color: var(--wp--preset--color--orange);
}

/* ==================================================================
   06 — Build Beyond band
   ================================================================== */

.rl-build__inner {
	max-width: 1440px;
	margin-inline: auto;
}

.rl-build__copy-col {
	flex: 1 1 420px;
	max-width: 560px;
}

/* ==================================================================
   07 — Contact
   ================================================================== */

.rl-contact {
	scroll-margin-top: var(--wp--custom--header-height);
}

.rl-contact__grid {
	max-width: 1440px;
	margin-inline: auto;
	align-items: flex-start;
}

.rl-contact__copy {
	max-width: 460px;
}

.rl-contact__row {
	align-items: flex-start;
	flex-wrap: nowrap;
}

.rl-contact__label {
	flex: 0 0 84px;
	padding-top: 4px;
	font-family: var(--wp--preset--font-family--signature);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-label);
	text-transform: uppercase;
}

.rl-contact__value {
	flex: 1 1 auto;
	min-width: 0;
}

/* Technical corner-mark: the top and left lines overshoot past their own
   intersection so they visibly cross, rather than meeting flush at 90deg.
   border-top + border-left cannot do this — they always join.
   NOTE: position:relative is required and was missing in the original static
   page, where the marks anchored to the viewport instead of the card. */
.rl-card {
	position: relative;
}

.rl-card::before,
.rl-card::after {
	content: "";
	position: absolute;
	background: var(--wp--preset--color--orange);
}

.rl-card::before { /* horizontal — overshoots to the left */
	top: 0;
	left: -22px;
	width: calc(100% + 22px);
	height: 1px;
}

.rl-card::after { /* vertical — overshoots upward */
	top: -22px;
	left: 0;
	width: 1px;
	height: calc(100% + 22px);
}

/* ==================================================================
   08 — Forminator enquiry form
   Forminator writes its own markup, so this is the one place where a plain
   stylesheet is the only option. Scoped under .rl-formwrap so it outranks
   Forminator's single-class selectors on specificity alone — no !important,
   and no dependency on which stylesheet happens to print last.
   ================================================================== */
/* --- Grid ----------------------------------------------------------------
   Forminator does not use media queries for .forminator-col-N. It stamps a
   size class (forminator-size--small/medium/large) on the form wrapper from
   JS, measured off the form's own width, and its grid CSS keys off that. With
   form-style "none" part of that CSS is never enqueued either, so every column
   falls back to full width — that is what collapsed the paired fields.

   Own the grid instead. The forminator-col-N classes are already a 12-column
   system, so map them straight onto grid tracks.

   The breakpoint is a CONTAINER query, not a viewport one: the form's width is
   set by the .wp-block-column it sits in, not by the screen. At a 1100px
   viewport the contact section is already two columns and the form has ~500px;
   at 900px it has the full width. A viewport breakpoint gets both wrong.

   The container is declared on Forminator's own wrapper rather than on
   .rl-card, so the card's overshooting corner-mark is left completely alone. */
.rl-formwrap .forminator-custom-form {
	container: rl-form / inline-size;
}

.rl-formwrap .forminator-row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	margin: 0;
}

/* Same token as the column gap, so the rhythm is uniform in both axes. */
.rl-formwrap .forminator-row + .forminator-row {
	margin-top: var(--wp--preset--spacing--50);
}

/* One gap owns all spacing. Forminator's own per-row / per-col / per-field
   margins stacked on top of it, which is why paired rows and full-width rows
   were spaced differently. */
.rl-formwrap .forminator-row > *,
.rl-formwrap .forminator-col,
.rl-formwrap .forminator-field {
	margin-top: 0;
	margin-bottom: 0;
}

/* Default: full width. Anything narrower than the query below stays stacked,
   which is also the graceful fallback where container queries are unsupported. */
.rl-formwrap .forminator-col {
	grid-column: span 12;
	min-width: 0;
}

@container rl-form (min-width: 440px) {
	.rl-formwrap .forminator-col-3 { grid-column: span 3; }
	.rl-formwrap .forminator-col-4 { grid-column: span 4; }
	.rl-formwrap .forminator-col-6 { grid-column: span 6; }
	.rl-formwrap .forminator-col-8 { grid-column: span 8; }
	.rl-formwrap .forminator-col-9 { grid-column: span 9; }
}

.rl-formwrap .forminator-ui.forminator-custom-form {
	margin: 0;
}

.rl-formwrap .forminator-row {
	margin-bottom: 0;
}

.rl-formwrap .forminator-row:not(:last-child) {
	margin-bottom: var(--wp--preset--spacing--50);
}

.rl-formwrap .forminator-field {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

/* --- Labels --- */
.rl-formwrap .forminator-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--signature);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-400);
}

.rl-formwrap .forminator-required {
	color: var(--wp--preset--color--orange);
}

/* --- Text, email, tel, textarea --- */
.rl-formwrap .forminator-input,
.rl-formwrap .forminator-textarea,
.rl-formwrap select.forminator-select,
.rl-formwrap .forminator-select2 .select2-selection {
	width: 100%;
	height: var(--wp--custom--control-h-md);
	min-height: var(--wp--custom--control-h-md);
	padding: 0 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--control-h-md);
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--grey-700);
	border: 1px solid var(--wp--preset--color--grey-700);
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-formwrap .forminator-textarea {
	height: auto;
	min-height: 96px;
	padding: 12px 16px;
	line-height: 1.5;
	resize: vertical;
}

.rl-formwrap .forminator-input:focus,
.rl-formwrap .forminator-textarea:focus,
.rl-formwrap select.forminator-select:focus,
.rl-formwrap .forminator-select2 .select2-container--open .select2-selection {
	border-color: var(--wp--preset--color--orange);
	background-color: var(--wp--preset--color--grey-700);
	color: var(--wp--preset--color--white);
}

.rl-formwrap .forminator-input::placeholder,
.rl-formwrap .forminator-textarea::placeholder {
	color: var(--wp--preset--color--grey-500);
	opacity: 1;
}

/* Chrome's yellow autofill wash would erase the dark card in one keystroke. */
.rl-formwrap .forminator-input:-webkit-autofill,
.rl-formwrap .forminator-input:-webkit-autofill:hover,
.rl-formwrap .forminator-input:-webkit-autofill:focus,
.rl-formwrap .forminator-textarea:-webkit-autofill {
	-webkit-text-fill-color: var(--wp--preset--color--white);
	-webkit-box-shadow: 0 0 0 1000px var(--wp--preset--color--grey-700) inset;
	caret-color: var(--wp--preset--color--white);
}

/* --- Select: the orange split-chevron from the original design --- */
.rl-formwrap select.forminator-select,
.rl-formwrap .forminator-select2 .select2-selection {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--wp--preset--color--orange) 50%),
		linear-gradient(135deg, var(--wp--preset--color--orange) 50%, transparent 50%);
	background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.rl-formwrap select.forminator-select option {
	background: var(--wp--preset--color--grey-800);
	color: var(--wp--preset--color--white);
}

/* Forminator's select2 skin ships its own arrow and inner spacing. */
.rl-formwrap .forminator-select2 .select2-selection__arrow,
.rl-formwrap .forminator-select2 .select2-selection__rendered::after {
	display: none;
}

.rl-formwrap .forminator-select2 .select2-selection__rendered {
	padding: 0;
	color: var(--wp--preset--color--white);
	line-height: var(--wp--custom--control-h-md);
}

.select2-container--open .select2-dropdown {
	background: var(--wp--preset--color--grey-800);
	border: 1px solid var(--wp--preset--color--grey-600);
	border-radius: 0;
	color: var(--wp--preset--color--white);
}

.select2-container--open .select2-results__option--highlighted {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

/* --- Checkbox --- */
.rl-formwrap .forminator-checkbox {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.4;
	color: var(--wp--preset--color--white);
	text-transform: none;
	letter-spacing: normal;
}

.rl-formwrap .forminator-checkbox .forminator-checkbox-box,
.rl-formwrap .forminator-checkbox span[aria-hidden="true"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--grey-600);
	border-radius: 0;
	transition: all var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-formwrap .forminator-checkbox input:checked + span[aria-hidden="true"],
.rl-formwrap .forminator-checkbox input:checked ~ .forminator-checkbox-box {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
}

/* With form-style "none" Forminator can fall through to a bare native input
   instead of its own design span, so the square is drawn twice — once for each
   markup shape. Only one is ever present at a time. */
.rl-formwrap .forminator-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	display: grid;
	place-content: center;
	background: transparent;
	border: 1px solid var(--wp--preset--color--grey-600);
	border-radius: 0;
	cursor: pointer;
	transition: all var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-formwrap .forminator-checkbox input[type="checkbox"]:checked {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
}

.rl-formwrap .forminator-checkbox input[type="checkbox"]::after {
	content: "";
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--wp--preset--color--white);
	border-bottom: 2px solid var(--wp--preset--color--white);
	transform: rotate(-45deg) translate(1px, -1px);
	opacity: 0;
}

.rl-formwrap .forminator-checkbox input[type="checkbox"]:checked::after {
	opacity: 1;
}

.forminator-checkbox__wrapper 
/* --- Legal line (the form's HTML field) --- */
.rl-formwrap .rl-form__legal {
	margin: 0;
	font-size: var(--wp--preset--font-size--legal);
	line-height: 1.5;
	color: var(--wp--preset--color--grey-400);
}

/* --- Description / legal line --- */
.rl-formwrap .forminator-description {
	margin: 0;
	min-height: 15px;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.4;
	color: var(--wp--preset--color--grey-400);
}

/* --- Errors --- */
.rl-formwrap .forminator-error-message {
	margin: 0;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--signal-fail);
	background: none;
	padding: 0;
}

.rl-formwrap .forminator-has_error .forminator-input,
.rl-formwrap .forminator-has_error .forminator-textarea,
.rl-formwrap .forminator-has_error select.forminator-select {
	border-color: var(--wp--preset--color--signal-fail);
}

/* --- Submit --- */
.rl-formwrap .forminator-button-submit {
	width: 100%;
	height: var(--wp--custom--control-h-lg);
	padding: 0 20px;
	background: var(--wp--preset--color--orange);
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--btn-lg);
	line-height: var(--wp--custom--control-h-lg);
	letter-spacing: var(--wp--custom--tracking-button);
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(
		0 0,
		calc(100% - var(--wp--custom--button-chamfer)) 0,
		100% var(--wp--custom--button-chamfer),
		100% 100%,
		0 100%
	);
	transition: background-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-formwrap .forminator-button-submit:hover,
.rl-formwrap .forminator-button-submit:focus {
	background: var(--wp--preset--color--orange-hover);
	color: var(--wp--preset--color--white);
}

.rl-formwrap .forminator-button-submit:active {
	background: var(--wp--preset--color--orange-press);
}

.rl-formwrap .forminator-button-submit[disabled] {
	opacity: .6;
	cursor: progress;
}

/* --- Response messages --- */
.rl-formwrap .forminator-response-message {
	margin: 0 0 var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	border-radius: 0;
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.5;
	display: none;
}

.rl-formwrap .forminator-response-message.forminator-success {
	background: var(--wp--custom--orange-08);
	border-left: 4px solid var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

.rl-formwrap .forminator-response-message.forminator-error {
	background: color-mix(in srgb, var(--wp--preset--color--signal-fail) 12%, transparent);
	border-left: 4px solid var(--wp--preset--color--signal-fail);
	color: var(--wp--preset--color--white);
}

.forminator-consent__label {
    display: inline;
}

.forminator-checkbox-box, .forminator-row p {
    display: none;
}

/* Forminator draws its own square in a decorative span AND ships a real
   checkbox underneath it. Styling both gave two boxes side by side, so the
   span is dropped and the native input is the one control we style.
   Scoped to .rl-formwrap: unscoped, this would strip the box off every
   Forminator form on the site, including ones nobody has skinned. */
.rl-formwrap .forminator-checkbox-box,
.rl-formwrap .forminator-checkbox span[aria-hidden="true"] {
	display: none;
}

/* The consent field's label must sit on the same line as its box, so the
   privacy-policy links read as one sentence rather than a stacked block. */
.rl-formwrap .forminator-consent__label {
	display: inline;
}

/* A multi-value checkbox field (SYSTEM) is NOT built from .forminator-checkbox
   the way the consent field is — it renders
       div.forminator-multiselect > label.forminator-option > input + text
   so every rule keyed on .forminator-checkbox missed it and the options fell
   through to the browser's native blue control, laid out inline. */
.rl-formwrap .forminator-multiselect {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

/* One option per line, sharing the consent checkbox's type and spacing.
   flex-start rather than center so a label that wraps to two lines keeps its
   box beside the FIRST line instead of floating to the middle. */
.rl-formwrap .forminator-checkbox__wrapper,
.rl-formwrap .forminator-option {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	width: 100%;
	margin: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.4;
	color: var(--wp--preset--color--white);
	text-transform: none;
	letter-spacing: normal;
}

/* The native input is the whole control, for every checkbox in the form. */
.rl-formwrap input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	/* The 18px box against a 19.6px line box (14px x 1.4) sits 1px high with
	   align-items:flex-start; nudge it onto the text's optical centre. */
	margin: 1px 0 0;
	display: grid;
	place-content: center;
	background: transparent;
	border: 1px solid var(--wp--preset--color--grey-600);
	border-radius: 0;
	cursor: pointer;
	transition: all var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-formwrap input[type="checkbox"]:checked {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
}

.rl-formwrap input[type="checkbox"]::after {
	content: "";
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--wp--preset--color--white);
	border-bottom: 2px solid var(--wp--preset--color--white);
	transform: rotate(-45deg) translate(1px, -1px);
	opacity: 0;
}

.rl-formwrap input[type="checkbox"]:checked::after {
	opacity: 1;
}

/* Forminator emits a literal empty <p></p> between a field's label and its
   control (confirmed in the rendered multiselect markup), which opens a gap
   the grid never asked for. Target the emptiness, not the tag: a blanket
   `.forminator-row p` also hid the legal line above, which IS a <p>. */
.rl-formwrap .forminator-row p:empty {
	display: none;
}

/* ==================================================================
   09 — Footer
   ================================================================== */

.rl-stripe {
	height: 14px;
	background-image: url("../images/element-stripe.svg");
	background-repeat: repeat-x;
	background-size: auto 100%;
}

.rl-footer__grid,
.rl-footer__legal {
	max-width: 1440px;
	margin-inline: auto;
}

.rl-footer__logo img,
.rl-footer__logo .custom-logo {
	display: block;
	width: 168px;
	height: auto;
}

.rl-footer__brand-eyebrow,
.rl-footer__blurb {
	max-width: 320px;
}

.rl-footer__contact a {
	text-decoration: none;
}

.rl-footer__contact a:hover,
.rl-footer__contact a:focus {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

/* ==================================================================
   10 — Breakpoints
   ================================================================== */

@media (max-width: 900px) {
	.rl-hero {
		height: auto;
		min-height: 0;
		padding-top: 120px;
	}

	.rl-hero__content {
		height: auto;
	}

	.rl-hero__texture {
		width: min(38vw, 220px);
	}
}

@media (max-width: 640px) {
	.rl-header__inner {
		row-gap: var(--wp--preset--spacing--30);
	}

	.rl-header__actions {
		width: 100%;
		justify-content: flex-start;
	}

	.rl-contact__row {
		flex-wrap: wrap;
	}

	.rl-contact__label {
		flex-basis: 100%;
		padding-top: 0;
	}

	.rl-card::before {
		left: -12px;
		width: calc(100% + 12px);
	}

	.rl-card::after {
		top: -12px;
		height: calc(100% + 12px);
	}

	.rl-loader__stage {
		width: 92vw;
	}
}

/* ==================================================================
   11 — Editor canvas
   The loader never runs in the editor, so the hero's fade-in keyframes would
   leave the photo and CTA invisible on the canvas. Show the settled end state
   instead — an author must be able to see what they are editing.
   ================================================================== */

.editor-styles-wrapper .rl-hero__bg,
.editor-styles-wrapper .rl-hero__eyebrow-wrap,
.editor-styles-wrapper .rl-hero__cta-wrap {
	animation: none;
	opacity: 1;
	transform: none;
}

.editor-styles-wrapper .rl-hero__bg {
	opacity: .62;
}

.editor-styles-wrapper .rl-hero__texture {
	opacity: .4;
}

/* An empty group has no height on the canvas; give the two decorative ones a
   visible box so they can be selected rather than hunted for in List View. */
.editor-styles-wrapper .rl-stripe {
	min-height: 14px;
}

.editor-styles-wrapper .rl-hero__texture,
.editor-styles-wrapper .rl-stripe {
	outline: 1px dashed var(--wp--preset--color--grey-600);
	outline-offset: 2px;
}
