/* =========================================================
   GLOBAL MOBILE / HEADER FIX
   COMMON FOR ALL PAGES
========================================================= */

html{
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html,
body{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
}

body{
    overflow-x:hidden;
}

/* =========================================================
   COMMON CONTAINER
========================================================= */

.container{
    width:min(1200px, 92%);
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar{
    width:100%;
    background:#020509;
    color:#c8d1df;
    font-size:13px;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.topbar-inner{
    width:100%;
    min-height:40px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:15px;
}

.topbar a{
    color:#fff;
    text-decoration:none;
}

.topbar a:hover{
    color:#f4cf72;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.header{
    position:sticky;
    position:-webkit-sticky;

    top:0;
    left:0;

    width:100%;

    z-index:99999;

    background:rgba(4,8,14,.97);

    border-bottom:1px solid rgba(255,255,255,.09);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.nav{
    position:relative;

    width:100%;
    min-height:82px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.brand{
    min-width:0;
    max-width:100%;

    display:flex;
    align-items:center;

    gap:11px;

    color:#fff;
    text-decoration:none;

    flex-shrink:1;
}

.brand:hover{
    color:#fff;
}


/* LOGO BOX */

.brand-logo{
    position:relative;

    width:54px;
    height:54px;

    min-width:54px;
    flex:0 0 54px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:
    linear-gradient(
        145deg,
        #fff0b8 0%,
        #f4cf72 25%,
        #d9a441 55%,
        #9d6b19 100%
    );

    color:#111;

    font-size:17px;
    font-weight:1000;

    letter-spacing:1px;

    box-shadow:
    0 8px 25px rgba(217,164,65,.28);

    border:1px solid rgba(255,240,184,.75);

    overflow:hidden;
}

.brand-logo::before{
    content:"";

    position:absolute;

    width:35px;
    height:35px;

    border:1px solid rgba(255,255,255,.55);

    border-radius:50%;

    transform:rotate(25deg);
}

.brand-logo span{
    position:relative;
    z-index:2;
}


/* COMPANY NAME */

.brand-info{
    min-width:0;
    max-width:100%;

    display:flex;
    flex-direction:column;
}

.brand-name{
    display:block;

    max-width:100%;

    color:#fff;

    font-size:15px;

    line-height:1.15;

    font-weight:1000;

    letter-spacing:.6px;

    white-space:nowrap;

    overflow:hidden;
    text-overflow:ellipsis;
}

.brand-sub{
    display:block;

    max-width:100%;

    color:#9ba8ba;

    font-size:7px;

    letter-spacing:0.65px;

    font-weight:800;

    margin-top:5px;

    white-space:nowrap;

    overflow:hidden;
    text-overflow:ellipsis;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav-menu{
    display:flex;

    align-items:center;
    justify-content:flex-end;

    gap:2px;

    flex-shrink:0;
}

.nav-menu a{
    position:relative;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    min-height:42px;

    color:#d7deea;

    font-size:13px;

    font-weight:800;

    padding:10px 11px;

    border-radius:10px;

    white-space:nowrap;

    text-decoration:none;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.nav-menu a:hover{
    color:#f4cf72;

    background:rgba(217,164,65,.09);
}

.nav-menu a.active{
    color:#f4cf72;

    background:rgba(217,164,65,.10);
}

.nav-menu a.active::after{
    content:"";

    position:absolute;

    left:13px;
    right:13px;
    bottom:3px;

    height:2px;

    border-radius:10px;

    background:
    linear-gradient(
        90deg,
        #d9a441,
        #f4cf72
    );
}


/* =========================================================
   GET QUOTE BUTTON
========================================================= */

.nav-menu a.nav-cta{
    margin-left:7px;

    padding:11px 17px;

    color:#101010 !important;

    background:
    linear-gradient(
        135deg,
        #d9a441,
        #f4cf72
    ) !important;

    border:1px solid #f4cf72;

    box-shadow:
    0 8px 25px rgba(217,164,65,.20);
}

.nav-menu a.nav-cta:hover{
    color:#000 !important;

    background:
    linear-gradient(
        135deg,
        #fff0b8,
        #f4cf72
    ) !important;

    transform:translateY(-2px);

    box-shadow:
    0 12px 32px rgba(244,207,114,.35);
}

.nav-menu a.nav-cta::after{
    display:none;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn{
    display:none;

    width:45px;
    height:45px;

    min-width:45px;
    flex:0 0 45px;

    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.16);

    background:rgba(255,255,255,.06);

    color:#fff;

    border-radius:11px;

    cursor:pointer;

    font-size:19px;

    line-height:1;

    padding:0;

    appearance:none;
    -webkit-appearance:none;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.menu-btn:hover{
    background:rgba(217,164,65,.12);

    border-color:rgba(244,207,114,.45);

    color:#f4cf72;
}

.menu-btn:focus{
    outline:2px solid rgba(244,207,114,.45);

    outline-offset:2px;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px){

    .nav{
        min-height:76px;
    }

    .nav-menu{
        display:none;
    }

    .menu-btn{
        display:flex;
    }

    .brand-name{
        font-size:15px;
    }

    .brand-sub{
        font-size:7px;
        letter-spacing:1px;
    }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media(max-width:850px){

    .topbar-inner{
        min-height:36px;

        justify-content:center;

        text-align:center;

        flex-wrap:wrap;

        gap:3px 10px;

        padding:6px 0;
    }

    .topbar{
        font-size:11px;
    }


    /* HEADER */

    .header{
        width:100%;
    }

    .nav{
        min-height:70px;

        gap:10px;

        padding-top:8px;
        padding-bottom:8px;
    }


    /* BRAND */

    .brand{
        min-width:0;

        flex:1 1 auto;

        max-width:calc(100% - 55px);

        gap:8px;
    }

    .brand-logo{
        width:44px;
        height:44px;

        min-width:44px;
        flex:0 0 44px;

        border-radius:12px;

        font-size:13px;
    }

    .brand-logo::before{
        width:29px;
        height:29px;
    }

    .brand-info{
        min-width:0;

        max-width:calc(100% - 52px);
    }

    .brand-name{
        max-width:100%;

        font-size:13px;

        line-height:1.15;

        letter-spacing:.25px;

        white-space:nowrap;

        overflow:hidden;

        text-overflow:ellipsis;
    }

    .brand-sub{
        max-width:100%;

        font-size:6.5px;

        letter-spacing:.65px;

        margin-top:3px;

        white-space:nowrap;

        overflow:hidden;

        text-overflow:ellipsis;
    }


    /* MENU BUTTON */

    .menu-btn{
        display:flex;

        position:relative;

        z-index:100002;

        margin-left:auto;
    }


    /* MOBILE DROPDOWN */

    .nav-menu{
        position:absolute;

        top:100%;
        left:0;
        right:0;

        width:100%;

        max-width:100%;

        display:none;

        flex-direction:column;

        align-items:stretch;

        gap:4px;

        padding:12px;

        background:
        rgba(4,8,14,.99);

        border-left:1px solid rgba(255,255,255,.08);
        border-right:1px solid rgba(255,255,255,.08);
        border-bottom:1px solid rgba(255,255,255,.12);

        box-shadow:
        0 20px 40px rgba(0,0,0,.35);

        overflow:hidden;
    }

    .nav-menu.open{
        display:flex;
    }


    /* MOBILE LINKS */

    .nav-menu a{
        width:100%;

        min-height:46px;

        display:flex;

        align-items:center;
        justify-content:flex-start;

        padding:12px 14px;

        border-radius:9px;

        font-size:14px;

        white-space:normal;
    }

    .nav-menu a:hover{
        transform:none;
    }

    .nav-menu a.active{
        background:rgba(217,164,65,.12);
    }

    .nav-menu a.active::after{
        display:none;
    }


    /* QUOTE BUTTON */

    .nav-menu a.nav-cta{
        width:100%;

        margin:5px 0 0;

        justify-content:center;

        padding:13px 15px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:600px){

    .container{
        width:92%;

        max-width:none;
    }

    .nav{
        min-height:66px;

        padding-top:7px;
        padding-bottom:7px;
    }

    .brand{
        gap:7px;

        max-width:calc(100% - 53px);
    }

    .brand-logo{
        width:41px;
        height:41px;

        min-width:41px;
        flex-basis:41px;

        border-radius:11px;

        font-size:12px;
    }

    .brand-logo::before{
        width:27px;
        height:27px;
    }

    .brand-name{
        font-size:11.5px;

        letter-spacing:.15px;
    }

    .brand-sub{
        display:none;
    }

    .menu-btn{
        width:43px;
        height:43px;

        min-width:43px;
        flex-basis:43px;

        border-radius:10px;

        font-size:18px;
    }

    .nav-menu{
        top:100%;

        padding:10px;
    }

    .nav-menu a{
        min-height:45px;

        font-size:13.5px;

        padding:12px 13px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media(max-width:380px){

    .container{
        width:94%;
    }

    .brand-name{
        font-size:10.5px;
    }

    .brand-logo{
        width:39px;
        height:39px;

        min-width:39px;
        flex-basis:39px;

        font-size:11px;
    }

    .menu-btn{
        width:41px;
        height:41px;

        min-width:41px;
        flex-basis:41px;
    }
}


/* =========================================================
   PREVENT COMMON HORIZONTAL OVERFLOW
========================================================= */

img,
video,
iframe,
table{
    max-width:100%;
}

section,
header,
footer,
main{
    max-width:100%;
}

.nav-menu,
.brand-info,
.brand-name,
.brand-sub{
    min-width:0;
}


/* =========================================================
   MOBILE BODY SAFETY
========================================================= */

@media(max-width:850px){

    body{
        overflow-x:hidden;
        width:100%;
    }

    .header,
    .topbar{
        overflow:visible;
    }

}