/* =========================================================================
   Boyle Built — Internal Hero

   Shared across the interior pages. Two structural states rather than
   three visually-identical variants:

     .internal-hero--has-media  full-bleed background image + dark overlay
                                (same overlay values as the homepage Hero,
                                hero.css) with light text over it.
     .internal-hero--no-media   plain section on the light background
                                token, dark text — used whenever a page
                                doesn't supply a background image (e.g. a
                                Contact hero, or a Resource hero without a
                                photo).

   The 'standard' / 'resource' / 'contact' variant classes control which
   optional action (secondary CTA / download / phone) can appear — see
   hero-internal.php — independently of whether media is present, since a
   Resource or Contact hero may or may not have a background photo.

   Outer padding uses the shared --space-section-v/-h tokens (base.css)
   rather than new fixed numbers, since — unlike the homepage Hero/CTA
   Banner, which are fixed-height cinematic banners — this component's
   height is only evidenced conservatively (no interior Figma frames were
   available to this phase; see the Phase I1 report).
   ========================================================================= */

.internal-hero {
	position: relative;
	display: flex;
	overflow: hidden;
	width: 100%;
}

.internal-hero__media {
	position: absolute;
	inset: 0;
}

.internal-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.internal-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(13, 20, 15, 0.6);
}

.internal-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: var(--space-section-v) var(--space-section-h);
	gap: 16px;
}

.internal-hero__text-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.internal-hero__eyebrow {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
}

.internal-hero__heading {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.15;
}

.internal-hero__accent {
	background-color: var(--color-gold);
	height: 3px;
	width: 40px;
}

/* 'resource' variant only — gold lead sentence between the accent rule
   and the muted supporting paragraph; confirmed by the Buying Guide
   Figma frame (see hero-internal.php doc comment). */
.internal-hero__lead {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
}

.internal-hero__supporting-text {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	max-width: 640px;
}

/* 'standard' variant only, author byline row — added for Single Blog
   (Phase I12); see hero-internal.php's doc comment. */
.internal-hero__byline {
	display: flex;
	align-items: center;
	gap: 10px;
}

.internal-hero__byline-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.internal-hero__byline-name {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 13px;
}

.internal-hero__byline-meta {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 12px;
	opacity: 0.85;
}

.internal-hero--has-media .internal-hero__byline-name,
.internal-hero--has-media .internal-hero__byline-meta {
	color: var(--color-text-light);
}

.internal-hero--no-media .internal-hero__byline-name,
.internal-hero--no-media .internal-hero__byline-meta {
	color: var(--color-ink);
}

/* 'standard' variant only, icon+value quick-stats row — added for Single
   Plan (Phase I10); see hero-internal.php's doc comment. */
.internal-hero__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.internal-hero__stat {
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0.9;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
}

.internal-hero__stat:not(:last-child)::after {
	content: '|';
	margin-left: 14px;
	opacity: 0.5;
}

.internal-hero__stat-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.internal-hero--has-media .internal-hero__stat {
	color: var(--color-text-light);
}

.internal-hero--no-media .internal-hero__stat {
	color: var(--color-ink);
}

.internal-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.internal-hero__actions .btn {
	width: 100%;
}

/* The text-arrow "hard copy" link stays its natural inline width instead
   of stretching full-width like the block-style buttons. */
.internal-hero__actions .btn--text-arrow {
	align-self: flex-start;
	width: auto;
}

.internal-hero__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
}

.internal-hero__phone a {
	color: var(--color-gold);
	text-decoration: none;
}

.internal-hero__phone a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Media state colours
   ------------------------------------------------------------------------- */

.internal-hero--has-media .internal-hero__heading,
.internal-hero--has-media .internal-hero__phone {
	color: var(--color-text-light);
}

.internal-hero--has-media .internal-hero__supporting-text {
	color: var(--color-text-muted-lt1);
}

/* Gold lead text is mid-luminance, so on a brighter photo (Phase I13's
   Our Process hero) it can lose contrast against the dark overlay alone
   the way the white heading/supporting-text never do — a subtle shadow
   fixes that without changing the gold colour Buying Guide/Plans/Single
   Plan already established for this line. */
.internal-hero--has-media .internal-hero__lead {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.internal-hero--no-media {
	background-color: var(--color-bg);
}

.internal-hero--no-media .internal-hero__heading,
.internal-hero--no-media .internal-hero__phone {
	color: var(--color-ink);
}

.internal-hero--no-media .internal-hero__supporting-text {
	color: var(--color-body-muted);
}

/* -------------------------------------------------------------------------
   Tablet (601–1024px)
   ------------------------------------------------------------------------- */

@media (min-width: 601px) {
	.internal-hero--has-media {
		min-height: 380px;
	}

	.internal-hero__overlay {
		background-color: rgba(13, 20, 15, 0.5);
	}

	.internal-hero__content {
		gap: 20px;
	}

	.internal-hero__heading {
		font-size: 44px;
	}

	.internal-hero__accent {
		width: 44px;
	}

	.internal-hero__supporting-text {
		font-size: 15px;
		max-width: 560px;
	}

	.internal-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.internal-hero__actions .btn {
		width: auto;
	}
}

/* -------------------------------------------------------------------------
   Desktop (1025px+)
   ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.internal-hero--has-media {
		min-height: 440px;
	}

	.internal-hero__overlay {
		background-color: rgba(13, 20, 15, 0.45);
	}

	.internal-hero__content {
		justify-content: center;
		gap: 24px;
	}

	.internal-hero__heading {
		font-size: 52px;
		line-height: 1.1;
	}

	.internal-hero__accent {
		width: 48px;
	}

	.internal-hero__supporting-text {
		font-size: 16px;
		max-width: 620px;
	}
}
