/* ==========================================================================
   Media & Awards page (page-media-awards.php)
   Figma node 286-7150 — 1920 design reference
   Banner 1920x600 (bg image) + 4-col award cards grid:
   image 437x338, 24px gap, 50px gutters
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page-scoped tokens (stepped down at breakpoints)
   -------------------------------------------------------------------------- */
.ma-page {
	--ma-fs-title: 24px;
	/* IvyBodoni italic card heading   */
	--ma-fs-body: 16px;
	/* Avenir body lines               */
	--ma-gap: 24px;
	/* grid column/row gap             */
	--ma-section-pt: 120px;
	/* section padding top             */
	--ma-section-pb: 125px;
	/* section padding bottom          */
	--ma-gutter: 50px;
	/* container side gutters          */
	--ma-banner-h: 600px;
	/* Figma: banner 1920x600          */
	--ma-banner-title: 62px;
	/* banner heading size             */
}

/* --------------------------------------------------------------------------
   BANNER
   --------------------------------------------------------------------------
   Structure:  section.ma-banner > .ma-banner__container
                                 > .ma-banner__row
                                 > .ma-banner__inner

   - The background image comes from a CSS custom-property (PHP provides the
     inline style), so the mobile swap happens with a single media query.
   - Heading / sub heading / button — all optional. If none exist, only the
     bg image shows and no inner markup is rendered.
   - The gradient overlay also applies only when there is text; otherwise the
     image stays clean.
    -------------------------------------------------------------------------- */
.ma-banner {
	position: relative;
	width: 100%;
	min-height: var(--ma-banner-h);
	display: flex;
	align-items: center;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ma-banner.has-bg {
	background-image: var(--ma-banner-bg);
}

/* overlay only when there is text — otherwise the image shows undistorted */
/* .ma-banner.has-content::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .55) 100%);
	pointer-events: none;
} */

.ma-banner__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1820px;
	margin: 0 auto;
	padding: 60px var(--ma-gutter);
}

.ma-banner__row {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ma-banner__inner {
	max-width: 860px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	color: #ffffff;
}

.ma-banner__sub {
	font-family: "Avenir", Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--color-gold, #d2ab67);
	margin: 0;
}

.ma-banner__title {
	font-family: "IvyBodoni", "ivypresto-display", Georgia, serif;
	font-weight: 400;
	font-style: italic;
	font-size: var(--ma-banner-title);
	line-height: 1.1;
	letter-spacing: 0;
	color: #ffffff;
	margin: 0;
}

.ma-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	padding: 16px 40px;
	border: 1px solid #ffffff;
	border-radius: 80px;
	/* pill — no-radius rule se exempt */
	font-family: "Avenir", Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: .8px;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	transition: background-color .25s ease, color .25s ease;
}

.ma-banner__btn:hover {
	background: #ffffff;
	color: #000000;
}

/* --------------------------------------------------------------------------
   Section + container
   -------------------------------------------------------------------------- */
.ma-section {
	background-color: #ffffff;
	padding: var(--ma-section-pt) 0 var(--ma-section-pb);
}

.ma-container {
	max-width: 1820px;
	margin: 0 auto;
	padding: 0 var(--ma-gutter);
}

@media (min-width: 1921px) {
	.ma-container {
		padding: 0;
	}
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.ma-inner {
	max-width: 100%;
	width: 100%;
	margin-bottom: 60px;
}

h1.ma-heading,
h2.ma-heading {
	font-family: "IvyBodoni", "ivypresto-display", Georgia, serif;
	font-weight: 400;
	font-style: Italic;
	font-size: 48px;
	line-height: 48px;
	letter-spacing: 0px;
	text-align: center;
}


/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.ma-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: var(--ma-gap);
	row-gap: 80px;
	align-items: start;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.ma-card__media {
	margin: 0;
}

.ma-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 437 / 338;
	object-fit: contain;
	border-radius: 0;
}

.ma-card__body {
	padding-top: 26px;
}

/* Heading — IvyBodoni italic */
.ma-card__title {
	font-family: "IvyBodoni", "ivypresto-display", Georgia, serif;
	/* match the font var in tokens.css */
	font-style: italic;
	font-weight: 400;
	font-size: var(--ma-fs-title);
	line-height: 1.35;
	color: #000000;
	margin: 0 0 24px;
}

