/*
 * Yard Dumpster 26 — base styles.
 *
 * Values come from the Figma file (u1aHyBd82aWtJ8w4noSIbC) at 1920px.
 * Fluid sizes scale from 390px to 1920px and cap at the Figma value.
 * Keep the colors and font sizes in sync with theme.json.
 */

/* ---------- Tokens ---------- */

:root {
	--yd-black: #000;
	--yd-charcoal: #232323;
	--yd-ink: #1a1a1a;
	--yd-lime: #70ce05;
	--yd-yellow: #ffc800;
	--yd-white: #fff;

	--yd-font-display: Erbaum, ui-sans-serif, system-ui, sans-serif;
	--yd-font-label: "Roboto Condensed", "Arial Narrow", sans-serif;

	--yd-fs-body: 1.125rem;
	--yd-fs-body-lg: clamp(1.0625rem, 0.983rem + 0.327vw, 1.375rem);
	--yd-fs-lead: clamp(1.125rem, 1.014rem + 0.458vw, 1.5625rem);
	--yd-fs-title: clamp(1.375rem, 1.248rem + 0.523vw, 1.875rem);
	--yd-fs-display-sm: clamp(1.625rem, 1.434rem + 0.784vw, 2.375rem);
	--yd-fs-display-md: clamp(1.75rem, 1.4rem + 1.438vw, 3.125rem);
	--yd-fs-display-lg: clamp(2.25rem, 1.629rem + 2.549vw, 4.6875rem);
	--yd-fs-display-xl: clamp(3rem, 1.853rem + 4.706vw, 7.5rem);

	--yd-container: 1510px;
	--yd-gutter: clamp(1rem, 0.2rem + 3.3vw, 3rem);
	--yd-section-pad: clamp(3.5rem, 2.2rem + 3.4vw, 5.75rem);
	--yd-border: 5px;
	--yd-rule: 2px;

	/*
	 * Figma's tight tracking suits Erbaum's wide letters but crushes the
	 * fallback fonts, so it only applies once the Erbaum files are installed.
	 */
	--yd-track: 0;
}

.has-erbaum {
	--yd-track: 1;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--yd-black);
	color: var(--yd-white);
	font-family: var(--yd-font-display);
	font-size: var(--yd-fs-body);
	font-weight: 350; /* Erbaum Book */
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

p {
	margin: 0 0 1em;
}

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

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

a {
	color: var(--yd-lime);
}

:focus-visible {
	outline: 3px solid var(--yd-lime);
	outline-offset: 3px;
}

.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;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: var(--yd-yellow);
	color: var(--yd-black);
	font-family: var(--yd-font-label);
	font-weight: 800;
	text-decoration: none;
}

/* ---------- Layout ---------- */

.yd-container {
	width: min(100% - 2 * var(--yd-gutter), var(--yd-container));
	margin-inline: auto;
}

/*
 * Sections sit on black or charcoal with the ink texture on top: 20% on
 * black, screened at 20% on charcoal. The veil gradient fakes the texture
 * opacity, leaving ::before/::after free for the decorations.
 */
.yd-section {
	--yd-section-bg: var(--yd-black);
	--yd-section-veil: rgb(0 0 0 / 0.8);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--yd-section-pad);
	background:
		linear-gradient(var(--yd-section-veil), var(--yd-section-veil)),
		url("../img/texture-ink.jpg") center / cover no-repeat,
		var(--yd-section-bg);
	color: var(--yd-white);
}

.yd-section--charcoal {
	--yd-section-bg: var(--yd-charcoal);
	--yd-section-veil: rgb(35 35 35 / 0.8);
}

.yd-section--rule-top {
	border-top: var(--yd-border) solid var(--yd-lime);
}

.yd-section--rule-bottom {
	border-bottom: var(--yd-border) solid var(--yd-lime);
}

/*
 * Decorations: yellow paint strokes or splatter in two corners. The PNGs
 * are exported on black, so screen blending drops the black.
 */
.yd-section--strokes::before,
.yd-section--strokes::after,
.yd-section--splatter::before,
.yd-section--splatter::after {
	content: "";
	position: absolute;
	z-index: -1;
	background: center / contain no-repeat;
	mix-blend-mode: screen;
	pointer-events: none;
}

