/* Hero carousel — dynamic background media with crossfade */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    background-color: #0a1f16;
}

.hero-slide-media img,
.hero-slide-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide .hero-gradient-overlay,
.hero-slide .hero-pattern-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-slide .hero-gradient-overlay {
    z-index: 2;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        linear-gradient(160deg, rgba(13, 74, 46, 0.58) 0%, rgba(22, 101, 52, 0.42) 38%, rgba(15, 81, 50, 0.72) 100%);
}

.hero-slide .hero-pattern-overlay {
    z-index: 3;
    background:
        radial-gradient(ellipse 85% 70% at 15% 45%, rgba(0, 0, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 85% 75%, rgba(0, 0, 0, 0.22) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 4;
}

.hero-slide-content.is-transitioning {
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.hero-carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-carousel-dot.is-active,
.hero-carousel-dot:hover,
.hero-carousel-dot:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    outline: none;
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.45);
    outline: none;
}

.hero-carousel-arrow--prev { left: 1rem; }
.hero-carousel-arrow--next { right: 1rem; }

@media (max-width: 768px) {
    .hero-carousel-arrow { display: none; }
    .hero-carousel-nav { bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}
