/**
 * Cabinets Doors Replacement — front-end styles.
 *
 * Mobile-first: base rules describe the phone layout, media queries add the
 * wider ones. Written as one file on purpose — it is small enough that a single
 * request beats any splitting.
 *
 * 1.  Fonts
 * 2.  Tokens
 * 3.  Reset & base
 * 4.  Layout helpers
 * 5.  Buttons, badges, icons
 * 6.  Header
 * 7.  Hero
 * 8.  Why choose us
 * 9.  Before & after
 * 10. Process
 * 11. CTA banner
 * 12. Reviews
 * 13. Quote form
 * 14. Inner pages
 * 15. Footer
 * 16. Mobile bar
 * 17. Utilities
 */

/* ------------------------------------------------------------------ *
 * 1. Fonts
 * ------------------------------------------------------------------ */

@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/jakarta-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/jakarta-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

/* ------------------------------------------------------------------ *
 * 2. Tokens
 * ------------------------------------------------------------------ */

:root {
	/* Brand — sampled from the approved mockup. */
	--green: #194620;
	--green-hover: #123317;
	--green-soft: #e9f1ea;
	--green-line: #cfe0d2;
	--sage: #f7faf6;

	--ink: #14171a;
	--body: #5a6169;
	--muted: #7c848c;
	--line: #e5eae5;
	--white: #fff;
	--gold: #efb512;
	--badge-dark: #2f2f2f;

	/* Type scale */
	--font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--fs-eyebrow: 0.75rem;
	--fs-body: 1rem;
	--fs-h1: clamp(2.25rem, 6.4vw, 4rem);
	--fs-h2: clamp(1.75rem, 4.5vw, 2.5rem);
	--fs-h3: 1.125rem;

	/* Rhythm */
	--container: 1200px;
	--gutter: 20px;
	--section-y: 56px;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	--header-h: 64px;
	--mobile-bar-h: 60px;

	--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
	--shadow-md: 0 4px 16px rgba(16, 24, 40, 0.07);
	--shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.1);

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
	:root {
		--section-y: 80px;
		--gutter: 32px;
		--header-h: 76px;
	}
}

@media (min-width: 1024px) {
	:root {
		--section-y: 96px;
		--header-h: 84px;
	}
}

/* ------------------------------------------------------------------ *
 * 3. Reset & base
 * ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Keeps the fixed mobile bar from covering the last of the page. */
@media (max-width: 767px) {
	body {
		padding-bottom: var(--mobile-bar-h);
	}
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

p {
	margin: 0 0 1rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--green);
	text-decoration: none;
	transition: color 0.15s var(--ease);
}

a:hover {
	color: var(--green-hover);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

button {
	font: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	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 {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--green);
	color: var(--white);
	border-radius: 0 0 8px 8px;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 0;
	color: var(--white);
}

/* ------------------------------------------------------------------ *
 * 4. Layout helpers
 * ------------------------------------------------------------------ */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-y);
}

.section--sage {
	background: var(--sage);
}

.section--tight {
	padding-block: calc(var(--section-y) * 0.7);
}

/*
 * Narrow enough that two-line section headings break at the same word as the
 * approved mockup ("The Smart Way to / Refresh Your Kitchen").
 */
.section__head {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
}

.eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green);
}

.section__title {
	margin-bottom: 0;
}

/* Short rule under the section heading, as in the mockup. */
.section__head .section__title::after {
	content: '';
	display: block;
	width: 56px;
	height: 3px;
	margin: 18px auto 0;
	background: var(--green);
	border-radius: 2px;
}

.section__lead {
	margin-top: 16px;
	font-size: 1.05rem;
}

/* ------------------------------------------------------------------ *
 * 5. Buttons, badges, icons
 * ------------------------------------------------------------------ */

.cdr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background 0.18s var(--ease), color 0.18s var(--ease),
		border-color 0.18s var(--ease), transform 0.18s var(--ease),
		box-shadow 0.18s var(--ease);
}