.yd-section--strokes::before,
.yd-section--splatter::before {
	top: 0;
	right: 0;
}

.yd-section--strokes::after,
.yd-section--splatter::after {
	bottom: 0;
	left: 0;
}

.yd-section--strokes::before {
	width: min(29.6vw, 568px);
	aspect-ratio: 568 / 375;
	background-image: url("../img/stroke-top-right.png");
}

.yd-section--strokes::after {
	width: min(15.8vw, 304px);
	aspect-ratio: 304 / 394;
	background-image: url("../img/stroke-bottom-left.png");
}

.yd-section--splatter::before {
	width: min(21.6vw, 414px);
	aspect-ratio: 414 / 300;
	background-image: url("../img/splatter-top-right.png");
}

.yd-section--splatter::after {
	width: min(18vw, 345px);
	aspect-ratio: 345 / 299;
	background-image: url("../img/splatter-bottom-left.png");
}

/* ---------- Type ---------- */

.yd-eyebrow {
	display: block;
	margin: 0 0 0.625rem;
	color: var(--yd-yellow);
	font-family: var(--yd-font-label);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.yd-eyebrow--lime {
	color: var(--yd-lime);
}

/* Section heading. Wrap words in *asterisks* in yd_heading() for .yd-hl. */
.yd-heading {
	font-size: var(--yd-fs-display-lg);
	font-weight: 900;
	line-height: 1;
	letter-spacing: calc(-0.09em * var(--yd-track));
	text-transform: uppercase;
}

.yd-heading--xl {
	font-size: var(--yd-fs-display-xl);
	line-height: 0.875;
	letter-spacing: 0;
}

.yd-hl {
	color: var(--yd-lime);
}

.yd-lead {
	font-size: var(--yd-fs-lead);
}

.yd-text-lg {
	font-size: var(--yd-fs-body-lg);
	font-weight: 300;
}

/* ---------- Components ---------- */

.yd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 5px 32px;
	border: 0;
	border-radius: 3px;
	background: var(--yd-yellow);
	color: var(--yd-black);
	font-family: var(--yd-font-label);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 37px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.yd-btn::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: url("../img/icon-arrow.svg") center / 24px 24px no-repeat;
}

.yd-btn:hover {
	background: var(--yd-lime);
}

.yd-card {
	overflow: hidden;
	background: var(--yd-black);
	border: var(--yd-border) solid var(--yd-lime);
}

/* Yellow rules above, between and below list items (process steps, lists). */
.yd-ruled {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--yd-rule) solid var(--yd-yellow);
}

.yd-ruled > li {
	border-bottom: var(--yd-rule) solid var(--yd-yellow);
}

/* Photos framed by a torn black edge (an SVG overlay with a ragged hole). */
.yd-torn {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--yd-black);
}

.yd-torn > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yd-torn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: center / 100% 100% no-repeat;
	pointer-events: none;
}

.yd-torn--portrait {
	aspect-ratio: 687 / 906;
}

.yd-torn--portrait::after {
	background-image: url("../img/torn-frame-portrait.svg");
}

/* Figma frames the contact photo around the dumpster logo. */
.yd-contact-info .yd-torn img {
	object-position: 25% center;
}

.yd-torn--landscape {
	aspect-ratio: 742 / 637;
}

.yd-torn--landscape::after {
	background-image: url("../img/torn-frame-landscape.svg");
}

.yd-torn--hero {
	aspect-ratio: 891 / 562;
}

.yd-torn--hero::after {
	background-image: url("../img/torn-edge-hero.svg");
}

/* Section heading variant with normal letter spacing (forms, contact). */
.yd-heading--wide {
	font-size: clamp(2.25rem, 1.587rem + 2.719vw, 4.425rem);
	line-height: 0.93;
	letter-spacing: 0;
}

/* Black with the form section's baked-in paint strokes. */
.yd-section--paint {
	background: url("../img/bg-paint.jpg") center / cover no-repeat, var(--yd-black);
}

.yd-section__header {
	margin-bottom: clamp(2.5rem, 1.8rem + 2.9vw, 5.5rem);
	text-align: center;
}

.yd-section__actions {
	margin-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
	text-align: center;
}

