/* NOTE: PAGE HERO (inc/new/sections/page-hero.php). Top of the pages that are not product pages. */

.kmd-page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 44px;
}

.kmd-page-hero__inner {
    position: relative;
    display: grid;
    gap: 32px;
    align-items: center;
}

.kmd-page-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
}

.kmd-page-hero--center .kmd-page-hero__content {
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.kmd-page-hero__eyebrow {
    color: var(--kmd-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kmd-page-hero__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
}

.kmd-page-hero__text {
    color: var(--kmd-soft);
    font-size: 18px;
    line-height: 1.55;
}

/* title and lead across the whole container (installments page) */
.kmd-page-hero--wide .kmd-page-hero__content {
    max-width: none;
}

/* longer leads (contact page) */
.kmd-page-hero--small-text .kmd-page-hero__text {
    font-size: 16px;
}

.kmd-page-hero__notice {
    padding: 8px 12px;
    border-left: 4px solid var(--kmd-accent);
    background: #FBEDEC;
    color: var(--kmd-accent-hover);
    font-size: 15px;
    font-weight: 700;
}

.kmd-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.kmd-page-hero--center .kmd-page-hero__actions {
    justify-content: center;
}

.kmd-page-hero__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.kmd-page-hero__perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kmd-page-hero__perks svg {
    color: var(--kmd-success);
}

/* picture next to the text */
.kmd-page-hero--media .kmd-page-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.kmd-page-hero__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* full width photo behind the text */
.kmd-page-hero--image {
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    background: var(--kmd-black);
    color: var(--kmd-white);
}

.kmd-page-hero--image .kmd-page-hero__inner {
    width: 100%;
}

/* taller photo (anniversary pages) */
.kmd-page-hero--image.kmd-page-hero--tall {
    min-height: 80vh;
}

.kmd-page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kmd-page-hero--image::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .1) 100%);
    content: "";
}

.kmd-page-hero--image.kmd-page-hero--center::before {
    background: rgba(0, 0, 0, .55);
}

.kmd-page-hero--image .kmd-page-hero__inner {
    z-index: 2;
}

.kmd-page-hero--image .kmd-page-hero__text,
.kmd-section--dark .kmd-page-hero__text,
.kmd-section--ink .kmd-page-hero__text {
    color: #E4E4E4;
}

.kmd-page-hero--image .kmd-page-hero__eyebrow,
.kmd-section--dark .kmd-page-hero__eyebrow {
    color: var(--kmd-gold);
}

@media screen and (max-width: 991px) {
    .kmd-page-hero--media .kmd-page-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .kmd-page-hero {
        padding-block: 32px;
    }

    .kmd-page-hero__title {
        font-size: 30px;
    }

    .kmd-page-hero__text {
        font-size: 16px;
    }

    .kmd-page-hero--small-text .kmd-page-hero__text {
        font-size: 15px;
    }

    .kmd-page-hero--image {
        min-height: 400px;
    }

    .kmd-page-hero--image::before {
        background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .25) 100%);
    }
}