.cdr-btn svg {
	flex: 0 0 auto;
	transition: transform 0.18s var(--ease);
}

.cdr-btn:hover svg {
	transform: translateX(3px);
}

.cdr-btn--primary {
	background: var(--green);
	border-color: var(--green);
	color: var(--white);
}

.cdr-btn--primary:hover {
	background: var(--green-hover);
	border-color: var(--green-hover);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.cdr-btn--ghost {
	background: var(--white);
	border-color: var(--green-line);
	color: var(--green);
}

.cdr-btn--ghost:hover {
	border-color: var(--green);
	background: var(--green-soft);
	color: var(--green);
}

.cdr-btn--white {
	background: var(--white);
	border-color: var(--white);
	color: var(--green);
}

.cdr-btn--white:hover {
	background: var(--sage);
	color: var(--green-hover);
}

.cdr-btn--sm {
	padding: 11px 18px;
	font-size: 0.875rem;
}

.cdr-btn--block {
	display: flex;
	width: 100%;
}

/* Circular icon holder used by the feature and process cards. */
.icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--green-soft);
	color: var(--green);
	flex: 0 0 56px;
}

.icon-circle--outline {
	background: transparent;
	border: 1.5px solid var(--green-line);
}

.cdr-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--line);
}

.cdr-stars__star {
	display: inline-flex;
	line-height: 0;
}

.cdr-stars__star.is-on {
	color: var(--gold);
}

.cdr-stars__star.is-on svg {
	fill: currentColor;
}

/* ------------------------------------------------------------------ *
 * 6. Header
 * ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}

/* --- Logo --- */

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: var(--ink);
	flex-shrink: 0;
}

.site-logo:hover {
	color: var(--ink);
}

.site-logo__mark {
	flex: 0 0 auto;
	color: var(--green);
}

.site-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-logo__line1 {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.site-logo__line2 {
	margin-top: 3px;
	font-size: 0.55rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (min-width: 480px) {
	.site-logo__line1 { font-size: 1.3rem; }
	.site-logo__line2 { font-size: 0.6rem; }
}

/* --- Navigation --- */

.site-nav {
	display: none;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 0.925rem;
	font-weight: 600;
	color: var(--ink);
}

.site-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s var(--ease);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
	color: var(--green);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

.header__phone {
	display: none;
	align-items: center;
	gap: 7px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
}

.header__phone:hover {
	color: var(--green);
}

.header__phone svg {
	color: var(--green);
}

.header__cta {
	display: none;
}

/* --- Mobile controls --- */

.header__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--green);
	color: var(--white);
	flex: 0 0 44px;
}

.header__call:hover {
	background: var(--green-hover);
	color: var(--white);
}

.header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	flex: 0 0 44px;
}

.header__toggle:hover {
	background: var(--sage);
}

.header__toggle .cdr-icon--close {
	display: none;
}

.header__toggle[aria-expanded='true'] .cdr-icon--close {
	display: block;
}

.header__toggle[aria-expanded='true'] .cdr-icon--menu {
	display: none;
}

/* --- Mobile drawer --- */

.mobile-nav {
	position: fixed;
	inset: var(--header-h) 0 0;
	z-index: 99;
	padding: 24px var(--gutter) 40px;
	background: var(--white);
	overflow-y: auto;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
}

.mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-nav__list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.mobile-nav__list li + li {
	border-top: 1px solid var(--line);
}

.mobile-nav__list a {
	display: block;
	padding: 15px 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
}

.mobile-nav__list a:hover,
.mobile-nav__list .current-menu-item > a {
	color: var(--green);
}

.mobile-nav__meta {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.mobile-nav__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ink);
}

.mobile-nav__phone svg {
	color: var(--green);
}

