/* ==========================================================================
   Hero banner slider — [core_hero_banner]
   Slides stack in one grid cell and cross-fade; mobile first.
   ========================================================================== */
.cc-hero {
	position: relative;
	overflow: hidden;
	background: #061226;
	color: var(--cc-white);
	touch-action: pan-y;
}
.cc-hero__track { display: grid; }
.cc-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: flex-end;
	min-height: 440px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
}
.cc-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.cc-hero img.cc-hero__img { /* beats Elementor's ".elementor img { height: auto }" */
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
	object-fit: cover; object-position: 75% center;
}
/* Readability overlay: bottom-up on mobile, left-to-right on desktop */
.cc-hero__slide::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(0deg, rgba(4, 12, 28, .95) 0%, rgba(4, 12, 28, .75) 50%, rgba(4, 12, 28, .25) 100%);
}

.cc-hero__inner { position: relative; z-index: 2; padding-block: 48px 80px; }
.cc-hero__content { max-width: 640px; }
.cc-hero__title {
	margin: 0 0 14px;
	color: var(--cc-white);
	font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
	font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
}
.cc-hero__desc { margin: 0 0 24px; color: rgba(255, 255, 255, .88); font-size: clamp(15px, .85rem + .4vw, 19px); line-height: 1.6; }
.cc-hero__btn { min-width: 180px; min-height: 48px; font-size: 16px; }

/* Content animation on the active slide */
.cc-hero__content > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.cc-hero__slide.is-active .cc-hero__content > * { opacity: 1; transform: none; }
.cc-hero__slide.is-active .cc-hero__desc { transition-delay: .12s; }
.cc-hero__slide.is-active .cc-hero__btn { transition-delay: .24s; }

/* Navigation (dots) — inside the banner, bottom centre */
.cc-hero__nav { position: absolute; left: 50%; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.cc-hero__dots { display: flex; gap: 8px; }
.cc-hero__dot {
	width: 12px; height: 12px; padding: 0;
	border: 0; border-radius: 3px;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: background var(--cc-ease), width var(--cc-ease);
}
.cc-hero__dot:hover { background: rgba(255, 255, 255, .7); }
.cc-hero__dot.is-active { width: 28px; background: var(--cc-primary); }

@media (min-width: 768px) {
	.cc-hero__slide { align-items: center; min-height: 460px; }
	.cc-hero__slide::before { background: linear-gradient(90deg, rgba(4, 12, 28, .92) 0%, rgba(4, 12, 28, .7) 40%, rgba(4, 12, 28, 0) 75%); }
	.cc-hero img.cc-hero__img { object-position: right center; }
	.cc-hero__inner { padding-block: 56px 72px; }
	.cc-hero__content { max-width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
	.cc-hero__slide, .cc-hero__content > * { transition: none; }
}
