/**
 * Homepage hero rotator — fill the first screen below the chrome so the
 * call-to-action stays above the fold without vertical scrolling.
 */

:root {
	--nc-hero-chrome: 6.375rem; /* topbar + header (small / tablet) */
}

@media (min-width: 1024px) {
	:root {
		--nc-hero-chrome: 7.125rem; /* 36px topbar + 77px header */
	}
}

.nc-hero-banner.nc-hero-rotator {
	display: block;
	width: 100%;
	height: calc(100vh - var(--nc-hero-chrome));
	height: calc(100svh - var(--nc-hero-chrome));
	max-height: calc(100vh - var(--nc-hero-chrome));
	max-height: calc(100svh - var(--nc-hero-chrome));
	min-height: 0;
	overflow: hidden;
}

.nc-hero-slides {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
}

.nc-hero-slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 0;
	align-items: flex-end;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.7s ease, visibility 0.7s ease;
}

.nc-hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nc-hero-slide .nc-hero-banner-media {
	position: absolute;
	inset: 0;
}

.nc-hero-slide .nc-hero-banner-media picture,
.nc-hero-slide .nc-hero-banner-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.nc-hero-slide .nc-hero-banner-inner {
	position: relative;
	z-index: 10;
	width: 100%;
	padding-top: 1.25rem;
	padding-bottom: 2.25rem;
}

@media (min-width: 640px) {
	.nc-hero-slide .nc-hero-banner-inner {
		padding-top: 1.5rem;
		padding-bottom: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.nc-hero-slide .nc-hero-banner-inner {
		padding-top: 2rem;
		padding-bottom: 2.75rem;
	}
}

.nc-hero-rotator .nc-hero-actions {
	margin-top: 1.25rem;
}

@media (max-height: 700px) {
	.nc-hero-slide .nc-hero-banner-inner {
		padding-top: 1rem;
		padding-bottom: 1.75rem;
	}

	.nc-hero-rotator .nc-hero-actions {
		margin-top: 0.9rem;
	}
}

.nc-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 1.15rem;
	z-index: 20;
	display: flex;
	gap: 0.45rem;
	transform: translateX(-50%);
}

.nc-hero-dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: hsla(0, 0%, 100%, 0.45);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.nc-hero-dot.is-active {
	width: 1.35rem;
	background: #fff;
}

.nc-hero-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

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