/* =========================================================
   ECSI — ELISHA & CHARLES SOLUTIONS INC.
   MAIN HEADER / NAVIGATION
   ECSI CORPORATE PALETTE
   CLEAN RESPONSIVE VERSION
========================================================= */


/* =========================================================
   ECSI CORPORATE PALETTE
========================================================= */

:root {

    /* Primary */
    --ecsi-primary: #134074;

    /* Secondary */
    --ecsi-secondary: #13315C;

    /* Deep Navy */
    --ecsi-deep: #0B2545;

    /* Accent */
    --ecsi-accent: #8DA9C4;

    /* Light */
    --ecsi-light: #EEF4ED;


    /* Header Colors */
    --header-primary: var(--ecsi-primary);
    --header-secondary: var(--ecsi-secondary);
    --header-deep: var(--ecsi-deep);
    --header-accent: var(--ecsi-accent);
    --header-light: var(--ecsi-light);


    /* Glass */
    --header-glass:
        linear-gradient(
            135deg,
            rgba(19, 64, 116, 0.88),
            rgba(11, 37, 69, 0.86)
        );

    --header-glass-scrolled:
        rgba(11, 37, 69, 0.97);


    /* Borders */
    --header-border:
        rgba(141, 169, 196, 0.22);


    /* Text */
    --header-text:
        rgba(238, 244, 237, 0.94);

    --header-muted:
        rgba(238, 244, 237, 0.68);


    /* Dimensions */
    --header-radius: 18px;
    --header-height: 78px;
}


/* =========================================================
   MAIN HEADER
========================================================= */

#header {
    position: fixed;

    top: 38px;
    left: 0;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    box-shadow: none;

    z-index: 1000;

    transition:
        top 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

#header.scrolled {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

#header .container {
    position: relative;

    width: calc(100% - 48px);
    max-width: 1280px;

    min-height: var(--header-height);

    margin: 10px auto 0;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    box-sizing: border-box;

    background: var(--header-glass);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--header-border);

    border-radius: var(--header-radius);

    box-shadow:
        0 10px 35px rgba(11, 37, 69, 0.22),
        inset 0 1px 0 rgba(238, 244, 237, 0.08);

    isolation: isolate;

    transition:
        min-height 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        border-radius 0.3s ease;
}


/* =========================================================
   HEADER TOP HIGHLIGHT
========================================================= */

#header .container::before {
    content: "";

    position: absolute;

    top: 0;
    left: 24px;
    right: 24px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(238, 244, 237, 0.22),
            transparent
        );

    pointer-events: none;

    opacity: 0.8;
}


/* =========================================================
   SCROLLED CONTAINER
========================================================= */

#header.scrolled .container {
    min-height: 70px;

    background: var(--header-glass-scrolled);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-color:
        rgba(141, 169, 196, 0.26);

    box-shadow:
        0 12px 35px rgba(11, 37, 69, 0.30),
        inset 0 1px 0 rgba(238, 244, 237, 0.06);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    position: relative;

    z-index: 3;

    display: flex;
    align-items: center;

    flex: 0 0 auto;

    min-width: 0;

    line-height: 0;

    text-decoration: none;
}


.logo a {
    display: flex;
    align-items: center;

    line-height: 0;

    text-decoration: none;
}


.logo img {
    display: block;

    width: 140px;
    height: auto;

    max-height: 52px;

    object-fit: contain;

    transition:
        width 0.3s ease,
        height 0.3s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}


.logo a:hover img {
    transform: translateY(-1px);
}


#header.scrolled .logo img {
    width: 130px;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

#navbar {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 2;

    display: flex;
    align-items: center;

    margin: 0;

    transform:
        translate(-50%, -50%);
}


#navbar > ul {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================================
   NAVIGATION ITEMS
========================================================= */

#navbar > ul > li {
    position: relative;

    display: flex;
    align-items: center;

    height: var(--header-height);

    margin: 0;
    padding: 0;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

#navbar > ul > li > a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    padding: 0;

    color: var(--header-text);

    font-size: 14px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   NAVIGATION UNDERLINE
========================================================= */

