/* ==========================================================================
   New flexible-content sections
   Map the four tokens below to the theme's existing brand variables, then
   nothing else in this file needs touching.
   ========================================================================== */

:root {
	--brand: #0f3d5c;          /* primary brand colour */
	--brand-deep: #0a2a3f;     /* darker shade for the hero wash */
	--accent: #c9a227;         /* CTA / active state */
	--ink-invert: #ffffff;
	--hero-min-height: clamp(30rem, 62vh, 44rem);
}

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */

.hero-carousel {
	position: relative;
	overflow: hidden;
	background: var(--brand-deep);
	color: var(--ink-invert);
	isolation: isolate;
}

/* Logo watermark, lifted from the header. Bleeds off the right edge so it
   reads as a brand mark rather than a centred decal. */
.hero-carousel__watermark {
	position: absolute;
	right: -8%;
	top: 50%;
	transform: translateY(-50%);
	width: min(46rem, 60%);
	height: auto;
	opacity: var(--hero-watermark-opacity, 0.06);
	filter: brightness(0) invert(1);
	pointer-events: none;
	user-select: none;
	z-index: 2;
}

.hero-carousel__stage {
	position: relative;
	display: grid;
	min-height: var(--hero-min-height);
	z-index: 1;
}

.hero-carousel__slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	opacity: 0;
	transition: opacity 500ms ease;
}

.hero-carousel__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.hero-carousel__slide[hidden] {
	display: none;
}

.hero-carousel__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

/* Wash keeps type legible over any photography the client uploads. */
.hero-carousel__slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, var(--brand-deep) 18%, rgb(10 42 63 / 0.72) 55%, rgb(10 42 63 / 0.35) 100%);
	z-index: 0;
}

.hero-carousel__inner {
	position: relative;
	z-index: 3;
	width: min(100% - 3rem, 68rem);
	margin-inline: auto;
	padding-block: clamp(3.5rem, 8vw, 6rem);
	max-width: 34rem;
	margin-inline-start: max(1.5rem, calc((100vw - 68rem) / 2));
}

.hero-carousel__icon {
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.25rem;
	filter: brightness(0) invert(1);
}

.hero-carousel__heading {
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.hero-carousel__intro {
	margin: 1rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 46ch;
	opacity: 0.9;
}

.hero-carousel__cta {
	display: inline-block;
	margin-top: 1.75rem;
	padding: 0.9rem 1.9rem;
	background: var(--accent);
	color: var(--brand-deep);
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color 180ms ease;
}

.hero-carousel__cta:hover,
.hero-carousel__cta:focus-visible {
	background: color-mix(in srgb, var(--accent) 82%, white);
}

/* Service strip — navigation and services summary in one. */
.hero-carousel__services {
	position: relative;
	z-index: 3;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	background: var(--brand);
	border-top: 1px solid rgb(255 255 255 / 0.12);
}

.hero-carousel__service {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: 1.4rem 0.75rem;
	background: none;
	border: 0;
	border-inline-end: 1px solid rgb(255 255 255 / 0.12);
	color: inherit;
	font: inherit;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.hero-carousel__service:last-child {
	border-inline-end: 0;
}

.hero-carousel__service:hover {
	background: rgb(255 255 255 / 0.07);
}

.hero-carousel__service.is-current {
	background: rgb(255 255 255 / 0.12);
	box-shadow: inset 0 3px 0 var(--accent);
}

.hero-carousel__service:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -4px;
}

.hero-carousel__service-icon {
	width: 2rem;
	height: 2rem;
	filter: brightness(0) invert(1);
}

.hero-carousel__service-label {
	font-size: 0.875rem;
	font-weight: 500;
}

@media (max-width: 60rem) {
	.hero-carousel__services {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-carousel__service {
		border-block-end: 1px solid rgb(255 255 255 / 0.12);
	}

	.hero-carousel__watermark {
		width: 26rem;
		right: -22%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-carousel__slide {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Request a quote
   -------------------------------------------------------------------------- */

.quote-request {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.quote-request--brand {
	background: var(--brand);
	color: var(--ink-invert);
}

.quote-request--dark {
	background: var(--brand-deep);
	color: var(--ink-invert);
}

.quote-request--light {
	background: #f4f6f8;
	color: inherit;
}

.quote-request__inner {
	width: min(100% - 3rem, 68rem);
	margin-inline: auto;
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

@media (min-width: 56rem) {
	.quote-request__inner {
		grid-template-columns: 5fr 6fr;
	}
}

.quote-request__heading {
	margin: 0;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.quote-request__intro {
	margin: 0.9rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 42ch;
	opacity: 0.92;
}

/* Numbered because this genuinely is a sequence — it sets expectations
   about what happens after someone submits. */
.quote-request__steps {
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 0.85rem;
}

.quote-request__step {
	counter-increment: step;
	display: grid;
	grid-template-columns: 1.75rem 1fr;
	gap: 0.85rem;
	align-items: baseline;
	font-size: 0.9875rem;
	line-height: 1.5;
}

.quote-request__step::before {
	content: counter(step);
	justify-self: start;
	min-width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 0.8125rem;
	font-weight: 600;
	opacity: 0.75;
}

.quote-request__phone {
	margin: 1.75rem 0 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.quote-request__phone a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
}

.quote-request__phone-note {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	font-weight: 400;
	opacity: 0.8;
}

/* The form gets a solid card so it sits forward of the band and reads as
   the thing to act on. */
.quote-request__form {
	background: #fff;
	color: #1a1a1a;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	border-radius: 4px;
	box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45);
}

.quote-request--light .quote-request__form {
	border: 1px solid #dfe4e8;
	box-shadow: none;
}

.quote-request__form input[type="text"],
.quote-request__form input[type="email"],
.quote-request__form input[type="tel"],
.quote-request__form select,
.quote-request__form textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #c7cfd6;
	border-radius: 3px;
	font: inherit;
	background: #fff;
}

.quote-request__form input:focus-visible,
.quote-request__form select:focus-visible,
.quote-request__form textarea:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
	border-color: var(--brand);
}

.quote-request__form button,
.quote-request__form input[type="submit"] {
	width: 100%;
	padding: 0.9rem 1.5rem;
	background: var(--accent);
	color: var(--brand-deep);
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