/* Rich text from the editor. */
.yd-image-text__text > * + *,
.yd-image-text__after > * + *,
.yd-faq__answer > * + *,
.yd-size__description > * + * {
	margin-top: 1em;
}

.yd-image-text__text > *,
.yd-image-text__after > *,
.yd-faq__answer > *,
.yd-size__description > * {
	margin-bottom: 0;
}

/*
 * Plain pages and posts (no page sections): terms, cart, checkout, account,
 * the posts page and 404.
 */
.yd-page__title {
	margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
	font-size: var(--yd-fs-display-md);
}

.yd-page__content > * + * {
	margin-top: 1em;
}

.yd-page__content > * {
	margin-bottom: 0;
}

body:not(.woocommerce-page) .yd-page__content {
	max-width: 860px;
	font-size: var(--yd-fs-body-lg);
	font-weight: 300;
}

body:not(.woocommerce-page) .yd-page__content h2:not([class]) {
	margin-top: 2em;
	color: var(--yd-lime);
	font-family: var(--yd-font-label);
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.yd-page__content :where(ul, ol) {
	padding-left: 1.25em;
}

.yd-entry + .yd-entry {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: var(--yd-rule) solid var(--yd-yellow);
}

.yd-entry__title {
	margin-bottom: 0.75rem;
	font-size: var(--yd-fs-title);
	font-weight: 700;
	text-transform: uppercase;
}

.yd-entry__title a {
	color: inherit;
	text-decoration: none;
}

.yd-entry__title a:hover {
	color: var(--yd-lime);
}

/* ---------- Header ---------- */

.yd-header {
	position: relative;
	z-index: 10;
	background:
		linear-gradient(rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.9)),
		url("../img/texture-ink.jpg") center / cover no-repeat,
		var(--yd-black);
}

.yd-header--rule {
	border-bottom: var(--yd-border) solid var(--yd-lime);
}

.yd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: clamp(5rem, 4.2rem + 2vw, 7.6875rem);
}

.yd-header__logo {
	flex: none;
	display: block;
	width: clamp(150px, 120px + 6vw, 232px);
}

.yd-header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.yd-nav__list {
	display: flex;
	gap: clamp(1.5rem, -1rem + 3.5vw, 3.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-nav__list a {
	display: block;
	padding-block: 0.25rem;
	color: var(--yd-white);
	font-size: var(--yd-fs-body-lg);
	font-weight: 350;
	line-height: 31px;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

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

.yd-nav__list .current-menu-item > a {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.yd-header__toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--yd-white);
	cursor: pointer;
}

.yd-header__bars,
.yd-header__bars::before,
.yd-header__bars::after {
	display: block;
	width: 28px;
	height: 3px;
	margin-inline: auto;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.yd-header__bars {
	position: relative;
}

.yd-header__bars::before,
.yd-header__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.yd-header__bars::before {
	top: -9px;
}

.yd-header__bars::after {
	top: 9px;
}

.yd-header__toggle[aria-expanded="true"] .yd-header__bars {
	background: transparent;
}

.yd-header__toggle[aria-expanded="true"] .yd-header__bars::before {
	transform: translateY(9px) rotate(45deg);
	background: var(--yd-white);
}

.yd-header__toggle[aria-expanded="true"] .yd-header__bars::after {
	transform: translateY(-9px) rotate(-45deg);
	background: var(--yd-white);
}

@media (max-width: 1199px) {
	.yd-header__toggle {
		display: block;
	}

	.yd-nav {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 1rem var(--yd-gutter) 1.5rem;
		background: var(--yd-black);
		border-bottom: var(--yd-border) solid var(--yd-lime);
	}

	.yd-nav.is-open {
		display: block;
	}

	.yd-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.yd-nav__list a {
		padding-block: 0.75rem;
	}
}

/*
 * Cart link and menu toggle. The cart sits after the menu on wide screens and
 * beside the toggle on narrow ones; it is hidden while the cart is empty.
 */
.yd-header__actions {
	order: 3;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.yd-nav {
	margin-left: auto;
}

.yd-cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--yd-white);
}

.yd-cart:hover {
	color: var(--yd-lime);
}

.yd-cart.is-empty {
	display: none;
}

.yd-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	background: var(--yd-yellow);
	color: var(--yd-black);
	font-family: var(--yd-font-label);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
}

@media (min-width: 1200px) {
	.yd-header__inner {
		justify-content: flex-start;
		gap: 0;
	}

	.yd-nav {
		padding-left: 2rem;
	}

	.yd-cart {
		margin-left: clamp(1rem, -1rem + 2.5vw, 2.5rem);
	}
}

@media (max-width: 1199px) {
	.yd-header__actions {
		margin-left: auto;
	}
}

/*
 * Drop-down sub-menus (Primary menu, one level deep). Desktop: panel opens on
 * hover, keyboard focus, or the chevron button. Mobile: the chevron button
 * expands the list in place.
 */
.yd-nav__list .current-menu-ancestor > a,
.yd-nav__list .current-menu-parent > a {
	color: var(--yd-lime);
	font-weight: 500;
}

.yd-nav__sub-toggle {
	flex: none;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--yd-white);
	cursor: pointer;
}