#navbar > ul > li > a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 15px;

    width: 0;
    height: 2px;

    background: var(--header-accent);

    border-radius: 999px;

    transform:
        translateX(-50%);

    opacity: 0;

    transition:
        width 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   NAVIGATION HOVER
========================================================= */

#navbar > ul > li > a:hover {
    color: var(--header-accent);
}


#navbar > ul > li > a:hover::after {
    width: 22px;

    opacity: 1;
}


/* =========================================================
   ACTIVE NAVIGATION
========================================================= */

#navbar > ul > li > a.active,
#navbar > ul > li.active > a {
    color: var(--header-accent);
}


#navbar > ul > li > a.active::after,
#navbar > ul > li.active > a::after {
    width: 22px;

    opacity: 1;
}


/* =========================================================
   NAVIGATION FOCUS
========================================================= */

#navbar > ul > li > a:focus-visible {
    outline:
        2px solid var(--header-accent);

    outline-offset: 5px;

    border-radius: 3px;
}


/* =========================================================
   SCROLLED NAVIGATION
========================================================= */

#header.scrolled #navbar > ul > li {
    height: 70px;
}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown {
    position: relative;
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: 250px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background:
        rgba(11, 37, 69, 0.98);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border:
        1px solid rgba(141, 169, 196, 0.22);

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(11, 37, 69, 0.32),
        inset 0 1px 0 rgba(238, 244, 237, 0.06);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 99999;
}


/* =========================================================
   DROPDOWN SHOW
========================================================= */

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-menu::before {
    content: "";

    position: absolute;

    top: -6px;
    left: 50%;

    width: 12px;
    height: 12px;

    background:
        rgba(11, 37, 69, 0.98);

    border-left:
        1px solid rgba(141, 169, 196, 0.22);

    border-top:
        1px solid rgba(141, 169, 196, 0.22);

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.dropdown-menu li {
    width: 100%;

    margin: 0;
    padding: 0;
}


.dropdown-menu li a {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    min-height: 46px;

    padding: 11px 20px;

    box-sizing: border-box;

    color:
        rgba(238, 244, 237, 0.90) !important;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none;

    white-space: nowrap;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}


/* =========================================================
   DROPDOWN HOVER
========================================================= */

.dropdown-menu li a:hover {
    color:
        var(--header-accent) !important;

    background:
        rgba(141, 169, 196, 0.10);

    padding-left: 25px;
}


/* =========================================================
   DROPDOWN ACTIVE
========================================================= */

.dropdown-menu li a.active {
    color:
        var(--header-accent) !important;

    background:
        rgba(141, 169, 196, 0.12);
}


/* =========================================================
   DROPDOWN FOCUS
========================================================= */

.dropdown-menu li a:focus-visible {
    color:
        var(--header-accent) !important;

    background:
        rgba(141, 169, 196, 0.10);

    outline:
        2px solid var(--header-accent);

    outline-offset: -2px;
}


/* =========================================================
   SCROLLED DROPDOWN
========================================================= */

#header.scrolled .dropdown-menu {
    background:
        rgba(11, 37, 69, 0.99);

    box-shadow:
        0 18px 45px rgba(11, 37, 69, 0.38),
        inset 0 1px 0 rgba(238, 244, 237, 0.06);
}


/* =========================================================
   REQUEST QUOTE BUTTON
========================================================= */

