/* Hero banner (edge-to-edge full-bleed image + ribbon) */
.hero-banner {
    position: relative;
    height: 65vh;
    min-height: 420px;
    max-height: 900px;
    overflow: hidden;
}

.hero-banner__img {
    position: absolute;
    inset: 0;
    object-position: center;
}

.hero-banner__ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18%;
    padding: 1rem 0;
    background-color: rgba(var(--bs-primary-rgb), 0.44);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Contained card overlay (duplicated from the drying/moisture-survey service
   pages' own CSS, matching the site's existing per-page CSS convention) for
   slides whose source photo isn't wide/even enough for a full-width ribbon
   to look right. */
.hero-banner__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(6% + 240px);
}

.hero-banner__card {
    max-width: 34rem;
    padding: 1.25rem 1.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.44);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-banner__headline {
    font-size: clamp(1.25rem, 4.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-banner__subhead {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    max-width: 40rem;
}

/* Hero carousel height propagation: .hero-banner has a definite height (vh-based);
   propagate it down so the absolutely-positioned slide images can fill it. */
.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    height: 100%;
}

/* Per-slide object-position bias (duplicated from each service page's own
   CSS, matching the site's existing per-page CSS convention). Biased right
   so the subject stays in frame when object-fit: cover crops the sides on
   narrow viewports, and biased up/down so it stays in frame when it crops
   top/bottom on wide, short viewports instead. */
.hero-banner__img--pressure,
.hero-banner__img--conventional {
    object-position: 80% 68%;
}

.hero-banner__img--moisture {
    object-position: 85% 45%;
}

/* Slightly slower, gentler cross-fade than Bootstrap's 0.6s default */
.hero-banner .carousel-fade {
    --bs-carousel-transition-duration: 1s;
}

@media (min-width: 576px) {
    .hero-banner__ribbon {
        padding: 1.5rem 0;
    }

    .hero-banner__card {
        padding: 1.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .hero-banner {
        height: 70vh;
    }

    .hero-banner__ribbon {
        padding: 2rem 0;
        bottom: 22%;
    }

    .hero-banner__overlay {
        bottom: calc(10% + 240px);
    }

    .hero-banner__card {
        padding: 2rem 2.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-banner {
        height: 75vh;
    }
}

@media (max-width: 420px) {
    .hero-banner {
        height: 60vh;
        min-height: 360px;
    }
}

/* Client logo teaser grid (duplicated from clients.css, matching the
   site's existing per-page CSS convention) */
.client-logo-card {
    min-height: 110px;
    transition: box-shadow .15s ease-in-out;
}

.client-logo-card:hover {
    box-shadow: 0 .5rem 1rem rgba(var(--bs-primary-rgb), .15) !important;
}

.client-logo-card__img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* Dewpoint membership logo (duplicated from about.css, same convention) */
.dewpoint-logo {
    max-width: 260px;
    height: auto;
}