@media (min-width: 1024px) {
	.site-nav,
	.header__cta {
		display: block;
	}

	.header__phone {
		display: inline-flex;
	}

	.header__call,
	.header__toggle {
		display: none;
	}

	.mobile-nav {
		display: none;
	}
}

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */

.hero {
	position: relative;
	overflow: hidden;
	background: #f4f4ef;
}

.hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* On phones the photo sits above the copy and fades into it. */
.hero__media::after {
	content: '';
	position: absolute;
	inset: auto 0 -1px 0;
	height: 45%;
	background: linear-gradient(to bottom, rgba(244, 244, 239, 0), #f4f4ef 92%);
}

.hero__body {
	position: relative;
	z-index: 2;
	padding-block: 0 36px;
	margin-top: -18%;
}

/* Measure tuned so the H1 breaks after "Cabinet", as the mockup does:
   "Kitchen Cabinet" / "Door Replacement". */
.hero__title {
	max-width: 16ch;
	margin-bottom: 18px;
}

/* The mockup sets these two lines as one tight block, not spaced paragraphs. */
.hero__text {
	max-width: 46ch;
	margin-bottom: 0;
	color: var(--body);
}

.hero__text + .hero__text {
	margin-top: 4px;
}

.hero__badges {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px 16px;
	margin: 30px 0;
	padding: 0;
	list-style: none;
}

.hero__badge {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hero__badge-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero__badge .icon-circle {
	width: 40px;
	height: 40px;
	flex-basis: 40px;
	background: transparent;
	border: 1.5px solid var(--green-line);
}

.hero__badge-title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}

.hero__badge-sub {
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.35;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 560px) {
	.hero__badges {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px 12px;
	}

	.hero__actions {
		flex-direction: row;
	}

	.hero__actions .cdr-btn {
		flex: 0 1 auto;
	}
}

@media (min-width: 1024px) {
	.hero {
		background: transparent;
	}

	.hero__inner {
		position: relative;
		min-height: 620px;
		display: flex;
		align-items: center;
	}

	/* Photo becomes a right-hand backdrop with a fade into the copy. */
	.hero__media {
		position: absolute;
		inset: 0 0 0 38%;
		width: auto;
		aspect-ratio: auto;
		z-index: 0;
	}

	.hero__media::after {
		inset: 0;
		height: auto;
		background: linear-gradient(
			to right,
			#f4f4ef 0%,
			rgba(244, 244, 239, 0.92) 22%,
			rgba(244, 244, 239, 0) 60%
		);
	}

	.hero::before {
		content: '';
		position: absolute;
		inset: 0 62% 0 0;
		background: #f4f4ef;
		z-index: 0;
	}

	.hero__body {
		position: relative;
		z-index: 2;
		max-width: 620px;
		margin-top: 0;
		padding-block: 60px;
	}

	.hero__badges {
		max-width: 560px;
	}
}

/* ------------------------------------------------------------------ *
 * 8. Why choose us
 * ------------------------------------------------------------------ */

.why__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.why__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.why__title {
	margin-bottom: 6px;
	font-size: 1.05rem;
}

.why__text {
	font-size: 0.925rem;
	line-height: 1.6;
}

@media (min-width: 640px) {
	.why__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.why__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 32px 26px;
	}

	/* Wide layout stacks the icon above the text and centres it. */
	.why__item {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 14px;
	}

	.why__item .icon-circle {
		width: 62px;
		height: 62px;
		flex-basis: 62px;
		background: transparent;
		border: 1.5px solid var(--green-line);
	}
}

/* ------------------------------------------------------------------ *
 * 9. Before & after
 * ------------------------------------------------------------------ */

.ba {
	position: relative;
	/* The dots already add visual space; a full section pad below them left too
	   large a gap before the process steps. */
	padding-bottom: calc(var(--section-y) * 0.55);
}

.ba__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.ba__track {
	display: flex;
	transition: transform 0.4s var(--ease);
}

.ba__slide {
	flex: 0 0 100%;
	min-width: 0;
}