.quote-btn {
    position: relative;

    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-height: 44px;

    padding: 12px 25px;

    color: var(--header-light);

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    background:
        var(--header-primary);

    border:
        1px solid rgba(141, 169, 196, 0.28);

    border-radius: 999px;

    box-shadow:
        0 8px 22px rgba(11, 37, 69, 0.25);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.quote-btn:hover {
    color: var(--header-light);

    background:
        var(--header-secondary);

    border-color:
        rgba(141, 169, 196, 0.45);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 28px rgba(11, 37, 69, 0.32);
}


.quote-btn:active {
    transform:
        translateY(0);
}


.quote-btn:focus-visible {
    outline:
        2px solid var(--header-accent);

    outline-offset: 4px;
}


/* =========================================================
   MOBILE MENU TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    align-items: center;
    justify-content: center;

    padding: 0;

    color: var(--header-light);

    font-size: 28px;
    line-height: 1;

    background: transparent;

    border:
        1px solid transparent;

    border-radius: 10px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}


.menu-toggle:hover {
    color:
        var(--header-accent);

    background:
        rgba(141, 169, 196, 0.10);

    border-color:
        rgba(141, 169, 196, 0.18);
}


.menu-toggle:active {
    transform:
        scale(0.94);
}


.menu-toggle:focus-visible {
    outline:
        2px solid var(--header-accent);

    outline-offset: 3px;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    background:
        rgba(11, 37, 69, 0.72);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 9998;

    touch-action: none;
}


.menu-overlay.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

.mobile-sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: min(330px, 86vw);

    height: 100dvh;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    padding-top:
        env(safe-area-inset-top);

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            rgba(19, 64, 116, 0.99),
            rgba(11, 37, 69, 0.99)
        );

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-right:
        1px solid rgba(141, 169, 196, 0.22);

    box-shadow:
        12px 0 45px rgba(11, 37, 69, 0.38);

    transform:
        translate3d(-105%, 0, 0);

    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    z-index: 9999;
}


.mobile-sidebar.active {
    transform:
        translate3d(0, 0, 0);
}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.sidebar-header {
    min-height: 76px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        14px 20px;

    box-sizing: border-box;

    border-bottom:
        1px solid rgba(141, 169, 196, 0.18);
}


.sidebar-header img {
    display: block;

    width: auto;
    height: 40px;

    max-width: 190px;

    object-fit: contain;
}


/* =========================================================
   SIDEBAR CLOSE BUTTON
========================================================= */

.sidebar-header span {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(238, 244, 237, 0.86);

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    border:
        1px solid transparent;

    border-radius: 9px;

    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}


.sidebar-header span:hover {
    color:
        var(--header-accent);

    background:
        rgba(141, 169, 196, 0.10);

    border-color:
        rgba(141, 169, 196, 0.18);
}


.sidebar-header span:active {
    transform:
        scale(0.92);
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.mobile-sidebar > ul {
    width: 100%;

    flex: 1 1 auto;

    margin: 0;

    padding:
        12px 20px 24px;

    list-style: none;

    box-sizing: border-box;
}


.mobile-sidebar > ul > li {
    border-bottom:
        1px solid rgba(141, 169, 196, 0.14);
}


.mobile-sidebar > ul > li:last-child {
    border-bottom: 0;
}


/* =========================================================
   SIDEBAR LINKS
========================================================= */

.mobile-sidebar > ul > li > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 52px;

    padding:
        14px 5px;

    color:
        rgba(238, 244, 237, 0.90);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    border-radius: 6px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding-left 0.25s ease;
}


.mobile-sidebar > ul > li > a:hover {
    color:
        var(--header-accent);

    background:
        rgba(141, 169, 196, 0.08);

    padding-left: 10px;
}


.mobile-sidebar > ul > li > a.active {
    color:
        var(--header-accent);

    background:
        rgba(141, 169, 196, 0.08);
}


.mobile-sidebar > ul > li > a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 22px;

    background:
        var(--header-accent);

    border-radius: 999px;

    transform:
        translateY(-50%);
}


.mobile-sidebar > ul > li > a:focus-visible {
    color:
        var(--header-accent);

    outline:
        2px solid var(--header-accent);

    outline-offset: -2px;
}


/* =========================================================
   MOBILE PROJECTS DROPDOWN
========================================================= */

.mobile-dropdown {
    width: 100%;

    margin: 0;
    padding: 0;

    border-bottom:
        1px solid rgba(141, 169, 196, 0.14);
}


/* =========================================================
   MOBILE PROJECTS BUTTON
========================================================= */

.mobile-dropdown-btn {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    min-height: 52px;

    margin: 0;

    padding:
        14px 4px;

    color:
        rgba(238, 244, 237, 0.90);

    font-family: inherit;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    text-align: left;

    background: transparent;

    border: 0;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding-left 0.25s ease;
}


