/* === TABLE OF CONTENTS ===
 * 1. CSS Layers
 * 2. Reset
 * 3. Base (Custom Properties, Globals)
 * 4. Utils (.screen-reader-text, .wrapper-*, etc.)
 * 5. Components
 *    - Buttons (.btn)
 *    - Search Form
 *    - Navigation
 *    - Drawer
 *    - Footer
 * 6. Templates
 *    - Search Form Wrapper / Results
 *    - 404 Error Page
 */

/* === 1. CSS Layers === */
@layer reset, base, utilities, components, templates;

@layer reset {
	*,
	*::before,
	*::after {
		box-sizing: inherit;
	}
	html {
		box-sizing: border-box;
		line-height: 1.5;
		-webkit-text-size-adjust: 100%;
		scroll-behavior: smooth;
	}
	body {
		margin: 0;
	}
	img,
	iframe,
	embed,
	object,
	video {
		display: block;
		max-width: 100%;
		height: auto;
	}
	:where(.menu, .sub-menu) {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	@media (prefers-reduced-motion: reduce) {
		html:focus-within {
			scroll-behavior: auto;
		}
		*,
		*::before,
		*::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
			scroll-behavior: auto !important;
		}
	}
}

@layer base {
	/* === 2. CSS Custom Properties === */
	:root {
		/* --- Colors --- */
		--primary-base: 0.5954 0.03 69.01;
		--white-base: 1 0 0;
		--black-base: 0 0 0;

		--primary: oklch(var(--primary-base));
		--white: oklch(var(--white-base));
		--black: oklch(var(--black-base));

		--bg-plaster-color: #eae4db;
		--bg-plaster-image: url('../../assets/images/bg-light-seamless.webp');
		--bg-plaster-dark-color: #907e6f;
		--bg-plaster-dark-image: url('../../assets/images/bg-dark-seamless.webp');
		--bg-plaster-size: 40rem;

		/* --- Typography --- */
		--ff-heading: 'proxima-nova', sans-serif;
		--ff-body: 'greycliff-cf', sans-serif;
		/*
		 * When using local fonts in /assets/fonts/, add font-display: swap
		 * to prevent invisible text during font loading:
		 *
		 * @font-face {
		 *   font-family: 'YourFont';
		 *   src: url('/assets/fonts/yourfont.woff2') format('woff2');
		 *   font-display: swap;
		 * }
		 */

		--fs-sm: clamp(0.73rem, 0.11vi + 0.7rem, 0.8rem);
		--fs-base: clamp(0.88rem, 0.29vi + 0.8rem, 1.06rem);
		--fs-md: clamp(1.05rem, 0.56vi + 0.91rem, 1.41rem);
		--fs-lg: clamp(1.26rem, 0.95vi + 1.02rem, 1.88rem);
		--fs-xl: clamp(1.51rem, 1.52vi + 1.13rem, 2.5rem);
		--fs-2xl: clamp(1.81rem, 2.32vi + 1.23rem, 3.32rem);
		--fs-3xl: clamp(2.18rem, 3.45vi + 1.31rem, 4.42rem);

		/* --- Sizing & Spacing --- */
		--gutter: 1rem;
		--max-w-max: 125rem;
		--max-w-content: 62.5rem;
		--max-w-text: 50rem;

		/* --- Effects --- */
		--shadow-color: oklch(var(--black-base) / 0.15);
		--shadow-color-hover: oklch(var(--black-base) / 0.25);
		--shadow: 0 0 10px var(--shadow-color);
		--shadow-hover: 0 0 10px var(--shadow-color-hover);
		--transition: all 200ms ease-out;

		/* --- Dynamic Header Height --- */
		--header-height: 0px;
		--hero-inset: 2rem;
	}

	/* === 4. Globals === */
	body {
		font-family: var(--ff-body);
		font-size: var(--fs-base);
	}
	button,
	input,
	optgroup,
	select,
	textarea {
		font-family: inherit;
		font-size: 100%;
		line-height: 1.15;
		margin: 0;
	}
	b,
	strong {
		font-weight: bolder;
	}
	:where(h1, h2, h3, h4, h5, h6) {
		--heading-color: var(--primary);
		color: var(--heading-color);
		font-family: var(--ff-heading);
		font-weight: 200;
		line-height: 1;
		margin-block: 0.33em;
		text-transform: uppercase;
	}
	h1 {
		font-size: var(--fs-2xl);
		margin-block: 0.67em;
	}
	h2 {
		--heading-color: var(--secondary);
		font-size: var(--fs-xl);
	}
	h3 {
		font-size: var(--fs-lg);
	}
	h4 {
		--heading-color: var(--secondary);
		font-size: var(--fs-lg);
	}
	h5 {
		font-size: var(--fs-md);
	}
	h6 {
		font-size: var(--fs-md);
	}
	hr {
		width: 100%;
		height: 2px;
		border: none;
		margin: 2em 0;
		background-color: var(--gray-300);
	}
	a:not(.btn) {
		color: var(--primary);
	}
	a:not(.btn):hover {
		color: color-mix(in oklch, var(--primary) 75%, black 25%);
		text-decoration-thickness: 0.1em;
	}
	p {
		font-weight: 200;
	}
	:focus-visible {
		outline: 2px solid var(--primary);
		outline-offset: 2px;
	}
	#page {
		position: relative;
		display: flex;
		flex-direction: column;
		min-height: 100dvh;
	}
	#main {
		flex: 1;
	}
}

/* === 5. Utils === */
@layer utilities {
	.screen-reader-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	.screen-reader-text:focus {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}
	.skip-link {
		position: absolute;
		top: 0;
		left: 0;
		padding: 0.5rem 1rem;
		background: #000;
		color: #fff;
		text-decoration: none;
		z-index: 1000;
		transform: translateY(-120%);
	}
	.skip-link:focus,
	.skip-link:focus-visible {
		transform: translateY(0);
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		clip-path: none;
		white-space: normal;
	}
	.wrapper-max {
		max-width: var(--max-w-max);
		margin-inline: auto;
	}
	.wrapper-content {
		max-width: var(--max-w-content);
		margin-inline: auto;
		padding-inline: var(--gutter);
	}
	.wrapper-text {
		max-width: var(--max-w-text);
		margin-inline: auto;
	}
	body.has-drawer-open {
		overflow: hidden;
	}
}