.yd-nav__sub-toggle::before {
	content: "";
	width: 30px;
	height: 30px;
	background: currentColor;
	mask: url("../img/icon-chevron.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.yd-nav__sub-toggle:hover,
.menu-item-has-children:hover > .yd-nav__sub-toggle,
.current-menu-ancestor > .yd-nav__sub-toggle {
	color: var(--yd-lime);
}

.yd-nav__sub-toggle[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

.yd-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-nav__list .sub-menu a {
	font-size: var(--yd-fs-body);
	line-height: 1.35;
	letter-spacing: 0.03em;
}

.yd-nav__list .sub-menu .current-menu-item > a {
	text-underline-offset: 5px;
}

@media (min-width: 1200px) {
	/*
	 * Items stretch to the full header height so a panel starts exactly at the
	 * header's bottom edge, its lime top border sitting on the header rule.
	 */
	.yd-nav,
	.yd-nav__list {
		align-self: stretch;
		display: flex;
	}

	.yd-nav__list > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.yd-nav__sub-toggle {
		width: 28px;
		height: 28px;
		margin-left: 0.125rem;
		margin-right: -0.5rem;
	}

	.yd-nav__list .sub-menu {
		position: absolute;
		z-index: 20;
		top: 100%;
		left: -1.5rem;
		min-width: 17rem;
		padding-block: 0.75rem;
		border-top: var(--yd-border) solid var(--yd-lime);
		background:
			linear-gradient(rgb(0 0 0 / 0.94), rgb(0 0 0 / 0.94)),
			url("../img/texture-ink.jpg") center / cover no-repeat,
			var(--yd-black);
		box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
		opacity: 0;
		visibility: hidden;
		transform: translateY(0.5rem);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
	}

	.yd-nav__list > li:hover > .sub-menu,
	.yd-nav__list > li:focus-within > .sub-menu,
	.yd-nav__list > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
	}

	.yd-nav__list > li.is-dismissed > .sub-menu {
		opacity: 0;
		visibility: hidden;
	}

	/* Right-most items open leftwards so the panel stays on screen. */
	.yd-nav__list > li:nth-last-child(-n+2) > .sub-menu {
		right: -1.5rem;
		left: auto;
	}

	.yd-nav__list .sub-menu a {
		padding: 0.625rem 1.5rem;
	}
}

@media (max-width: 1199px) {
	.yd-nav__list > li {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.yd-nav__sub-toggle {
		width: 48px;
		height: 48px;
		margin-right: -12px;
	}

	.yd-nav__sub-toggle::before {
		width: 40px;
		height: 40px;
	}

	.yd-nav__list .sub-menu {
		display: none;
		grid-column: 1 / -1;
		margin-bottom: 0.5rem;
		padding-left: 1rem;
		border-left: var(--yd-rule) solid var(--yd-lime);
	}

	.yd-nav__list > li.is-open > .sub-menu {
		display: block;
	}

	.yd-nav__list .sub-menu a {
		padding-block: 0.5rem;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yd-nav__sub-toggle::before,
	.yd-nav__list .sub-menu {
		transition: none;
	}
}

/* ---------- Footer ---------- */

.yd-footer {
	padding-block: clamp(3rem, 1.5rem + 5vw, 6.9rem);
	background:
		linear-gradient(rgb(35 35 35 / 0.9), rgb(35 35 35 / 0.9)),
		url("../img/texture-ink.jpg") center / cover no-repeat,
		var(--yd-charcoal);
	text-align: center;
}

.yd-footer__logo {
	display: inline-block;
	width: min(427px, 70vw);
}

.yd-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
}

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

.yd-hero {
	padding-block: clamp(2.5rem, 1.5rem + 2.5vw, 4.3rem) clamp(3rem, 1rem + 4.5vw, 6.5rem);
}

.yd-hero__content {
	position: relative;
	z-index: 1;
	max-width: 62rem;
}

.yd-hero__text {
	max-width: min(619px, 40vw); /* clear of the photo */
	margin: 1.5rem 0;
}

.yd-hero--torn .yd-hero__media {
	position: absolute;
	top: 0;
	right: -2.5%;
	bottom: 0;
	width: 46.4%;
	aspect-ratio: auto;
}

.yd-hero--background {
	min-height: min(37.45vw, 719px);
}

.yd-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.yd-hero--background .yd-hero__content {
	max-width: 52rem;
}

@media (max-width: 899px) {
	.yd-hero__text {
		max-width: 619px;
	}

	.yd-hero--torn {
		padding-bottom: 0;
	}

	.yd-hero--torn .yd-hero__media {
		position: relative;
		right: auto;
		width: 100%;
		margin-top: 2.5rem;
		aspect-ratio: 891 / 562;
	}

	/* Text over the busy photo is hard to read, so the photo moves below. */
	.yd-hero--background {
		display: flex;
		flex-direction: column;
		min-height: 0;
		padding-bottom: 0;
	}

	.yd-hero--background .yd-hero__bg {
		position: static;
		order: 1;
		z-index: auto;
		height: auto;
		margin-top: 2.5rem;
		aspect-ratio: 4 / 3;
		object-position: 75% center;
	}
}

/* ---------- Page title ---------- */

.yd-page-title {
	padding-block: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
	text-align: center;
}

.yd-page-title--image {
	padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.yd-page-title__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yd-page-title--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(23 23 23 / 0.85);
}

.yd-page-title__text {
	max-width: 756px;
	margin: 1.5rem auto;
}

/* ---------- Dumpster sizes ---------- */

.yd-size-cards__header {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
	align-items: center;
	gap: 2rem clamp(2rem, 4vw, 4rem);
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 3rem);
}

.yd-size-cards__intro {
	max-width: 616px;
	margin: 0;
	font-size: clamp(1.125rem, 0.967rem + 0.65vw, 1.6848rem);
}

.yd-size-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
	align-items: start;
	gap: 31px;
}

.yd-size {
	container-type: inline-size;
}

.yd-size__media {
	position: relative;
	aspect-ratio: 741 / 416.5;
	padding: 4.46cqi;
}

.yd-size__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yd-size__badge {
	position: absolute;
	top: 1.5cqi;
	left: 1.6cqi;
	display: flex;
	align-items: baseline;
	margin: 0;
	color: var(--yd-white);
	font-weight: 900;
	line-height: 0.8;
	text-transform: uppercase;
}

.yd-size__number {
	font-size: 28.3cqi;
	letter-spacing: calc(-0.05em * var(--yd-track));
}

.yd-size__unit {
	font-size: 6.93cqi;
	letter-spacing: calc(-0.05em * var(--yd-track));
}

.yd-size__body {
	padding: 0 5.9cqi 5.4cqi;
}

.yd-size__title {
	font-size: max(1.5rem, 7.1cqi);
	font-weight: 500;
	line-height: 0.93;
	letter-spacing: calc(-0.09em * var(--yd-track));
}

.yd-size__subtitle {
	margin: 1.25rem 0 0;
	font-size: max(1rem, 2.7cqi);
	font-weight: 300;
}

.yd-size__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
}

