/* === Picture banner (image-only hero slideshow) === */
/* Replaces the old code-built hero (tinted gradients + rotating text). */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-dark);
    line-height: 0;
}

/* All slides stack in one grid cell. Slides keep their natural width/height
   ratio (height:auto) so each banner shows exactly at its own proportions
   — the banner graphic dictates the size, it is not stretched/cropped like a
   generic image box. The cell height tracks the banner art. */
.hero-banner-track {
    display: grid;
    width: 100%;
}

.hero-banner-slide {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Navigation arrows */
.hero-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, transform .3s ease;
    z-index: 2;
}

.hero-banner-arrow:hover {
    background: rgba(0, 0, 0, .6);
}

.hero-banner-arrow.prev { left: 18px; }
.hero-banner-arrow.next { right: 18px; }

/* Slide indicators */
.hero-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-banner-dots span {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: background .3s ease, width .3s ease;
}

.hero-banner-dots span:hover { background: rgba(255, 255, 255, .8); }

.hero-banner-dots span.active {
    background: var(--primary-green);
    width: 46px;
}

@media (max-width: 768px) {
    .hero-banner-arrow {
        width: 36px;
        height: 36px;
        font-size: .85rem;
    }
    .hero-banner-arrow.prev { left: 10px; }
    .hero-banner-arrow.next { right: 10px; }
    .hero-banner-dots { bottom: 12px; }
    .hero-banner-dots span { width: 22px; }
    .hero-banner-dots span.active { width: 34px; }
}
