/*
 * E17 About (WO-62, FD-216), as drawn in About.png (desktop 1440, mobile 390). Owned by the about
 * lane.
 *
 * Loads with core/group on every page (functions.php), so every rule here is scoped under
 * .fd-page--about, the class on each section group of this page. No hex: colours come from
 * theme.json tokens. Phone first; min-width queries at the token breakpoints only. Rules that
 * another page group needs go in sections.css through the integrator, not here.
 */

/* Section rhythm: 88 px above and below at every width (About.png, 390 and 1440). */
.fd-page--about.fd-page {
	padding-block: 5.5rem;
}

/* The eyebrow is 13 px with 0.1em tracking (About.png: ABOUT FLYDOO is 115 px wide). */
.fd-page--about .is-style-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Section headings are 40 px (About.png: The team you will work with is 548 px wide). */
.fd-page--about h2.wp-block-heading,
.fd-page--about .fd-section-intro__heading {
	font-size: 2.5rem;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.fd-page--about .fd-team--about .fd-section-intro {
	margin-block-end: 2rem;
}

/* 1 Hero: copy left, four stat tiles right. */
.fd-page--about.fd-about-hero {
	padding-block: 5rem;
}

.fd-page--about .fd-about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.6875rem;
	align-items: start;
}

.fd-page--about .fd-about-hero__copy > .is-style-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--cta-primary);
}

.fd-page--about .fd-about-hero__title {
	margin: 1.25rem 0 0;
	font-size: 3.375rem;
	line-height: 1.0556;
	letter-spacing: -0.03em;
}

.fd-page--about .fd-about-hero__lead {
	margin: 1.3125rem 0 0;
	font-size: 1.1875rem;
	line-height: 1.63;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 80%, transparent);
}

.fd-page--about .fd-about-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

/* From 1024 px the tiles start level with the H1: the eyebrow line plus its 20 px gap. */

/* The claim gate wraps the partner tile; the tile is the grid item. */
.fd-page--about .fd-about-hero__stats > .fd-claim-gate,
.fd-page--about .fd-about-hero__stats .fd-claim-gate__slot {
	display: contents;
}

.fd-page--about .fd-about-stat {
	box-sizing: border-box;
	padding: 1.25rem 0.75rem 1.05rem 1.3125rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 22%, transparent);
	border-radius: var(--wp--custom--radius--lg, 16px);
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 6%, transparent);
}

.fd-page--about .fd-about-stat__value {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-page--about .fd-about-stat__label {
	margin: 1px 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 80%, transparent);
}

/* 2 Team: the home card look, square portrait, name and short role. */
.fd-page--about .fd-team--about .fd-team__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.fd-page--about .fd-team--about .fd-team__person {
	display: block;
	overflow: hidden;
	padding: 0 0 0.9375rem;
	border-radius: var(--wp--custom--radius--lg, 16px);
	background: var(--wp--preset--color--surface-sunken);
}

.fd-page--about .fd-team--about .fd-team__img,
.fd-page--about .fd-team--about .fd-team__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5; /* Review P7: the full 4:5 portrait, nothing cropped. */
	border-radius: 0;
	object-fit: cover;
}

.fd-page--about .fd-team--about .fd-team__name,
.fd-page--about .fd-team--about .fd-team__role {
	margin: 0;
	padding-inline: 1.125rem;
}

.fd-page--about .fd-team--about .fd-team__name {
	margin-top: 1.3125rem;
	font-size: 1.1667rem;
}

.fd-page--about .fd-team--about .fd-team__role {
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
}

/* 3 Values: four white cards on the sunken ground. */
.fd-page--about .fd-about-values__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.875rem;
	margin-block-start: 1.75rem;
}

.fd-page--about .fd-about-card {
	box-sizing: border-box;
	padding: 1.4375rem 1.375rem 1.25rem;
	border-radius: var(--wp--custom--radius--lg, 16px);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--about .fd-about-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-emphasis);
	line-height: 1.35;
	letter-spacing: 0;
}

.fd-page--about .fd-about-card__body {
	margin: 0.375rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--text-body);
}

