/* =========================================================
   LUNA BUILD-UP 08
   REAL LOGO + HEADER SIZE FIX
   ========================================================= */

/*
The original uploaded logo image is tall.
Without a strict container height the browser lets it expand
the entire navigation header.

This file overrides that behaviour only.
*/


/* ---------- DESKTOP HEADER ---------- */

.luna-header{
    height:100px !important;
    min-height:100px !important;
    background:#fff;
}

.luna-nav-row{
    height:100px !important;
    min-height:100px !important;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:30px;
}


/* ---------- LOGO WRAPPER ---------- */

.luna-logo-img-wrap{
    width:145px !important;
    height:88px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    flex:0 0 145px !important;

    overflow:hidden !important;
    text-decoration:none !important;
}


/* ---------- REAL LOGO IMAGE ---------- */

.luna-real-logo{
    display:block !important;

    width:auto !important;
    height:82px !important;
    max-width:145px !important;
    max-height:82px !important;

    object-fit:contain !important;
    object-position:left center !important;

    margin:0 !important;
    padding:0 !important;

    transform:none !important;
}


/* ---------- NAVIGATION ---------- */

.luna-nav{
    flex:1;
    justify-content:flex-end;
    align-items:center;
}

.luna-nav a{
    white-space:nowrap;
}


/* ---------- WHEN HEADER SCROLLS ---------- */

.luna-header.scrolled{
    height:82px !important;
    min-height:82px !important;
}

.luna-header.scrolled .luna-nav-row{
    height:82px !important;
    min-height:82px !important;
}

.luna-header.scrolled .luna-logo-img-wrap{
    width:120px !important;
    height:72px !important;
    flex-basis:120px !important;
}

.luna-header.scrolled .luna-real-logo{
    width:auto !important;
    height:67px !important;
    max-width:120px !important;
    max-height:67px !important;
}


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

@media(max-width:1100px){

    .luna-logo-img-wrap{
        width:125px !important;
        flex-basis:125px !important;
    }

    .luna-real-logo{
        height:75px !important;
        max-width:125px !important;
    }

}


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

@media(max-width:950px){

    .luna-header,
    .luna-header.scrolled{
        height:84px !important;
        min-height:84px !important;
    }

    .luna-nav-row,
    .luna-header.scrolled .luna-nav-row{
        height:84px !important;
        min-height:84px !important;
    }

    .luna-logo-img-wrap,
    .luna-header.scrolled .luna-logo-img-wrap{
        width:112px !important;
        height:72px !important;
        flex:0 0 112px !important;
    }

    .luna-real-logo,
    .luna-header.scrolled .luna-real-logo{
        width:auto !important;
        height:68px !important;
        max-width:112px !important;
        max-height:68px !important;
    }

}


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

@media(max-width:560px){

    .luna-logo-img-wrap,
    .luna-header.scrolled .luna-logo-img-wrap{
        width:100px !important;
        height:68px !important;
        flex-basis:100px !important;
    }

    .luna-real-logo,
    .luna-header.scrolled .luna-real-logo{
        width:auto !important;
        height:62px !important;
        max-width:100px !important;
        max-height:62px !important;
    }

}


/* =========================================================
   SAFETY RESET
   Prevent any older logo rule from making the image huge.
   ========================================================= */

.luna-logo-img-wrap img{
    position:static !important;
    inset:auto !important;
    min-width:0 !important;
    min-height:0 !important;
}