.ba__pair {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.ba__half {
	position: relative;
	overflow: hidden;
}

.ba__half img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ba__label {
	position: absolute;
	top: 12px;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
}

.ba__label--before {
	left: 12px;
	background: var(--badge-dark);
}

.ba__label--after {
	right: 12px;
	background: var(--green);
}

/* Round arrow sitting on the seam between the two photos. */
.ba__nav {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	gap: 2px;
	transform: translate(-50%, -50%);
	background: var(--white);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.ba__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.ba__arrow:hover:not(:disabled) {
	background: var(--green-soft);
	color: var(--green);
}

.ba__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.ba__caption {
	margin-top: 16px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--muted);
}

.ba__caption strong {
	color: var(--ink);
}

.ba__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 0;
	list-style: none;
}

.ba__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--green-line);
	transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.ba__dot.is-active {
	background: var(--green);
	transform: scale(1.15);
}

@media (min-width: 768px) {
	.ba__label {
		top: 18px;
		padding: 7px 18px;
		font-size: 0.75rem;
	}

	.ba__label--before { left: 18px; }
	.ba__label--after { right: 18px; }

	.ba__arrow {
		width: 40px;
		height: 46px;
	}
}

/* ------------------------------------------------------------------ *
 * 10. Process
 * ------------------------------------------------------------------ */

.process__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.process__item {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 22px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.process__num {
	position: absolute;
	top: -12px;
	left: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--green);
	color: var(--white);
	font-size: 0.8rem;
	font-weight: 800;
}

.process__icon {
	flex: 0 0 auto;
	color: var(--green);
	margin-top: 4px;
}

.process__title {
	margin-bottom: 5px;
	font-size: 1rem;
}

.process__text {
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Chevron between the steps on wide screens. */
.process__sep {
	display: none;
}

@media (min-width: 900px) {
	.process__grid {
		grid-template-columns: 1fr auto 1fr auto 1fr;
		align-items: stretch;
		gap: 0;
	}

	.process__item {
		height: 100%;
	}

	.process__sep {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-inline: 14px;
		color: var(--muted);
	}
}

/* ------------------------------------------------------------------ *
 * 11. CTA banner
 * ------------------------------------------------------------------ */

.cta-banner {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--green);
	color: var(--white);
}

.cta-banner__media {
	position: relative;
	aspect-ratio: 16 / 9;
}

.cta-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-banner__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(25, 70, 32, 0.25), var(--green) 96%);
}

.cta-banner__body {
	position: relative;
	z-index: 2;
	padding: 0 26px 34px;
	margin-top: -12%;
}

.cta-banner__eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.cta-banner__title {
	color: var(--white);
	margin-bottom: 10px;
}

.cta-banner__text {
	margin-bottom: 22px;
	color: rgba(255, 255, 255, 0.86);
}

@media (min-width: 768px) {
	.cta-banner {
		display: grid;
		grid-template-columns: 1.05fr 1fr;
		align-items: center;
	}

	.cta-banner__media {
		order: 2;
		height: 100%;
		aspect-ratio: auto;
		min-height: 300px;
	}

	.cta-banner__media::after {
		background: linear-gradient(to right, var(--green) 2%, rgba(25, 70, 32, 0) 55%);
	}

	.cta-banner__body {
		order: 1;
		margin-top: 0;
		padding: 44px 40px;
	}
}

@media (min-width: 1024px) {
	.cta-banner__body {
		padding: 56px 52px;
	}
}

/* ------------------------------------------------------------------ *
 * 12. Reviews
 * ------------------------------------------------------------------ */

.reviews {
	position: relative;
}

.reviews__viewport {
	overflow: hidden;
}

.reviews__track {
	display: flex;
	gap: 18px;
	transition: transform 0.4s var(--ease);
}

.reviews__item {
	flex: 0 0 100%;
	min-width: 0;
	display: flex;
}

