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

/* The <img> equivalent of background-size: cover; background-position: center center; (no repeat).
   An <img> keeps srcset, lazy loading and fetchpriority for the first slide. */
.dd-hero img.dd-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: center center;
}

.dd-hero__inner { position: relative; z-index: 2; padding-block: 48px 64px; }
.dd-hero__content { max-width: 640px; }

/* Content position (Hero Slides → Content position) */
.dd-hero__slide--center .dd-hero__content { margin-inline: auto; text-align: center; }
.dd-hero__slide--right .dd-hero__content { margin-left: auto; text-align: right; }
.dd-hero__title {
	margin: 0 0 14px;
	color: var(--dd-white);
	font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
	font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
}
.dd-hero__desc { margin: 0 0 24px; color: rgba(255, 255, 255, .88); font-size: clamp(15px, .85rem + .4vw, 19px); line-height: 1.6; }
.dd-hero__btn { min-width: 180px; min-height: 48px; font-size: 16px; }

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

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

@media (min-width: 768px) {
	.dd-hero__inner { padding-block: 40px 56px; }
	.dd-hero__content { max-width: 600px; }
}

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