/* Description lines — each its own paragraph */
.ma-card__line {
	font-family: "Avenir", Arial, sans-serif;
	font-weight: 400;
	font-size: var(--ma-fs-body);
	line-height: 1.25;
	color: #000000;
	margin: 0 0 28px;
}

.ma-card__line:last-of-type {
	margin-bottom: 0;
}

/* "For The Storeys-" + project info block */
.ma-card__project {
	margin-top: 30px;
}

.ma-card__for {
	font-family: "Avenir", Arial, sans-serif;
	font-weight: 800;
	font-size: var(--ma-fs-body);
	line-height: 1.25;
	color: #000000;
	margin: 0 0 12px;
}

.ma-card__info {
	font-family: "Avenir", Arial, sans-serif;
	font-weight: 400;
	font-size: var(--ma-fs-body);
	line-height: 1.7;
	/* ~27px @16px — tight consecutive lines */
	color: #000000;
	margin: 0;
}

/* Empty state */
.ma-empty {
	font-family: "Avenir", Arial, sans-serif;
	font-size: var(--ma-fs-body);
	text-align: center;
	margin: 0;
}

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

/* 1440 — slightly tighter type */
@media (max-width: 1440px) {
	.ma-page {
		--ma-fs-title: 22px;
		--ma-section-pt: 100px;
		--ma-section-pb: 100px;
		--ma-banner-h: 520px;
		--ma-banner-title: 54px;
	}

	h1.ma-heading,
	h2.ma-heading {
		font-size: 40px;
		line-height: 40px;
	}
}

/* 1200 — major breakpoint: 3 columns, 30px gutters */
@media (max-width: 1200px) {
	.ma-page {
		--ma-gutter: 30px;
		--ma-section-pt: 80px;
		--ma-section-pb: 80px;
	}

	.ma-grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 64px;
	}
}

/* 1024 — 2 columns */
@media (max-width: 1024px) {
	.ma-page {
		--ma-banner-h: 440px;
		--ma-banner-title: 44px;
	}

	.ma-inner {
		margin-bottom: 48px;
	}

	h1.ma-heading,
	h2.ma-heading {
		font-size: 36px;
		line-height: 36px;
	}

	.ma-banner__container {
		padding: 48px var(--ma-gutter);
	}

	.ma-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

/* 768 — tighter spacing + mobile banner image */
@media (max-width: 768px) {
	.ma-page {
		--ma-fs-title: 20px;
		--ma-fs-body: 15px;
		--ma-section-pt: 64px;
		--ma-section-pb: 64px;
		--ma-banner-h: 380px;
		--ma-banner-title: 34px;
	}

	/* use the mobile image when provided, otherwise the desktop one */
	.ma-banner.has-bg {
		background-image: var(--ma-banner-bg-mobile, var(--ma-banner-bg));
	}

	.ma-banner__container {
		padding: 40px var(--ma-gutter);
	}

	.ma-banner__inner {
		gap: 16px;
	}

	.ma-banner__sub {
		font-size: 13px;
		letter-spacing: 1.2px;
	}

	.ma-banner__btn {
		margin-top: 8px;
		padding: 14px 32px;
		font-size: 13px;
	}

	.ma-inner {
		margin-bottom: 32px;
	}

	h1.ma-heading,
	h2.ma-heading {
		font-size: 32px;
		line-height: 32px;
	}

	.ma-grid {
		column-gap: 20px;
		row-gap: 20px;
	}

	.ma-card__body {
		padding-top: 20px;
	}

	.ma-card__title {
		margin-bottom: 18px;
	}

	.ma-card__line {
		margin-bottom: 20px;
	}

	.ma-card__project {
		margin-top: 22px;
	}
}

@media (max-width: 600px) {
	.ma-page {
		--ma-banner-h: 320px;
		--ma-banner-title: 28px;
	}

	.ma-inner {
		margin-bottom: 24px;
	}

	h1.ma-heading,
	h2.ma-heading {
		font-size: 24px;
		line-height: 24px;
	}
}

/* 425 — single column */
@media (max-width: 425px) {
	.ma-page {
		--ma-gutter: 20px;
		--ma-banner-h: 280px;
		--ma-banner-title: 24px;
	}

	.ma-banner__container {
		padding: 32px var(--ma-gutter);
	}

	.ma-banner__sub {
		font-size: 12px;
	}

	.ma-banner__btn {
		width: 100%;
		padding: 13px 24px;
		font-size: 12px;
	}

	.ma-grid {
		grid-template-columns: 1fr;
		row-gap: 24px;
	}
}