/* ==========================================================================
   Brand page (single-brand.php) — matches the Air Components brand design
   ========================================================================== */

.brand-page {
	--navy: #073364;
	--navy-900: #08122a;
	--blue: #2280c6;
	--blue-dark: #1b6ba8;
	--red: #e0301e;
	--red-deep: #951b27;
	--red-deep-dark: #7d1620;
	--bg: #f3f5fb;
	--text: #3a4250;
	--white: #fff;
	--radius: 16px;
	--container: 1180px;
	--gutter: clamp(20px, 5vw, 60px);

	font-family: "DM Sans", sans-serif;
	color: var(--text);
	overflow-x: clip;
}

.brand-page .brand-container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand-page h1,
.brand-page h2,
.brand-page h3 {
	color: var(--navy);
	margin: 0;
}

.brand-page h2 {
	font-size: 2rem;
}

.brand-page .brand-section-title {
	margin-bottom: 1.5rem;
}

.brand-page .brand-section-title--center {
	text-align: center;
	margin-bottom: clamp(3rem, 7vw, 5rem);
}

.brand-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 0.75rem;
}

.brand-eyebrow--red {
	color: var(--red);
}

/* ---- Buttons ------------------------------------------------------------ */

.brand-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	color: var(--white);
	transition: background-color 0.25s, transform 0.25s;
}

.brand-btn:hover {
	color: var(--white);
	transform: translateY(-2px);
}

.brand-btn--blue {
	background-color: var(--blue);
}

.brand-btn--blue:hover {
	background-color: var(--blue-dark);
}

.brand-btn--red {
	background-color: var(--red-deep);
}

.brand-btn--red:hover {
	background-color: var(--red-deep-dark);
}

.brand-btn__arrow {
	flex: none;
}

/* ---- 1. Hero ------------------------------------------------------------ */

.brand-hero {
	position: relative;
	background-color: var(--navy);
	background-size: cover;
	background-position: center;
	padding-block: clamp(48px, 9vw, 110px);
}

.brand-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 51, 100, 0.82), rgba(8, 18, 42, 0.85));
}

.brand-hero .brand-container {
	position: relative;
	z-index: 1;
}

.brand-hero__card {
	max-width: 940px;
	margin-inline: auto;
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(32px, 5vw, 64px);
	text-align: center;
	box-shadow: 0 30px 60px -25px rgba(8, 18, 42, 0.55);
}

/* Brand logo: moved out of the hero to sit above "Products we carry". */
.brand-logo-band {
	background: var(--white);
	padding-block: clamp(40px, 6vw, 72px) 0;
}

.brand-logo-band__logo {
	max-width: 230px;
	height: auto;
	margin: 0 auto clamp(24px, 4vw, 40px);
	display: block;
}

.brand-hero__title {
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	margin-bottom: 1.25rem;
}

.brand-hero__lead {
	font-size: 1.0625rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.brand-hero__lead p {
	margin: 0;
}

/* ---- 2. Why this brand -------------------------------------------------- */

/* Like .brand-where, the why image is the SECTION background (inline via
   air_brand_bg). Content sits in the right column, so the overlay mirrors:
   opaque on the right, fading left to let the image bleed through. */
.brand-why {
	position: relative;
	background: var(--bg);
	background-size: cover;
	background-position: center;
	padding-block: clamp(56px, 8vw, 100px);
}

/* Lighter, more even wash: the white content card carries readability, so the
   photo can stay visible across the whole section. */
.brand-why::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(243, 245, 251, 0.82) 0%, rgba(243, 245, 251, 0.64) 100%);
}

.brand-why .brand-container {
	position: relative;
}

.brand-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.brand-why__content {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	background: #fff;
	border-radius: var(--radius);
	padding: clamp(28px, 4vw, 44px);
	box-shadow: 0 30px 60px -35px rgba(8, 18, 42, 0.45);
}

.brand-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.brand-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 0;
	font-weight: 600;
	color: var(--navy);
	border-bottom: 1px solid rgba(7, 51, 100, 0.09);
}

