/* Composters Online — homepage hero (slider / video) */

.gt-hero {
	position: relative;
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	color: var(--wbo-navy, #25234d);
}

.gt-hero__track {
	position: relative;
	width: 100%;
	aspect-ratio: var(--gt-hero-ratio, 3000 / 964);
	overflow: hidden;
	background: var(--wbo-surface, #f4f6f5);
}

.gt-hero__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s var(--wbo-ease, ease), visibility 0s linear .7s;
}

.gt-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity .7s var(--wbo-ease, ease), visibility 0s;
}

.gt-hero__slide:focus-visible {
	outline: 3px solid var(--wbo-teal, #5ea699);
	outline-offset: -3px;
}

.gt-hero picture,
.gt-hero__media {
	display: block;
	width: 100%;
	height: 100%;
}

.gt-hero__media {
	object-fit: cover;
	object-position: var(--gt-hero-focus, center center);
	max-width: none;
}

/* Arrows */
.gt-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	color: var(--wbo-navy, #25234d);
	box-shadow: 0 2px 10px rgba(37, 35, 77, .18);
	cursor: pointer;
	opacity: .9;
	transition: opacity .2s, transform .2s;
}

.gt-hero__arrow--prev { left: clamp(8px, 1.5vw, 20px); }
.gt-hero__arrow--next { right: clamp(8px, 1.5vw, 20px); }

.gt-hero__arrow:hover { opacity: 1; transform: scale(1.06); }

.gt-hero__arrow:focus-visible,
.gt-hero__dot:focus-visible,
.gt-hero__pause:focus-visible {
	outline: 3px solid var(--wbo-teal, #5ea699);
	outline-offset: 2px;
}

/* Dots + pause (below the image, as before) */
.gt-hero__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 14px 0 4px;
}

.gt-hero__dots {
	display: flex;
	gap: 4px;
}

.gt-hero__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.gt-hero__dot::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--wbo-line-strong, #cfd5d3);
	transition: background .2s, transform .2s;
}

.gt-hero__dot:hover::before { background: var(--wbo-muted, #5f6377); }

.gt-hero__dot.is-active::before {
	background: var(--wbo-navy, #25234d);
	transform: scale(1.15);
}

.gt-hero__pause {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--wbo-line-strong, #cfd5d3);
	border-radius: 50%;
	background: #fff;
	color: var(--wbo-navy, #25234d);
	cursor: pointer;
}

.gt-hero__pause svg { width: 14px; height: 14px; }

.gt-hero__ico-play { display: none; }
.gt-hero.is-paused .gt-hero__ico-play { display: block; }
.gt-hero.is-paused .gt-hero__ico-pause { display: none; }

/* Video: pause button sits on the video */
.gt-hero--video .gt-hero__pause {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(255, 255, 255, .88);
}

/* Mobile */
@media (max-width: 767px) {
	.gt-hero--slider .gt-hero__track {
		aspect-ratio: var(--gt-hero-ratio-m, var(--gt-hero-ratio, 3000 / 964));
	}

	.gt-hero__arrow {
		width: 34px;
		height: 34px;
		margin-top: -17px;
	}

	.gt-hero__arrow svg { width: 18px; height: 18px; }

	.gt-hero__controls { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.gt-hero__slide,
	.gt-hero__slide.is-active { transition: none; }
}
