﻿/* ==========================================================
   SHARED CONTENT CONTAINER
   ========================================================== */

.content-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    /*padding-inline: 24px;*/
    box-sizing: border-box;
}


/* ==========================================================
   SITE HEADER
   ========================================================== */

.site-header {
    position: relative;
    box-sizing: border-box;
}

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        box-sizing: border-box;
    }

.site-header__content {
    position: relative;
}


/* ==========================================================
   TOP NAVIGATION
   ========================================================== */

.site-header__top-navigation {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 12px;
}


.top-navigation {
    display: block;
}


.top-navigation__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.top-navigation__item {
    margin: 0;
    padding: 0;
}


.top-navigation__link {
    font-family: "montserrat", sans-serif;
    font-size: 12px;
    line-height: 26px;
    font-weight: 400;
    text-decoration: none;
}


/* ==========================================================
   LOGO + MAIN NAVIGATION ROW
   ========================================================== */

.site-header__navigation-row {
    /*
     * This is the positioning context for:
     *
     * 1. The desktop mega menu
     * 2. The full-width mobile navigation drawer
     */

    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 90px;
}


.site-header__logo {
    flex: 0 0 auto;
}


    .site-header__logo a {
        display: block;
    }


.site-header__logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}


.site-header__main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}


/* ==========================================================
   HOME HEADER
   ========================================================== */

.site-header--home {
    position: relative;
    margin-inline: 16px;
    margin-top: 16px;
    border-radius: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /*
     * IMPORTANT:
     *
     * Do NOT use overflow:hidden here.
     *
     * The mega menu and mobile navigation drawer
     * need to be able to extend outside the header.
     */
}


    


    /* ==========================================================
   HOME TOP MENU
   ========================================================== */

    .site-header--home .top-navigation__link {
        color: #fff;
    }


        .site-header--home .top-navigation__link:hover,
        .site-header--home .top-navigation__link:focus-visible {
            color: #fff;
            text-decoration: underline;
        }


    /* ==========================================================
   HOME MAIN MENU
   ========================================================== */

    .site-header--home .nav-links > li > a,
    .site-header--home .menu-drop-link .main-link {
        color: #fff;
    }


    .site-header--home .accordion-arrow {
        border-left-color: #fff;
        border-bottom-color: #fff;
    }


    /*
 * Dropdown / mega menu panels have light backgrounds,
 * so links inside them remain dark.
 */

    .site-header--home .normal-dropdown a,
    .site-header--home .mega-menu a {
        color: #0A183E;
    }


    /* Override existing black desktop hover */

    .site-header--home .nav-links > li:hover > a,
    .site-header--home .nav-links > li:hover .main-link {
        color: #fff;
    }


/* ==========================================================
   HOME TITLE
   ========================================================== */

.home-header__title-row {
    width: 100%;
    padding-top: 70px;
    padding-bottom: 40px;
}


.home-header__title {
    max-width: 1000px;
    margin: 0;
    color: #fff;
    font-family: "montserrat", sans-serif;
    font-size: 60px;
    line-height: 70px;
    font-weight: 800;
}


/* ==========================================================
   HOME BACKGROUND VIDEO
   ========================================================== */

.home-header__background-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*
     * Clip the video without clipping navigation dropdowns.
     */
    border-radius: inherit;
    pointer-events: none;
}


    /* ==========================================================
   BLOCK GRID INSIDE BACKGROUND VIDEO
   ========================================================== */

    .home-header__background-video .umb-block-grid,
    .home-header__background-video .umb-block-grid__layout-container,
    .home-header__background-video .umb-block-grid__layout-item,
    .home-header__background-video .video-block,
    .home-header__background-video .video-block__ratio {
        width: 100%;
        height: 100%;
        min-height: 100%;
    }


    /*
 * Override the normal 16:9 Video Block.
 *
 * The dimensions are now controlled by the header.
 */

    .home-header__background-video .video-block__ratio {
        position: relative;
        aspect-ratio: auto;
        overflow: hidden;
        border-radius: 0;
        background: transparent;
    }


    /* ==========================================================
   UPLOADED VIDEO
   ========================================================== */

    .home-header__background-video .video-block__video {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border: 0;
    }


    /* ==========================================================
   YOUTUBE / VIMEO
   ========================================================== */

    .home-header__background-video iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100%, calc(100vh * 16 / 9));
        height: max(100%, calc(100vw * 9 / 16));
        border: 0;
        transform: translate(-50%, -50%);
    }