.review-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 26px 24px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.review-card__quote {
	position: absolute;
	top: 16px;
	left: 20px;
	color: var(--green-soft);
}

.review-card__stars {
	position: relative;
	z-index: 1;
	margin-bottom: 14px;
}

.review-card__text {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	margin-bottom: 20px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--body);
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.review-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 40px;
	background: var(--green-soft);
}

.review-card__name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
}

.review-card__city {
	font-size: 0.8rem;
	color: var(--muted);
}

.reviews__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.reviews__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
	transition: background 0.15s var(--ease), color 0.15s var(--ease),
		border-color 0.15s var(--ease);
}

.reviews__arrow:hover:not(:disabled) {
	border-color: var(--green);
	background: var(--green-soft);
	color: var(--green);
}

.reviews__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (min-width: 700px) {
	.reviews__item {
		flex-basis: calc((100% - 18px) / 2);
	}
}

@media (min-width: 1024px) {
	.reviews__item {
		flex-basis: calc((100% - 36px) / 3);
	}

	/* Arrows flank the track on desktop, as in the mockup. */
	.reviews__inner {
		position: relative;
		padding-inline: 60px;
	}

	.reviews__nav {
		margin-top: 0;
	}

	.reviews__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.reviews__arrow--prev { left: 0; }
	.reviews__arrow--next { right: 0; }
}

/* ------------------------------------------------------------------ *
 * 13. Quote form
 * ------------------------------------------------------------------ */

.quote__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

.quote__points {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.quote__point {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 0;
	font-size: 0.95rem;
}

.quote__point svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--green);
}

.cdr-form {
	padding: 26px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* Honeypot: off-screen but not display:none, which some bots detect. */
.cdr-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cdr-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.cdr-form__row {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.cdr-form__label {
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ink);
}

.cdr-form__input {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	font-family: inherit;
	font-size: 1rem;
	color: var(--ink);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.cdr-form__input:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(25, 70, 32, 0.12);
}

.cdr-form__input.has-error {
	border-color: #d92d20;
}

.cdr-form__textarea {
	resize: vertical;
	min-height: 110px;
}

.cdr-form__error {
	margin-top: 5px;
	font-size: 0.8rem;
	color: #d92d20;
	min-height: 0;
}

.cdr-form__error:empty {
	display: none;
}

/* Remaining-characters count, shown only near the limit. */
.cdr-form__count {
	margin-top: 4px;
	font-size: 0.75rem;
	color: var(--muted);
	text-align: right;
}

.cdr-form__count:empty {
	display: none;
}

.cdr-form__count.is-near {
	color: #b54708;
}

.cdr-form__count.is-full {
	color: #d92d20;
	font-weight: 600;
}

.cdr-form__actions {
	margin-top: 20px;
}

.cdr-form__submit {
	width: 100%;
	position: relative;
}

.cdr-form__consent {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: var(--muted);
	text-align: center;
}

.cdr-form__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: var(--white);
	border-radius: 50%;
	animation: cdr-spin 0.7s linear infinite;
}

.cdr-form.is-sending .cdr-form__spinner {
	display: block;
}

.cdr-form.is-sending .cdr-form__submit {
	opacity: 0.75;
	pointer-events: none;
}

@keyframes cdr-spin {
	to { transform: rotate(360deg); }
}

.cdr-form__message {
	margin-top: 16px;
	padding: 0;
	font-size: 0.925rem;
	border-radius: 8px;
	text-align: center;
}

.cdr-form__message.is-success {
	padding: 14px 16px;
	background: var(--green-soft);
	color: var(--green);
	font-weight: 600;
}

.cdr-form__message.is-error {
	padding: 14px 16px;
	background: #fef3f2;
	color: #b42318;
	font-weight: 600;
}