.yd-size__price {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.yd-size__amount {
	color: var(--yd-lime);
	font-family: var(--yd-font-label);
	font-size: max(2.5rem, 8.4cqi);
	font-weight: 800;
	line-height: 1;
}

.yd-size__price-label {
	margin-left: 0.7rem;
	font-size: 0.86rem;
	text-transform: uppercase;
}

.yd-size__description {
	margin: 0 5.1cqi;
	padding: 1.9rem 0.8cqi 1.9rem;
	border-top: var(--yd-rule) solid var(--yd-yellow);
	font-size: max(1rem, 3.24cqi);
	line-height: 1.375;
}

/* ---------- Process steps ---------- */

.yd-process-steps__inner {
	display: grid;
	grid-template-columns: 755fr 688fr;
	align-items: center;
	gap: 3rem clamp(2rem, 4vw, 4.5rem);
}

.yd-steps {
	margin-top: clamp(2rem, 1.5rem + 1.5vw, 3.3rem);
}

.yd-step {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 0.5rem + 3vw, 4.1rem);
	padding: 1.1rem 0 1.1rem clamp(0rem, -1rem + 3vw, 2.8rem);
}

.yd-step__icon {
	flex: none;
	width: clamp(64px, 48px + 3vw, 106px);
	height: auto;
}

