/* Hero — full-bleed photographic hero with slider UI (design.md §hero).
   The nav sits transparently over the top of this section: pull the hero up
   under the 120px header. `body .wp-site-blocks > .tt-hero` outranks the global
   section-margin reset in style.css without !important (system.md §7). */

body .wp-site-blocks > .tt-hero {
	margin-block-start: -120px;
}

.tt-hero {
	position: relative;
	z-index: 1;
	min-height: 900px;
	overflow: hidden;
}

/* Slides: stacked in normal flow by default (no-JS / editor — all editable).
   When hero.js adds .tt-hero--slider, slides overlay and cross-fade. */
.tt-hero__slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 900px;
	overflow: hidden;
}

/* Kill WP block-gap: WordPress adds `margin-block-start: 24px` to every slide
   except the first (`.is-layout-flow > * + *`). Because the slides are
   absolutely positioned with top:0, that margin shifts slides 2+ DOWN 24px and
   exposes the white page behind the notif bar. !important is warranted here to
   beat WP's generated layout rule (system.md §7). */
.tt-hero__slides > .tt-hero__slide {
	margin-block: 0 !important;
}

.tt-hero--slider .tt-hero__slides {
	position: absolute;
	inset: 0;
	touch-action: pan-y; /* let vertical scroll through; capture horizontal drag */
	cursor: grab;
	user-select: none;
}

.tt-hero--slider .tt-hero__slides.is-dragging {
	cursor: grabbing;
}

.tt-hero--slider .tt-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}

.tt-hero--slider .tt-hero__slide--active {
	opacity: 1;
	visibility: visible;
}

/* Background photo + gradient overlay */
.tt-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none; /* decorative — let drags pass to the slider track */
}

.tt-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tt-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 85%, #000 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Content */
.tt-hero__content {
	position: relative;
	z-index: 2;
	width: 580px;
	max-width: 580px;
	margin-left: 76px;
}

.tt-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 40px;
	height: 1px;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-hero__title {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 600 !important;
	font-size: 90px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff !important;
}

.tt-hero__body {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--barlow, "Barlow", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--off-white, #dadada) !important;
}

.tt-hero__cta {
	font-size: 18px;
	letter-spacing: 0.9px;
	padding: 12px 16px;
}

/* Slider UI (bottom band) — lifted 60px so the bars clear the ticker below. */
.tt-hero__slider-ui {
	position: absolute;
	inset-inline: 0;
	bottom: 60px;
	z-index: 2;
	height: 90px;
}

.tt-hero__bars {
	position: absolute;
	left: 64px;
	bottom: 0;
	display: flex;
	gap: 15px;
}

.tt-hero__bar {
	width: 100px;
	height: 3px;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--grey, #73736f);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tt-hero__bar--active {
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.tt-hero__scroll-line {
	width: 1px;
	height: 55px;
	background: linear-gradient(to bottom, rgba(116, 116, 116, 0) 0%, #747474 40%);
}

.tt-hero__scroll-label {
	font-family: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", sans-serif);
	font-size: 12px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #fff;
}

.tt-hero__counter {
	position: absolute;
	right: 64px;
	bottom: 0;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 1.8px;
	color: var(--wp--preset--color--grey, #73736f);
}

.tt-hero__counter-current {
	font-size: 20px;
	color: var(--wp--preset--color--red, #cf2026);
}

/* ---- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
	/* 712, not the frame's 655: the design's slider UI overflows the Hero frame
	   (bars land at 674..680) and there is a further ~32px below them before the
	   ticker — 91 + 712 = 803 is exactly where the design's ticker starts. At
	   655 the UI was crammed up level with the SHOP NOW button. */
	.tt-hero,
	.tt-hero__slide {
		min-height: 712px;
	}

	/* Bars + counter 32px off the bottom (the design's clearance before the
	   ticker); the SCROLL label rides above them so its line starts clear of the
	   button (design: line 566..631, label 643..650, bars 674..680). */
	.tt-hero__slider-ui {
		bottom: 32px;
	}

	.tt-hero__scroll {
		bottom: 24px;
	}

	/* Top-aligned rather than centred here. The content block is taller than the
	   design's, so centring it in the 655px slide pulled its top up under the
	   120px nav — the eyebrow landed at 121px instead of the design's 151px.
	   Anchoring from the top fixes the clearance regardless of block height. */
	.tt-hero__slide {
		align-items: flex-start;
	}

	.tt-hero__content {
		width: auto;
		max-width: 416px;
		margin-block: 0 !important;   /* WP block-gap adds 24px here (system.md §7) */
		margin-inline: auto;
		padding-inline: 20px;
		padding-top: 146px;           /* eyebrow glyphs land on the design's 151px */
		padding-bottom: 155px;        /* reserves the slider UI band below the copy */
		text-align: center;
	}

	/* WP block-gap puts `margin-block-start: 24px` on the title, body and CTA
	   (they are real blocks inside the content group), stacking on top of our
	   own margins and making the block ~40px taller than the design's — which
	   pushed SHOP NOW into the SCROLL indicator once the content was
	   top-aligned. Zero the block-gap and state the design's gaps directly. */
	.tt-hero__content > * {
		margin-block-start: 0 !important;
	}

	.tt-hero__eyebrow {
		justify-content: center;
		margin-bottom: 8px;
	}

	.tt-hero__title {
		font-size: 70px;
		margin-bottom: 13px;
	}

	/* Let the copy drive the hero's height here. In slider mode every slide is
	   `position: absolute; inset: 0`, so the hero is stuck at its min-height and
	   taller copy cannot push it — below ~390px the title wraps to four lines and
	   SHOP NOW ran straight into the bottom-anchored SCROLL indicator. Keeping
	   the first slide in flow gives the hero a real content height (it is
	   invisible when inactive but still occupies space, and the active slide
	   overlays it), so the whole slider UI moves down with the copy. */
	.tt-hero--slider .tt-hero__slides {
		position: relative;
		inset: auto;
	}

	.tt-hero--slider .tt-hero__slide:first-child {
		position: relative;
	}

	.tt-hero__body {
		margin-bottom: 16px;
	}

	.tt-hero__bar {
		width: 30.6px;
	}

	.tt-hero__bars {
		left: 30px;
	}

	.tt-hero__counter {
		right: 30px;
		font-size: 10px;
	}

	.tt-hero__counter-current {
		font-size: 16px;
	}
}
