/* ============================================================
   Toro Hero Slider — frontend styles
   Extremely light: no framework, no reset, scoped selectors only.
   ============================================================ */

.toro-hero-slider {
	--toro-navy: #0A0E19;
	--toro-steel: #7C8798;
	--toro-gold: #F5C800;

	position: relative;
	width: 100%;           /* fills whatever section/column it's placed in */
	max-width: none;       /* explicitly no width cap */
	aspect-ratio: 2800 / 791;
	overflow: hidden;
	background: var(--toro-navy);
	box-sizing: border-box;
}
.toro-hero-slider *,
.toro-hero-slider *::before,
.toro-hero-slider *::after {
	box-sizing: inherit;
}

/* Optional fixed-height mode, set via the shortcode's height="" attribute */
.toro-hero-slider--fixed-height {
	aspect-ratio: unset;
	height: var(--toro-slider-height, 60vh);
}

/* Optional width cap, set via the shortcode's max_width="" attribute.
   Centers the slider within its parent instead of always filling it. */
.toro-hero-slider--capped {
	max-width: var(--toro-slider-max-width, none);
	margin-left: auto;
	margin-right: auto;
}

/* Mobile height. Default: full screen height. 100svh is the visible
   screen with the browser's address bar showing, so the bottom of the
   slider (buttons, dots) isn't hidden behind it on iPhone/Android;
   100vh is the fallback for older browsers. The desktop height=""
   attribute does not affect mobile; use mobile_height="" instead. */
@media (max-width: 900px) {
	.toro-hero-slider,
	.toro-hero-slider--fixed-height {
		aspect-ratio: unset;
		height: 100vh;
		height: 100svh;
	}
	/* mobile_height="70vh", "600px", etc. */
	.toro-hero-slider--mobile-height {
		height: var(--toro-slider-mobile-height);
	}
	/* mobile_height="auto": the previous portrait shape (3 : 4.4),
	   height follows the screen width. */
	.toro-hero-slider--mobile-ratio {
		aspect-ratio: 3 / 4.4;
		height: auto;
	}
}

.toro-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease;
}
.toro-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.toro-slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 7s ease-out;
	margin: 0;
	display: block;
}
.toro-slide.active .toro-slide-img {
	transform: scale(1);
}

.toro-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(10,14,25,0.82) 0%, rgba(10,14,25,0.45) 38%, rgba(10,14,25,0.05) 62%);
	pointer-events: none;
}
@media (max-width: 900px) {
	.toro-slide::after {
		background: linear-gradient(0deg, rgba(10,14,25,0.9) 20%, rgba(10,14,25,0.25) 55%, rgba(10,14,25,0.05) 80%);
	}
}
@media (max-width: 900px) {
    .toro-slide-img {
        object-fit: contain;
        width: 100%;
        object-position: center top;
        height: 100%;
        transform: none !important;
    }
	.toro-slide::after {
        background: linear-gradient(to bottom, transparent 30%, rgb(8 13 25) 43%, #080d19 50%)
    }
}
.toro-slide-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	max-width: 1350px;
    margin: auto;
	display: flex;
	align-items: center;
	padding: 0 6%;
}
@media (max-width: 900px) {
	.toro-slide-content {
		align-items: flex-end;
		padding: 0 6% 8%;
	}
}

.toro-slide-text {
	max-width: min(var(--toro-slider-content-width, 560px), 50%);
	color: #FFFFFF;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.toro-slide-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--toro-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 16px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s ease .15s, transform .6s ease .15s;
}
.toro-slide-tag::before {
	content: "";
	width: 50px;
	height: 5px;
	background: var(--toro-gold);
}
.toro-slide.active .toro-slide-tag {
	opacity: 1;
	transform: translateY(0);
}

.toro-slide-headline {
	font-size: clamp(34px, 4.6vw, 64px);
	line-height: 0.98;
	font-weight: 800;
	text-transform: uppercase;
	color: #FFFFFF !important;
	margin: 0;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease .25s, transform .6s ease .25s;
}
.toro-slide.active .toro-slide-headline {
	opacity: 1;
	transform: translateY(0);
}
.toro-slide-headline span {
	display: block;
	color: var(--toro-gold);
}

.toro-slide-desc {
	margin: 16px 0 0;
	font-size: 18px !important;
	line-height: 1.6;
	color: #C7CCD6 !important;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.toro-slide.active .toro-slide-desc {
	opacity: 1;
	transform: translateY(0);
}

/* Wrapper for the primary + secondary buttons. Wraps onto two lines
   on narrow screens instead of overflowing. */
.toro-slide-ctas {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
}

