/**
 * Out-N-Out Hero Slider. Token-driven. Handle: oon-widget-hero-slider.
 * Slides are stacked and cross-faded via opacity (JS toggles .is-active).
 */
.oon-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	/* Light neutral base so no dark frame shows before the (light) image paints. */
	background: var(--oon-hero-bg, #eceae7);
}

.oon-hero__track {
	position: relative;
	display: grid; /* stack all slides in one cell */
}

.oon-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	width: 100%;
	/* Height follows the image composition (live desktop 1920x900). Overridable
	   per-device via the widget's Aspect Ratio control; grows if content is taller. */
	aspect-ratio: 64 / 30;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--oon-transition, 0.25s ease);
}

.oon-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Single slide (no JS) always shows. */
.oon-hero__track > .oon-hero__slide:only-child {
	opacity: 1;
	visibility: visible;
}

.oon-hero__media,
.oon-hero__overlay {
	position: absolute;
	inset: 0;
}

.oon-hero__img,
.oon-hero__img img {
	display: block;
	width: 100%;
	height: 100%;
}

.oon-hero__img img {
	object-fit: cover;
	object-position: var(--oon-obj-x, 50%) var(--oon-obj-y, 50%);
}

/* Responsive image swap (verified breakpoint 768px). */
.oon-hero__img--mobile {
	display: none;
}

@media (max-width: 768px) {
	.oon-hero__slide {
		aspect-ratio: 5 / 4; /* live mobile composition 600x480 */
	}
	.oon-hero__img--desktop {
		display: none;
	}
	.oon-hero__img--mobile {
		display: block;
	}
}

/* The content sits in a wide container whose gutter matches the site header, so
   the text block aligns with the live hero's left content boundary (not the
   narrower 1170 body container). */
.oon-hero .oon-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1660px;
	margin-inline: auto;
	padding-inline: clamp(20px, 2vw, 26px);
	display: flex;
	flex-direction: column;
	justify-content: center; /* vertical */
	align-items: flex-start; /* horizontal */
}

.oon-hero__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-family: var(--oon-font-body);
	font-weight: var(--oon-fw-regular, 400);
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	color: #33302b; /* live hero text is dark on the light composition; no forced uppercase */
}

.oon-hero__heading {
	margin: 0 0 16px;
	font-family: var(--oon-font-heading);
	font-weight: var(--oon-fw-heading, 500);
	line-height: 1.15;
	color: #1a1a1a;
	font-size: clamp(2rem, 5vw, 3.25rem);
}

.oon-hero__desc {
	margin-bottom: 24px;
	font-family: var(--oon-font-body);
	line-height: var(--oon-body-line-height, 1.6);
	color: #33302b;
}

.oon-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.oon-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 32px;
	font-family: var(--oon-font-body);
	font-weight: var(--oon-fw-medium, 500);
	line-height: var(--oon-btn-line-height, 26px);
	border-radius: var(--oon-btn-radius, 78px);
	border: var(--oon-btn-border-width, 1px) solid transparent;
	text-decoration: none;
	transition: background-color var(--oon-transition, 0.25s ease), color var(--oon-transition, 0.25s ease), border-color var(--oon-transition, 0.25s ease);
}

/* Filled variant (dark). */
.oon-hero__button--filled {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}
.oon-hero__button--filled:hover,
.oon-hero__button--filled:focus {
	background-color: var(--oon-color-accent, #9a84c8);
	border-color: var(--oon-color-accent, #9a84c8);
}

/* Outline variant — the live hero CTA: dark border/text, fills dark on hover. */
.oon-hero__button--outline {
	background-color: transparent;
	border-color: #1a1a1a;
	color: #1a1a1a;
}
.oon-hero__button--outline:hover,
.oon-hero__button--outline:focus {
	background-color: #1a1a1a;
	color: #fff;
}

/* ---- Arrows (live style: bare dark chevrons, no circular button) ---- */
.oon-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #222222;
	background: transparent;
	border: none;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity var(--oon-transition, 0.25s ease), color var(--oon-transition, 0.25s ease);
}

.oon-hero__arrow svg {
	width: 34px;
	height: 34px;
	display: block;
}

.oon-hero__arrow:hover,
.oon-hero__arrow:focus {
	opacity: 1;
	background: transparent;
	color: #000;
}

.oon-hero__arrow--prev { left: 10px; }
.oon-hero__arrow--next { right: 10px; }

/* ---- Dots ---- */
.oon-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.oon-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: var(--oon-radius-full, 9999px);
	background: rgba(26, 26, 26, 0.3); /* dark dots for the light hero */
	cursor: pointer;
	transition: background-color var(--oon-transition, 0.25s ease), transform var(--oon-transition, 0.25s ease);
}

.oon-hero__dot.is-active {
	background: #1a1a1a;
	transform: scale(1.25);
}

.oon-hero__arrow:focus-visible,
.oon-hero__dot:focus-visible,
.oon-hero__button:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.oon-hero__arrow { display: none; } /* rely on dots/swipe on small screens */
}
