/* ═══════════════════════════════════════════════════════════
   TAC HUB 16 — Hero Section
   Layout: TWO COLUMNS — left dark content panel, right image gallery
   Reference: Approved hero screenshot
   ═══════════════════════════════════════════════════════════ */

/* ─── Section wrapper ─────────────────────────────────────── */
.t16-section--hero {
	padding-block: 0;
	background: transparent;
	width: 100%;
	overflow: hidden;
}

/* ─── Outer hero wrapper ─────────────────────────────────── */
.t16-hero {
	display: flex;
	flex-direction: column;
	font-family: var(--t16-font-body);
}

/* ─── Two-column grid ─────────────────────────────────────── */
/*
 * Left  (~44%) : solid dark background, text content
 * Right (~56%) : image gallery slider
 */
.t16-hero__layout {
	display: grid;
	grid-template-columns: 50fr 50fr;
	min-height: clamp(500px, 70vh, 760px);
}

/* ═══ LEFT CONTENT PANEL ════════════════════════════════════ */

.t16-hero__content {
	position: relative;
	background: transparent;
	display: flex;
	align-items: center;
	/* Bleed a gradient onto the right edge so the boundary between the
	   dark panel and the image blends naturally (matches reference). */
	z-index: 1;
}

/* Soft gradient bleed from left panel into the image panel */
.t16-hero__content::after {
	content: '';
	position: absolute;
	top: 0;
	right: -180px;
	bottom: 0;
	width: 181px; /* 1px extra to ensure no gap */
	background: linear-gradient( to right, #0a0a0a 0%, rgba(10,10,10,0.85) 30%, rgba(10,10,10,0.4) 70%, transparent 100% );
	pointer-events: none;
	z-index: 2;
}

.t16-hero__content-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp( 48px, 6vh, 80px ) clamp( 28px, 5vw, 72px );
	display: flex;
	flex-direction: column;
	gap: calc( var( --t16-spacing-unit ) * 2.5 );
}

/* ─── Eyebrow ─────────────────────────────────────────────── */
.t16-hero__eyebrow {
	margin: 0;
	font-family: var( --t16-font-body );
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var( --t16-color-primary );
}

/* ─── Heading ─────────────────────────────────────────────── */
.t16-hero__heading {
	margin: 0;
	font-family: var( --t16-font-heading );
	font-size: clamp( 2.25rem, 3.2vw + 1rem, 3.75rem );
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #fff;
	max-width: 100%;
}

.t16-hero__highlight {
	color: var( --t16-color-primary );
}

/* ─── Description ─────────────────────────────────────────── */
.t16-hero__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.75 );
	max-width: 46ch;
}

/* ─── CTA row ─────────────────────────────────────────────── */
.t16-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc( var( --t16-spacing-unit ) * 1.5 );
}

/* ─── Button overrides ────────────────────────────────────── */
.t16-section--hero .t16-btn {
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 15px 28px;
	border-radius: 2px;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.t16-section--hero .t16-btn:hover,
.t16-section--hero .t16-btn:focus-visible {
	opacity: 1;
	transform: translateY( -1px );
}

.t16-section--hero .t16-btn:focus-visible {
	outline: 2px solid var( --t16-color-primary );
	outline-offset: 3px;
}

.t16-section--hero .t16-btn--primary {
	background: var( --t16-color-primary );
	color: #000;
	border-color: var( --t16-color-primary );
}

.t16-section--hero .t16-btn--primary:hover {
	background: #c4f500;
	border-color: #c4f500;
}

.t16-section--hero .t16-btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba( 255, 255, 255, 0.5 );
}

.t16-section--hero .t16-btn--outline:hover {
	border-color: rgba( 255, 255, 255, 0.9 );
}

/* ═══ RIGHT GALLERY PANEL ════════════════════════════════════ */

.t16-hero__gallery {
	position: relative;
	overflow: hidden;
	/* Tactical dark gradient — visible before images load or when no image set */
	background: linear-gradient( 135deg, #0c0c0c 0%, #181818 50%, #0d160a 100% );
	isolation: isolate;
}

/* Slide stack */
.t16-hero__slides {
	position: absolute;
	inset: 0;
}

.t16-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s cubic-bezier( 0.4, 0, 0.2, 1 );
}

.t16-hero__slide.is-active {
	opacity: 1;
}

