/*
 * Homepage-only styles.
 * Enqueued via is_front_page(), depends on guerrero-components so it loads
 * after it and its overrides win.
 */

/*
 * On the homepage the header overlays the hero, transparent, and stays pinned
 * (fixed) on ALL viewports — fading to a solid navy bar once you scroll past
 * the top (the .is-stuck class is toggled in main.js). Staying fixed on mobile
 * keeps the menu reachable while scrolling.
 */
.site-header--transparent {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Solid navy bar once scrolled past the hero top (all viewports). */
.site-header--transparent.is-stuck {
	background: var(--navy);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: 88vh;
	/* Bottom: clear the value cards' 120px overlap (layout.css .value-cards),
	   then leave breathing room under the CTA. Mobile overrides this below. */
	padding: var(--space-8) var(--space-3) calc(120px + clamp(3rem, 8vh, 5rem));
	text-align: center;
	background-color: var(--navy-deep); /* fallback */
}

/* Desert photo layer — slow Ken Burns drift (paused for reduced-motion). */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url(../img/hero.jpg) center / cover no-repeat;
	transform-origin: center;
}

/* Legibility scrims: top (for the transparent header) + bottom-weighted. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(20, 25, 34, 0.45) 0%,
		rgba(20, 25, 34, 0) 22%,
		rgba(20, 25, 34, 0) 48%,
		rgba(20, 25, 34, 0.7) 100%
	);
}

@media (prefers-reduced-motion: no-preference) {
	.hero::before {
		animation: hero-kenburns 24s ease-in-out infinite alternate;
	}
}

@keyframes hero-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	max-width: 42rem;
}

.hero__eyebrow {
	margin: 0;
	color: var(--cream);
}

.hero .diamond-divider {
	margin-block: 0;
}

.hero__title {
	margin: 0;
	font-size: var(--fs-display);
	line-height: 1.02;
	color: var(--cream);
}

@media (max-width: 767px) {
	.hero {
		min-height: 70vh;
		padding: var(--space-7) var(--space-3) var(--space-6);
	}
}

/* ==========================================================================
   Trust bar (slim strip beneath the hero)
   ========================================================================== */

.trust-bar {
	background: var(--navy);
	padding-top: var(--space-3);
	/* Reserve room at the bottom for the value-cards overlap (margin-top: -120px),
	   so the trust text stays clear of the overlapping cards. */
	padding-bottom: calc(var(--space-3) + 120px);
}

.trust-bar__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-2) var(--space-5);
	margin: 0 auto; /* keep .container centering; don't clobber margin-inline */
	list-style: none;
}

.trust-bar__item {
	position: relative;
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--fs-small);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

/* Silver diamond separators between items. */
.trust-bar__item + .trust-bar__item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--space-5) / -2);
	width: 6px;
	height: 6px;
	background: var(--silver-line);
	transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 767px) {
	.trust-bar {
		/* Overlap is removed on mobile, so no reserved space is needed. */
		padding-bottom: var(--space-3);
	}
}

/* ==========================================================================
   Proof strip (credibility band between value cards and practice areas)
   ========================================================================== */

.proof {
	padding-block: var(--space-4); /* slimmer than a full section */
}

.proof__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: var(--space-4) var(--space-6);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: center;
}

.proof__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 150px;
}

.proof__stat {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	color: var(--gold);
}

.proof__label {
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--white);
}
