/* ==========================================================================
   HOMEPAGE CAROUSELS — promos and events
   One slide at a time: artwork one side, the details the other. Mobile stacks
   image over details, matching the single-event page.
   ========================================================================== */

.hdc,
.hdc *,
.hdc *::before,
.hdc *::after {
	box-sizing: border-box;
}

.hdc {
	--hdc-gutter: clamp(1.25rem, 5vw, 3rem);
	background: var(--hd-navy, #061B2F);
	position: relative;
}

/* ------------------------------------------------------------ section head */

/* Wildhorse Gold band, full-bleed, with its text on the page rail. Navy ink
   rather than white: navy measures 5.14:1 on this ground so the small eyebrow
   clears AA too, where white would only reach 3.39:1 — large text only. */
.hdc__head {
	background: var(--hd-gold, #AC8458);
	margin: 0;
	max-width: none;
	padding: clamp(2rem, 5vw, 3rem)
		max(var(--hdc-gutter), calc((100% - var(--hd-maxw, 1180px)) / 2 + var(--hdc-gutter)));
}

.hdc__head-eyebrow {
	color: var(--hd-navy, #061B2F);
	font-family: var(--hd-font-body, 'Roboto', sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	margin: 0 0 0.6rem;
	max-width: none;
	text-transform: uppercase;
}

.hdc__head-title {
	color: var(--hd-navy, #061B2F);
	font-family: var(--hd-font-display, 'Bebas Neue', sans-serif);
	font-size: clamp(2.25rem, 6vw, 4rem);
	letter-spacing: 0.01em;
	line-height: 0.96;
	margin: 0;
	text-transform: uppercase;
}

.hdc__head-link {
	color: var(--hd-navy, #061B2F);
	display: inline-block;
	font-family: var(--hd-font-display, 'Bebas Neue', sans-serif);
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	margin-top: 0.85rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s ease;
}

.hdc__head-link:hover,
.hdc__head-link:focus-visible {
	color: var(--hd-ink, #0a1722);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.hdc__head-link:focus-visible {
	outline: 2px solid var(--hd-navy, #061B2F);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- viewport */

.hdc__viewport {
	overflow: hidden;
	position: relative;
}

.hdc__track {
	display: flex;
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}

/* Before the script runs, only the first slide should be visible — otherwise
   every slide stacks up the page on a slow connection. */
.hdc:not(.is-ready) .hdc__slide:not(:first-child) {
	display: none;
}

.hdc__slide {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: 1fr;
	min-width: 100%;
}

/* ------------------------------------------------------------------- media */

.hdc__media {
	align-items: center;
	background: var(--hd-ink, #0a1722);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

/* Absolutely positioned so the photograph's own proportions never dictate the
   slide height. The promo images run 3:2, 1:1 and 4:5 — left in flow, the
   portrait one alone made the hero 900px tall. */
.hdc__img {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
}

.hdc__mark {
	display: block;
	height: auto;
	opacity: 0.9;
	padding: clamp(2rem, 8vw, 4rem);
	width: clamp(140px, 45%, 240px);
}

/* ------------------------------------------------------------------- panel */

.hdc__panel {
	align-items: flex-start;
	background: var(--hd-navy-2, #0b2944);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.75rem, 5vw, 3.5rem) var(--hdc-gutter);
}

.hdc__eyebrow {
	color: var(--hd-gold-bright, #c79e6e);
	font-family: var(--hd-font-body, 'Roboto', sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	margin: 0 0 0.75rem;
	max-width: none;
	text-transform: uppercase;
}

.hdc__title {
	color: var(--hd-white, #fff);
	font-family: var(--hd-font-display, 'Bebas Neue', sans-serif);
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	letter-spacing: 0.02em;
	line-height: 0.98;
	margin: 0 0 0.85rem;
	max-width: 16ch;
	text-transform: uppercase;
}

.hdc__title:focus-visible {
	outline: 2px solid var(--hd-gold-bright, #c79e6e);
	outline-offset: 4px;
}

.hdc__meta {
	color: var(--hd-gold-bright, #c79e6e);
	font-family: var(--hd-font-body, 'Roboto', sans-serif);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 0.9rem;
	max-width: none;
	text-transform: uppercase;
}

.hdc__note {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.0625rem;
	line-height: 1.7;
	margin: 0 0 1.75rem;
	max-width: 46ch;
}

.hdc__cta {
	flex: 0 0 auto;
}

/* ------------------------------------------------------------ edge arrows */

/* No control bar — just an arrow on each edge, sitting over the slide. Same
   gold disc and Bebas glyph as the beer carousel, so every slider on the site
   reads as one device. */
.hdc__edge {
	align-items: center;
	background: var(--hd-gold, #AC8458);
	border: 0;
	border-radius: 50%;
	color: var(--hd-navy, #061B2F);
	cursor: pointer;
	display: flex;
	font-family: var(--hd-font-display, 'Bebas Neue', sans-serif);
	font-size: 1.6rem;
	height: 3rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background 0.25s ease;
	width: 3rem;
	z-index: 2;
}

.hdc__edge--prev {
	left: clamp(0.75rem, 1.5vw, 1.25rem);
}

.hdc__edge--next {
	right: clamp(0.75rem, 1.5vw, 1.25rem);
}

.hdc__edge:hover,
.hdc__edge:focus-visible {
	background: var(--hd-gold-bright, #c79e6e);
}

.hdc__edge:focus-visible {
	outline: 2px solid var(--hd-paper, #F5F3F0);
	outline-offset: 3px;
}

/* ------------------------------------------------------------- breakpoints */

@media (min-width: 901px) {
	.hdc__slide {
		grid-template-columns: 1fr 1fr;
		min-height: min(68vh, 600px);
	}

	/* Promos run shorter than the events band — an offer, not a feature. */
	.hdc--promos .hdc__slide {
		min-height: min(56vh, 480px);
	}

	.hdc--promos .hdc__panel {
		padding: clamp(2rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
	}

	.hdc--promos .hdc__title {
		font-size: clamp(2rem, 4.2vw, 3rem);
	}

	.hdc__panel {
		padding: clamp(2.5rem, 4vw, 4.5rem) clamp(2rem, 4vw, 4rem);
	}
}

@media (max-width: 900px) {
	.hdc__media {
		aspect-ratio: 4 / 3;
	}

	.hdc--promos .hdc__media {
		aspect-ratio: 16 / 10;
	}

	/* Stacked: keep the arrows on the artwork, not the seam below it. The
	   section is full-bleed, so the image is 100vw wide — 75vw tall at 4:3,
	   62.5vw at the promos' 16:10. */
	.hdc__edge {
		top: 37.5vw;
	}

	.hdc--promos .hdc__edge {
		top: 31.25vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdc__track {
		transition: none;
	}
}

/* ------------------------------------------------- events: duotone artwork */

/* Same two-ink treatment as the Events wall (style.css, .hev-art): gold sets
   the highlights, navy lifts the shadows, and hovering the slide brings the
   photograph back to full colour. Slides without a photo keep the logo plate. */
.hdc--events .hdc__media:has(.hdc__img) {
	background: var(--hd-gold, #AC8458);
	isolation: isolate;
}

.hdc--events .hdc__img {
	filter: grayscale(1) contrast(1.24) brightness(0.84);
	mix-blend-mode: multiply;
	object-position: 58% center;
	transition: filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.hdc--events .hdc__media:has(.hdc__img)::after {
	background: var(--hd-navy, #061B2F);
	content: "";
	inset: 0;
	mix-blend-mode: screen;
	pointer-events: none;
	position: absolute;
}

.hdc--events .hdc__slide:hover .hdc__img,
.hdc--events .hdc__slide:focus-within .hdc__img {
	filter: grayscale(0) contrast(1.02) brightness(1.02);
}

@media (prefers-reduced-motion: reduce) {
	.hdc--events .hdc__img {
		transition: none;
	}
}

/* Client photo framing: keep the skillet and prime-rib plate in view. */
.hdc--promos .hdc__img--promo-190{object-position:center 81%;}
.hdc--promos .hdc__img--promo-191{object-position:center 75%;}
.hdc--promos .hdc__img--promo-189{object-position:center 60%;}
