/**
 * Homepage hero — background slider + glass content box (optional in-box image).
 */

.page-home .home-hero--showcase {
    margin-bottom: 0;
}

.page-home .home-hero--showcase .hero-media-wrap {
    overflow: hidden;
}

.page-home .home-hero--showcase .hero-media {
    position: relative;
    min-height: clamp(440px, 58vh, 600px);
    overflow: hidden;
}

.page-home .home-hero--showcase .hero-media-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.page-home .home-hero--showcase .hero-media-slides img,
.page-home .home-hero--showcase .hero-media-slides video,
.page-home .home-hero--showcase .hero-media-slides iframe {
    width: 100%;
    height: 100%;
    min-height: clamp(440px, 58vh, 600px);
    max-height: none;
    object-fit: cover;
    object-position: center 35%;
}

body.has-page-motion .page-home .home-hero--showcase .hero-media-slides {
    animation: hero-ken-burns 26s 1.4s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes hero-ken-burns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.055);
    }
}

.page-home .home-hero--showcase .hero-media::after {
    background: linear-gradient(
        118deg,
        rgba(11, 41, 72, 0.82) 0%,
        rgba(11, 41, 72, 0.42) 40%,
        rgba(15, 118, 110, 0.22) 65%,
        rgba(37, 99, 235, 0.08) 100%
    );
    z-index: 1;
}

.page-home .hero-bottom-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4.5rem;
    z-index: 4;
    background: linear-gradient(180deg, transparent 0%, rgba(250, 248, 245, 0.92) 72%);
    clip-path: ellipse(130% 100% at 50% 100%);
    pointer-events: none;
}

.page-home .home-hero--showcase .hero-overlay {
    align-items: center;
    padding-bottom: 5.5rem;
    z-index: 3;
}

/* Glass box: title, text, CTA (+ optional image from CMS) */
.page-home .home-hero-copy {
    position: relative;
    width: min(100%, 42rem);
    padding: 1.35rem 1.5rem 1.25rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.09) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.page-home .home-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #5eead4, #38bdf8, #a78bfa);
}

.page-home .hero-copy-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-home .hero-copy-layout:has(.hero-copy-media img),
.page-home .hero-copy-layout:has(.hero-copy-media picture img) {
    display: grid;
    grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
}

.page-home .hero-copy-media {
    display: none;
    line-height: 0;
}

.page-home .hero-copy-media:has(img),
.page-home .hero-copy-media:has(picture) {
    display: block;
}

.page-home .hero-copy-media img,
.page-home .hero-copy-media picture img {
    display: block;
    width: 100%;
    max-width: 10.5rem;
    height: auto;
    max-height: 9.5rem;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.45rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.page-home .hero-copy-text .content-prose h1,
.page-home .hero-copy-text .content-prose h2 {
    font-size: clamp(1.4rem, 2.65vw, 2.05rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 18px rgba(11, 41, 72, 0.35);
}

.page-home .hero-cta .btn-primary {
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.45);
}

.page-home .hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.5);
}

.page-home .home-stats {
    margin-top: -5.5rem;
}

@media (max-width: 900px) {
    .page-home .home-hero--showcase .hero-overlay {
        align-items: flex-end;
        padding-bottom: 4.5rem;
    }

    .page-home .hero-copy-layout:has(.hero-copy-media img),
    .page-home .hero-copy-layout:has(.hero-copy-media picture img) {
        grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
    }

    .page-home .hero-copy-media img,
    .page-home .hero-copy-media picture img {
        max-height: 6.5rem;
    }

    .page-home .home-stats {
        margin-top: -3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-page-motion .page-home .home-hero--showcase .hero-media-slides {
        animation: none;
    }
}
