/*!
 * Bollard Boys Site — content sections: About, Why Bollard Boys, In the Field (gallery),
 * Partner banner, Quote CTA.
 *
 * Ported from About / WhyBollardBoys / InTheField / PartnerBanner / QuoteCta .module.css.
 * Every selector starts `body.bbs-active .bbs-home` — see the SPECIFICITY RULE in bbs-tokens.css.
 * No overflow hiding on any wrapper: overflow is fixed at its source (minmax(0,1fr) tracks,
 * span resets in single-column grids, CTA padding that shrinks on phones).
 * Side padding everywhere is var(--bbs-gutter), which the tokens shrink to 24px/16px on phones.
 */

/* =========================================================================
   04 — About
   ========================================================================= */

body.bbs-active .bbs-home .bbs-about {
	background: var(--bbs-surface);
	border-top: 1px solid var(--bbs-border);
	border-bottom: 1px solid var(--bbs-border);
}

body.bbs-active .bbs-home .bbs-about__inner {
	max-width: var(--bbs-content-max);
	margin: 0 auto;
	padding: 100px var(--bbs-gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 80px;
	align-items: start;
}

body.bbs-active .bbs-home .bbs-about__eyebrow,
body.bbs-active .bbs-home .bbs-gallery__eyebrow {
	font-family: var(--bbs-font-mono);
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bbs-muted);
}

body.bbs-active .bbs-home .bbs-about__title {
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 46px;
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 14px 0 0;
	color: var(--bbs-text);
}

body.bbs-active .bbs-home .bbs-about__copy {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

body.bbs-active .bbs-home .bbs-about__para {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: var(--bbs-body);
	text-wrap: pretty;
}

/* Text links: the underline stays put while an invisible ::before grows the hit area
   past 44px (tablets are touch devices at desktop widths too, so this is not media-gated). */
body.bbs-active .bbs-home .bbs-about__cta,
body.bbs-active .bbs-home .bbs-gallery__link {
	position: relative;
	font-family: var(--bbs-font-display);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--bbs-navy);
	color: var(--bbs-navy);
}

body.bbs-active .bbs-home .bbs-about__cta {
	align-self: flex-start;
}

body.bbs-active .bbs-home .bbs-about__cta::before,
body.bbs-active .bbs-home .bbs-gallery__link::before {
	content: "";
	position: absolute;
	inset: -12px -10px;
}

body.bbs-active .bbs-home .bbs-about__cta:hover,
body.bbs-active .bbs-home .bbs-gallery__link:hover {
	color: var(--bbs-accent);
}

@media (max-width: 980px) {
	body.bbs-active .bbs-home .bbs-about__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 72px var(--bbs-gutter);
	}
	body.bbs-active .bbs-home .bbs-about__title {
		font-size: 34px;
	}
}

@media (max-width: 640px) {
	body.bbs-active .bbs-home .bbs-about__para {
		font-size: 17px;
	}
}

@media (max-width: 380px) {
	body.bbs-active .bbs-home .bbs-about__title {
		font-size: 30px;
	}
}

/* =========================================================================
   05 — Why Bollard Boys (dark)
   ========================================================================= */

body.bbs-active .bbs-home .bbs-why {
	background: var(--bbs-dark);
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-why__inner {
	max-width: var(--bbs-content-max);
	margin: 0 auto;
	padding: 110px var(--bbs-gutter);
}

body.bbs-active .bbs-home .bbs-why__eyebrow {
	font-family: var(--bbs-font-mono);
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bbs-blue-200);
}

body.bbs-active .bbs-home .bbs-why__title {
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 50px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 14px 0 60px;
	max-width: 24ch;
	color: var(--bbs-surface);
}

/* The 1px gutters are the grid's hairline background showing between dark cells. */
body.bbs-active .bbs-home .bbs-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--bbs-hairline);
}