@media (min-width: 560px) {
	.cdr-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.cdr-form__row--full {
		grid-column: 1 / -1;
	}

	.cdr-form__submit {
		width: auto;
		min-width: 240px;
	}

	.cdr-form__actions {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.cdr-form__consent {
		text-align: left;
	}
}

@media (min-width: 900px) {
	.quote__grid {
		grid-template-columns: 1fr 1.05fr;
		gap: 48px;
	}

	.cdr-form {
		padding: 32px 30px;
	}
}

/* ------------------------------------------------------------------ *
 * 14. Inner pages
 * ------------------------------------------------------------------ */

.page-header {
	position: relative;
	padding-block: 48px;
	background: var(--sage);
	border-bottom: 1px solid var(--line);
	text-align: center;
	overflow: hidden;
}

.page-header--image {
	background: var(--green);
}

.page-header__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-header__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.28;
}

.page-header__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin-inline: auto;
}

.page-header--image .page-header__inner,
.page-header--image .page-header__title,
.page-header--image .eyebrow {
	color: var(--white);
}

.page-header__text {
	margin-top: 14px;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content h2 {
	margin-top: 2rem;
}

.entry-content ul {
	padding-left: 1.2rem;
}

.entry-content li + li {
	margin-top: 6px;
}

/* --- Cards grid used by Services & Gallery --- */

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 20px;
}

.card__icon {
	margin-bottom: 14px;
}

.card__title {
	margin-bottom: 8px;
	font-size: 1.05rem;
}

.card__text {
	font-size: 0.925rem;
	line-height: 1.6;
	margin-bottom: 14px;
}

.card__list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.card__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 0;
}

.card__list svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--green);
}

.card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.card__meta strong {
	color: var(--ink);
}

/* --- Gallery item --- */

.gallery-item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
}

.gallery-item__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	position: relative;
}

.gallery-item__half {
	position: relative;
}

.gallery-item__half img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gallery-item__body {
	padding: 16px 18px;
}

.gallery-item__title {
	margin-bottom: 4px;
	font-size: 1rem;
}

.gallery-item__meta {
	font-size: 0.85rem;
	color: var(--muted);
}

/* --- FAQ accordion --- */

.faq-list {
	max-width: 800px;
	margin-inline: auto;
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 0;
	border: 0;
	background: transparent;
	text-align: left;
	font-family: inherit;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ink);
	transition: color 0.15s var(--ease);
}

.faq-item__q:hover {
	color: var(--green);
}

.faq-item__icon {
	flex: 0 0 auto;
	color: var(--green);
	transition: transform 0.22s var(--ease);
}

.faq-item__q[aria-expanded='true'] .faq-item__icon {
	transform: rotate(45deg);
}

.faq-item__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.26s var(--ease);
}

.faq-item__a-inner {
	overflow: hidden;
}

.faq-item.is-open .faq-item__a {
	grid-template-rows: 1fr;
}

.faq-item__a p {
	padding-bottom: 20px;
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
}

/* --- Contact page --- */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

.contact__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact__row {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.contact__row:last-child {
	border-bottom: 0;
}

.contact__row .icon-circle {
	width: 44px;
	height: 44px;
	flex-basis: 44px;
}

.contact__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 3px;
}

.contact__value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink);
}

.contact__value a {
	color: var(--ink);
}

.contact__value a:hover {
	color: var(--green);
}

.map-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--sage);
}

.map-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Click-to-load map facade --- */

.map-embed__placeholder {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(25, 70, 32, 0.05), rgba(25, 70, 32, 0.05)),
		repeating-linear-gradient(0deg, transparent 0 26px, rgba(25, 70, 32, 0.09) 26px 27px),
		repeating-linear-gradient(90deg, transparent 0 26px, rgba(25, 70, 32, 0.09) 26px 27px),
		var(--sage);
}

/* Two suggested "roads" so the placeholder reads as a map, not a broken image. */
.map-embed__placeholder::before,
.map-embed__placeholder::after {
	content: '';
	position: absolute;
	background: rgba(25, 70, 32, 0.16);
}