/* === 6. Components === */
@layer components {
	/* --- Buttons --- */
	.btn,
	.wpcf7-submit {
		display: inline-block;
		background-color: transparent;
		border: 1px solid var(--white);
		color: var(--white);
		padding: 0.75rem clamp(2rem, 6vw, 5rem);
		font-size: var(--fs-md);
		font-family: var(--ff-heading);
		font-weight: 200;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
	}
	.btn:hover,
	.wpcf7-submit:hover {
		background-color: var(--white);
		color: var(--primary);
	}
	.btn:focus,
	.wpcf7-submit:focus {
		outline: 2px solid var(--primary);
		outline-offset: 2px;
	}
	.btn-outline__black {
		border-color: var(--black);
		color: var(--black);
	}
	.btn-outline__black:hover,
	.btn-outline__black:focus {
		background-color: var(--black);
		color: var(--white);
	}

	/* --- Search Form --- */
	.search-form {
		position: relative;
		max-width: 100%;
	}
	.search-form__field {
		position: relative;
		display: flex;
		align-items: center;
		background-color: oklch(var(--white-base));
		border: 2px solid var(--gray-300);
		border-radius: 0.5rem;
		overflow: hidden;
		transition: var(--transition);
	}
	.search-form__field:focus-within {
		border-color: var(--primary);
		box-shadow: 0 0 0 3px oklch(var(--primary) / 0.1);
	}
	.search-form__input {
		flex: 1;
		padding: 0.75rem 1rem;
		border: none;
		background: transparent;
		font-size: var(--fs-base);
		color: var(--gray-900);
		outline: none;
	}
	.search-form__input::placeholder {
		color: var(--gray-700);
		opacity: 0.7;
	}
	.search-form__submit {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.75rem;
		border: none;
		background-color: var(--primary);
		color: oklch(var(--white-base));
		cursor: pointer;
		transition: var(--transition);
		min-width: 3rem;
	}
	.search-form__submit:hover {
		background-color: color-mix(in oklch, var(--primary) 85%, black 15%);
	}
	.search-form__submit:focus {
		outline: 2px solid oklch(var(--white-base));
		outline-offset: -2px;
	}
	.search-form__icon {
		width: 1.5rem;
		height: 1.5rem;
		fill: currentColor;
	}

	/* Search Highlight */
	.search-highlight {
		background-color: oklch(var(--secondary-base) / 0.2);
		color: inherit;
		font-weight: 600;
		padding: 0.1em 0.2em;
		border-radius: 0.2em;
	}

	/* --- Navigation --- */
	.site-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 101;
		padding-inline: var(--gutter);
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 1rem;
		width: 100%;
		padding-block: var(--hero-inset);
		opacity: 1;
		transition:
			transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
			opacity 160ms ease-out,
			box-shadow 220ms ease-out,
			background-color 220ms ease-out,
			padding-block 220ms ease-out;
	}
	.site-header.is-fixed {
		position: fixed;
		transform: translateY(-0.75rem);
		opacity: 0;
		pointer-events: none;
	}
	.site-header.is-fixed.is-visible {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
		box-shadow: var(--shadow);
		background-color: var(--primary);
		padding-block: 0.75rem;
	}
	.site-header.is-scrolling-out {
		position: absolute;
		top: var(--header-scroll-out-top, 0px);
		transform: none;
		opacity: 1;
		pointer-events: auto;
		box-shadow: var(--shadow);
		background-color: var(--primary);
		padding-block: 0.75rem;
	}
	.site-logo {
		display: flex;
		color: white;
	}
	@media (width <= 1024px) {
		.main-navigation {
			display: none;
		}
	}
	.main-navigation .menu {
		display: flex;
		align-items: center;
	}
	.menu-item {
		position: relative;
	}
	.menu-item a {
		font-size: calc(var(--fs-base) * 0.9);
		text-transform: uppercase;
		text-decoration: none;
		padding: 1rem 2rem;
		letter-spacing: 0.1em;
		font-weight: 200;
		color: var(--white);
		text-shadow: 0 0 16px oklch(var(--black-base) / 0.6);
	}
	.sub-menu {
		display: none;
		position: absolute;
		align-items: center;
	}
	.main-navigation .menu-item:has(.sub-menu):hover .sub-menu,
	.main-navigation .menu-item:has(.sub-menu):focus-within .sub-menu {
		display: flex;
		flex-direction: column;
	}

	/* Menu Toggle (Hamburger) */
	.menu-toggle {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 12px 10px;
		margin-inline-start: auto;
		margin-inline-end: -10px;
		color: var(--white);
		background: transparent;
		border: none;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}
	@media (width > 1024px) {
		.menu-toggle {
			display: none;
		}
	}
	.menu-toggle__line {
		display: block;
		width: 100%;
		height: 3px;
		border-radius: 9999px;
		background-color: currentColor;
		transition:
			transform 225ms
				linear(
					0,
					0.453 7.8%,
					0.803 16.1%,
					1.048 24.9%,
					1.132 29.5%,
					1.194 34.4%,
					1.227 38.4%,
					1.245 42.5%,
					1.25 46.9%,
					1.242 51.7%,
					1.2 60.5%,
					1.038 84.9%,
					1.009 92.5%,
					1
				),
			opacity 225ms
				linear(
					0,
					0.453 7.8%,
					0.803 16.1%,
					1.048 24.9%,
					1.132 29.5%,
					1.194 34.4%,
					1.227 38.4%,
					1.245 42.5%,
					1.25 46.9%,
					1.242 51.7%,
					1.2 60.5%,
					1.038 84.9%,
					1.009 92.5%,
					1
				);
		transform-origin: center;
	}
	.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
		transform: translateY(8.5px) rotate(45deg);
	}
	.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
		opacity: 0;
		transform: scaleX(0);
	}
	.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
		transform: translateY(-8.5px) rotate(-45deg);
	}

	/* --- Drawer (Full-screen immersive menu) --- */
	.drawer {
		--drawer-fg: var(--white);
		--drawer-fg-muted: oklch(var(--white-base) / 0.55);
		--drawer-line: oklch(var(--white-base) / 0.14);
		--drawer-reveal-x: calc(100% - 2.25rem);
		--drawer-reveal-y: calc(var(--header-height) / 2);
		position: fixed;
		inset: 0;
		z-index: 100;
		pointer-events: none;
		visibility: hidden;
		transition: visibility 0s 420ms;
	}
	.drawer::before {
		content: '';
		position: absolute;
		inset: 0;
		background: oklch(var(--black-base) / 0.35);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		opacity: 0;
		transition: opacity 420ms cubic-bezier(0.32, 0.72, 0, 1);
	}
	.drawer.is-open {
		pointer-events: auto;
		visibility: visible;
		transition: visibility 0s 0s;
	}
	.drawer.is-open::before {
		opacity: 1;
	}
	.drawer__surface {
		position: absolute;
		inset: 0;
		padding-top: var(--header-height);
		color: var(--drawer-fg);
		background:
			radial-gradient(
				120% 90% at 100% 0%,
				color-mix(in oklch, var(--primary) 78%, white) 0%,
				transparent 55%
			),
			linear-gradient(
				155deg,
				color-mix(in oklch, var(--primary) 90%, black) 0%,
				var(--primary) 45%,
				color-mix(in oklch, var(--primary) 72%, black) 100%
			);
		display: flex;
		flex-direction: column;
		clip-path: circle(0% at var(--drawer-reveal-x) var(--drawer-reveal-y));
		transition: clip-path 420ms cubic-bezier(0.65, 0, 0.35, 1);
		will-change: clip-path;
		outline: none;
	}
	.drawer.is-open .drawer__surface {
		clip-path: circle(150% at var(--drawer-reveal-x) var(--drawer-reveal-y));
	}
	.drawer__search {
		padding: 1.5rem var(--gutter) 1rem;
	}
	.drawer.is-open .drawer__search {
		animation: drawerFadeUp 480ms ease 120ms backwards;
	}
	.drawer__search-form {
		display: block;
		width: 100%;
		max-width: 28rem;
	}
	.drawer__search-input {
		width: 100%;
		padding: 0.75rem 0.5rem 0.75rem 2.25rem;
		border: none;
		border-bottom: 1px solid var(--drawer-line);
		border-radius: 0;
		background-color: transparent;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: 0.25rem 50%;
		color: var(--drawer-fg);
		font-size: var(--fs-base);
		letter-spacing: 0.04em;
		transition: border-color 200ms ease;
	}
	.drawer__search-input::placeholder {
		color: var(--drawer-fg-muted);
	}
	.drawer__search-input:focus {
		border-color: var(--drawer-fg);
		outline: none;
	}
	.drawer__body {
		flex: 1;
		overflow: hidden;
	}
	.drawer__panels {
		position: relative;
		height: 100%;
	}
	.drawer__nav {
		height: 100%;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		-webkit-overflow-scrolling: touch;
	}
	.drawer__nav .menu {
		display: flex;
		flex-direction: column;
	}
	.drawer__nav .menu-item > a {
		display: block;
		font-family: var(--ff-heading);
		font-size: var(--fs-lg);
		text-transform: uppercase;
		padding: 0.75rem var(--gutter);
		color: var(--drawer-fg);
		text-decoration: none;
	}
	.drawer__nav .sub-menu {
		display: block;
		position: static;
		padding-left: 1rem;
	}
	.drawer__panel {
		position: absolute;
		inset: 0;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		-webkit-overflow-scrolling: touch;
		transform: translateX(8%);
		opacity: 0;
		pointer-events: none;
		transition:
			transform 360ms cubic-bezier(0.32, 0.72, 0, 1),
			opacity 280ms ease;
		will-change: transform;
	}
	.drawer__panel.is-active {
		transform: translateX(0);
		opacity: 1;
		pointer-events: auto;
		z-index: 2;
	}
	.drawer__panel.is-behind {
		transform: translateX(-18%);
		opacity: 0;
		pointer-events: none;
		z-index: 1;
	}
	.drawer__panel-header {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		min-height: 3rem;
		padding: 0.5rem var(--gutter);
	}
	/* Collapse the header on the root panel (no back button = no need for it) */
	.drawer__panel-header:not(:has(.drawer__back)) {
		display: none;
	}
	.drawer__back {
		border: none;
		background: oklch(var(--white-base) / 0.08);
		width: 2.5rem;
		height: 2.5rem;
		border-radius: 999px;
		color: var(--drawer-fg);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		transition:
			background 200ms ease,
			transform 200ms ease;
	}
	.drawer__back:hover,
	.drawer__back:focus-visible {
		background: oklch(var(--white-base) / 0.18);
		transform: translateX(-2px);
	}
	.drawer__back:focus-visible {
		outline: 2px solid var(--drawer-fg);
		outline-offset: 2px;
	}
	.drawer__back-icon {
		display: block;
		width: 9px;
		height: 9px;
		border-left: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		rotate: 45deg;
		transform: translate3d(2px, -2px, 0);
	}
	.drawer__panel-title {
		margin: 0;
		font-family: var(--ff-heading);
		font-weight: 200;
		font-size: var(--fs-md);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--drawer-fg-muted);
	}
	.drawer__menu-list {
		list-style: none;
		margin: 0;
		padding: 0 var(--gutter) 1.5rem;
		display: flex;
		flex-direction: column;
		counter-reset: drawer-nav;
	}
	.drawer__menu-item {
		display: flex;
		align-items: stretch;
		counter-increment: drawer-nav;
		border-bottom: 1px solid var(--drawer-line);
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item {
		animation: drawerItemIn 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(1) {
		animation-delay: 140ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(2) {
		animation-delay: 200ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(3) {
		animation-delay: 260ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(4) {
		animation-delay: 320ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(5) {
		animation-delay: 380ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(6) {
		animation-delay: 440ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(7) {
		animation-delay: 500ms;
	}
	.drawer.is-open .drawer__panel.is-active .drawer__menu-item:nth-child(n + 8) {
		animation-delay: 560ms;
	}
	.drawer__link {
		flex: 1;
		display: flex;
		align-items: baseline;
		gap: 1rem;
		padding: 0.85rem 0.25rem;
		font-family: var(--ff-heading);
		font-weight: 200;
		font-size: clamp(1.75rem, 7vw, 2.75rem);
		line-height: 1.05;
		letter-spacing: 0.01em;
		text-transform: uppercase;
		color: oklch(var(--white-base) / 0.88);
		text-decoration: none;
		transition:
			transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
			color 200ms ease;
	}
	.drawer__link::before {
		content: counter(drawer-nav, decimal-leading-zero);
		font-family: var(--ff-body);
		font-size: var(--fs-sm);
		font-weight: 400;
		letter-spacing: 0.1em;
		color: var(--drawer-fg-muted);
		transform: translateY(-0.1em);
		transition: color 200ms ease;
	}
	.drawer__link:hover,
	.drawer__link:focus-visible {
		color: var(--drawer-fg);
		transform: translateX(10px);
	}
	.drawer__link:hover::before,
	.drawer__link:focus-visible::before {
		color: var(--drawer-fg);
	}
	.drawer__submenu-toggle {
		border: none;
		background: none;
		padding: 0 0.75rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--drawer-fg-muted);
		cursor: pointer;
		transition:
			color 200ms ease,
			transform 200ms ease;
	}
	.drawer__submenu-toggle:hover {
		color: var(--drawer-fg);
		transform: translateX(3px);
	}
	.drawer__submenu-toggle:focus-visible {
		outline: 2px solid var(--drawer-fg);
		outline-offset: -2px;
		color: var(--drawer-fg);
	}
	.drawer__submenu-icon {
		display: block;
		width: 11px;
		height: 11px;
		border-right: 2px solid currentColor;
		border-top: 2px solid currentColor;
		rotate: 45deg;
		transform: translate3d(-2px, 2px, 0);
	}
	.drawer__footer {
		padding-bottom: env(safe-area-inset-bottom);
	}
	.drawer.is-open .drawer__footer {
		animation: drawerFadeUp 560ms ease 320ms backwards;
	}
	.drawer__socials {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 1.75rem;
		padding: 1.25rem var(--gutter) 1.75rem;
		border-top: 1px solid var(--drawer-line);
	}
	.drawer__socials a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--drawer-fg-muted);
		transition:
			color 200ms ease,
			transform 200ms ease;
	}
	.drawer__socials a:hover,
	.drawer__socials a:focus-visible {
		color: var(--drawer-fg);
		transform: translateY(-2px);
	}
	.drawer__socials svg {
		fill: currentColor;
	}

	@keyframes drawerItemIn {
		from {
			opacity: 0;
			transform: translateY(22px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
	@keyframes drawerFadeUp {
		from {
			opacity: 0;
			transform: translateY(14px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	/* --- Footer --- */
	.site-footer {
		background-color: var(--bg-plaster-color);
		background-image: var(--bg-plaster-image);
		background-repeat: repeat;
		background-size: var(--bg-plaster-size);
		color: var(--primary);
		padding: 3rem var(--gutter) 2rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 3rem;
		width: 100%;
	}
	.site-footer a {
		color: var(--black);
		text-decoration: none;
	}
	.site-footer .menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		row-gap: 0.5rem;
	}
	.site-footer .menu-item a {
		text-shadow: none;
		font-size: var(--fs-base);
		letter-spacing: 0;
	}
	@media (width <= 760px) {
		.site-footer .menu-item a {
			padding: 0.5rem 1rem;
		}
	}
	.site-footer .site-info img {
		width: 100%;
		max-width: 20rem;
		height: auto;
	}
	.site-footer .privacy a {
		margin: 0;
		font-size: calc(var(--fs-base) * 0.95);
		font-weight: 200;
		color: var(--black);
	}
}

/* === 7. Template-Specific Styles === */
@layer templates {
	/* Search form wrapper for search pages */
	.search-form-wrapper {
		margin-bottom: 2rem;
		padding: 0 var(--gutter);
	}
	/* Search results styling */
	.search-results {
		display: grid;
		gap: 1.5rem;
		padding: 0 var(--gutter);
	}
	.search-results .main-article-content {
		padding: 1.5rem;
		background-color: oklch(var(--white-base));
		border: 1px solid var(--gray-300);
		border-radius: 0.5rem;
		box-shadow: var(--shadow);
		transition: var(--transition);
	}
	.search-results .main-article-content:hover {
		box-shadow: var(--shadow-hover);
		transform: translateY(-2px);
	}
	.search-results .entry-summary {
		color: var(--gray-700);
		line-height: 1.6;
	}
	.search-results .entry-summary p {
		margin: 0 0 1rem 0;
	}
	.search-results .entry-summary p:last-child {
		margin-bottom: 0;
	}

	/* --- 404 Error Page --- */
	.error-page {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 60vh;
		padding: var(--gutter);
		text-align: center;
	}
	.error-content {
		max-width: var(--max-w-text);
		width: 100%;
	}
	.error-message {
		margin-bottom: 2rem;
	}
	.error-message__text {
		font-size: var(--fs-lg);
		color: var(--gray-700);
		line-height: 1.6;
		margin: 0;
	}
	.error-actions {
		margin-bottom: 3rem;
	}
	.error-actions__list {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		align-items: center;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	@media (width >= 768px) {
		.error-actions__list {
			flex-direction: row;
			justify-content: center;
		}
	}
	.error-actions__item {
		width: 100%;
		max-width: 200px;
	}
	@media (width >= 768px) {
		.error-actions__item {
			width: auto;
		}
	}
	.error-btn {
		display: inline-block;
		width: 100%;
		padding: 0.75rem 1.5rem;
		border: 2px solid transparent;
		border-radius: 0.5rem;
		font-size: var(--fs-base);
		font-weight: 600;
		text-decoration: none;
		text-align: center;
		transition: var(--transition);
		cursor: pointer;
	}
	.error-btn--primary {
		background-color: var(--primary);
		color: oklch(var(--white-base));
		border-color: var(--primary);
	}
	.error-btn--primary:hover {
		background-color: color-mix(in oklch, var(--primary) 85%, black 15%);
		border-color: color-mix(in oklch, var(--primary) 85%, black 15%);
		transform: translateY(-2px);
		box-shadow: var(--shadow-hover);
	}
	.error-btn--secondary {
		background-color: transparent;
		color: var(--primary);
		border-color: var(--primary);
	}
	.error-btn--secondary:hover {
		background-color: var(--primary);
		color: oklch(var(--white-base));
		transform: translateY(-2px);
		box-shadow: var(--shadow-hover);
	}
	.error-btn:focus {
		outline: 2px solid var(--primary);
		outline-offset: 2px;
	}
	.error-search {
		margin-bottom: 2rem;
		padding: 2rem;
		background-color: var(--gray-100);
		border-radius: 0.75rem;
		border: 1px solid var(--gray-300);
	}
	.error-search__title {
		font-size: var(--fs-md);
		color: var(--gray-700);
		margin: 0 0 1rem 0;
		font-weight: 600;
	}
	.error-search .search-form {
		max-width: 400px;
		margin: 0 auto;
	}
	.error-help {
		margin-top: 2rem;
		padding-top: 2rem;
		border-top: 1px solid var(--gray-300);
	}
	.error-help__text {
		font-size: var(--fs-sm);
		color: var(--gray-700);
		margin: 0;
		line-height: 1.5;
	}
	.error-help__text a {
		color: var(--primary);
		text-decoration: underline;
		text-decoration-thickness: 0.1em;
		text-underline-offset: 0.2em;
	}
	.error-help__text a:hover {
		color: color-mix(in oklch, var(--primary) 75%, black 25%);
		text-decoration-thickness: 0.15em;
	}
}

/* --- Hero / Featured Banner --- */
.hero,
.featured-banner {
	position: relative;
	background: url('../../assets/images/hero.webp') no-repeat center center;
	background-size: cover;
	height: max(100svh, 50rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
}
@media (width <= 760px) {
	.hero,
	.featured-banner {
		height: 60svh;
	}
}
.hero__button,
.featured-banner__button {
	position: absolute;
	bottom: calc(var(--hero-inset) * 2);
	left: 50%;
	transform: translateX(-50%);
}
.hero h1,
.featured-banner__title {
	font-size: var(--fs-3xl);
	color: var(--white);
	letter-spacing: 0.15em;
	margin: 0;
}
.featured-banner__title span {
	color: #fff0a4;
}
.hero p,
.featured-banner__subheading {
	font-size: var(--fs-md);
	font-family: var(--ff-heading);
	text-transform: uppercase;
	/* letter-spacing: 0.438em; */
	letter-spacing: 0.77em;
	margin: 0;
}
/* --- Intro --- */
.intro {
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	text-align: center;
	color: var(--black);

	.home & {
		background-color: var(--bg-plaster-dark-color);
		background-image: var(--bg-plaster-dark-image);
		background-repeat: repeat;
		background-size: var(--bg-plaster-size);
		color: var(--white);
	}
}
.intro-wrapper {
	padding-block: 6rem;
	padding-inline: var(--gutter);
}
.intro-text {
	max-width: var(--max-w-text);
	margin-inline: auto;
	text-align: justify;
	text-align-last: center;
	text-wrap: pretty;
}
.intro-text :is(h1, h2, h3, h4, h5, h6) {
	text-align: center;
}
.intro-text__title {
	font-size: var(--fs-xl);
	margin-block-end: 0.25em;
}
.intro-text__subtitle {
	display: block;
	font-size: var(--fs-lg);
	margin-block-start: 0.25em;
}
.intro-text__content {
	font-size: var(--fs-base);
	margin-block-end: 2em;
}
.intro-icons {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: clamp(2rem, 6vw, 5rem);
	margin-block-start: 5rem;
	padding-inline: var(--gutter);
}
.intro-icons__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: 14rem;
	color: var(--white);
	text-decoration: none;
	transition: opacity 200ms ease-out;
}
.intro-icons__item:hover,
.intro-icons__item:focus-visible {
	opacity: 0.8;
}
.intro-icons__item:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 4px;
}
.intro-icons__icon,
.intro-icons__item img {
	width: clamp(4rem, 8vw, 6rem);
	height: clamp(4rem, 8vw, 6rem);
	object-fit: contain;
	object-position: center;
}
.intro-icons__label {
	margin: 0;
	font-family: var(--ff-heading);
	font-size: var(--fs-md);
	font-weight: 200;
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
	max-width: 12ch;
}
/* --- Value Proposition --- */
.value-proposition {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--black);
	text-align: center;
}

.value-proposition__wrapper {
	position: relative;
	z-index: 1;
	max-width: var(--max-w-content);
	margin-inline: auto;
	padding: clamp(3.25rem, 7vw, 5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}
.value-proposition__title {
	margin: 0;
	color: var(--black);
	font-size: var(--fs-xl);
	font-weight: 200;
	line-height: 1;
}
.value-proposition__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(4rem, 12vw, 9rem);
	row-gap: clamp(2.25rem, 5vw, 3.25rem);
	margin-block-start: clamp(2rem, 4vw, 3rem);
	max-width: var(--max-w-text);
	margin-inline: auto;
}
.value-proposition__item {
	max-width: 22rem;
	margin-inline: auto;
}
.value-proposition__item h3 {
	margin: 0 0 0.55rem;
	color: var(--black);
	font-size: var(--fs-base);
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
}
.value-proposition__item p {
	margin: 0;
	color: var(--black);
	font-size: var(--fs-base);
	font-weight: 200;
	line-height: 1.65;
	text-align: center;
	text-wrap: pretty;
}
.value-proposition__statement {
	margin: clamp(3rem, 8vw, 4.5rem) 0 0;
	color: var(--black);
	font-family: var(--ff-heading);
	font-size: var(--fs-xl);
	font-weight: 200;
	line-height: 1.05;
	text-transform: uppercase;
	text-wrap: balance;
}
@media (width <= 760px) {
	.value-proposition__grid {
		grid-template-columns: 1fr;
		row-gap: 2rem;
	}
	.value-proposition__item p {
		text-align: center;
	}
}
/* --- Full Bleed Image --- */
.full-bleed-image__item {
	aspect-ratio: 24 / 9;
	overflow: hidden;
}
.full-bleed-image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	scale: 1.01;
}
.full-bleed-image__item-home {
	aspect-ratio: 16 / 9;
}
/* --- Contact Form --- */
.contact {
	background-color: var(--bg-plaster-dark-color);
	background-image: var(--bg-plaster-dark-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--white);
}
.contact-wrapper {
	padding: 4rem var(--gutter);
	max-width: var(--max-w-content);
	margin-inline: auto;
}
.contact-text :is(.contact-title, .contact-description) {
	text-align: center;
}
.contact .form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	max-height: 82px;
}
.contact .form-row-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact .form-row p {
	margin: 0;
}
.contact :is(.wpcf7-text, .wpcf7-select) {
	background: transparent;
	border: 1px solid var(--white);
	color: var(--white);
	padding: 1rem;
	width: 100%;
}
.contact :is(.wpcf7-text, .wpcf7-select):focus {
	outline: 2px solid var(--white);
	outline-offset: 2px;
}
.contact .wpcf7-text::placeholder {
	color: var(--white);
	font-size: var(--fs-sm);
}
.contact .wpcf7-form-control-wrap.has-floating-select-label {
	position: relative;
	display: block;
}
.contact .wpcf7-form-control-wrap.has-floating-select-label::before {
	content: attr(data-floating-label);
	position: absolute;
	z-index: 1;
	inset-block-start: 0;
	inset-inline-start: 1.25rem;
	max-width: calc(100% - 4rem);
	padding-inline: 0.35rem;
	background: var(--primary);
	color: var(--white);
	font-size: var(--fs-sm);
	line-height: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transform: translateY(-50%);
	pointer-events: none;
}
.contact .wpcf7-select {
	appearance: none;
	-webkit-appearance: none;
	height: 57px;
	padding-inline-end: 2.5rem;
	cursor: pointer;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	background-size: 1rem;
	border-width: 1px;
	border-radius: 0;
}
.contact .wpcf7-select:has(option[value='']:checked) {
	color: transparent;
	font-size: var(--fs-sm);
}
.contact .wpcf7-select option {
	background: var(--primary);
	color: var(--white);
}
.radio-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-block-start: 1rem;
}

.radio-services .wpcf7-list-item {
	margin: 0;
	border: 1px solid var(--white);
}

.radio-services label {
	position: relative;
	display: grid;
	padding: 1rem;
	background: transparent;
	color: var(--white);
	cursor: pointer;
	transition:
		background-color 200ms ease-out,
		border-color 200ms ease-out,
		color 200ms ease-out;
}

.radio-services label:hover,
.radio-services label:has(input:focus-visible) {
	background: var(--white);
	border-color: var(--white);
	color: var(--primary);
}

.radio-services label:has(input:checked) {
	background: var(--white);
	border-color: var(--white);
	color: var(--primary);
}

.radio-services input[type='radio'] {
	position: absolute;
	inset: 1.25rem 1.25rem auto auto;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--primary);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.radio-services label:has(input:checked) input[type='radio'] {
	accent-color: oklch(var(--white-base));
}

.radio-services .wpcf7-list-item-label {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
	gap: 0.5rem;
	height: 100%;
	font-family: var(--ff-heading);
	font-size: var(--fs-md);
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
}
.radio-services .wpcf7-list-item-label::before {
	display: none;
}
.radio-services .wpcf7-list-item-label::after {
	display: block;
	max-width: 100%;
	font-family: var(--ff-body);
	font-size: var(--fs-sm);
	font-weight: 400;
	line-height: 1.45;
	text-transform: none;
}

.radio-services input[value='Mitigation'] + .wpcf7-list-item-label::after {
	content: 'Mitigating fire and/or water damage to the property, with expert restoration services and guidance through the insurance claims process from start to finish.';
}

.radio-services input[value='Design'] + .wpcf7-list-item-label::after {
	content: 'No significant damage to the property, simply looking to elevate your space with thoughtful design, premium finishes, and expertly managed renovations.';
}

.radio-services input[value='All'] + .wpcf7-list-item-label::after {
	content: 'Extensive damage to the property requiring comprehensive mitigation, restoration, and full-scale redesign services as part of the insurance claims process.';
}

@media (width <= 760px) {
	.radio-services {
		grid-template-columns: 1fr;
	}
	.contact .form-row {
		grid-template-columns: 1fr;
		max-height: unset;
		gap: 0.5rem;
	}
}
.contact .message {
	width: 100%;
	background: transparent;
	border: 1px solid var(--white);
	color: var(--white);
	padding: 1rem;
	margin-block-start: 1rem;
}
.contact .codedropz-upload-inner * {
	color: var(--white);
}
.contact .wpcf7-submit {
	margin-block-start: 2rem;
	margin-inline: auto;
	display: block;
	width: fit-content;
	cursor: pointer;
}

/* --- Google Reviews --- */
.google {
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--primary);
}

.google-wrapper {
	padding: 4rem var(--gutter);
	max-width: var(--max-w-content);
	margin-inline: auto;
}

.google-text {
	text-align: center;
	margin-block-end: 2rem;
	color: var(--black);
}

.google-text h2 {
	font-size: var(--fs-xl);
	margin: 0;
}

.google-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: var(--fs-md);
	margin-block-start: 1rem;
	font-weight: 600;
}

.google-score__main {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.google-score__rating {
	color: var(--primary);
}

.google-score__stars {
	display: flex;
	gap: 0.15rem;
	color: var(--primary);
}

.google-score__text {
	font-size: var(--fs-base);
	font-weight: 400;
	font-style: italic;
	color: var(--primary);
}

.google-reviews__carousel {
	max-width: var(--max-w-content);
	margin-inline: auto;
	padding-block-end: 4rem;
}

.google-reviews__carousel .splide__arrow {
	background: transparent;
	border: 1px solid var(--primary);
	opacity: 1;
	width: 1.8rem;
	height: 1.8rem;
	transition: all 0.3s ease;
	top: auto;
	bottom: 0.35rem;
	transform: none;
}

.google-reviews__carousel .splide__arrow::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 2.5rem;
	height: 2.5rem;
}

.google-reviews__carousel .splide__arrow:hover {
	background: var(--primary);
}

.google-reviews__carousel .splide__arrow svg {
	fill: var(--primary);
	width: 0.8rem;
	height: 0.8rem;
	transition: fill 0.3s ease;
}

.google-reviews__carousel .splide__arrow:hover svg {
	fill: var(--white);
}

.google-reviews__carousel .splide__pagination {
	bottom: 0.85rem;
}

.google-reviews__carousel .splide__pagination__page {
	background: oklch(var(--primary-base) / 0.2);
	width: 8px;
	height: 8px;
	margin: 0 6px;
	transition: all 0.3s ease;
}

.google-reviews__carousel .splide__pagination__page:hover {
	background: oklch(var(--primary-base) / 0.5);
}

.google-reviews__carousel .splide__pagination__page.is-active {
	background: var(--primary);
	width: 24px;
	border-radius: 4px;
}

.review-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: auto;
	padding: 1.5rem;
	background: transparent;
	border: 1px solid var(--primary);
}

.review-card__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: var(--fs-sm);
}

.review-card__rating {
	display: flex;
	gap: 0.15rem;
	color: oklch(var(--primary-base) / 0.35);
}

.review-card__star.is-filled {
	color: var(--primary);
}

.review-card__content {
	flex: 1;
	font-size: var(--fs-base);
	color: var(--black);
}

.review-card__content > :first-child {
	margin-block-start: 0;
}

.review-card__content > :last-child {
	margin-block-end: 0;
}

.review-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-size: var(--fs-sm);
	margin-block-start: auto;
}

