/* ==========================================================================
   Hero slider — full-width fade slider; the search card overlaps its lower edge.
   The search lives outside the slide track so slide changes never touch it.
   ========================================================================== */

.ycp-hero.ycp-hero {
	--ycp-hero-h: clamp(580px, 86svh, 680px);
	--ycp-search-overlap: 64px;
	position: relative;
	isolation: isolate;
	background: transparent;
}
@media (min-width: 768px) {
	.ycp-hero.ycp-hero { --ycp-hero-h: clamp(640px, 90svh, 740px); --ycp-search-overlap: 88px; }
}
@media (min-width: 1100px) {
	.ycp-hero.ycp-hero { --ycp-hero-h: clamp(680px, 92svh, 800px); --ycp-search-overlap: 96px; }
}

/* Track & slides */
.ycp-hero__track.ycp-hero__track {
	position: relative;
	height: var(--ycp-hero-h);
	overflow: hidden;
	background: var(--ycp-navy-900);
	touch-action: pan-y;
}
.ycp-hero__slide.ycp-hero__slide {
	position: absolute; inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s var(--ycp-ease), visibility 0s linear .9s;
}
.ycp-hero__slide.ycp-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s var(--ycp-ease), visibility 0s;
	z-index: 1;
}

.ycp-hero__media.ycp-hero__media { position: absolute; inset: 0; display: block; }
.ycp-hero__media.ycp-hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.06);
	transition: transform 7s linear;
}
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__media img { transform: scale(1); }

/* Readability overlay: strongest behind the text, plus a bottom fade behind the search */
.ycp-hero__slide.ycp-hero__slide::after {
	content: "";
	position: absolute; inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(4, 29, 59, .55) 0%, rgba(4, 29, 59, 0) 22%),
		linear-gradient(0deg, rgba(4, 29, 59, calc(var(--ycp-overlay, .55) + .1)) 0%, rgba(4, 29, 59, 0) 45%),
		linear-gradient(90deg, rgba(4, 29, 59, var(--ycp-overlay, .55)) 0%, rgba(4, 29, 59, calc(var(--ycp-overlay, .55) * .6)) 50%, rgba(4, 29, 59, .12) 100%);
}
.ycp-hero__slide--center.ycp-hero__slide--center::after {
	background:
		linear-gradient(180deg, rgba(4, 29, 59, .5) 0%, rgba(4, 29, 59, 0) 22%),
		linear-gradient(0deg, rgba(4, 29, 59, calc(var(--ycp-overlay, .55) + .1)) 0%, rgba(4, 29, 59, 0) 50%),
		rgba(4, 29, 59, calc(var(--ycp-overlay, .55) * .75));
}

/* Brand fallback when a slide has no image yet */
.ycp-hero__media--brand.ycp-hero__media--brand {
	background:
		radial-gradient(60% 80% at 85% 20%, rgba(245, 130, 22, .22), transparent 60%),
		radial-gradient(50% 60% at 70% 100%, rgba(7, 139, 53, .18), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 120px),
		repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 120px),
		linear-gradient(135deg, var(--ycp-navy-900), var(--ycp-navy) 60%, var(--ycp-navy-800));
}

/* Content */
.ycp-hero__content.ycp-hero__content {
	position: relative; z-index: 2;
	height: 100%;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding-top: calc(var(--ycp-header-h) + 24px);
	padding-bottom: calc(var(--ycp-search-overlap) + 104px);
	color: #fff;
}
.ycp-hero__slide--center.ycp-hero__slide--center .ycp-hero__content { align-items: center; text-align: center; }
.ycp-hero__slide--center.ycp-hero__slide--center .ycp-hero__text { margin-inline: auto; }

.ycp-hero__eyebrow.ycp-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--ycp-font-head);
	font-size: .78rem; font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--ycp-gold);
	margin-bottom: 18px;
}
.ycp-hero__eyebrow.ycp-hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.ycp-hero__slide--center.ycp-hero__slide--center .ycp-hero__eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }

.ycp.ycp .ycp-hero__title {
	max-width: 15ch;
	font-size: var(--ycp-fs-h1);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #fff;
	text-wrap: balance;
}
.ycp-hero__text.ycp-hero__text {
	max-width: 54ch;
	margin-top: 20px;
	font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, .88);
}
.ycp-hero__cta.ycp-hero__cta { margin-top: 32px; }

/* Text entrance on the active slide */
.ycp-js.ycp-js .ycp-hero__content > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .7s var(--ycp-ease), transform .7s var(--ycp-ease);
}
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__content > * { opacity: 1; transform: none; }
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__content > :nth-child(1) { transition-delay: .25s; }
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__content > :nth-child(2) { transition-delay: .35s; }
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__content > :nth-child(3) { transition-delay: .45s; }
.ycp-hero__slide.ycp-hero__slide.is-active .ycp-hero__content > :nth-child(4) { transition-delay: .55s; }