.map-embed__placeholder::before {
	left: 0;
	right: 0;
	top: 58%;
	height: 6px;
}

.map-embed__placeholder::after {
	top: 0;
	bottom: 0;
	left: 32%;
	width: 5px;
}

.map-embed__load {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 16px;
	border: 0;
	background: transparent;
	color: var(--green);
	text-align: center;
	cursor: pointer;
}

.map-embed__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: var(--shadow-md);
	transition: transform 0.18s var(--ease);
}

.map-embed__load:hover .map-embed__pin {
	transform: translateY(-2px);
}

.map-embed__label {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.map-embed__address {
	font-size: 0.82rem;
	color: var(--body);
	max-width: 26ch;
}

/* Footer sits on green, so the facade needs its own light-on-dark treatment. */
.footer__map .map-embed__placeholder {
	background:
		repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.09) 22px 23px),
		repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.09) 22px 23px),
		rgba(255, 255, 255, 0.06);
}

.footer__map .map-embed__placeholder::before,
.footer__map .map-embed__placeholder::after {
	background: rgba(255, 255, 255, 0.18);
}

.footer__map .map-embed__pin {
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
	box-shadow: none;
}

.footer__map .map-embed__label {
	color: var(--white);
	font-size: 0.85rem;
}

.footer__map .map-embed__address {
	display: none;
}

@media (min-width: 900px) {
	.contact__grid {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
	}

	.map-embed {
		aspect-ratio: 16 / 10;
	}
}

/* --- 404 --- */

.error-404 {
	text-align: center;
	padding-block: calc(var(--section-y) * 1.2);
}

.error-404__code {
	font-size: clamp(4.5rem, 18vw, 9rem);
	font-weight: 800;
	line-height: 1;
	color: var(--green-soft);
	letter-spacing: -0.04em;
}

.error-404__title {
	margin-top: -0.2em;
}

.error-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------------ *
 * 15. Footer
 * ------------------------------------------------------------------ */

.site-footer {
	background: var(--green);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
	color: var(--white);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding-block: 44px;
}

.site-footer .site-logo__line1,
.site-footer .site-logo__line2 {
	color: var(--white);
}

.site-footer .site-logo__mark {
	color: var(--white);
}

.site-footer__about {
	margin-top: 16px;
	max-width: 34ch;
	line-height: 1.6;
}

.footer__socials {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
}

.footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
	transition: background 0.15s var(--ease);
}

.footer__social:hover {
	background: rgba(255, 255, 255, 0.24);
	color: var(--white);
}

.footer__title {
	margin-bottom: 14px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--white);
}

.footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__list li {
	padding: 5px 0;
}

.footer__map {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	aspect-ratio: 4 / 3;
	position: relative;
	background: rgba(255, 255, 255, 0.08);
}

.footer__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.2);
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-block: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.82rem;
}

.site-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.site-footer__main {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 28px;
	}
}

@media (min-width: 1024px) {
	.site-footer__main {
		grid-template-columns: 1.5fr 1fr 1.15fr 1fr 1.2fr;
		gap: 36px 28px;
		padding-block: 56px;
	}

	.site-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ------------------------------------------------------------------ *
 * 16. Mobile bar
 * ------------------------------------------------------------------ */

.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 98;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--mobile-bar-h);
	padding: 0 14px;
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--green);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.14);
}

.mobile-bar__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--white);
}

.mobile-bar__phone:hover {
	color: var(--white);
}

.mobile-bar .cdr-btn {
	padding: 10px 16px;
	font-size: 0.85rem;
}

@media (min-width: 768px) {
	.mobile-bar {
		display: none;
	}
}

/* ------------------------------------------------------------------ *
 * 17. Utilities
 * ------------------------------------------------------------------ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.is-hidden {
	display: none !important;
}

.no-scroll {
	overflow: hidden;
}