.review-card__author {
	font-style: normal;
	font-weight: 600;
	color: var(--black);
}

.review-card__date {
	margin-inline-start: auto;
	color: var(--black);
}

.review-card__source {
	color: inherit;
}

/* --- Project Gallery Page --- */
.project-gallery {
	padding-block-end: 4rem;
}

.project-gallery__wrapper {
	max-width: var(--max-w-max);
	margin-inline: auto;
}

.project-gallery__item + .project-gallery__item {
	margin-block-start: 4rem;
	padding-block-start: 4rem;
}

.project-gallery__header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-block-end: 1.5rem;
	max-width: var(--max-w-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.project-gallery__title-row {
	min-width: 0;
	font-family: var(--ff-heading);
	font-size: var(--fs-lg);
	font-weight: 200;
}

.project-gallery__title {
	font-size: 1em;
	margin: 0;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.project-gallery__reveal {
	position: relative;
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	width: 1cap;
	height: 1cap;
	margin-inline-start: 0.14em;
	vertical-align: baseline;
}

.project-gallery__reveal-trigger {
	position: relative;
	display: block;
	width: 82%;
	height: 82%;
	margin: 4% auto 14%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--primary);
	cursor: pointer;
}

.project-gallery__reveal-trigger::after {
	content: '';
	position: absolute;
	inset: -0.45em;
}

.project-gallery__reveal-trigger svg {
	display: block;
	width: 100%;
	height: 100%;
}

.project-gallery__reveal-trigger:hover,
.project-gallery__reveal-trigger:focus-visible {
	color: var(--black);
}

.project-gallery__reveal-trigger:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.project-gallery__reveal-popup {
	position: absolute;
	top: calc(100% + 0.55rem);
	left: 0;
	z-index: 4;
	display: grid;
	gap: 1.15rem;
	width: min(32rem, calc(100vw - 2rem));
	padding: 1.25rem 1.4rem;
	background-color: var(--bg-plaster-dark-color);
	background-image: var(--bg-plaster-dark-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--white);
	box-shadow:
		0 0.15rem 0.4rem oklch(var(--black-base) / 0.08),
		0 0.6rem 1.4rem oklch(var(--black-base) / 0.16);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(0.35rem);
	transition:
		opacity 180ms ease-out,
		transform 180ms ease-out,
		visibility 180ms ease-out;
}

.project-gallery__reveal-popup::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 0.7rem;
}