.mobile-dropdown-btn:hover {
    color:
        var(--header-accent);

    background:
        rgba(141, 169, 196, 0.06);

    padding-left: 8px;
}


/* =========================================================
   MOBILE DROPDOWN ARROW
========================================================= */

.mobile-dropdown-btn::after {
    content: "›";

    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(141, 169, 196, 0.72);

    font-size: 22px;
    font-weight: 400;

    line-height: 1;

    transform:
        rotate(90deg);

    transition:
        transform 0.3s ease,
        color 0.25s ease;
}


/* =========================================================
   MOBILE DROPDOWN ACTIVE
========================================================= */

.mobile-dropdown.active .mobile-dropdown-btn {
    color:
        var(--header-accent);
}


.mobile-dropdown.active .mobile-dropdown-btn::after {
    color:
        var(--header-accent);

    transform:
        rotate(-90deg);
}


/* =========================================================
   MOBILE DROPDOWN FOCUS
========================================================= */

.mobile-dropdown-btn:focus-visible {
    color:
        var(--header-accent);

    outline:
        2px solid var(--header-accent);

    outline-offset: -2px;

    border-radius: 5px;
}


/* =========================================================
   MOBILE SUBMENU
========================================================= */

.mobile-dropdown-menu {
    max-height: 0;

    width: 100%;

    margin: 0;

    padding:
        0 0 0 16px;

    list-style: none;

    box-sizing: border-box;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transition:
        max-height 0.3s ease,
        opacity 0.25s ease,
        padding 0.3s ease,
        visibility 0.3s ease;
}


.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;

    padding-bottom: 8px;

    opacity: 1;

    visibility: visible;
}


/* =========================================================
   MOBILE SUBMENU ITEMS
========================================================= */

.mobile-dropdown-menu li {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0 !important;
}


.mobile-dropdown-menu li a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 42px;

    padding:
        9px 0;

    color:
        rgba(238, 244, 237, 0.68);

    font-family: inherit;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none;

    border-radius: 5px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding-left 0.25s ease;
}


.mobile-dropdown-menu li a:hover {
    color:
        var(--header-accent);

    padding-left: 7px;

    background:
        rgba(141, 169, 196, 0.06);
}


.mobile-dropdown-menu li a.active {
    color:
        var(--header-accent);

    font-weight: 500;
}


.mobile-dropdown-menu li a.active::before {
    content: "";

    position: absolute;

    left: -8px;
    top: 50%;

    width: 3px;
    height: 18px;

    background:
        var(--header-accent);

    border-radius: 999px;

    transform:
        translateY(-50%);
}


.mobile-dropdown-menu li a:focus-visible {
    color:
        var(--header-accent);

    outline:
        2px solid var(--header-accent);

    outline-offset: -2px;
}


/* =========================================================
   MOBILE SIDEBAR CTA
========================================================= */

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;

    min-height: 50px;

    margin:
        auto
        20px
        calc(20px + env(safe-area-inset-bottom));

    padding:
        13px 20px;

    color:
        var(--header-light);

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    text-align: center;

    text-decoration: none;

    background:
        var(--header-primary);

    border:
        1px solid rgba(141, 169, 196, 0.28);

    border-radius: 9px;

    box-shadow:
        0 8px 22px rgba(11, 37, 69, 0.28);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.sidebar-btn:hover {
    color:
        var(--header-light);

    background:
        var(--header-secondary);

    border-color:
        rgba(141, 169, 196, 0.42);

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 26px rgba(11, 37, 69, 0.34);
}


.sidebar-btn:active {
    transform:
        translateY(0);
}


.sidebar-btn:focus-visible {
    outline:
        2px solid var(--header-accent);

    outline-offset: 3px;
}


/* =========================================================
   HEADER HIDE STATE
========================================================= */

#header.hide-header {
    transform:
        translateY(-110%);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.menu-open {
    overflow: hidden;

    touch-action: none;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    #header .container {
        width: calc(100% - 64px);

        max-width: 1400px;

        padding-left: 36px;
        padding-right: 36px;
    }

    #navbar > ul {
        gap: 30px;
    }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {

    #navbar {
        display: flex;
    }

    #navbar > ul {
        display: flex;
    }

    .menu-toggle,
    .mobile-sidebar,
    .menu-overlay {
        display: none;
    }
}