/* 4 Group: three outlined cards, a logo and one line each, then the homepage link. */
.fd-page--about h2.fd-about-group__title {
	max-width: 44rem;
	font-size: 2.25rem;
	line-height: 1.125;
	margin-block-end: 0;
	margin-inline-start: max(0px, calc((100% - 75rem) / 2)) !important;
}

.fd-page--about.fd-about-group > .is-style-eyebrow + h2.fd-about-group__title {
	margin-block-start: 1.25rem;
}

.fd-page--about .fd-about-group__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-block-start: 1.5rem;
}

.fd-page--about .fd-about-group__card .fd-logo-wall__item {
	line-height: 0;
}

.fd-page--about .fd-about-group__card {
	box-sizing: border-box;
	padding: 1.5rem 1.4375rem 1.25rem;
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--lg, 16px);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--about .fd-about-group__card .fd-logo-wall__tile {
	min-height: 1.625rem;
}

.fd-page--about .fd-about-group__card .fd-logo-wall__logo {
	display: block;
	max-height: none;
	height: auto;
}

/* Each mark is drawn at its own size: Agifly 76 px wide, Flyeo 54 px, Fly AI 51 px. */
.fd-page--about .fd-about-group__card:nth-child(1) .fd-logo-wall__logo {
	width: 4.75rem;
}

.fd-page--about .fd-about-group__card:nth-child(2) .fd-logo-wall__logo {
	width: 3.375rem;
}

.fd-page--about .fd-about-group__card:nth-child(3) .fd-logo-wall__logo {
	width: 3.1875rem;
}

.fd-page--about .fd-about-group__text {
	margin: 0.5625rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: var(--wp--preset--color--text-body);
}

.fd-page--about .fd-about-group__site {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4375;
}

/* The FAQ heading is 36 px (About.png: 756 px wide). */
.fd-page--about.fd-about-faq .fd-section-intro__heading {
	font-size: 2.25rem;
}

.fd-page--about.fd-about-faq {
	padding-block: 5rem;
}

/* 5 FAQ: a 900 px column, every answer open under a triangle, a rule above and below each item, at
   every width (About.png). The same drawing as the Home FAQ (block style.scss, .fd-home); kept here
   so Home is untouched. */
.fd-page--about.fd-about-faq .fd-faq {
	max-width: 56.25rem;
	margin-inline: auto;
}

/* 6 Close: centred line and one button. */
.fd-page--about.fd-about-close {
	padding-block: 5rem 4.75rem;
	text-align: center;
}

/* The title is 41.6 px on a 43 px line at every width (About.png: 278 px and 628 px for the first line). */
.fd-page--about h2.fd-about-close__title {
	margin: 0;
	font-size: 2.6rem;
	line-height: 1.03;
}

.fd-page--about.fd-about-close .wp-block-buttons {
	margin-block-start: 1.5rem;
}

/* The drawn close button is 56 px high, 17 px type (About.png). */
.fd-page--about.fd-about-close .wp-block-button__link {
	padding: 0.9375rem 1.3125rem;
	font-size: 1.0625rem;
	line-height: 1.4;
}

@media (min-width: 768px) {

	.fd-page--about .fd-team--about .fd-team__name {
		font-size: var(--wp--preset--font-size--card-heading);
	}

	.fd-page--about .fd-about-group__card {
		padding-bottom: 1.0625rem;
	}

	.fd-page--about .fd-about-group__text {
		margin-block-start: 0.3125rem;
		line-height: 1.7333;
	}

	.fd-page--about .fd-team--about .fd-team__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fd-page--about .fd-about-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fd-page--about .fd-about-group__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.fd-page--about.fd-about-hero {
		padding-block: 5rem 4.875rem;
	}

	.fd-page--about .fd-about-hero__grid {
		grid-template-columns: minmax(0, 1fr) 29.75rem;
		column-gap: 3rem;
	}

	.fd-page--about .fd-about-hero__stats {
		margin-block-start: 2.4375rem;
	}

	.fd-page--about .fd-team--about .fd-team__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fd-page--about .fd-about-values__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