.project-gallery__reveal:hover .project-gallery__reveal-popup,
.project-gallery__reveal-trigger:focus-visible + .project-gallery__reveal-popup,
.project-gallery__reveal.is-open .project-gallery__reveal-popup {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.project-gallery__fact {
	margin: 0;
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
	text-wrap: pretty;
}

.project-gallery__fact-label {
	font-family: var(--ff-heading);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-inline-end: 0.4em;
}

.project-gallery__slide {
	height: auto;
}

.project-gallery__trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.project-gallery__trigger:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.project-gallery__image {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.project-gallery__carousel .splide__arrow {
	background: transparent;
	border: 1px solid oklch(var(--white-base) / 0.5);
	opacity: 1;
}

.project-gallery__carousel .splide__arrow svg {
	fill: var(--white);
}

@media (width <= 640px) {
	.project-gallery__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.project-gallery__reveal {
		position: static;
	}

	.project-gallery__reveal-popup {
		left: var(--gutter);
		right: var(--gutter);
		width: auto;
		max-width: none;
		padding: 1.1rem 1.15rem;
	}
}

.google-reviews__carousel .splide__list {
	align-items: stretch;
}

.google-reviews__carousel .splide__arrow--prev {
	left: calc(50% - 5.65rem);
}

.google-reviews__carousel .splide__arrow--next {
	right: calc(50% - 5.65rem);
}

/* --- Service Page Content --- */
.service-banner {
	background-color: var(--bg-plaster-dark-color);
	background-image: var(--bg-plaster-dark-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--white);
	text-align: center;
}

.service-banner__wrapper {
	max-width: var(--max-w-content);
	margin-inline: auto;
	padding: clamp(3.25rem, 7vw, 5rem) var(--gutter);
}

.service-banner__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--ff-heading);
	font-size: calc(var(--fs-base) * 1.1);
	font-weight: 300;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.33em;
}

