/* components/hero.css
   Hero on the front page and the page hero everywhere else.

   Part of assets/css/. The load order lives in
   inc/setup.php - add new files there, not with @import. */

/* The products, search and 404 heroes are dark, where the darkened green is the wrong
   way round - 3.99:1 there against 7.4:1 for the bright original. Brand red is only
   3.02:1 on that background, so the 404 kicker gets a brighter one. */
.page-hero .kicker-green { color: var(--green); }

.page-hero .kicker-red { color: #FF3B30; }

.hero,
.page-hero-image {
	position: relative;
	background: var(--night);
	overflow: hidden;
}

.hero-pattern {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(135deg, #171A3E 0 14px, #141733 14px 28px);
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 18px 24px;
}

.hero-pattern .ph-label { color: rgba(255, 255, 255, 0.45); font-size: 11px; }

.hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 16, 48, 0.95) 0%, rgba(14, 16, 48, 0.84) 48%, rgba(14, 16, 48, 0.35) 100%);
}

.hero-bars {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
}

.hero-bars span { width: 14px; height: 44px; display: block; }

.hero-inner {
	position: relative;
	padding-top: 120px;
	padding-bottom: 110px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.hero-title {
	font-weight: 900;
	font-size: 66px;
	line-height: 1.06;
	color: #fff;
	max-width: 16ch;
	text-wrap: balance;
}

.hero-sub { font-size: 22px; color: var(--lav); letter-spacing: 0.01em; }

.hero-desc {
	font-size: 17px;
	line-height: 1.75;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.82);
	max-width: 62ch;
	text-wrap: pretty;
}

.hero-inner .btn { margin-top: 10px; padding: 18px 34px; font-size: 14px; letter-spacing: 0.06em; }

/* Products / contact / search page header */
.page-hero {
	background: var(--night);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.page-hero > .wrap { padding-top: 80px; padding-bottom: 72px; position: relative; }

.page-hero h1 { color: #fff; }

.page-hero-image .hero-inner { padding-top: 96px; padding-bottom: 84px; }

.page-hero-image .hero-overlay { background: linear-gradient(90deg, rgba(14, 16, 48, 0.94) 0%, rgba(14, 16, 48, 0.6) 100%); }

.page-hero-image .h-xl { max-width: 19ch; text-wrap: balance; }

@media (max-width: 1180px) {
	.hero-title { font-size: 52px; }
}

@media (max-width: 980px) {
	.hero-inner { padding-top: 84px; padding-bottom: 76px; }

	/* At 1440px the heading starts at 142px and these sit 128px clear of it. Once the
		   heading moves to the 22px gutter, a 14px bar leaves 8px between the two and reads
		   as a collision rather than an accent. */
	.hero-bars span { width: 8px; height: 36px; }

	.hero-title { font-size: 42px; }
}

@media (max-width: 680px) {
	.hero-title { font-size: 32px; }

	.hero-sub { font-size: 18px; }

	.hero-desc { font-size: 15.5px; }
}
