
/* ==========================================
   NORD HOMEPAGE HERO
   File: homepage-hero.css

   Reusable campaign hero component.
   All campaign content and image URLs
   are maintained in the HTML.

   Breakpoint:
   Desktop: 992px and above
   Mobile/Tablet: below 992px
========================================== */


/* ==========================================
   BASE COMPONENT
========================================== */

.nord-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
}



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

.nord-hero__desktop-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.nord-hero__desktop-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


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

.nord-hero__container {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1200px;
    min-height: 464px;
    margin: 0 auto;
    padding: 60px 6%;
    box-sizing: border-box;
}


/* ==========================================
   TRANSLUCENT CONTENT PANEL
========================================== */

.nord-hero__content {
    width: 100%;
    max-width: 414px;
    padding: 20px 16px 30px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    color: #000;
}


/* ==========================================
   TYPOGRAPHY
========================================== */

.nord-hero .nord-hero__title {
    margin: 0 0 28px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
}

.nord-hero__title sup {
    font-size: 0.45em;
    vertical-align: super;
    line-height: 0;
}

.nord-hero .nord-hero__content p {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
}

.nord-hero .nord-hero__content p:last-of-type {
    margin-bottom: 20px;
}


/* ==========================================
   CALL TO ACTION BUTTON
========================================== */

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

    min-height: 42px;
    padding: 8px 18px;
    box-sizing: border-box;

    border: 0;
    border-radius: 13px;

    background-color: #fc4c02;
    color: #fff;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.nord-hero .nord-hero__button:hover,
.nord-hero .nord-hero__button:focus-visible {
    background-color: #d94302;
    color: #fff;
    text-decoration: none;
}

.nord-hero .nord-hero__button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}


/* ==========================================
   MOBILE IMAGE
   Hidden on desktop
========================================== */

.nord-hero__mobile-image {
    display: none;
}


/* ==========================================
   TABLET AND MOBILE
   Image above content
========================================== */

@media (max-width: 991.98px) {

    /* Hide desktop image */
    .nord-hero__desktop-image {
        display: none;
    }

    /* Show mobile image */
    .nord-hero__mobile-image {
        display: block;
        width: 100%;
    }

    .nord-hero__mobile-image img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Stack content below image */
    .nord-hero__container {
        display: block;
        min-height: 0;
        max-width: none;
        padding: 24px 20px 36px;
    }

    /* Remove translucent panel */
    .nord-hero__content {
        max-width: none;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    /* Typography */
    .nord-hero .nord-hero__title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 24px;
    }

    .nord-hero .nord-hero__content p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Full-width registration button */
    .nord-hero .nord-hero__button {
        width: 100%;
        min-height: 48px;
    }
}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 575.98px) {

    .nord-hero__container {
        padding: 20px 16px 30px;
    }

    .nord-hero .nord-hero__title {
        font-size: 26px;
    }
}


/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .nord-hero .nord-hero__button {
        transition: none;
    }
}