.service-banner__heading {
	margin: 0;
	font-size: var(--fs-xl);
	font-weight: 200;
	line-height: 1.05;
	text-transform: uppercase;
	text-wrap: balance;
}

.service-banner__intro,
.service-banner__footer,
.service-banner__text {
	max-width: var(--max-w-text);
	margin-inline: auto;
	font-size: var(--fs-base);
	font-weight: 200;
	line-height: 1.65;
	text-wrap: pretty;
}

.service-banner__intro {
	margin-block-start: clamp(1rem, 2vw, 1.5rem);
}

.service-banner__footer {
	margin-block: clamp(2rem, 4vw, 3rem) 0;
}

.service-banner__content {
	max-width: var(--max-w-text);
	margin-inline: auto;
	margin-block-start: clamp(1rem, 2vw, 1.5rem);
	font-size: var(--fs-base);
	font-weight: 200;
	line-height: 1.65;
	text-align: justify;
	text-align-last: center;
	text-wrap: pretty;
}

.service-banner__text {
	text-align: justify;
	text-align-last: center;
	text-wrap: pretty;
}

.service-banner__content :is(p, ul, ol) {
	margin: 0 0 1rem;
}

.service-banner__content :is(p, ul, ol):last-child {
	margin-block-end: 0;
}

.service-banner--statement .service-banner__heading {
	margin-block-end: clamp(1rem, 2vw, 1.5rem);
}