.toro-slide-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--toro-gold);
	color: var(--toro-navy);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 28px;
	border-radius: 2px;
	box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease .45s, transform .6s ease .45s, box-shadow .15s ease, transform .15s ease;
}
.toro-slide.active .toro-slide-cta {
	opacity: 1;
}
.toro-slide.active .toro-slide-cta {
	transform: translateY(0);
}
.toro-slide-cta:hover {
	box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
	transform: translate(-2px,-2px);
}
/* Secondary button: outlined, transparent, no drop-shadow.
   Border is included in the padding so it's the same height as primary. */
.toro-slide-cta--secondary {
	background: transparent;
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
	padding: 13px 26px;
	box-shadow: none;
}
.toro-slide-cta--secondary:hover {
	background: transparent;
	color: #FFFFFF;
	box-shadow: none;
}

.toro-slide-cta svg {
	width: 14px;
	height: 14px;
	flex: none;
}
@media (max-width: 900px) {
	.toro-slide-cta {
		font-size: 12px;
		padding: 13px 20px;
		white-space: nowrap;
	}
	.toro-slide-cta--secondary {
		padding: 11px 18px;
	}
	.toro-slide-desc {
		font-size: 13.5px;
	}
	.toro-slide-text {
	max-width: min(var(--toro-slider-content-width, 560px), 90%);
	color: #FFFFFF;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
}

/* ---------- arrows ---------- */
.toro-slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(10,14,25,0.5);
	border: 1px solid rgba(255,255,255,0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
	backdrop-filter: blur(4px);
	padding: 0;
}
.toro-slide-arrow:hover {
	background: var(--toro-gold);
	border-color: var(--toro-gold);
}
.toro-slide-arrow:hover svg {
	stroke: var(--toro-navy);
}
.toro-slide-arrow svg {
	width: 18px;
	height: 18px;
	stroke: #FFFFFF;
	transition: stroke .2s ease;
}
.toro-arrow-prev { left: 24px; }
.toro-arrow-next { right: 24px; }

@media (max-width: 900px) {
	.toro-slide-arrow {
		top: 24px;
		transform: none;
		width: 38px;
		height: 38px;
	}
	.toro-arrow-prev { left: 12px; }
	.toro-arrow-next { right: 12px; }
}

/* ---------- dots ---------- */
.toro-slide-dots {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 10px;
}
@media (max-width: 900px) {
	.toro-slide-dots { bottom: 16px; }
}
.toro-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.35);
	cursor: pointer;
	transition: background .2s ease, width .2s ease, border-radius .2s ease;
	border: none;
	padding: 0;
}
.toro-dot.active {
	background: var(--toro-gold);
	width: 22px;
	border-radius: 4px;
}

/* ---------- progress bar ---------- */
.toro-slide-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	z-index: 6;
	background: var(--toro-gold);
	width: 0%;
}
.toro-slide-progress.running {
	transition: width linear;
	width: 100%;
}

/* ---------- counter ---------- */
.toro-slide-counter {
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 5;
	color: #FFFFFF;
	font-size: 12px;
	opacity: 0.75;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.toro-slide-counter .cur {
	color: var(--toro-gold);
	font-weight: 800;
	font-size: 14px;
}
@media (max-width: 900px) {
	.toro-slide-counter {
		top: 30px;
		right: 60px; /* clears the top-right next-arrow on mobile */
	}
}

/* ---------- badge / sticker ---------- */
.toro-slide-badge {
	position: absolute;
	top: 20px;
	z-index: 4; /* above the image/gradient, below arrows+dots+counter */
	width: 72px;
	transform: rotate(-8deg);
	filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
	transition: transform .2s ease;
	display: block;
	text-decoration: none;
}
a.toro-slide-badge:hover {
	transform: rotate(-8deg) scale(1.05);
}
.toro-slide-badge--left {
	left: 24px;
}
.toro-slide-badge--right {
	right: 24px;
}
.toro-slide-badge img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 900px) {
	.toro-slide-badge {
		top: 76px; /* clears the top arrows/counter on mobile */
		width: 76px;
	}
}

/* When a slide has a badge, push the text block down/away so the
   headline never renders underneath the sticker, regardless of how
   many lines the headline wraps to. */
.toro-slide--has-badge .toro-slide-content {
	align-items: flex-start;
	padding-top: 100px;
}
@media (max-width: 900px) {
	.toro-slide--has-badge .toro-slide-content {
		align-items: flex-end;
		padding-top: 0;
	}
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.toro-slide,
	.toro-slide-img,
	.toro-slide-tag,
	.toro-slide-headline,
	.toro-slide-desc,
	.toro-slide-cta,
	.toro-slide-progress {
		transition: none !important;
	}
}