.yd-step__title {
	color: var(--yd-yellow);
	font-size: var(--yd-fs-display-md);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: calc(-0.09em * var(--yd-track));
	text-transform: uppercase;
}

.yd-step__text {
	margin: 0;
	font-size: var(--yd-fs-lead);
	line-height: 1.4;
	letter-spacing: calc(-0.09em * var(--yd-track));
}

@media (max-width: 899px) {
	.yd-process-steps__inner {
		grid-template-columns: 1fr;
	}

	.yd-process-steps .yd-torn {
		max-width: 520px;
	}
}

/* ---------- Card grid ---------- */

.yd-card-grid__list {
	--yd-grid-gap: clamp(1.5rem, 0.5rem + 3.5vw, 5.8rem);

	display: grid;
	/* At most three columns, as in Figma; fewer once a tile drops below 18rem. */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(18rem, (100% - 2 * var(--yd-grid-gap)) / 3)), 1fr));
	gap: clamp(1.5rem, 0.5rem + 3vw, 4.5rem) var(--yd-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-tile {
	display: block;
	height: 100%;
	color: var(--yd-white);
	text-decoration: none;
}

.yd-tile__image {
	display: block;
	width: 100%;
	aspect-ratio: 441 / 195;
	object-fit: cover;
}

.yd-tile__body {
	padding: 2rem 2.1rem 2.2rem;
}

.yd-tile__title {
	font-size: var(--yd-fs-display-sm);
	font-weight: 500;
	line-height: 1.03;
	letter-spacing: calc(-0.09em * var(--yd-track));
}

.yd-tile__title .yd-hl {
	display: block;
}

.yd-tile__text {
	margin: 1.25rem 0 0;
	font-size: var(--yd-fs-body-lg);
	font-weight: 300;
}

a.yd-tile:hover .yd-tile__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ---------- Centered CTA ---------- */

.yd-cta-centered__inner {
	max-width: 1200px;
	text-align: center;
}

.yd-cta-centered__text {
	max-width: 690px;
	margin: 1.5rem auto 2rem;
	font-size: var(--yd-fs-lead);
}

/*
 * Centered sentence headings break lines for the desktop layout; on phones
 * those breaks strand single words, so let the text flow.
 */
@media (max-width: 599px) {
	.yd-cta-centered .yd-heading br,
	.yd-form .yd-heading br {
		display: none;
	}
}

/* ---------- Image and text ---------- */

.yd-image-text__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2.5rem clamp(2rem, 4vw, 5rem);
}

.yd-image-text--image-left .yd-image-text__media {
	order: -1;
}

.yd-image-text__content > * + * {
	margin-top: 1.5rem;
}

.yd-image-text__content > .yd-eyebrow + .yd-heading {
	margin-top: 0;
}

.yd-image-text__content > .yd-btn {
	margin-top: 2.5rem;
}

.yd-image-text__text {
	font-size: var(--yd-fs-lead);
}

.yd-image-text--text-normal .yd-image-text__text,
.yd-image-text__after {
	font-size: var(--yd-fs-body);
}

.yd-image-text__text strong {
	color: var(--yd-lime);
}

.yd-image-text__media img {
	display: block;
	width: 100%;
	height: auto;
}

.yd-image-text__media.yd-torn img {
	height: 100%;
}