.service-icons {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: clamp(2rem, 6vw, 5rem);
	margin-block-start: clamp(2rem, 5vw, 3.5rem);
}

.service-icons__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: 14rem;
}

.service-icons__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(4rem, 8vw, 6rem);
	height: clamp(4rem, 8vw, 6rem);
}

.service-icons__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.service-icons__label {
	margin: 0;
	font-family: var(--ff-heading);
	font-size: var(--fs-md);
	font-weight: 200;
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
}

.page-content:not(:has(.service-page):not(.content-project-gallery)) {
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--black);
	padding-block: 4rem;
}

.page-content:not(:has(.service-page):not(.content-project-gallery)) :is(p, ul, ol) {
	margin: 0 0 1rem;
	font-size: var(--fs-base);
	font-weight: 200;
	line-height: 1.65;
}

.page-content:not(:has(.service-page):not(.content-project-gallery)) ul {
	list-style: none;
	padding-inline-start: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25em;
	margin-block-end: 1.75em;
}

.page-content:not(:has(.service-page):not(.content-project-gallery)) li {
	position: relative;
	padding-inline-start: 0.75em;
	text-box: trim-both cap alphabetic;
	text-align: start;
}

.page-content:not(:has(.service-page):not(.content-project-gallery)) li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.5cap;
	width: 0.2em;
	height: 0.2em;
	border-radius: 50%;
	background-color: var(--primary);
	transform: translateY(-50%);
}