/* =========================================================
   SMALL DESKTOP / TABLET
========================================================= */

@media (max-width: 1199px) and (min-width: 992px) {

    #header .container {
        width: calc(100% - 40px);

        padding:
            0 24px;
    }

    #navbar > ul {
        gap: 20px;
    }

    #navbar > ul > li > a {
        font-size: 13px;
    }

    .logo img {
        width: 125px;

        max-height: 48px;
    }

    .quote-btn {
        padding:
            11px 21px;

        font-size: 12px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    #header {
        top: 38px;
    }

    #header .container {
        width: calc(100% - 32px);

        min-height: 70px;

        margin-top: 8px;

        padding:
            0 24px;

        border-radius: 16px;
    }

    #navbar,
    .quote-btn {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        width: 120px;

        max-height: 48px;
    }

    #header.scrolled .logo img {
        width: 115px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    #header {
        top: 38px;
    }

    #header .container {
        width: calc(100% - 24px);

        min-height: 64px;

        margin-top: 6px;

        padding:
            0 18px;

        border-radius: 14px;
    }

    .logo img {
        width: 112px;

        max-height: 44px;
    }

    #header.scrolled .container {
        min-height: 60px;
    }

    #header.scrolled .logo img {
        width: 108px;
    }

    #header .container::before {
        left: 18px;
        right: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #header .container {
        width: calc(100% - 16px);

        min-height: 60px;

        margin-top: 5px;

        padding:
            0 15px;

        border-radius: 12px;
    }

    #header.scrolled .container {
        min-height: 56px;
    }

    .logo img {
        width: 105px;

        max-height: 40px;
    }

    #header.scrolled .logo img {
        width: 100px;
    }

    #header .container::before {
        left: 14px;
        right: 14px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 26px;
    }

    .mobile-sidebar {
        width: 88vw;
    }

    .sidebar-header {
        min-height: 68px;

        padding:
            12px 16px;
    }

    .sidebar-header img {
        height: 36px;

        max-width: 170px;
    }

    .sidebar-header span {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        font-size: 26px;
    }

    .mobile-sidebar > ul {
        padding:
            10px
            16px
            20px;
    }

    .mobile-sidebar > ul > li > a {
        min-height: 48px;

        padding:
            12px 4px;

        font-size: 14px;
    }

    .mobile-dropdown-btn {
        min-height: 50px;

        font-size: 14px;
    }

    .mobile-dropdown-menu {
        padding-left: 14px;
    }

    .mobile-dropdown-menu li a {
        min-height: 40px;

        font-size: 13px;
    }

    .sidebar-btn {
        margin-left: 16px;
        margin-right: 16px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 360px) {

    #header .container {
        width: calc(100% - 12px);

        min-height: 58px;

        padding:
            0 12px;

        border-radius: 11px;
    }

    #header.scrolled .container {
        min-height: 54px;
    }

    .logo img {
        width: 100px;

        max-height: 38px;
    }

    #header.scrolled .logo img {
        width: 96px;
    }

    .mobile-sidebar {
        width: 90vw;
    }

    .sidebar-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mobile-sidebar > ul {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sidebar-btn {
        margin-left: 14px;
        margin-right: 14px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #header,
    #header .container,
    .logo img,
    #navbar > ul > li > a,
    #navbar > ul > li > a::after,
    .dropdown-menu,
    .quote-btn,
    .menu-toggle,
    .menu-overlay,
    .mobile-sidebar,
    .sidebar-header span,
    .mobile-sidebar > ul > li > a,
    .mobile-dropdown-btn,
    .mobile-dropdown-btn::after,
    .mobile-dropdown-menu,
    .mobile-dropdown-menu li a,
    .sidebar-btn {
        transition: none !important;
    }

    .menu-toggle:active,
    .sidebar-header span:active,
    .sidebar-btn:active {
        transform: none;
    }
}
.disabled {
    display: none !important;
}