/* === page_hero.css — Unified hero section for all public pages === */

.page-hero {
    position: relative;
    min-height: clamp(28rem, 34vw, 34rem);
    max-height: clamp(28rem, 34vw, 34rem);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Gradient overlay — left-to-right white fade */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.98)  0%,
        rgba(255,255,255,0.92) 28%,
        rgba(255,255,255,0.55) 46%,
        rgba(255,255,255,0.08) 68%,
        rgba(255,255,255,0)   100%
    );
}

.page-hero .container-xxl,
.page-hero .row {
    min-height: inherit;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-hero__text {
    max-width: 36rem;
    padding-top: clamp(5rem, 7vw, 7.5rem);
}

/* Font-size comes from .hero-title in public_content.css */
.page-hero__title {
    color: #142653;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

/* Font-size comes from .hero-text in public_content.css */
.page-hero__description {
    max-width: 40rem;
    line-height: 1.7;
    color: #41506a;
}

/* ── Hero CTA button — extends btn btn-danger btn-lg ─────────────────────── */
.page-hero .page-hero__button {
    padding: .9rem 2.2rem;
    border-radius: .5rem;
    font-weight: 600;
    min-width: 220px;
    min-height: 3.25rem;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0.5rem 1.25rem rgba(201, 35, 45, 0.18);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.page-hero .page-hero__button:hover {
    background-color: #b91f28;
    border-color: #b91f28;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.5rem rgba(201, 35, 45, 0.24);
}

.page-hero .page-hero__button:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 0.25rem rgba(201, 35, 45, 0.22),
        0 0.5rem 1.25rem rgba(201, 35, 45, 0.18);
}

.page-hero .page-hero__button:active {
    background-color: #a91c24;
    border-color: #a91c24;
    color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.75rem rgba(201, 35, 45, 0.18);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1399.98px) {
    .page-hero__text {
        padding-top: 5.75rem;
    }
}

@media (max-width: 1199.98px) {
    .page-hero {
        min-height: 30rem;
        max-height: 30rem;
    }
    .page-hero__text {
        padding-top: 5rem;
        max-width: 34rem;
    }
}

@media (max-width: 991.98px) {
    .page-hero {
        min-height: 28rem;
        max-height: 28rem;
    }
    .page-hero__text {
        padding-top: 4.5rem;
        max-width: 32rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        min-height: 30rem;
        max-height: 30rem;
    }
    .page-hero__text {
        padding-top: 4rem;
        max-width: 30rem;
    }
    .page-hero__title {
        max-width: 28rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        min-height: 32rem;
        max-height: 32rem;
    }
    .page-hero__text {
        padding-top: 3.5rem;
        max-width: 100%;
    }
    .page-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    .page-hero__description {
        font-size: 1rem;
        line-height: 1.6;
    }
    .page-hero .page-hero__button {
        min-height: 3rem;
        min-width: 11rem;
        padding: 0.75rem 1.5rem;
    }
}
