/*
 * About us page — hero, "Our story" split, "How we work" band, owner-written
 * prose sections and the closing call to action.
 *
 * Mobile-first: every layout starts as one column and only becomes a grid at a
 * breakpoint, so nothing can scroll sideways at 320px. Every colour, size,
 * radius, shadow and transition comes from the design tokens in
 * assets/css/design-tokens.css (mirrored in style.css).
 */

/* ==========================================================================
   Hero — dark band, so it alternates with the light story section below
   ========================================================================== */

.about-hero {
	background: var(--color-surface-dark);
	color: var(--color-text-invert);
}

.about-hero__inner {
	padding-block: clamp(var(--space-12), 9vw, var(--space-20));
}

/*
 * Breadcrumbs come from Yoast SEO and sit on the dark hero, so their links
 * cannot use the default link colour (primary-600 on primary-900 is 2.0:1, far
 * below the contrast floor). This page loads only about.css, so the inverted
 * rules have to be here too.
 */
.breadcrumbs--invert {
	margin-bottom: var(--space-4);
	font-size: var(--text-sm);
	color: var(--color-neutral-100);
}

.breadcrumbs--invert a {
	color: var(--color-accent-300);
	text-decoration: underline;
}

.breadcrumbs--invert a:hover,
.breadcrumbs--invert a:focus {
	color: var(--color-neutral-50);
}

.about-hero__eyebrow {
	margin: 0 0 var(--space-3);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
	color: var(--color-accent-300);
}

.about-hero__title {
	margin: 0 0 var(--space-5);
	max-width: 24ch;
	font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
	color: var(--color-neutral-50);
}

.about-hero__lead {
	max-width: 58ch;
	margin: 0 0 var(--space-8);
	font-size: clamp(var(--text-base), 2.2vw, var(--text-lg));
	color: var(--color-neutral-100);
}

.about-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-8);
	margin: 0;
	padding: var(--space-5) 0 0;
	list-style: none;
	border-top: 1px solid rgba(248, 249, 250, 0.25);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
	color: var(--color-neutral-200);
}

.about-hero__facts li {
	list-style: none;
}

/* ==========================================================================
   Our story — stacked on mobile, asymmetric 60/40 split on desktop
   ========================================================================== */

.about-story {
	background: var(--color-bg);
	color: var(--color-text);
}

.about-story__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-10);
	align-items: start;
}

@media (min-width: 900px) {
	.about-story__inner {
		grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
		gap: var(--space-12);
	}
}

.about-story__text {
	max-width: var(--measure);
	color: var(--color-text-muted);
	font-size: var(--text-base);
}

.about-story__text:first-of-type {
	color: var(--color-text);
	font-size: var(--text-lg);
}

.about-story__side {
	display: grid;
	gap: var(--space-6);
}

.about-story__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.about-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
	margin: 0;
	padding: var(--space-6);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

@media (min-width: 480px) {
	.about-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.about-facts {
		grid-template-columns: 1fr;
	}
}

.about-facts__item {
	margin: 0;
}

.about-facts__label {
	margin: 0 0 var(--space-1);
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
	color: var(--color-primary-600);
}

.about-facts__value {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	letter-spacing: var(--letter-tight);
	color: var(--color-text);
}

/* ==========================================================================
   How we work — dark band with one card per point
   ========================================================================== */

.about-how {
	background: var(--color-surface-dark);
	color: var(--color-text-invert);
}

.about-how__head {
	margin-bottom: var(--space-10);
}

.about-how__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-how__list > li {
	list-style: none;
}

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

@media (min-width: 1024px) {
	.about-how__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.about-point {
	height: 100%;
	padding: var(--space-6);
	background: rgba(248, 249, 250, 0.06);
	border: 1px solid rgba(248, 249, 250, 0.14);
	border-radius: var(--radius-lg);
	transition: transform var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default);
}

.about-point:hover,
.about-point:focus-within {
	transform: translateY(-2px);
	border-color: var(--color-accent-400);
}

