/* ─────────────────────────────────────────────────────────────────────
   Graphic Impressions — Hero module

   Everything is scoped under .gi-hero. No global reset, no framework.
   That is deliberate: it means this file cannot touch Elementor's own
   styling, and Elementor cannot touch ours.
   ───────────────────────────────────────────────────────────────────── */

.gi-hero {
	/* Brand tokens — the Style tab overwrites these per instance. */
	--gi-maroon:   #8B2E31;
	--gi-graphite: #6E6F71;
	--gi-silver:   #A8A9AB;
	--gi-ink:      #201F21;
	--gi-offwhite: #F7F7F6;
	--gi-ink-deep: #111010;
	--gi-stat-bg:  #171617;

	--gi-font-display: 'Archivo Black', 'Archivo', sans-serif;
	--gi-font-body:    'Inter', sans-serif;
	--gi-font-mono:    'JetBrains Mono', monospace;

	--gi-hero-panel-w: 63%;

	--gi-hairline: color-mix(in srgb, var(--gi-graphite) 21%, transparent);

	position: relative;
	overflow: hidden;
	min-height: 91vh;
	background-color: var(--gi-ink-deep);
}

/* Scoped reset — only inside the module, so themes and Elementor stay untouched. */
.gi-hero p,
.gi-hero h1,
.gi-hero h2 {
	margin: 0;
	padding: 0;
}

.gi-hero__defs {
	position: absolute;
	width: 0;
	height: 0;
}

/* ─── Video panel ─────────────────────────────────────────────────── */

.gi-hero__reel {
	display: none; /* Phones never load the video. */
}

.gi-hero__reel-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		var(--gi-ink) 0%,
		var(--gi-ink-deep) 60%,
		color-mix(in srgb, var(--gi-maroon) 13%, transparent) 100%
	);
}

.gi-hero__video {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gi-hero__badge {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background-color: color-mix(in srgb, var(--gi-ink-deep) 80%, transparent);
	backdrop-filter: blur(6px);
	border: 1px solid color-mix(in srgb, var(--gi-graphite) 25%, transparent);
	font-family: var(--gi-font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gi-silver);
}

/* ─── Dark panel ──────────────────────────────────────────────────── */

.gi-hero__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--gi-ink);
}

.gi-hero__panel-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Top strip */

.gi-hero__strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 5rem 2rem 0.875rem;
	border-bottom: 1px solid var(--gi-hairline);
}

.gi-hero__strip p {
	font-family: var(--gi-font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gi-graphite);
}

.gi-hero__strip-right {
	display: none;
}

/* Main content */

.gi-hero__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3.5rem 2rem;
}

.gi-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.gi-hero__rule {
	width: 2rem;
	height: 1px;
	background-color: var(--gi-maroon);
	flex-shrink: 0;
}

.gi-hero__eyebrow-text {
	font-family: var(--gi-font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gi-silver);
}

.gi-hero__headline {
	margin: 0 0 1.5rem;
	font-family: var(--gi-font-display);
	font-size: clamp(2.8rem, 5.5vw, 5.8rem);
	font-weight: 400;
	line-height: 0.88;
	letter-spacing: -0.025em;
	text-transform: uppercase;
	color: var(--gi-offwhite);
}

.gi-hero__accent {
	color: var(--gi-maroon);
}

.gi-hero__outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--gi-offwhite);
}

.gi-hero__intro {
	max-width: 24rem;
	margin-bottom: 2rem;
	font-family: var(--gi-font-body);
	font-size: 0.95rem;
	line-height: 1.625;
	color: var(--gi-silver);
}

/* Buttons */

.gi-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

.gi-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.875rem 1.75rem;
	font-family: var(--gi-font-body);
	font-size: 0.875rem;
	text-decoration: none;
	transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.gi-hero__btn--primary {
	background-color: var(--gi-maroon);
	color: #fff;
	font-weight: 700;
}

.gi-hero__btn--primary:hover,
.gi-hero__btn--primary:focus-visible {
	opacity: 0.9;
	color: #fff;
}

.gi-hero__arrow {
	transition: transform 0.2s;
}

.gi-hero__btn--primary:hover .gi-hero__arrow {
	transform: translateX(4px);
}

.gi-hero__btn--ghost {
	gap: 0.5rem;
	border: 1px solid color-mix(in srgb, var(--gi-graphite) 38%, transparent);
	color: var(--gi-silver);
	font-weight: 600;
}

.gi-hero__btn--ghost:hover,
.gi-hero__btn--ghost:focus-visible {
	border-color: var(--gi-silver);
	color: var(--gi-offwhite);
}

/* Availability note */

.gi-hero__availability {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gi-hero__availability p {
	font-family: var(--gi-font-mono);
	font-size: 11px;
	letter-spacing: 0.025em;
	color: var(--gi-graphite);
}

.gi-hero__dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 9999px;
	background-color: var(--gi-maroon);
	flex-shrink: 0;
	animation: gi-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gi-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.5; }
}

/* ─── Stat strip ──────────────────────────────────────────────────── */

.gi-hero__stats {
	flex-shrink: 0;
	border-top: 1px solid var(--gi-hairline);
	background-color: var(--gi-stat-bg);
}

/* 1px gap over a hairline background draws the dividers — works for any
   number of stats, unlike per-cell borders. */
.gi-hero__stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background-color: var(--gi-hairline);
}

.gi-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 2rem 1.75rem;
	background-color: var(--gi-stat-bg);
}

.gi-hero__stat-value {
	font-family: var(--gi-font-mono);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--gi-offwhite);
}

.gi-hero__stat-label {
	font-family: var(--gi-font-body);
	font-size: 0.75rem;
	color: var(--gi-graphite);
}

/* ─── Desktop ─────────────────────────────────────────────────────── */

@media (min-width: 768px) {

	.gi-hero__reel {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		/* Keeps the original 15% overlap behind the clipped panel edge. */
		width: calc(115% - var(--gi-hero-panel-w));
		z-index: 1;
	}

	/* The concave clip-path is applied per instance from the widget markup. */
	.gi-hero__panel {
		position: absolute;
		inset: 0;
		right: auto;
		width: var(--gi-hero-panel-w);
		z-index: 2;
	}

	.gi-hero__strip {
		padding: 6rem 5rem 0.875rem 3rem;
	}

	.gi-hero__body {
		padding: 3.5rem 5rem 3.5rem 3rem;
	}

	.gi-hero__stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.gi-hero__stat-value {
		font-size: 2.25rem;
	}
}

@media (min-width: 640px) {
	.gi-hero__strip-right {
		display: block;
	}
}

/* ─── Accessibility ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.gi-hero__dot {
		animation: none;
	}
	.gi-hero__arrow,
	.gi-hero__btn {
		transition: none;
	}
}
