
/* =========================================
   CARDVAULT 2.0 — HOMEPAGE HERO
========================================= */

.cv-hero {
    --hero-gold: #e9b548;
    --hero-dark: #070d16;

    position: relative;
    width: 100%;
    min-height: 510px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    background-color: var(--hero-dark);
    color: #fff;
}

/* =========================================
   BACKGROUND IMAGE
========================================= */

.cv-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;
}

.cv-hero__background picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cv-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

/* =========================================
   GRADIENT OVERLAY
========================================= */

.cv-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        #070d16 0%,
        rgba(7, 13, 22, 0.99) 12%,
        rgba(7, 13, 22, 0.92) 25%,
        rgba(7, 13, 22, 0.72) 37%,
        rgba(7, 13, 22, 0.28) 52%,
        rgba(7, 13, 22, 0.02) 75%
    );
}

/* =========================================
   CONTAINER
========================================= */

.cv-hero__container {
    position: relative;
    z-index: 2;

    width: 100%;

    padding-top: 55px;
    padding-bottom: 55px;
}

/* =========================================
   CONTENT
========================================= */

.cv-hero__content {
    width: 100%;
    max-width: 510px;
}

/* =========================================
   EYEBROW
========================================= */

.cv-hero__eyebrow {
    display: block;
    margin-bottom: 14px;

    color: var(--hero-gold);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* =========================================
   TITLE
========================================= */

.cv-hero__title {
    margin: 0 0 18px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 4.2vw, 70px);
    font-weight: 700;

    line-height: 0.99;
    letter-spacing: -1.6px;

    color: #fff;
}

.cv-hero__title span {
    display: block;
    color: var(--hero-gold);
}

/* =========================================
   DESCRIPTION
========================================= */

.cv-hero__description {
    max-width: 415px;
    margin: 0;

    color: #d6d8dd;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.cv-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 25px;
}

.cv-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 45px;
    padding: 11px 20px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cv-hero__button svg {
    display: block;
    flex-shrink: 0;
}

.cv-hero__button:hover {
    transform: translateY(-2px);
}

.cv-hero__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Primary */

.cv-hero__button--primary {
    min-width: 174px;

    background: linear-gradient(
        180deg,
        #f2c65d 0%,
        #d69b30 100%
    );

    border-color: #e7b548;
    color: #101216;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.cv-hero__button--primary:hover {
    background: #f3c45b;
    color: #101216;
}

/* Secondary */

.cv-hero__button--secondary {
    min-width: 165px;

    background: rgba(7, 13, 22, 0.78);
    border-color: var(--hero-gold);
    color: #fff;
}

.cv-hero__button--secondary:hover {
    background: rgba(233, 181, 72, 0.13);
    color: #fff;
}

/* =========================================
   FEATURES
========================================= */

.cv-hero__features {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    gap: 23px;
    margin-top: 30px;
}

.cv-hero__feature {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #e4e5e9;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;

    white-space: nowrap;
}

.cv-hero__feature svg {
    display: block;
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    color: var(--hero-gold);
}

/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1440px) {
    .cv-hero {
        min-height: 540px;
    }

    .cv-hero__content {
        max-width: 550px;
    }

    .cv-hero__title {
        font-size: 72px;
    }

    .cv-hero__description {
        font-size: 15px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {
    .cv-hero {
        min-height: 490px;
    }

    .cv-hero__content {
        max-width: 480px;
    }

    .cv-hero__title {
        font-size: clamp(46px, 5.5vw, 62px);
    }

    .cv-hero__features {
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .cv-hero__overlay {
        background: linear-gradient(
            90deg,
            #070d16 0%,
            rgba(7, 13, 22, 0.96) 24%,
            rgba(7, 13, 22, 0.65) 50%,
            rgba(7, 13, 22, 0.08) 100%
        );
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .cv-hero {
        min-height: 690px;
        align-items: flex-end;
    }

    .cv-hero__image {
        object-fit: cover;
        object-position: center top;
    }

    /*
     * Darken the bottom half for readable
     * title, description and buttons.
     */
    .cv-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(7, 13, 22, 0.02) 0%,
            rgba(7, 13, 22, 0.08) 22%,
            rgba(7, 13, 22, 0.45) 38%,
            rgba(7, 13, 22, 0.82) 53%,
            rgba(7, 13, 22, 0.96) 68%,
            #070d16 91%,
            #070d16 100%
        );
    }

    .cv-hero__container {
        padding-top: 230px;
        padding-bottom: 32px;
    }

    .cv-hero__content {
        max-width: 100%;
    }

    .cv-hero__eyebrow {
        margin-bottom: 13px;

        font-size: 10px;
        letter-spacing: 2px;
    }

    .cv-hero__title {
        margin-bottom: 16px;

        font-size: clamp(43px, 10vw, 58px);
        letter-spacing: -1px;
    }

    .cv-hero__description {
        max-width: 380px;

        font-size: 13px;
        line-height: 1.6;
    }

    .cv-hero__actions {
        gap: 10px;
        margin-top: 23px;
    }

    .cv-hero__button {
        min-width: 0;
        min-height: 44px;

        padding: 11px 14px;
        font-size: 12px;
    }

    .cv-hero__features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px 12px;
        margin-top: 28px;
    }

    .cv-hero__feature {
        font-size: 10px;
        white-space: normal;
    }

    .cv-hero__feature svg {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {
    .cv-hero {
        min-height: 720px;
    }

    .cv-hero__title {
        font-size: 44px;
    }

    .cv-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-hero__button {
        width: 100%;
    }
}
