/* Hero banner (duplicated from services.css, matching the site's existing
   per-page CSS convention). The media box is sized by aspect-ratio rather
   than viewport height so object-fit: cover doesn't zoom into a thin sliver
   of the photo on portrait screens. */
.hero-banner__media {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 220px;
    max-height: 520px;
    overflow: hidden;
}

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

.hero-banner__card-frame {
    position: relative;
    overflow: hidden;
}

.hero-banner__card-bg {
    position: absolute;
    inset: 0;
    transform: scaleY(-1);
}

.hero-banner__card {
    background-color: rgba(var(--bs-dark-rgb), 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.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;
}

/* Why Choose Us grid (duplicated from services.css's .service-card, same convention) */
.usp-card {
    transition: box-shadow .15s ease-in-out;
}

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

/* Meet the Team cards (pattern duplicated from Xeric's about.css team-card,
   adapted for square bio photos) */
.team-card {
    transition: box-shadow .15s ease-in-out;
}

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

.team-card__img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
}

.team-modal__img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