.page-content:not(:has(.service-page):not(.content-project-gallery))
	li
	> :is(p, ul, ol):first-child {
	margin-block-start: 0;
}

.content-project-gallery {
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
}

.content-project-gallery .intro {
	background: none;
}

.photo-grid {
	background-color: var(--bg-plaster-color);
	background-image: var(--bg-plaster-image);
	background-repeat: repeat;
	background-size: var(--bg-plaster-size);
	color: var(--black);
}

.photo-grid__wrapper {
	max-width: var(--max-w-content);
	margin-inline: auto;
	padding-block-end: clamp(3.25rem, 7vw, 5rem);
}

.photo-grid__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3rem);
	padding: clamp(3.25rem, 7vw, 5rem) var(--gutter) 0;
}

.photo-grid__row--reverse .photo-grid__copy {
	order: 2;
}

.photo-grid__row--reverse .photo-grid__media {
	order: 1;
}

.photo-grid__copy {
	display: flex;
	flex-direction: column;
	padding-block: clamp(1.25rem, 2.5vw, 2rem);
	text-align: justify;
	text-wrap: pretty;
}

.photo-grid__copy :is(h2, h3, h4) {
	margin: 0 0 0.75rem;
	font-size: var(--fs-lg);
	font-weight: 200;
	line-height: 1.1;
	text-transform: uppercase;
}

