/*
 * Waverock — About Us page
 * Load AFTER css/style.css (live theme) and css/new-home.css (shared header,
 * footer and video player). Everything here uses about-* classes, so it
 * cannot affect other pages. Theme pieces reused as-is: .container,
 * .section-label, .section-title, .team-card, .team-avatar, .team-name,
 * .team-role, .team-expertise.
 */

/* ───────────────── HEADER: current page ───────────────── */
.about-page .nav-links a[aria-current="page"] {
	color: var(--brand-blue);
}

/* ───────────────── SHARED SECTION HEADER ───────────────── */
.about-section-header {
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
}

.about-section-sub {
	margin-top: 20px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text-muted);
}

.about-section-sub + .about-section-sub {
	margin-top: 14px;
}

.about-section-sub-strong {
	font-weight: 600;
	color: var(--brand-navy);
}

/* ───────────────── 1. INTRODUCTION ───────────────── */
.about-intro {
	padding: 176px 60px 104px;
	background:
		radial-gradient(ellipse 60% 70% at 100% 0%, rgba(74, 148, 219, 0.12), transparent 70%),
		linear-gradient(180deg, var(--bg-alt) 0%, var(--white) 100%);
}

.about-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 72px;
	align-items: center;
}

.about-title {
	max-width: 640px;
	margin-bottom: 18px;
	font-size: clamp(2.25rem, 4.4vw, 3.5rem);
	line-height: 1.12;
}

.about-subtitle {
	margin-bottom: 36px;
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	line-height: 1.4;
	font-weight: 600;
	color: var(--brand-blue);
}

.about-story {
	max-width: 620px;
}

.about-story p {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--text-muted);
}

.about-story p + p {
	margin-top: 18px;
}

.about-story .about-story-lead {
	font-size: 1.1875rem;
	line-height: 1.65;
	font-weight: 500;
	color: var(--text-main);
}

.about-story .about-story-highlight {
	margin-top: 28px;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--brand-blue);
	font-weight: 600;
	color: var(--brand-navy);
}

/* Origin card — navy, with a subtle wave motif */
.about-origin {
	position: relative;
	overflow: hidden;
	padding: 48px 44px 44px;
	border-radius: 24px;
	background: var(--brand-navy);
	box-shadow: 0 24px 60px rgba(0, 33, 94, 0.22);
	color: var(--white);
}

.about-origin-waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 45%;
	pointer-events: none;
}

.about-origin-waves path {
	fill: none;
	stroke: var(--brand-blue);
	stroke-width: 1.5;
	opacity: 0.35;
}

.about-origin-label,
.about-origin-text,
.about-origin-note {
	position: relative;
}

.about-origin-label {
	margin-bottom: 18px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--brand-blue);
}

.about-origin-text {
	font-size: 1.375rem;
	line-height: 1.5;
	font-weight: 600;
	color: var(--white);
}

.about-origin-note {
	margin-top: 28px;
	padding-top: 24px;
	padding-bottom: 56px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
}

/* ───────────────── 2. VIDEO ───────────────── */
.about-video {
	background: var(--bg-alt);
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
}

.about-page .about-video-frame {
	max-width: 960px;
	margin-top: 0;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 33, 94, 0.16);
}

/* ───────────────── 3. TEAM ───────────────── */
.about-team {
	background: var(--white);
}

/* Centred rows, so the 5th/last cards sit in the middle instead of the left */
.about-team-grid {
	--about-team-gap: 28px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--about-team-gap);
	max-width: 1100px;
	margin: 0 auto;
	list-style: none;
}

.about-team-card {
	flex: 0 0 calc((100% - 2 * var(--about-team-gap)) / 3);
	padding: 40px 28px 36px;
}

/* Theme .team-avatar crops the photo to a circle; this adds a white ring */
.about-avatar {
	width: 128px;
	height: 128px;
	margin-bottom: 24px;
	border: 4px solid var(--white);
	background: var(--bg-alt);
	box-shadow: 0 0 0 1px var(--border-light), 0 10px 24px rgba(0, 33, 94, 0.15);
}

.about-team-card .team-name {
	font-size: 1.1875rem;
}

.about-team-card .team-role {
	margin-bottom: 6px;
}

.about-team-card .team-role:last-child {
	margin-bottom: 0;
}

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 1024px) {
	.about-intro-grid {
		gap: 48px;
	}

	.about-origin {
		padding: 40px 32px 36px;
	}

	.about-origin-text {
		font-size: 1.25rem;
	}
}

@media (max-width: 900px) {
	.about-intro {
		padding: 128px 24px 72px;
	}

	.about-intro-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about-team-card {
		flex-basis: calc((100% - var(--about-team-gap)) / 2);
	}
}

@media (max-width: 600px) {
	.about-intro {
		padding: 112px 16px 56px;
	}

	.about-subtitle {
		margin-bottom: 28px;
	}

	.about-story p {
		font-size: 1rem;
	}

	.about-story .about-story-lead {
		font-size: 1.0625rem;
	}

	.about-origin {
		padding: 32px 24px 28px;
		border-radius: 20px;
	}

	.about-origin-text {
		font-size: 1.125rem;
	}

	.about-origin-note {
		padding-bottom: 40px;
	}

	.about-section-header {
		margin-bottom: 36px;
	}

	.about-section-sub {
		font-size: 1rem;
	}

	.about-page .about-video-frame {
		border-radius: 14px;
	}

	.about-team-grid {
		--about-team-gap: 16px;
	}

	.about-team-card {
		flex-basis: 100%;
		padding: 32px 24px 28px;
	}

	.about-avatar {
		width: 112px;
		height: 112px;
	}
}