body.bbs-active .bbs-home .bbs-why__cell {
	background: var(--bbs-dark);
	padding: 38px 30px 42px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* --bbs-accent is only 3.88:1 on --bbs-dark; the on-dark accent passes. */
body.bbs-active .bbs-home .bbs-why__num {
	font-family: var(--bbs-font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--bbs-accent-on-dark);
}

body.bbs-active .bbs-home .bbs-why__cell-title {
	font-family: var(--bbs-font-display);
	font-weight: 600;
	font-size: 23px;
	line-height: 1.2;
	margin: 0;
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-why__cell-body {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--bbs-on-dark-low);
}

@media (max-width: 1080px) {
	body.bbs-active .bbs-home .bbs-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.bbs-active .bbs-home .bbs-why__inner {
		padding: 72px var(--bbs-gutter);
	}
	body.bbs-active .bbs-home .bbs-why__title {
		font-size: 38px;
		margin-bottom: 40px;
	}
	body.bbs-active .bbs-home .bbs-why__cell {
		padding: 32px 26px 34px;
	}
}

@media (max-width: 640px) {
	body.bbs-active .bbs-home .bbs-why__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body.bbs-active .bbs-home .bbs-why__cell {
		padding: 28px 22px 30px;
	}
}

@media (max-width: 380px) {
	body.bbs-active .bbs-home .bbs-why__title {
		font-size: 32px;
	}
	body.bbs-active .bbs-home .bbs-why__cell {
		padding: 26px 18px 28px;
	}
	body.bbs-active .bbs-home .bbs-why__cell-title {
		font-size: 21px;
	}
}

/* =========================================================================
   06 — In the Field (gallery)
   ========================================================================= */

body.bbs-active .bbs-home .bbs-gallery__inner {
	max-width: var(--bbs-content-max);
	margin: 0 auto;
	padding: 104px var(--bbs-gutter);
}

body.bbs-active .bbs-home .bbs-gallery__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 44px;
}

body.bbs-active .bbs-home .bbs-gallery__title {
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 50px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 14px 0 0;
	color: var(--bbs-text);
}

body.bbs-active .bbs-home .bbs-gallery__link {
	white-space: nowrap;
}

/* Desktop composition: 4 columns, fixed 232px rows, lead tile spans 2x2. */
body.bbs-active .bbs-home .bbs-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 232px;
	gap: 16px;
}

body.bbs-active .bbs-home .bbs-gallery__tile {
	position: relative;
	margin: 0;
	min-width: 0;
	background: var(--bbs-photo-grey);
}

body.bbs-active .bbs-home .bbs-gallery__tile--feature {
	grid-column: span 2;
	grid-row: span 2;
}

/* No "More projects" tile (Resources page unpublished): the last two photos share the bottom
   row instead of leaving its right half empty. */
body.bbs-active .bbs-home .bbs-gallery__grid--no-more .bbs-gallery__tile:nth-last-child(-n+2) {
	grid-column: span 2;
}

/* Absolutely positioned so the tile's box (row height or aspect-ratio) alone sizes the photo. */
body.bbs-active .bbs-home .bbs-gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

body.bbs-active .bbs-home .bbs-gallery__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 18px 16px;
	/* A solid band with only the top 28px fading out: the text starts 34px down, so every
	   line of a wrapped caption sits on the solid 85% plate whatever the photo behind it. */
	background: linear-gradient(to top, rgba(7, 11, 16, 0.85) 0%, rgba(7, 11, 16, 0.85) calc(100% - 28px), rgba(7, 11, 16, 0) 100%);
	font-family: var(--bbs-font-mono);
	font-size: var(--bbs-fs-label, 13px);
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-gallery__more {
	grid-column: span 2;
	border: 1px solid var(--bbs-border-strong);
	background: var(--bbs-surface);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	color: var(--bbs-navy);
}

body.bbs-active .bbs-home .bbs-gallery__more:hover {
	border-color: var(--bbs-navy);
}

body.bbs-active .bbs-home .bbs-gallery__more-label {
	font-family: var(--bbs-font-mono);
	font-size: var(--bbs-fs-meta, 12px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bbs-muted-alt);
}

body.bbs-active .bbs-home .bbs-gallery__more-cta {
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--bbs-navy);
}