/* ==========================================================
   VIDEO OVERLAY
   ========================================================== */

.home-header__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.20);
    pointer-events: none;
}


/* ==========================================================
   HEADER CONTENT
   ========================================================== */

.site-header--home .site-header__content {
    position: relative;
    z-index: 2;
    min-height: 620px;
}


.home-header__foreground {
    position: relative;
}


/* ==========================================================
   HOME INTRO
   ========================================================== */

.home-header__intro-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 35px;
}


.home-header__intro-column {
    min-width: 0;
}


.home-header__intro-text {
    color: #fff;
    font-family: "montserrat", sans-serif;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
}


    .home-header__intro-text p {
        margin-top: 0;
        margin-bottom: 20px;
    }


        .home-header__intro-text p:last-child {
            margin-bottom: 0;
        }


/* ==========================================================
   HOME BOTTOM LINKS
   ========================================================== */

.home-header__links-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 50px;
}


.home-header__link-column {
    display: flex;
    align-items: center;
}


.home-header__link-column--left {
    justify-content: flex-start;
}


.home-header__link-column--right {
    justify-content: flex-end;
}


.home-header__link {
    color: #fff;
    font-family: "montserrat", sans-serif;
    font-size: 15px;
    line-height: 26px;
    text-decoration: underline;
}


    .home-header__link:hover,
    .home-header__link:focus-visible {
        color: #fff;
        text-decoration-thickness: 2px;
    }


/* ==========================================================
   INNER PAGE HEADER
   ========================================================== */

