/* Reset & Base Spacing for Header Container */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   1. TOP UTILITY BAR
   ========================================================================== */
.top-bar {
    background-color: #06172a;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    font-family: 'Montserrat', 'Inter', sans-serif;
    position: relative;
    z-index: 1000;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.region-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.region-link:hover {
    color: #ffffff;
}
.region-separator {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
}

.top-bar-center {
    color: #cbd5e1;
    font-weight: 600;
    text-align: center;
}
.top-bar-center span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* SOCIAL MEDIA LINKS IN TOP BAR */
.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-social-link {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.topbar-social-link:hover {
    color: #f17a28;
    transform: translateY(-1px);
}

.topbar-social-mask {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.topbar-social-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.topbar-svg-icon {
    display: inline-block;
    vertical-align: middle;
    transition: fill 0.3s ease;
    margin-right: 3px;
    stroke: currentColor;
    fill: none;
}

.topbar-custom-image-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Right Utility Links */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}
.top-bar-phone-val {
    font-weight: 600;
}
.separator {
    color: rgba(255, 255, 255, 0.15);
}

/* SEARCH BAR BOX */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}
.search-toggle-btn:hover {
    opacity: 0.8;
}
.search-svg {
    width: 17px;
    height: 17px;
}
.search-slider-box {
    position: absolute;
    right: 0;
    top: 30px;
    background-color: #0b1c31;
    border: 1px solid #1a304e;
    padding: 8px;
    border-radius: 4px;
    display: none;
    width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.search-slide-form {
    display: flex;
    gap: 5px;
    width: 100%;
}
.search-slide-input {
    background: #061222;
    border: 1px solid #1d334e;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 3px;
    width: 100%;
}
.search-slide-submit {
    background-color: #f17a28;
    border: none;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}

/* 2. MAIN NAVIGATION HEADER STYLE */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Montserrat', 'Inter', sans-serif;
    position: relative;
    z-index: 999;
}

.site-logo {
    display: flex;
    align-items: center;
    max-height: 60px;
    overflow: hidden;
}

.site-logo img,
.custom-logo-link img {
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain;
    display: block;
    transition: width 0.2s ease;
}

.logo-main {
    color: #06172a;
    text-decoration: none;
    font-size: 26px;
    font-weight: 900;
}
.logo-sub {
    color: #f17a28;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: #06172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* WordPress Navigation Links Layout */
.main-navigation .main-menu-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.main-navigation .main-menu-list > li {
    position: relative;
    padding: 10px 0;
}

.main-navigation .main-menu-list > li > a {
    color: #06172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.main-navigation .main-menu-list > li > a:hover,
.main-navigation .main-menu-list > li.current-menu-item > a {
    color: #f17a28;
}

.main-navigation .main-menu-list > li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #f17a28;
    transition: width 0.3s ease;
}

.main-navigation .main-menu-list > li:hover::after,
.main-navigation .main-menu-list > li.current-menu-item::after {
    width: 100%;
}

.main-navigation .main-menu-list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.main-navigation .main-menu-list > li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translate(-2px, -2px);
    border-color: #f17a28;
}

.main-navigation .main-menu-list .sub-menu {
    list-style: none !important;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    display: none;
    z-index: 99999;
}

.main-navigation .main-menu-list li:hover > .sub-menu {
    display: block !important;
    animation: headerDropdownFade 0.25s ease-in-out;
}

@keyframes headerDropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navigation .main-menu-list .sub-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
}

.main-navigation .main-menu-list .sub-menu li::after {
    display: none !important;
}

.main-navigation .main-menu-list .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.main-navigation .main-menu-list .sub-menu li a:hover,
.main-navigation .main-menu-list .sub-menu li.current-menu-item a {
    color: #f17a28 !important;
    background-color: #f8fafc;
    border-left-color: #f17a28;
    padding-left: 24px;
}

/* CTA Button Styling */
.cta-button {
    background-color: #f17a28;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(241, 122, 40, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #d8641b;
    transform: translateY(-1px);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
    .menu-toggle { display: flex; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-top: 2px solid #f17a28;
        z-index: 9999;
    }
    .main-navigation.is-open { display: block; }
    .main-navigation .main-menu-list {
        flex-direction: column;
        gap: 0;
        padding: 15px 30px;
    }
    .main-navigation .main-menu-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .main-navigation .main-menu-list li::after { display: none; }
    .main-navigation .main-menu-list .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .header-container { padding: 0 15px; }
    .top-bar .header-container {
        flex-direction: column;
        gap: 8px;
        padding: 8px 15px;
        text-align: center;
    }
    .top-bar-center { display: none; }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }
    .top-bar-phone-val { font-size: 11px; }
    .site-logo img { max-height: 40px !important; }
    .header-cta { display: none; }
}