/* Ruled detail list: lime label, white value. */
.yd-details {
	columns: var(--yd-columns, 1);
	column-gap: 2rem;
}

.yd-details > li {
	padding: 0.7rem 2rem;
	font-size: var(--yd-fs-lead);
	font-weight: 400;
	line-height: 1.24;
	letter-spacing: calc(-0.06em * var(--yd-track));
	text-transform: uppercase;
	break-inside: avoid;
}

.yd-details strong {
	color: var(--yd-lime);
	font-weight: 700;
}

/* Bulleted list: white, in one or two columns. */
.yd-bullets {
	columns: var(--yd-columns, 1);
	column-gap: 2rem;
	margin: 0;
	padding-left: 1.5em;
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
	font-weight: 500;
	line-height: 1.875;
}

.yd-bullets strong {
	color: var(--yd-lime);
}

@media (max-width: 899px) {
	.yd-image-text__inner {
		grid-template-columns: 1fr;
	}

	.yd-image-text--image-left .yd-image-text__media {
		order: 0;
	}

	.yd-image-text__media {
		max-width: 560px;
	}
}

/* ---------- Help banner ---------- */

.yd-help-banner {
	padding-top: 0;
}

.yd-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem clamp(1.5rem, 4vw, 4.5rem);
	padding: 1.4rem clamp(1.5rem, 4vw, 5.2rem);
	background: var(--yd-ink);
	border: var(--yd-border) solid var(--yd-yellow);
}

.yd-help__icon {
	flex: none;
	width: clamp(56px, 40px + 3vw, 94px);
	height: auto;
}

.yd-help__text {
	flex: 1 1 18rem;
	text-transform: uppercase;
}

.yd-help__title {
	margin: 0;
	font-size: var(--yd-fs-title);
	font-weight: 500;
}

.yd-help__subtitle {
	margin: 0.25rem 0 0;
	color: var(--yd-lime);
	font-size: var(--yd-fs-lead);
	font-weight: 400;
}

/* ---------- Form ---------- */

.yd-form__inner {
	max-width: 1345px;
}

.yd-form .yd-section__header {
	margin-bottom: 2.5rem;
}

.yd-form__text {
	margin: 2rem 0 0;
	font-size: 1rem;
}

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

.yd-faq__list {
	display: grid;
	gap: clamp(1.5rem, 1rem + 1.5vw, 3.4rem);
}

.yd-faq__item {
	background: var(--yd-lime);
	border: var(--yd-border) solid var(--yd-lime);
	border-radius: 10px;
	color: var(--yd-black);
}

.yd-faq__item[open] {
	background: var(--yd-white);
}

.yd-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.6rem clamp(1.25rem, 3vw, 3.25rem);
	cursor: pointer;
	list-style: none;
}

.yd-faq__question::-webkit-details-marker {
	display: none;
}

.yd-faq__question::after {
	content: "";
	flex: none;
	width: clamp(40px, 30px + 2.5vw, 82px);
	aspect-ratio: 1;
	margin-block: -1rem;
	background: url("../img/icon-chevron.svg") center / contain no-repeat;
	transform: rotate(180deg);
}

.yd-faq__item[open] .yd-faq__question::after {
	transform: none;
}

.yd-faq__question :is(h2, h3) {
	font-size: clamp(1.25rem, 1rem + 1vw, 2.1875rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: calc(-0.09em * var(--yd-track));
	text-transform: uppercase;
}

.yd-faq__answer {
	padding: 0 clamp(1.25rem, 3vw, 3.25rem) 1.6rem;
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.4375rem);
	font-weight: 400;
}

.yd-faq__answer .yd-btn {
	min-width: 259px;
	margin-top: 1.75rem;
}

/* ---------- Contact info ---------- */

.yd-contact-info__inner {
	display: grid;
	grid-template-columns: 470fr 518fr;
	align-items: center;
	gap: 3rem clamp(2rem, 5.5vw, 6.7rem);
	max-width: 1095px;
}

.yd-contact-info__content {
	text-align: center;
}

.yd-contact-info__list {
	display: inline-grid;
	gap: 2.5rem;
	margin: 3rem 0 2rem;
	padding: 0;
	list-style: none;
	text-align: left;
}