.photo-grid__copy h3 {
	font-size: calc(var(--fs-md) * 0.9);
	color: var(--black);
	margin-block-end: 0;
	text-align: start;
	letter-spacing: 0.03em;
}

.photo-grid__copy :is(p, ul, ol) {
	margin: 0 0 1rem;
	font-size: var(--fs-base);
	font-weight: 200;
	line-height: 1.65;
}

.photo-grid__copy :is(p, ul, ol):last-child {
	margin-block-end: 0;
}

.photo-grid__copy ul {
	list-style: none;
	padding-inline-start: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25em;
	margin-block-end: 1.75em;
}

.photo-grid__copy li {
	position: relative;
	padding-inline-start: 0.75em;
	text-box: trim-both cap alphabetic;
	text-align: start;
}

.photo-grid__copy li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.5cap;
	width: 0.2em;
	height: 0.2em;
	border-radius: 50%;
	background-color: var(--primary);
	transform: translateY(-50%);
}

.photo-grid__copy li > :is(p, ul, ol):first-child {
	margin-block-start: 0;
}

.photo-grid__media {
	position: relative;
	min-height: 0;
}

.photo-grid__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (width <= 760px) {
	.photo-grid__row,
	.photo-grid__row--reverse {
		grid-template-columns: 1fr;
	}

	.photo-grid__row--reverse .photo-grid__copy,
	.photo-grid__row--reverse .photo-grid__media {
		order: unset;
	}

	.photo-grid__copy {
		padding-block: 0;
	}

	.photo-grid__media {
		min-height: clamp(16rem, 55vw, 24rem);
	}
}

/* --- Project Preview Slider --- */

.project-preview-slider__carousel {
	position: relative;
}

.project-preview-slider__slide {
	height: auto;
	overflow: hidden;
	backface-visibility: hidden;
}

.project-preview-slider__trigger {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
}

.project-preview-slider__trigger:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.project-preview-slider__image {
	width: 100%;
	max-width: none;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	scale: 1.01;
}

.project-preview-slider__divider {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(4.5rem, 7vw, 5.5rem);
	height: clamp(4.5rem, 7vw, 5.5rem);
	color: var(--white);
	transform: translate(-50%, -50%);
	pointer-events: none;
	filter: drop-shadow(0 0 0.2rem oklch(var(--black-base) / 0.65));
}

.project-preview-slider__compare-icon {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.project-preview-slider__carousel .splide__arrow {
	width: clamp(2rem, 4vw, 2.75rem);
	height: clamp(2rem, 4vw, 2.75rem);
	background: transparent;
	border: 0;
	opacity: 1;
}

.project-preview-slider__carousel .splide__arrow--prev {
	left: clamp(0.5rem, 1.5vw, 1rem);
}

.project-preview-slider__carousel .splide__arrow--next {
	right: clamp(0.5rem, 1.5vw, 1rem);
}

.project-preview-slider__carousel .splide__arrow svg {
	fill: var(--white);
	width: 1.1rem;
	height: 1.1rem;
	filter: drop-shadow(0 0 0.35rem oklch(var(--black-base) / 0.45));
}

.project-preview-slider__carousel .splide__arrow:disabled {
	opacity: 0.35;
}

@media (width < 500px) {
	.mobile-hide {
		display: none;
	}

	.mobile-show {
		display: block;
	}
}
