﻿/* ==========================================================================
   HERO
   Markup: <section class="hero"><div class="container"><div class="hero__inner">
   Used by: page-templates/home.php (via front-page.php)
   Shares .container width tokens — same left grid as header top bar / logo.
   ========================================================================== */

.hero {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background-color: var(--color-primary, #03193C);
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 120px 0;
	color: var(--color-white);
	text-align: left;
	overflow: visible;
}

.hero__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.hero__video iframe,
.hero__video video,
.hero__video-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

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

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(var(--color-primary-rgb, 61, 94, 142), 0.9) 0%, rgba(var(--color-primary-rgb, 61, 94, 142), 0.4) 100%);
	pointer-events: none;
}

/* Same .container boundary as header — do not invent a separate max-width */
.hero .container {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--container-width, 1370px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding, 24px);
	padding-right: var(--container-padding, 24px);
	text-align: left;
}

.hero .hero__inner,
.hero .hero__content,
.hero .container.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 650px;
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.hero .hero__rating,
.hero .hero__heading,
.hero .hero__title,
.hero .hero__subtext,
.hero .hero__subtitle {
	text-align: left;
	margin-left: 0;
	width: 100%;
}

.hero .hero__rating {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	color: var(--color-accent, #FE5C08);
	font-weight: var(--fw-semibold);
	margin-bottom: var(--space-sm);
}

.hero .hero__heading,
.hero .hero__title {
	color: var(--color-white);
	font-size: var(--fs-h1);
	margin-bottom: var(--space-md);
}

.hero .hero__subtext,
.hero .hero__subtitle {
	font-size: var(--fs-body);
	color: rgba(255,255,255,0.85);
	max-width: 500px;
	margin-right: auto;
	margin-bottom: var(--space-lg);
}

.hero .hero__cta-group,
.hero .hero__actions {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: var(--space-sm);
	flex-wrap: wrap;
	text-align: left;
	width: 100%;
}

/* ---------------- Phone CTA icon gap; fill animation lives in base.css ---------------- */
.hero .btn-phone {
	gap: 8px;
}

.hero .btn svg,
.hero .btn-phone__icon {
	flex-shrink: 0;
	fill: currentColor;
}

/* ---------------- Tablet ≤992px ---------------- */
@media (max-width: 992px) {
	.hero { padding: 80px 0; }
	.hero .hero__heading,
	.hero .hero__title { font-size: 36px; }
	.hero .hero__inner { max-width: 100%; }
}

/* ---------------- Mobile ≤640px ---------------- */
@media (max-width: 640px) {
	.hero { padding: 56px 0; }
	.hero .hero__heading,
	.hero .hero__title { font-size: 30px; }
	.hero .hero__cta-group,
	.hero .hero__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hero .hero__cta-group .btn,
	.hero .hero__actions .btn,
	.hero .btn-phone {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   SERVICES PAGE HERO
   Markup: template-parts/services-hero.php
   Full-bleed garage photo, Google reviews lockup, uppercase heading, two CTAs.
   ========================================================================== */

.hero.hero--services {
	min-height: 460px;
	padding: 96px 0 88px;
	align-items: center;
	background-color: #1a1a1a;
	background-position: center right;
}

.hero.hero--services::before {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.22) 100%);
}

.hero.hero--services.section-bg-image::before,
.hero.hero--services.hero--has-image::before {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.22) 100%);
	opacity: 1;
}

.hero.hero--services:not(.hero--has-image):not(.section-bg-image)::before {
	display: none;
}

.hero.hero--services .hero__inner {
	max-width: 920px;
}

.hero.hero--services .hero__google {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 20px;
	margin-bottom: 18px;
	text-decoration: none;
	color: inherit;
}

.hero.hero--services a.hero__google:hover {
	opacity: 0.92;
}

.hero.hero--services .hero__google-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero.hero--services .hero__google-g {
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hero.hero--services .hero__google-wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.hero.hero--services .hero__google-name {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}

.hero.hero--services .hero__google-label {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.82);
	margin-top: 1px;
}

.hero.hero--services .hero__google-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.hero.hero--services .hero__google-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--color-accent, #FE5C08);
}

.hero.hero--services .hero__google-stars svg {
	display: block;
}

.hero.hero--services .hero__google-score {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

.hero.hero--services .hero__heading {
	font-family: var(--font-body);
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 18px;
}

.hero.hero--services .hero__subtext {
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 540px;
	margin-bottom: 28px;
}

.hero.hero--services .hero__cta-group {
	gap: 14px;
}

@media (max-width: 992px) {
	.hero.hero--services {
		min-height: 380px;
		padding: 72px 0;
		background-position: center;
	}
}

@media (max-width: 640px) {
	.hero.hero--services {
		padding: 48px 0 56px;
		min-height: 0;
	}

	.hero.hero--services .hero__google-g {
		width: 34px;
		height: 34px;
	}

	.hero.hero--services .hero__google-name {
		font-size: 18px;
	}

	.hero.hero--services .hero__heading {
		font-size: 28px;
	}

	.hero.hero--services .hero__subtext {
		font-size: 15px;
		margin-bottom: 22px;
	}
}