.about-point__title {
	margin: 0 0 var(--space-3);
	font-size: var(--text-lg);
	color: var(--color-neutral-50);
}

.about-point__text {
	margin: 0;
	max-width: none;
	font-size: var(--text-sm);
	color: var(--color-neutral-200);
}

.about-how__note {
	max-width: 66ch;
	margin: var(--space-10) 0 0;
	padding-top: var(--space-6);
	border-top: 1px solid rgba(248, 249, 250, 0.25);
	color: var(--color-neutral-200);
}

/* ==========================================================================
   A section the owner wrote in the page editor
   ========================================================================== */

.about-prose {
	background: var(--color-bg);
	color: var(--color-text);
}

.about-prose--invert {
	background: var(--color-surface-dark);
	color: var(--color-text-invert);
}

.about-prose__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

@media (min-width: 900px) {
	.about-prose__inner {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		gap: var(--space-12);
		align-items: start;
	}
}

.about-prose__body > :first-child {
	margin-top: 0;
}

.about-prose__body > :last-child {
	margin-bottom: 0;
}

.about-prose--invert .about-prose__body {
	color: var(--color-neutral-200);
}

.about-prose--invert .about-prose__body a {
	color: var(--color-accent-300);
}

.about-prose--invert .about-prose__body a:hover,
.about-prose--invert .about-prose__body a:focus {
	color: var(--color-accent-200);
}

.about-prose--invert .about-prose__body h3,
.about-prose--invert .about-prose__body h4 {
	color: var(--color-neutral-50);
}

/* ==========================================================================
   Closing call to action — the page's single route to the Contact page
   ========================================================================== */

.about-cta {
	background: var(--color-surface);
	color: var(--color-text);
	border-top: 1px solid var(--color-border);
}

.about-cta__inner {
	padding-block: var(--space-section);
}

.about-cta__title {
	margin: 0 0 var(--space-4);
	max-width: 30ch;
	font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
}

.about-cta__lead {
	max-width: 58ch;
	margin: 0 0 var(--space-8);
	font-size: var(--text-lg);
	color: var(--color-text-muted);
}

.about-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin: 0;
	max-width: none;
}

/* ==========================================================================
   Our offices — one card per office, stacked on a phone, side by side above
   the tablet breakpoint. No fixed pixel width anywhere, so the cards hold at
   320px.
   ========================================================================== */

.about-offices {
	background: var(--color-bg);
	color: var(--color-text);
	border-top: 1px solid var(--color-border);
}

.about-offices__head {
	margin-bottom: var(--space-10);
}

.about-offices__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-offices__list > li {
	list-style: none;
	display: flex;
}

@media (min-width: 768px) {
	.about-offices__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-8);
	}
}

.office-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: var(--space-8);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	transition: transform var(--duration-normal) var(--ease-default),
		box-shadow var(--duration-normal) var(--ease-default);
}

.office-card:hover,
.office-card:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.office-card__role {
	margin: 0 0 var(--space-3);
	max-width: none;
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
	color: var(--color-accent-700);
}

.office-card__city {
	margin: 0 0 var(--space-1);
	font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
	color: var(--color-text);
}

.office-card__country {
	margin: 0 0 var(--space-6);
	max-width: none;
	font-size: var(--text-base);
	color: var(--color-text-muted);
}

.office-card__details {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-1) var(--space-4);
	margin: 0;
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-border);
}

@media (min-width: 480px) {
	.office-card__details {
		grid-template-columns: minmax(0, auto) minmax(0, 1fr);
		align-items: baseline;
		gap: var(--space-3) var(--space-6);
	}
}

.office-card__label {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.office-card__value {
	margin: 0 0 var(--space-2);
	max-width: none;
	overflow-wrap: break-word;
	font-size: var(--text-base);
	color: var(--color-text);
}

@media (min-width: 480px) {
	.office-card__value {
		margin-bottom: 0;
	}
}

.office-card__value a {
	color: var(--color-link);
	text-decoration: underline;
}

.office-card__value a:hover,
.office-card__value a:focus {
	color: var(--color-link-hover);
}
