/*
 * Our Story / About page — page-about.php.
 *
 * Only this page's own bands are styled here. The reviews band at the bottom is
 * styled by assets/css/reviews.css and its cards by assets/css/cards.css, and
 * the buttons come from the shared .hcr-btn rules, so none of those are
 * repeated. Every value is a design token, so a [data-theme="dark"] remap of
 * the role tokens recolours the page with no extra rules here.
 *
 * Mobile-first: one column throughout, the split becoming two columns at 48em.
 */

.hcr-about {
	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-about__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--space-section);
	background: var(--color-surface-dark);
	color: var(--color-neutral-50);
}

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

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

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

.hcr-about__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-about__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-about__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);
}

/* -------------------------------------------------------------- the story --- */

.hcr-about__split {
	display: grid;
	gap: var(--space-8);
	align-items: center;
}

.hcr-about__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);
}

.hcr-about__text {
	margin: 0 0 var(--space-4);
	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-about__actions {
	margin: var(--space-6) 0 0;
}

.hcr-about__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
}

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

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

.hcr-about__content {
	background: var(--color-surface);
}

.hcr-about__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-about__prose > :first-child {
	margin-top: 0;
}

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

.hcr-about__prose h2,
.hcr-about__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-about__prose h2 {
	font-size: var(--text-2xl);
}

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

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

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

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

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

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

@media (min-width: 48em) {
	.hcr-about__split {
		/* Asymmetric on purpose: the copy leads on this page, the photograph
		   supports it. */
		grid-template-columns: 1.15fr 1fr;
		gap: var(--space-12);
	}
}

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

/* ------------------------------------------------------- meet the team --- */

/*
 * Team cards: one column on a phone, two from 40em, three from 64em and four
 * on a wide desktop, as the story asks. Every colour is a role token, so a
 * [data-theme="dark"] remap recolours the cards with no rules of their own.
 */
.hcr-team {
	background: var(--color-surface);
}

.hcr-team__head {
	max-width: var(--container-narrow);
	margin: 0 0 var(--space-10);
}

.hcr-team__heading {
	margin: 0;
	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);
}

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

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

.hcr-team__item {
	display: flex;
	margin: 0;
}

.hcr-team__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: var(--color-bg);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition:
		transform var(--duration-normal) var(--ease-default),
		box-shadow var(--duration-normal) var(--ease-default);
}

.hcr-team__card:hover,
.hcr-team__card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.hcr-team__media {
	position: relative;
	margin: 0;
	background: var(--color-primary-100);
}

.hcr-team__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/*
 * A member with no photograph yet gets a monogram rather than a stock picture
 * of coffee captioned with their name.
 */
.hcr-team__monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	aspect-ratio: 1 / 1;
	background: linear-gradient(140deg, var(--color-primary-700) 0%, var(--color-primary-500) 60%, var(--color-accent-500) 100%);
	color: var(--color-on-primary);
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-wide);
}

.hcr-team__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-6);
}

.hcr-team__name {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.hcr-team__role {
	margin: 0;
	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-team__bio {
	margin: var(--space-1) 0 0;
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

@media (min-width: 40em) {
	.hcr-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.hcr-team__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-8);
	}
}

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

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

	.hcr-team__card:hover,
	.hcr-team__card:focus-within {
		transform: none;
	}
}

/* --------------------------------------------- sourcing & ethics (US-002) --- */

/*
 * The commitments band sits on the warm surface token, between the story on
 * --color-bg above and the dark roasting band below, so the three bands
 * alternate tone. Every colour is a role token, so a [data-theme="dark"] remap
 * recolours the band with no extra rules.
 */
.hcr-sourcing {
	background: var(--color-surface);
	color: var(--color-text);
}

.hcr-sourcing__head {
	max-width: var(--container-narrow);
	margin: 0 0 var(--space-10);
}

.hcr-sourcing__heading {
	margin: 0;
	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-sourcing__text {
	margin: var(--space-4) 0 0;
	max-width: var(--measure);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

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

.hcr-sourcing__item {
	display: flex;
}

.hcr-sourcing__card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-6);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-bg);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--duration-normal) var(--ease-default),
		transform var(--duration-normal) var(--ease-default);
}

.hcr-sourcing__card:hover,
.hcr-sourcing__card:focus-within {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.hcr-sourcing__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border-radius: var(--radius-full);
	background: var(--color-primary-50);
	color: var(--color-primary-600);
}