.brand-checklist .brand-check {
	flex: none;
	box-sizing: border-box;
	width: 27px;
	height: 27px;
	padding: 5px;
	background: rgba(224, 48, 30, 0.1);
	border-radius: 50%;
}

.brand-checklist li:last-child {
	border-bottom: 0;
}

.brand-check {
	flex: none;
	color: var(--red);
	margin-top: 1px;
}

/* ---- 3. Products we carry ----------------------------------------------- */

.brand-products {
	background: var(--white);
	padding-block: clamp(56px, 8vw, 100px);
}

.brand-products__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(24px, 4vw, 40px);
}

@media (max-width: 700px) {
	.brand-products__grid {
		grid-template-columns: 1fr;
	}
}

.brand-card {
	background: var(--bg);
	border-radius: var(--radius);
	overflow: hidden;
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 2;
	row-gap: 0;
	box-shadow: 0 18px 40px -28px rgba(8, 18, 42, 0.5);
}

.brand-card__head {
	background: var(--navy);
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
}

.brand-card__head h3 {
	color: var(--white);
	font-size: 1.25rem;
}

.brand-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.brand-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1.25rem;
	display: block;
}

.brand-card__desc {
	color: var(--navy);
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.brand-card__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	color: var(--navy);
	text-decoration: none;
	align-self: flex-start;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--red);
	transition: gap 0.25s;
}

.brand-card__link:hover {
	gap: 0.7rem;
	color: var(--navy);
}

/* ---- 4. Where we work --------------------------------------------------- */

/* The map image is the SECTION background (set inline via air_brand_bg), with
   a light overlay fading left-to-right so the content stays readable while the
   map bleeds out to the section edges. */
.brand-where {
	position: relative;
	background: var(--bg);
	background-size: cover;
	background-position: center;
	padding-block: clamp(56px, 8vw, 100px);
}

.brand-where::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(243, 245, 251, 0.97) 0%, rgba(243, 245, 251, 0.92) 45%, rgba(243, 245, 251, 0.45) 100%);
}

.brand-where .brand-container {
	position: relative;
}

.brand-where__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.brand-where__lead {
	font-size: 1.0625rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.brand-where__lead p {
	margin: 0;
}

.brand-areas {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem 1.5rem;
}

.brand-areas li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	color: var(--navy);
}

.brand-pin {
	flex: none;
	color: var(--red);
}

.brand-where__media img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	display: block;
	box-shadow: 0 18px 40px -28px rgba(8, 18, 42, 0.5);
}

/* ---- 5. Beyond the sale ------------------------------------------------- */

.brand-beyond {
	position: relative;
	background-color: var(--navy-900);
	background-size: cover;
	background-position: center;
	padding-block: clamp(56px, 9vw, 110px);
}

.brand-beyond::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 42, 0.8), rgba(8, 18, 42, 0.88));
}

.brand-beyond .brand-container {
	position: relative;
	z-index: 1;
}

.brand-beyond__card {
	max-width: 980px;
	margin-inline: auto;
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(32px, 5vw, 64px);
	text-align: center;
	box-shadow: 0 30px 60px -25px rgba(8, 18, 42, 0.55);
}

.brand-beyond__title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1.25rem;
}

.brand-beyond__body {
	font-size: 1.0625rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.brand-beyond__body p:last-child {
	margin-bottom: 0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
	.brand-why__grid,
	.brand-where__grid {
		grid-template-columns: 1fr;
	}


	/* Single column: content spans the full width, so the overlay goes uniform
	   instead of fading out under the text. */
	.brand-where::before {
		background: rgba(243, 245, 251, 0.94);
	}

	/* The why card carries its own readability; keep the photo visible. */
	.brand-why::before {
		background: rgba(243, 245, 251, 0.72);
	}
}

@media (max-width: 480px) {
	.brand-areas {
		grid-template-columns: 1fr;
	}
}