@media (max-width: 900px) {
	body.bbs-active .bbs-home .bbs-gallery__inner {
		padding: 72px var(--bbs-gutter);
	}
	body.bbs-active .bbs-home .bbs-gallery__title {
		font-size: 38px;
	}
	body.bbs-active .bbs-home .bbs-gallery__head {
		flex-wrap: wrap;
		gap: 20px;
	}

	/* Below 900px tiles are sized by aspect-ratio, not a fixed row height, so landscape
	   and square install photos keep their proportions instead of cropping to slivers. */
	body.bbs-active .bbs-home .bbs-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
	}
	body.bbs-active .bbs-home .bbs-gallery__tile {
		aspect-ratio: 1 / 1;
	}
	body.bbs-active .bbs-home .bbs-gallery__tile--feature {
		grid-column: span 2;
		grid-row: auto;
		aspect-ratio: 3 / 2;
	}
	body.bbs-active .bbs-home .bbs-gallery__grid--no-more .bbs-gallery__tile:nth-last-child(-n+2) {
		grid-column: auto;
	}
	body.bbs-active .bbs-home .bbs-gallery__more {
		grid-column: span 2;
		min-height: 128px;
	}
}

@media (max-width: 640px) {
	/* Single column: a 2-up grid leaves each photo ~150px wide on a phone. */
	body.bbs-active .bbs-home .bbs-gallery__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	body.bbs-active .bbs-home .bbs-gallery__tile {
		aspect-ratio: 4 / 3;
	}
	/* `span 2` in a one-column grid creates an implicit second column and pushes the
	   section past the viewport, so both spanning tiles reset to auto. */
	body.bbs-active .bbs-home .bbs-gallery__tile--feature {
		grid-column: auto;
		aspect-ratio: 1 / 1;
	}
	body.bbs-active .bbs-home .bbs-gallery__more {
		grid-column: auto;
		min-height: 112px;
		padding: 20px;
	}
	body.bbs-active .bbs-home .bbs-gallery__more-cta {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	body.bbs-active .bbs-home .bbs-gallery__title {
		font-size: 32px;
	}
}

/* =========================================================================
   Partner banner (navy)
   ========================================================================= */

body.bbs-active .bbs-home .bbs-partner {
	background: var(--bbs-navy);
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-partner__inner {
	max-width: var(--bbs-content-max);
	margin: 0 auto;
	padding: 72px var(--bbs-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 56px;
	flex-wrap: wrap;
}

body.bbs-active .bbs-home .bbs-partner__copy {
	max-width: 62ch;
	min-width: 0;
}

body.bbs-active .bbs-home .bbs-partner__eyebrow-row {
	display: flex;
	align-items: center;
	gap: 10px;
	/* The reference row inherits the 16px browser default, so its 0.78em flags render
	   ~12.5px tall. Pinned here so the Elementor kit's body size cannot shrink them. */
	font-size: 16px;
}

/* 24x16 attributes are the no-CSS fallback; here the flag is sized from the row's 16px. */
body.bbs-active .bbs-home .bbs-partner__flag {
	display: block;
	flex: none;
	height: 0.78em;
	width: 1.17em;
}

body.bbs-active .bbs-home .bbs-partner__eyebrow {
	font-family: var(--bbs-font-mono);
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bbs-blue-100);
}

body.bbs-active .bbs-home .bbs-partner__title {
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 14px 0 12px;
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-partner__body {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--bbs-on-dark-body);
}

body.bbs-active .bbs-home .bbs-partner__cta {
	display: inline-block;
	background: var(--bbs-surface);
	color: var(--bbs-navy);
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 20px 36px;
	white-space: nowrap;
}

body.bbs-active .bbs-home .bbs-partner__cta:hover {
	background: var(--bbs-accent-wash);
	color: var(--bbs-navy);
}

@media (max-width: 900px) {
	body.bbs-active .bbs-home .bbs-partner__inner {
		padding: 56px var(--bbs-gutter);
		gap: 32px;
	}
	body.bbs-active .bbs-home .bbs-partner__title {
		font-size: 30px;
	}
}

@media (max-width: 640px) {
	body.bbs-active .bbs-home .bbs-partner__inner {
		gap: 26px;
	}
	/* Two flags plus a 34-character mono eyebrow do not fit on one phone line. */
	body.bbs-active .bbs-home .bbs-partner__eyebrow-row {
		flex-wrap: wrap;
	}
	body.bbs-active .bbs-home .bbs-partner__body {
		font-size: 16.5px;
	}
	/* The CTA stays nowrap, so its padding comes in or it outgrows a 320px viewport. */
	body.bbs-active .bbs-home .bbs-partner__cta {
		padding: 18px 24px;
		font-size: 14px;
	}
}

@media (max-width: 380px) {
	body.bbs-active .bbs-home .bbs-partner__title {
		font-size: 26px;
	}
}

/* =========================================================================
   Quote CTA (dark, centred)
   ========================================================================= */

body.bbs-active .bbs-home .bbs-quote {
	background: var(--bbs-dark);
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-quote__inner {
	max-width: var(--bbs-content-max);
	margin: 0 auto;
	padding: 132px var(--bbs-gutter);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
}

/* The monogram is black-on-white artwork: invert + screen drops the white ground on dark. */
body.bbs-active .bbs-home .bbs-quote__monogram {
	display: block;
	height: 62px;
	width: auto;
	max-width: none;
	filter: invert(1);
	mix-blend-mode: screen;
	opacity: 0.9;
	transform: rotate(-0.45deg);
}

body.bbs-active .bbs-home .bbs-quote__eyebrow {
	font-family: var(--bbs-font-mono);
	font-size: 12.5px;
	line-height: 1.5;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bbs-blue-200);
}

body.bbs-active .bbs-home .bbs-quote__title {
	font-family: var(--bbs-font-display);
	font-weight: 800;
	font-size: 66px;
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0;
	max-width: 22ch;
	color: var(--bbs-surface);
}

body.bbs-active .bbs-home .bbs-quote__contact {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 26px;
	max-width: 100%;
	font-family: var(--bbs-font-mono);
	font-size: 14px;
	color: var(--bbs-on-dark-low);
}

body.bbs-active .bbs-home .bbs-quote__contact-link {
	position: relative;
	color: var(--bbs-surface);
	overflow-wrap: anywhere;
}

/* 14px mono anchors are ~18px tall: grow the hit area without moving the desktop layout. */
body.bbs-active .bbs-home .bbs-quote__contact-link::before {
	content: "";
	position: absolute;
	inset: -13px -8px;
}

body.bbs-active .bbs-home .bbs-quote__contact-link:hover {
	color: var(--bbs-blue-200);
}

body.bbs-active .bbs-home .bbs-quote__cta {
	display: inline-block;
	margin-top: 12px;
	background: var(--bbs-accent);
	color: var(--bbs-surface);
	font-family: var(--bbs-font-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 22px 46px;
}

body.bbs-active .bbs-home .bbs-quote__cta:hover {
	background: var(--bbs-surface);
	color: var(--bbs-navy);
}

@media (max-width: 900px) {
	body.bbs-active .bbs-home .bbs-quote__inner {
		padding: 88px var(--bbs-gutter);
	}
	body.bbs-active .bbs-home .bbs-quote__title {
		font-size: 40px;
	}
	/* Real 44px boxes once the row can wrap, so stacked hit areas never overlap. */
	body.bbs-active .bbs-home .bbs-quote__contact-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	body.bbs-active .bbs-home .bbs-quote__contact-link::before {
		content: none;
	}
}

@media (max-width: 640px) {
	body.bbs-active .bbs-home .bbs-quote__inner {
		padding-block: 72px;
		gap: 22px;
	}
	body.bbs-active .bbs-home .bbs-quote__contact {
		gap: 4px 14px;
	}
	body.bbs-active .bbs-home .bbs-quote__title {
		font-size: 34px;
	}
	body.bbs-active .bbs-home .bbs-quote__cta {
		padding: 20px 32px;
		font-size: 15px;
	}
}

@media (max-width: 380px) {
	body.bbs-active .bbs-home .bbs-quote__title {
		font-size: 29px;
	}
	/* Tighter tracking instead of a smaller size: 12px is the type floor. */
	body.bbs-active .bbs-home .bbs-quote__eyebrow {
		font-size: var(--bbs-fs-meta, 12px);
		letter-spacing: 0.1em;
	}
}
