/* Public landing — hero section spacing (fixed navbar → headline) */

#home.bg-home {
    /* logo 68px + navbar padding 20px × 2 */
    --landing-nav-offset: 6.75rem;
    padding-top: calc(var(--landing-nav-offset) + clamp(0.875rem, 2vh, 1.5rem));
    padding-bottom: clamp(2.75rem, 6vh, 4rem);
    overflow: visible;
}

#home .home-title h1 {
    margin-bottom: 1rem !important;
}

#home .home-title .subscribe {
    margin-bottom: 0;
}

#home .landing-hero-ctas {
    margin-bottom: 0;
}

@media (max-width: 1399.98px) {
    #home.bg-home {
        padding-top: calc(var(--landing-nav-offset, 6.25rem) + 0.875rem);
        padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
    }
}

@media (min-width: 1200px) {
    #home.bg-home {
        padding-top: calc(var(--landing-nav-offset) + clamp(1rem, 2.5vh, 1.75rem));
    }
}

/* Hero carousel sits in the right column. Indicators rest on the purple
   gradient below the slide so they stay light and readable. */
#home .landing-hero-carousel {
    padding-bottom: 2rem;
    margin-top: 0.5rem;
}

#home .landing-hero-carousel .carousel-inner {
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

/* Crossfade instead of translateX so incoming slides stay fully visible
   inside the rounded overflow. The active slide stays in normal flow at
   its own height. Incoming and outgoing slides overlap it and scale with
   contain. */
#home .landing-hero-carousel.carousel-fade .carousel-item {
    float: none;
    margin-right: 0;
    transform: none;
}

#home .landing-hero-carousel .carousel-item.active,
#home .landing-hero-carousel .carousel-item-next,
#home .landing-hero-carousel .carousel-item-prev {
    display: flex;
    align-items: center;
    justify-content: center;
}

#home .landing-hero-carousel.carousel-fade .carousel-item-next,
#home .landing-hero-carousel.carousel-fade .carousel-item-prev {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#home .landing-hero-carousel .carousel-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

#home .landing-hero-carousel.carousel-fade .carousel-item-next img,
#home .landing-hero-carousel.carousel-fade .carousel-item-prev img {
    height: 100%;
    object-fit: contain;
}

#home .landing-hero-carousel .carousel-indicators {
    margin-bottom: 0.2rem;
    margin-left: 0;
    margin-right: 0;
}

#home .landing-hero-carousel .carousel-indicators [data-bs-target] {
    width: 1.75rem;
    height: 0.3rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    text-indent: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

#home .landing-hero-carousel .carousel-indicators .active,
#home .landing-hero-carousel .carousel-indicators [data-bs-target].active {
    background-color: #fff;
    opacity: 1;
}

#home .landing-hero-carousel .carousel-control-prev,
#home .landing-hero-carousel .carousel-control-next {
    bottom: 2rem;
    width: 12%;
}

#home .landing-hero-carousel .carousel-control-prev-icon,
#home .landing-hero-carousel .carousel-control-next-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(32, 22, 58, 0.45);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55% 55%;
}

@media (min-width: 992px) {
    #home .landing-hero-carousel {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    #home .landing-hero-carousel {
        margin-top: 1.75rem;
    }
}