.site-header--inner {
    background-color: #FDFBF0;
}


    /* Top navigation */

    .site-header--inner .top-navigation__link {
        color: #000;
    }


        .site-header--inner .top-navigation__link:hover,
        .site-header--inner .top-navigation__link:focus-visible {
            color: #1364AB;
        }


    /* Main navigation */

    .site-header--inner .nav-links > li > a,
    .site-header--inner .menu-drop-link .main-link {
        color: #000;
    }


    /* Dropdown arrows */

    .site-header--inner .accordion-arrow {
        border-left-color: #000;
        border-bottom-color: #000;
    }


    /* Current root item */

    .site-header--inner
    .nav-links > li.is-current > a,
    .site-header--inner
    .nav-links > li.is-current
    .main-link {
        color: #1364AB;
    }


    /* Ancestor root item */

    .site-header--inner
    .nav-links > li.is-ancestor > a,
    .site-header--inner
    .nav-links > li.is-ancestor
    .main-link {
        color: #1364AB;
    }


    /* Current / ancestor arrows */

    .site-header--inner
    .nav-links > li.is-current
    .accordion-arrow,
    .site-header--inner
    .nav-links > li.is-ancestor
    .accordion-arrow {
        border-left-color: #1364AB;
        border-bottom-color: #1364AB;
    }


    /* Root hover */

    .site-header--inner
    .nav-links > li:hover > a,
    .site-header--inner
    .nav-links > li:hover
    .main-link {
        color: #1364AB;
    }


    /* Dropdown selected page */

    .site-header--inner
    .normal-dropdown
    li.is-current > a,
    .site-header--inner
    .normal-dropdown
    li.is-ancestor > a {
        color: #1364AB;
    }


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 768px) {


    .content-container {
        padding-inline: 16px;
    }


    /* ------------------------------------------------------
       HOME HEADER
       ------------------------------------------------------ */

    .site-header--home {
        margin-inline: 16px;
        border-radius: 12px;
    }


    /* ------------------------------------------------------
       TOP MENU

       On mobile this is explicitly above the
       logo/hamburger row.
       ------------------------------------------------------ */

    .site-header__top-navigation {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        padding-top: 12px;
        padding-bottom: 10px;
    }


    .top-navigation {
        width: 100%;
    }


    .top-navigation__list {
        justify-content: flex-start;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 0;
    }


    /* ------------------------------------------------------
       LOGO + HAMBURGER

       IMPORTANT:
       This row becomes the positioning context for the
       complete mobile navigation drawer.
       ------------------------------------------------------ */

    .site-header__navigation-row {
        position: relative;
        width: 100%;
        min-height: 70px;
    }


    .site-header__main-navigation {
        /*
         * Only the hamburger itself needs this space.
         * The drawer is positioned relative to the full
         * .site-header__navigation-row below.
         */

        position: static;
        flex: 0 0 auto;
    }


        /* ------------------------------------------------------
       MAIN NAVIGATION POSITIONING FIX

       The existing main-navigation.css may contain:

           .main-navigation {
               position: relative;
               width: 100%;
           }

       That makes the drawer use the width/position of
       the hamburger navigation container.

       We explicitly override that here.
       ------------------------------------------------------ */

        .site-header__main-navigation .main-navigation {
            position: static;
            width: auto;
        }


        /* ------------------------------------------------------
       FULL WIDTH MOBILE DRAWER

       Because .main-navigation is position:static,
       this absolute element now uses
       .site-header__navigation-row as its nearest
       positioned ancestor.

       Therefore left:0 + right:0 spans the whole row.
       ------------------------------------------------------ */

        .site-header__main-navigation .nav-links {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 100%;
            margin: 0;
            z-index: 2000;
        }


    /* ------------------------------------------------------
       HOME HAMBURGER
       ------------------------------------------------------ */

    .site-header--home
    .hamburger-btn
    .bar {
        background-color: #fff;
    }


    /* ------------------------------------------------------
       INNER HAMBURGER
       ------------------------------------------------------ */

    .site-header--inner
    .hamburger-btn
    .bar {
        background-color: #000;
    }


    /* ------------------------------------------------------
       OPEN MOBILE MENU

       Drawer is white regardless of header type.
       ------------------------------------------------------ */

    .site-header--home .nav-links,
    .site-header--inner .nav-links {
        background-color: #fff;
    }


        .site-header--home
        .nav-links > li > a,
        .site-header--home
        .menu-drop-link
        .main-link {
            color: #000;
        }


        .site-header--home
        .nav-links
        .accordion-arrow {
            border-left-color: #000;
            border-bottom-color: #000;
        }


    /* ------------------------------------------------------
       HOME TITLE
       ------------------------------------------------------ */

    .home-header__title-row {
        padding-top: 35px;
        padding-bottom: 30px;
    }


    .home-header__title {
        font-size: 42px;
        line-height: 50px;
    }


    /* ------------------------------------------------------
       VIDEO
       ------------------------------------------------------ */

    .home-header__video-row {
        margin-bottom: 30px;
    }


    /* ------------------------------------------------------
       INTRO
       ------------------------------------------------------ */

    .home-header__intro-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }


    /* ------------------------------------------------------
       LINKS
       ------------------------------------------------------ */

    .home-header__links-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-bottom: 40px;
    }


    .home-header__link-column--left,
    .home-header__link-column--right {
        justify-content: flex-start;
    }

    .home-header__background-video,
    .home-header__video-overlay {
        border-radius: 12px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {


    .home-header__title {
        font-size: 36px;
        line-height: 43px;
    }


    .home-header__intro-text {
        font-size: 18px;
        line-height: 28px;
    }


    /*
     * Your existing main-navigation.css changes
     * root navigation to 18px below 480px.
     *
     * You requested 15px / 26px.
     */

    .nav-links > li > a,
    .menu-drop-link .main-link {
        font-size: 15px;
        line-height: 26px;
    }
}