/* Eager-loaded first image (<img> element) */
.t16-hero__slide-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
}

/* Deferred images (JS-populated background) */
.t16-hero__slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat;
}

/* ─── Dot navigation ──────────────────────────────────────── */
.t16-hero__dots {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX( -50% );
	display: flex;
	gap: 7px;
	z-index: 2;
}

.t16-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.35 );
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}

.t16-hero__dot.is-active {
	background: var( --t16-color-primary );
	transform: scale( 1.4 );
}

.t16-hero__dot:hover {
	background: rgba( 255, 255, 255, 0.6 );
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media ( prefers-reduced-motion: reduce ) {
	.t16-hero__slide {
		transition: none;
	}
}

/* ─── Admin empty notice ──────────────────────────────────── */
.t16-hero-empty-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	background: #0a0a0a;
	color: rgba( 255, 255, 255, 0.35 );
	font-size: 0.875rem;
	font-family: var( --t16-font-body );
	padding: 24px;
	text-align: center;
}

/* ═══ BENEFITS STRIP ═════════════════════════════════════════ */

.t16-hero__benefits {
	background: transparent;
	border-top: 1px solid rgba( 255, 255, 255, 0.07 );
}

.t16-hero__benefits-inner {
	display: flex;
	align-items: stretch;
	max-width: var( --t16-container-width );
	margin-inline: auto;
	padding-inline: clamp( 16px, 3vw, 56px );
}

.t16-hero__benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	padding: 22px clamp( 10px, 1.8vw, 24px );
	min-height: 92px;
}

.t16-hero__benefit-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	color: var( --t16-color-primary );
	display: flex;
	align-items: center;
	justify-content: center;
}

.t16-hero__benefit-icon svg {
	width: 38px;
	height: 38px;
}

.t16-hero__benefit-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.t16-hero__benefit-title {
	font-family: var( --t16-font-body );
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.3;
}

.t16-hero__benefit-sub {
	font-family: var( --t16-font-body );
	font-size: 0.75rem;
	color: rgba( 255, 255, 255, 0.65 );
	line-height: 1.45;
}

.t16-hero__benefit-divider {
	width: 1px;
	background: rgba( 255, 255, 255, 0.08 );
	align-self: stretch;
	margin-block: 18px;
	flex-shrink: 0;
}

/* ═══ RESPONSIVE ══════════════════════════════════════════════ */

/* Tablet: narrow the left content column */
@media ( max-width: 1100px ) {
	.t16-hero__layout {
		grid-template-columns: 50fr 50fr;
		min-height: clamp( 440px, 65vh, 680px );
	}

	.t16-hero__heading {
		font-size: clamp( 2rem, 3vw + 0.75rem, 3.25rem );
	}
}

/* Mobile: stack vertically — image on top, content below */
@media ( max-width: 767px ) {
	.t16-hero__layout {
		grid-template-columns: 1fr;
		grid-template-rows: 56vw auto;
		min-height: unset;
	}

	/* Image panel goes first (top) on mobile */
	.t16-hero__gallery {
		grid-row: 1;
		min-height: 56vw;
	}

	.t16-hero__content {
		grid-row: 2;
	}

	/* Remove bleed gradient on mobile (no longer needed) */
	.t16-hero__content::after {
		display: none;
	}

	.t16-hero__content-inner {
		padding: 32px 20px;
		gap: calc( var( --t16-spacing-unit ) * 2 );
	}

	.t16-hero__heading {
		font-size: clamp( 1.875rem, 6.5vw + 0.25rem, 2.75rem );
	}

	.t16-hero__description {
		max-width: 100%;
	}

	.t16-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.t16-section--hero .t16-btn {
		width: 100%;
		justify-content: center;
	}

	/* Benefits: 2-column on tablet-ish mobile */
	.t16-hero__benefits-inner {
		flex-wrap: wrap;
	}

	.t16-hero__benefit {
		flex: 1 1 44%;
		min-width: 180px;
	}

	.t16-hero__benefit-divider {
		display: none;
	}
}

@media ( max-width: 480px ) {
	.t16-hero__benefit {
		flex: 1 1 100%;
		border-top: 1px solid rgba( 255, 255, 255, 0.06 );
	}

	.t16-hero__benefit:first-child {
		border-top: none;
	}
}
