/*
 * Wholesale page — page-wholesale.php and template-parts/wholesale/*.
 *
 * Only this page's own bands are styled here. The benefit cards are the shared
 * card component (assets/css/cards.css), the grid is the shared .card-grid, the
 * containers and section rhythm are .hcr-container / .hcr-section, and the
 * buttons are the shared .hcr-btn rules — none of those are repeated.
 *
 * Every value is a design token, so a [data-theme="dark"] remap of the role
 * tokens recolours the whole page with no extra rules here.
 *
 * Mobile-first: one column throughout; the benefit grid comes from .card-grid,
 * the supply blocks become image/text splits at 48em.
 */

.hcr-wholesale {
	background: var(--color-bg);
	color: var(--color-text);
}

/* --------------------------------------------------------------- the hero --- */

/*
 * A real photograph with the design system's hero gradient over it, so the
 * headline stays legible rather than sitting on a flat colour band.
 */
.hcr-wholesale__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--space-section);
	background: var(--color-surface-dark);
	color: var(--color-neutral-50);
}

.hcr-wholesale__hero-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hcr-wholesale__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--overlay-hero);
}

.hcr-wholesale__hero-inner {
	position: relative;
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.hcr-wholesale__eyebrow {
	margin: 0 0 var(--space-3);
	color: var(--color-accent-300);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.hcr-wholesale__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tighter);
	line-height: var(--leading-tight);
	text-wrap: balance;
}

.hcr-wholesale__lede {
	margin: var(--space-5) 0 0;
	max-width: var(--measure);
	color: var(--color-neutral-200);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

.hcr-wholesale__hero-actions {
	margin: var(--space-8) 0 0;
}

/* ------------------------------------------------------ section headings --- */

.hcr-wholesale__heading {
	margin: 0 0 var(--space-4);
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
	text-wrap: balance;
}

.hcr-wholesale__intro {
	margin: 0 0 var(--space-10);
	max-width: var(--measure);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

/* --------------------------------------------- the value proposition ------ */

/*
 * The benefit cards keep the shared card surface, media, hover lift and body
 * rhythm. Only the two things the feature variant has no rules for are set
 * here: a slightly tighter title, and a four-across grid on wide screens so
 * four benefits read as one row rather than three-plus-one.
 */
.hcr-wholesale__benefits {
	background: var(--color-surface);
}

.hcr-wholesale .card--benefit .card__title {
	font-size: var(--text-lg);
}

@media (min-width: 75em) {
	.hcr-wholesale__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------- who we supply --- */

.hcr-supply {
	display: grid;
	gap: var(--space-10);
}

/*
 * Each audience is its own panel — its own surface, border and radius — so the
 * cafe block and the office block read as two clearly separate offers rather
 * than one continuous wall of text.
 */
.hcr-supply__block {
	display: grid;
	gap: var(--space-6);
	overflow: hidden;
	background: var(--color-bg);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
}

.hcr-supply__media {
	margin: 0;
	overflow: hidden;
}

.hcr-supply__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hcr-supply__body {
	padding: var(--space-2) var(--space-6) var(--space-8);
}

.hcr-supply__label {
	margin: 0 0 var(--space-2);
	color: var(--color-primary-600);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.hcr-supply__title {
	margin: 0 0 var(--space-3);
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.hcr-supply__text {
	margin: 0 0 var(--space-5);
	max-width: var(--measure);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

.hcr-supply__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-3);
}

.hcr-supply__point {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-3);
	max-width: var(--measure);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

.hcr-supply__tick {
	color: var(--color-primary-600);
	font-weight: var(--weight-bold);
	line-height: var(--leading-normal);
}

.hcr-supply__actions {
	margin: var(--space-6) 0 0;
}

/* ---------------------------------------------------------- the enquiry --- */

/*
 * The dark contrast band the page ends on, and the anchor target for every call
 * to action above it. The enquiry form story renders its form inside this band;
 * the surface, heading and copy treatment below apply either way.
 */
.hcr-wholesale__enquiry {
	background: var(--color-surface-dark);
	color: var(--color-neutral-50);
	scroll-margin-top: var(--header-height);
}

.hcr-wholesale__enquiry-inner {
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.hcr-wholesale__enquiry-title {
	margin: 0 0 var(--space-4);
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
	text-wrap: balance;
}

.hcr-wholesale__enquiry-text {
	margin: 0 0 var(--space-8);
	max-width: var(--measure);
	color: var(--color-neutral-200);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

.hcr-wholesale__steps {
	display: grid;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hcr-wholesale-step;
}

.hcr-wholesale__step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-4);
	align-items: baseline;
	color: var(--color-neutral-200);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	counter-increment: hcr-wholesale-step;
}

.hcr-wholesale__step::before {
	content: counter(hcr-wholesale-step);
	color: var(--color-accent-300);
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tight);
	line-height: 1;
}

/* --------------------------------------------- the editable Page content --- */

.hcr-wholesale__prose {
	max-width: var(--container-narrow);
	margin-inline: auto;
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

.hcr-wholesale__prose > :first-child {
	margin-top: 0;
}

.hcr-wholesale__prose > :last-child {
	margin-bottom: 0;
}

.hcr-wholesale__prose h2,
.hcr-wholesale__prose h3 {
	margin: var(--space-8) 0 var(--space-3);
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.hcr-wholesale__prose h2 {
	font-size: var(--text-2xl);
}

.hcr-wholesale__prose h3 {
	font-size: var(--text-xl);
}

.hcr-wholesale__prose p,
.hcr-wholesale__prose ul,
.hcr-wholesale__prose ol {
	margin: 0 0 var(--space-4);
}

.hcr-wholesale__prose a {
	color: var(--color-link);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color var(--duration-fast) var(--ease-default);
}

.hcr-wholesale__prose a:hover,
.hcr-wholesale__prose a:focus-visible {
	color: var(--color-link-hover);
}

.hcr-wholesale__prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------ breakpoints --- */

@media (min-width: 48em) {
	/* The photograph takes the narrower side: the tailored benefits are the
	   reason to read the block, so the copy leads. */
	.hcr-supply__block {
		grid-template-columns: 1fr 1.3fr;
		gap: var(--space-8);
		align-items: center;
	}

	.hcr-supply__body {
		padding: var(--space-8) var(--space-8) var(--space-8) 0;
	}

	/* The second block mirrors the first, so the two panels do not read as the
	   same layout twice. */
	.hcr-supply__block:nth-child(even) .hcr-supply__media {
		order: 2;
	}

	.hcr-supply__block:nth-child(even) .hcr-supply__body {
		order: 1;
		padding: var(--space-8) 0 var(--space-8) var(--space-8);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcr-wholesale__prose a {
		transition: none;
	}
}