.yd-contact-info__list li {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.yd-contact-info__list img {
	flex: none;
	width: 50px;
	height: 50px;
}

.yd-contact-info__list a,
.yd-contact-info__list address {
	color: var(--yd-white);
	font-size: clamp(1.375rem, 1.1rem + 1vw, 2.0345rem);
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: calc(-0.05em * var(--yd-track));
	text-decoration: none;
	text-transform: uppercase;
}

@media (max-width: 899px) {
	.yd-contact-info__inner {
		grid-template-columns: 1fr;
	}

	.yd-contact-info .yd-torn {
		max-width: 420px;
		width: 100%;
		margin-inline: auto;
	}
}

/* ---------- Forms (Contact Form 7) ---------- */

.yd-fields {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.9rem 1.8rem;
}

.yd-field {
	grid-column: span 3;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.yd-field--third {
	grid-column: span 2;
}

.yd-field--full,
.yd-fields__rule {
	grid-column: 1 / -1;
}

.yd-field__label {
	padding: 0;
	color: var(--yd-lime);
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2186rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: calc(-0.05em * var(--yd-track));
	text-transform: uppercase;
}

.yd-fields__rule {
	width: 100%;
	height: 0;
	margin: 1.2rem 0;
	border: 0;
	border-top: var(--yd-rule) solid var(--yd-yellow);
}

.yd-field input:not([type="checkbox"], [type="submit"]),
.yd-field select,
.yd-field textarea {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 0.6rem 0.9rem;
	border: 2.66px solid var(--yd-lime);
	border-radius: 0;
	background: var(--yd-white);
	color: var(--yd-black);
	font: inherit;
	font-size: 1.0625rem;
}

.yd-field textarea {
	min-height: 152px;
	resize: vertical;
}

.yd-field select {
	appearance: none;
	padding-right: 3rem;
	background: var(--yd-white) url("../img/icon-chevron.svg") right 0.5rem center / 2.5rem no-repeat;
}

.yd-field input:focus-visible,
.yd-field select:focus-visible,
.yd-field textarea:focus-visible {
	outline: 3px solid var(--yd-yellow);
	outline-offset: 0;
}

/* Checkbox groups: three columns of grey rounded boxes. */
.yd-field--choices .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 1rem 1.5rem;
	margin-top: 0.6rem;
}

.yd-field--choices .wpcf7-list-item {
	margin: 0;
}

.yd-field--choices label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
}

.yd-field--choices .wpcf7-list-item-label {
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2186rem);
	font-weight: 700;
	letter-spacing: calc(-0.05em * var(--yd-track));
}

.yd-field--choices input[type="checkbox"] {
	display: grid;
	place-content: center;
	flex: none;
	width: 31px;
	height: 31px;
	margin: 0;
	border-radius: 6px;
	background: #d9d9d9;
	appearance: none;
	cursor: pointer;
}

.yd-field--choices input[type="checkbox"]::before {
	content: "";
	width: 14px;
	height: 8px;
	margin-top: -4px;
	border-bottom: 3px solid var(--yd-black);
	border-left: 3px solid var(--yd-black);
	transform: rotate(-45deg);
	opacity: 0;
}

.yd-field--choices input[type="checkbox"]:checked {
	background: var(--yd-lime);
}

.yd-field--choices input[type="checkbox"]:checked::before {
	opacity: 1;
}

.yd-form__submit {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
}

/* The submit is an <input>, so the arrow is a background image. */
input.yd-btn {
	min-width: 259px;
	padding-right: 66px;
	background: var(--yd-yellow) url("../img/icon-arrow.svg") right 32px center / 24px 24px no-repeat;
	font-family: var(--yd-font-label);
}

input.yd-btn:hover {
	background-color: var(--yd-lime);
}

.wpcf7-spinner {
	position: absolute;
	margin: 0;
	right: calc(50% - 170px);
}

.wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: var(--yd-yellow);
	font-size: 0.9375rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2rem 0 0;
	padding: 1rem 1.25rem;
	border: var(--yd-rule) solid var(--yd-lime);
	color: var(--yd-white);
	text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--yd-yellow);
}

@media (max-width: 699px) {
	.yd-field,
	.yd-field--third {
		grid-column: 1 / -1;
	}
}
