/* About page — layout only (primitives live in components.css) */

/* Hero background image */
.page-template-template-about .hero {
	background-image: url('../images/values/teamwork.jpg');
}

/* Intro paragraph */
.about-intro {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--muted);
}

/* Core values grid: 3-up → 2-up → 1-up */
.about-values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.about-values-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.about-values-grid {
		grid-template-columns: 1fr;
	}
}

/* Team grid: 5-up → 3-up → 2-up */
.about-team-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

@media (max-width: 1000px) {
	.about-team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.about-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Closing CTA band */
.about-cta {
	text-align: center;
}

/* Interactive team cards — the whole card is a button that opens the bio modal.
   Reuses the .team-card component look; this just resets the <button> and adds
   the affordance + focus styles. */
.team-card--interactive {
	width: 100%;
	padding: 0 0 var(--space-4);
	font: inherit;
	color: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	display: block;
}
.team-card--interactive .team-card__name,
.team-card--interactive .team-card__role,
.team-card--interactive .team-card__more {
	display: block;
	padding-inline: var(--space-3);
}
.team-card--interactive .team-card__role {
	margin-bottom: var(--space-2);
}
.team-card__more {
	margin: 0;
	color: var(--brand);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
}
.team-card__more::after {
	content: " →";
	display: inline-block;
	transition: transform var(--dur) var(--ease);
}
.team-card--interactive:hover .team-card__name { color: var(--brand); }
.team-card--interactive:hover .team-card__more::after { transform: translateX(3px); }
.team-card--interactive:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}

/* Bio modal ---------------------------------------------------------------- */
.bio-modal[hidden] { display: none; }
.bio-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
}
.bio-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 19, 42, .62);
}
.bio-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 30px 80px rgba(4, 19, 42, .35);
	padding: clamp(28px, 4vw, 48px);
	text-align: center;
	animation: bio-modal-in .24s var(--ease) both;
}
@keyframes bio-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bio-modal__dialog { animation: none; }
}
.bio-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--ink);
	cursor: pointer;
	transition: background var(--dur) var(--ease);
}
.bio-modal__close:hover { background: var(--line); }
.bio-modal__photo {
	width: 120px;
	height: 120px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
	margin: 0 auto var(--space-4);
}
.bio-modal__name { margin: 0 0 2px; font-size: 1.5rem; color: var(--ink); }
.bio-modal__role { margin: 0 0 var(--space-4); color: var(--brand); font-weight: var(--fw-semibold); }
.bio-modal__bio  { margin: 0 0 var(--space-3); color: var(--muted); text-align: left; line-height: 1.7; }
.bio-modal__bio:last-child { margin-bottom: 0; }

/* Lock page scroll while the modal is open (JS toggles this on <body>). */
body.bio-open { overflow: hidden; }