/* Controls: dots (with progress) + pause/prev/next, sitting just above the search card */
.ycp-hero__controls.ycp-hero__controls {
	position: absolute; z-index: 3;
	left: 0; right: 0;
	top: calc(var(--ycp-hero-h) - var(--ycp-search-overlap) - 64px);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	pointer-events: none;
}
.ycp-hero__controls.ycp-hero__controls > * { pointer-events: auto; }
.ycp-hero__dots.ycp-hero__dots { display: flex; gap: 8px; }
.ycp-hero__dot.ycp-hero__dot {
	position: relative;
	width: 44px; height: 24px;
	padding: 0; border: 0; background: transparent;
}
.ycp-hero__dot.ycp-hero__dot::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
	border-radius: 3px; background: rgba(255, 255, 255, .35);
}
.ycp-hero__dot-fill.ycp-hero__dot-fill {
	position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0;
	border-radius: 3px; background: var(--ycp-saffron);
}
.ycp-hero__dot.ycp-hero__dot.is-active .ycp-hero__dot-fill { width: 100%; }
.ycp-hero__dot.ycp-hero__dot.is-active.is-running .ycp-hero__dot-fill { width: 0; animation: ycp-dot-progress var(--ycp-autoplay, 5500ms) linear forwards; }
.ycp-hero.ycp-hero.is-paused .ycp-hero__dot.is-active .ycp-hero__dot-fill { animation-play-state: paused; }
@keyframes ycp-dot-progress { from { width: 0; } to { width: 100%; } }

.ycp-hero__arrows.ycp-hero__arrows { display: flex; gap: 8px; }
.ycp-hero__btn.ycp-hero__btn {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(4, 29, 59, .3);
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background var(--ycp-dur), border-color var(--ycp-dur), color var(--ycp-dur);
}
.ycp-hero__btn.ycp-hero__btn:hover { background: #fff; color: var(--ycp-navy); border-color: #fff; }
.ycp-hero__btn.ycp-hero__btn .ycp-icon { width: 20px; height: 20px; }
.ycp-hero__btn.ycp-hero__btn .ycp-icon--play { display: none; }
.ycp-hero.ycp-hero.is-user-paused .ycp-icon--pause { display: none; }
.ycp-hero.ycp-hero.is-user-paused .ycp-icon--play { display: block; }
.ycp-hero__btn.ycp-hero__btn[data-ycp-hero-prev],
.ycp-hero__btn.ycp-hero__btn[data-ycp-hero-next] { display: none; }
@media (min-width: 768px) {
	.ycp-hero__btn.ycp-hero__btn[data-ycp-hero-prev],
	.ycp-hero__btn.ycp-hero__btn[data-ycp-hero-next] { display: grid; }
}

/* Search placement */
.ycp-hero__search.ycp-hero__search {
	position: relative; z-index: 4;
	margin-top: calc(var(--ycp-search-overlap) * -1);
}

.ycp-hero__admin-note.ycp-hero__admin-note {
	position: absolute; z-index: 5; top: calc(var(--ycp-header-h) + 50px); right: 16px;
	max-width: 280px; padding: 10px 14px;
	border-radius: 10px; background: #FFF7ED; color: #7C2D12;
	font-size: 12.5px; line-height: 1.4; box-shadow: var(--ycp-shadow-md);
}

@media (prefers-reduced-motion: reduce) {
	.ycp-hero__media.ycp-hero__media img { transform: none !important; }
	.ycp-hero__dot.ycp-hero__dot.is-active .ycp-hero__dot-fill { animation: none !important; width: 100%; }
}

/* Links and bold words typed into slide texts */
.ycp-hero__content.ycp-hero__content a:not(.ycp-btn) {
	color: inherit; text-decoration: underline; text-decoration-thickness: 2px;
	text-underline-offset: .18em; text-decoration-color: rgba(245, 181, 27, .8); transition: color .2s, text-decoration-color .2s;
}
.ycp-hero__content.ycp-hero__content a:not(.ycp-btn):hover,
.ycp-hero__content.ycp-hero__content a:not(.ycp-btn):focus-visible { color: #F5B51B; text-decoration-color: #F5B51B; }
.ycp-hero__content.ycp-hero__content strong,
.ycp-hero__content.ycp-hero__content b { font-weight: 800; }
.ycp-hero__text.ycp-hero__text strong, .ycp-hero__text.ycp-hero__text b { font-weight: 700; color: #fff; }
.ycp-hero__content.ycp-hero__content mark { background: none; color: #F5B51B; }
