/* =========================================================
   BAIG & ASSOCIATES
   HEADER CSS
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    height: 92px;
    background: #000000;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    z-index: 1000;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    width: 100%;
    max-width: 1400px;
    height: 92px;

    margin: 0 auto;
    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
    color: #ffffff;

    min-width: 0;
}


/* Scales Icon */

.brand-icon {
    width: 42px;
    height: 42px;

    margin-right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #c9a24d;

    font-size: 34px;
    line-height: 1;

    flex-shrink: 0;
}


/* Brand Text */

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    white-space: nowrap;
}


/* Company Name */

.brand-name {
    color: #c9a24d;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 23px;
    font-weight: 600;

    letter-spacing: 1.5px;
    line-height: 1.1;
}


/* Tagline */

.brand-tagline {
    margin-top: 5px;

    color: #d6d6d6;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 8px;
    font-weight: 400;

    letter-spacing: 4px;
    line-height: 1;

    text-align: center;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    margin-left: auto;

    gap: 24px;

    flex-shrink: 1;
}


/* Normal Navigation Links */

.nav-link,
.nav-dropdown-btn {
    position: relative;

    display: inline-flex;
    align-items: center;

    height: 92px;

    padding: 0;

    border: 0;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: 400;

    letter-spacing: 0.3px;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.25s ease;
}


/* Hover */

.nav-link:hover,
.nav-dropdown-btn:hover {
    color: #c9a24d;
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;

    height: 92px;

    display: flex;
    align-items: center;
}


/* Services Button */

.nav-dropdown-btn {
    gap: 6px;
}


/* Arrow */

.dropdown-arrow {
    color: #c9a24d;

    font-size: 14px;

    line-height: 1;

    transition: transform 0.25s ease;
}


/* Rotate Arrow */

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {
    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%) translateY(10px);

    width: 235px;

    padding: 8px 0;

    background: #111111;

    border: 1px solid #333333;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


/* Show Dropdown */

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}


/* Dropdown Links */

.dropdown-menu a {
    display: block;

    width: 100%;

    padding: 11px 18px;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    line-height: 1.3;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* Dropdown Hover */

.dropdown-menu a:hover {
    background: #1d1d1d;

    color: #c9a24d;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 1px solid #444444;

    background: transparent;

    cursor: pointer;

    flex-shrink: 0;
}


/* Hamburger Lines */

.mobile-menu-btn span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: #c9a24d;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1250px) {

    .header-container {
        padding: 0 25px;
    }

    .main-nav {
        gap: 17px;
    }

    .nav-link,
    .nav-dropdown-btn {
        font-size: 12px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-icon {
        font-size: 31px;
        width: 38px;
        margin-right: 9px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        gap: 13px;
    }

    .nav-link,
    .nav-dropdown-btn {
        font-size: 11px;
    }

    .brand-name {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .brand-tagline {
        font-size: 7px;
        letter-spacing: 3px;
    }

    .brand-icon {
        font-size: 29px;
        width: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 76px;
    }


    .header-container {
        height: 76px;

        padding: 0 18px;
    }


    /* Brand */

    .brand-icon {
        width: 34px;
        height: 34px;

        margin-right: 8px;

        font-size: 27px;
    }


    .brand-name {
        font-size: 17px;

        letter-spacing: 0.8px;
    }


    .brand-tagline {
        margin-top: 4px;

        font-size: 6px;

        letter-spacing: 2.5px;
    }


    /* Hide Desktop Navigation */

    .main-nav {
        display: none;

        position: absolute;

        top: 76px;
        left: 0;

        width: 100%;

        margin: 0;

        padding: 10px 18px 18px;

        background: #000000;

        border-top: 1px solid #252525;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        max-height: calc(100vh - 76px);

        overflow-y: auto;
    }


    /* Show Mobile Navigation */

    .main-nav.active {
        display: flex;
    }


    /* Mobile Links */

    .nav-link,
    .nav-dropdown-btn {
        width: 100%;

        height: auto;

        min-height: 48px;

        padding: 13px 5px;

        justify-content: flex-start;

        border-bottom: 1px solid #222222;

        font-size: 14px;
    }


    /* Mobile Dropdown */

    .nav-dropdown {
        width: 100%;

        height: auto;

        display: block;
    }


    .nav-dropdown-btn {
        display: flex;

        justify-content: space-between;
    }


    .dropdown-arrow {
        margin-left: auto;
    }


    .dropdown-menu {
        position: static;

        width: 100%;

        padding: 0;

        transform: none;

        background: #111111;

        border: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        display: none;
    }


    .nav-dropdown.open .dropdown-menu {
        display: block;
    }


    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }


    .dropdown-menu a {
        padding: 12px 18px;

        border-bottom: 1px solid #222222;

        font-size: 13px;
    }


    /* Hamburger */

    .mobile-menu-btn {
        display: block;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .header-container {
        padding: 0 14px;
    }


    .brand-icon {
        width: 30px;
        margin-right: 6px;

        font-size: 24px;
    }


    .brand-name {
        font-size: 15px;

        letter-spacing: 0.5px;
    }


    .brand-tagline {
        font-size: 5.5px;

        letter-spacing: 2px;
    }


    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .brand-name {
        font-size: 13px;
    }

    .brand-tagline {
        font-size: 5px;
        letter-spacing: 1.5px;
    }

}
/* =========================================================
   MOBILE SERVICES DROPDOWN - FIX
========================================================= */

@media (max-width: 900px) {

    /* Services container full width */
    .main-nav .nav-dropdown {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }

    /* Services button */
    .main-nav .nav-dropdown-btn {
        width: 100% !important;
        height: 48px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        padding: 13px 5px !important;

        color: #ffffff !important;
        background: transparent !important;

        border: 0 !important;
        border-bottom: 1px solid #222222 !important;
    }

    /* Dropdown */
    .main-nav .nav-dropdown .dropdown-menu {
        position: static !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        background: #111111 !important;

        border: 0 !important;
        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;

        display: none !important;
    }

    /* Dropdown OPEN */
    .main-nav .nav-dropdown.open .dropdown-menu {
        display: block !important;
    }

    /* Dropdown category links */
    .main-nav .nav-dropdown .dropdown-menu a {
        display: block !important;

        width: 100% !important;

        min-height: 46px !important;

        padding: 13px 25px !important;

        color: #ffffff !important;

        background: #111111 !important;

        border-bottom: 1px solid #222222 !important;

        font-family: Arial, Helvetica, sans-serif !important;

        font-size: 14px !important;

        line-height: 1.4 !important;

        text-align: left !important;

        text-decoration: none !important;

        white-space: nowrap !important;
    }

    /* Category hover/touch */
    .main-nav .nav-dropdown .dropdown-menu a:hover {
        color: #c9a24d !important;
        background: #1a1a1a !important;
    }

    /* Arrow */
    .main-nav .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg) !important;
    }

}