.hcr-sourcing__item-title {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.hcr-sourcing__item-text {
	margin: 0;
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

.hcr-sourcing__origins {
	margin: var(--space-12) 0 0;
	padding: var(--space-8);
	border-radius: var(--radius-xl);
	background: var(--color-bg);
	box-shadow: var(--shadow-sm);
}

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

.hcr-sourcing__origins-text {
	margin: var(--space-4) 0 0;
	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-sourcing__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-6) 0 0;
	padding: 0;
	list-style: none;
}

.hcr-sourcing__chip {
	display: inline-block;
	padding: var(--space-2) var(--space-4);
	border: var(--border-width) solid var(--color-primary-200);
	border-radius: var(--radius-full);
	background: var(--color-primary-50);
	color: var(--color-primary-700);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	text-decoration: none;
	transition: background var(--duration-fast) var(--ease-default),
		color var(--duration-fast) var(--ease-default);
}

a.hcr-sourcing__chip:hover,
a.hcr-sourcing__chip:focus-visible {
	background: var(--color-primary-600);
	color: var(--color-on-primary);
}

a.hcr-sourcing__chip:focus-visible {
	outline: 2px solid var(--color-primary-600);
	outline-offset: 2px;
}

/* Origins with no shop to link into read as quiet labels, not as buttons. */
.hcr-sourcing__chip--static {
	border-color: var(--color-border);
	background: var(--color-surface);
	color: var(--color-text-muted);
}

@media (min-width: 40em) {
	.hcr-sourcing__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.hcr-sourcing__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-8);
	}
}

/* ---------------------------------------- our roasting process (US-002) --- */

/*
 * The dark contrast beat of the page. Text comes from the fixed neutral tokens
 * rather than --color-text, because the band is dark in both themes.
 */
.hcr-process {
	background: var(--color-surface-dark);
	color: var(--color-neutral-50);
}

.hcr-process__head {
	max-width: var(--container-narrow);
	margin: 0 0 var(--space-10);
}

.hcr-process__heading {
	margin: 0;
	color: var(--color-neutral-50);
	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-process__text {
	margin: var(--space-4) 0 0;
	max-width: var(--measure);
	color: var(--color-neutral-300);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

.hcr-process__steps {
	display: grid;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.hcr-process__step {
	margin: 0;
}

.hcr-process__card {
	display: grid;
	gap: var(--space-5);
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: var(--color-neutral-800);
	box-shadow: var(--shadow-lg);
}

.hcr-process__media {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--color-neutral-700);
}

.hcr-process__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.hcr-process__number {
	margin: 0 0 var(--space-2);
	color: var(--color-accent-300);
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--letter-tighter);
	line-height: 1;
}

.hcr-process__step-title {
	margin: 0;
	color: var(--color-neutral-50);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.hcr-process__step-text {
	margin: var(--space-3) 0 0;
	max-width: var(--measure);
	color: var(--color-neutral-300);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

@media (min-width: 48em) {
	/*
	 * An asymmetric split, alternating side per step so the sequence reads as a
	 * sequence rather than four identical blocks.
	 */
	.hcr-process__card {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: center;
		gap: var(--space-8);
	}

	.hcr-process__media {
		height: 100%;
		aspect-ratio: auto;
		min-height: 15rem;
	}

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

	.hcr-process__step:nth-child(even) .hcr-process__media {
		order: 2;
	}

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

	.hcr-process__number {
		font-size: var(--text-3xl);
	}
}

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

	.hcr-sourcing__card:hover,
	.hcr-sourcing__card:focus-within {
		transform: none;
	}
}

/* ------------------------------------------------- the closing CTA band --- */

/*
 * The last section of the page, and the contrast beat after the dark reviews
 * band: a light cream band holding one asymmetric panel — a real photograph on
 * one side, the heading, the two actions and a reassurance line on the other.
 * Every colour is a role token, so a [data-theme="dark"] remap recolours it.
 */
.hcr-about-cta {
	padding-block: var(--space-section);
	background: var(--color-surface);
	color: var(--color-text);
}

.hcr-about-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-6);
	align-items: center;
	overflow: hidden;
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-xl);
	background: var(--color-bg);
	box-shadow: var(--shadow-lg);
}

.hcr-about-cta__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	background: var(--color-surface);
}

.hcr-about-cta__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

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

.hcr-about-cta__heading {
	margin: 0;
	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-tight);
	text-wrap: balance;
}

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

.hcr-about-cta__actions {
	margin: var(--space-8) 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
}

/* The primary action is the biggest thing in the band. */
.hcr-about-cta__btn {
	padding: var(--space-4) var(--space-8);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	box-shadow: var(--shadow-md);
}

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

@media (min-width: 48em) {
	.hcr-about-cta__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--space-10);
	}

	.hcr-about-cta__media {
		height: 100%;
		aspect-ratio: auto;
		min-height: 20rem;
	}

	.hcr-about-cta__copy {
		padding: var(--space-12) var(--space-12) var(--space-12) 0;
	}
}

/*
 * The secondary link sits on the same --color-bg panel as the quiet button's
 * own background, so it takes the surface tone to stay visibly a button. It is
 * scaled up to sit beside the primary without competing with it.
 */
.hcr-about-cta__secondary {
	padding: var(--space-4) var(--space-6);
	background: var(--color-surface);
	font-size: var(--text-base);
}
