/**
 * NRH Industrial Header - Premium B2B Design
 * Modern, Professional Industrial Style
 */

/* ===========================================
   RESET & BASE
   =========================================== */
.nrh-header *,
.nrh-header *::before,
.nrh-header *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nrh-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

.nrh-header a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.nrh-header ul {
    list-style: none;
}

.nrh-header img {
    max-width: 100%;
    height: auto;
}

.nrh-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===========================================
   PREMIUM INFO BAR
   =========================================== */
.nrh-infobar {
    background: linear-gradient(135deg, #15294a 0%, #1e3a5f 50%, #243f6e 100%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: hidden;
}

.nrh-infobar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 67, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.nrh-infobar .nrh-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.nrh-info-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nrh-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nrh-info-item svg {
    color: #d4a843;
    flex-shrink: 0;
}

.nrh-info-item:hover {
    color: #ffffff;
}

.nrh-info-item:hover svg {
    color: #e6bc5a;
}

.nrh-info-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.nrh-info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nrh-info-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nrh-info-right a:hover {
    color: #ffffff;
    background: rgba(212, 168, 67, 0.25);
    transform: translateY(-2px);
}

/* ===========================================
   PREMIUM MAIN NAVIGATION
   =========================================== */
.nrh-mainbar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid rgba(26, 51, 82, 0.08);
    position: relative;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nrh-mainbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 40px;
}

/* Premium Logo */
.nrh-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.nrh-logo img {
    height: 52px;
    width: auto;
    transition: all 0.3s ease;
}

.nrh-logo:hover img {
    transform: scale(1.02);
}

.nrh-logo-accent {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #d4a843, #e6bc5a);
    border-radius: 2px;
}

/* ===========================================
   PREMIUM NAVIGATION MENU
   =========================================== */
.nrh-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nrh-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nrh-nav-item {
    position: relative;
}

.nrh-nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nrh-nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 24px);
    height: 2px;
    background: linear-gradient(90deg, #d4a843, #e6bc5a);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nrh-nav-item > a:hover::after,
.nrh-nav-item.active > a::after {
    transform: translateX(-50%) scaleX(1);
}

.nrh-nav-item > a:hover,
.nrh-nav-item.active > a {
    color: #1a3352;
    background: rgba(26, 51, 82, 0.04);
}

.nrh-nav-item > a svg {
    transition: transform 0.3s ease;
}

.nrh-nav-item:hover > a svg {
    transform: rotate(180deg);
}

/* ===========================================
   PREMIUM DROPDOWN
   =========================================== */
.nrh-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 380px;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
}

.nrh-nav-item.has-dropdown:hover .nrh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nrh-dropdown-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eeeeee;
}

.nrh-dropdown-title {
    font-size: 11px;
    font-weight: 700;
    color: #1a3352;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.nrh-dropdown-subtitle {
    font-size: 13px;
    color: #888888;
}

.nrh-dropdown-inner {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.nrh-dropdown-list {
    display: flex;
    flex-direction: column;
}

.nrh-dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: transparent;
    border-radius: 14px;
    margin-bottom: 4px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.nrh-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #d4a843, #e6bc5a);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.nrh-dropdown-item:hover::before {
    height: 70%;
}

.nrh-dropdown-item:last-child {
    margin-bottom: 0;
}

.nrh-dropdown-item:hover {
    background: linear-gradient(135deg, #1a3352 0%, #243f6e 100%);
    transform: translateX(4px);
}

.nrh-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(26, 51, 82, 0.08) 0%, rgba(26, 51, 82, 0.04) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nrh-dropdown-item:hover .nrh-dropdown-icon {
    background: linear-gradient(135deg, #d4a843 0%, #e6bc5a 100%);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.nrh-dropdown-icon svg {
    stroke: #1a3352;
    transition: stroke 0.3s ease;
}

.nrh-dropdown-item:hover .nrh-dropdown-icon svg {
    stroke: #1a3352;
}

.nrh-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.nrh-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nrh-dropdown-item:hover .nrh-dropdown-name {
    color: #ffffff;
}

.nrh-dropdown-count {
    font-size: 13px;
    color: #888888;
    transition: color 0.3s ease;
}

.nrh-dropdown-item:hover .nrh-dropdown-count {
    color: rgba(255, 255, 255, 0.75);
}

.nrh-dropdown-arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    color: #d4a843;
}

.nrh-dropdown-item:hover .nrh-dropdown-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================================
   PREMIUM CTA BUTTON
   =========================================== */
.nrh-nav-right {
    flex-shrink: 0;
}

.nrh-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4a843 0%, #e6bc5a 50%, #d4a843 100%);
    background-size: 200% 100%;
    color: #15294a;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nrh-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nrh-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.5);
    background-position: 100% 0;
}

.nrh-cta-btn:hover::before {
    left: 100%;
}

/* ===========================================
   PREMIUM HAMBURGER
   =========================================== */
.nrh-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a3352 0%, #243f6e 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 51, 82, 0.3);
}

.nrh-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 51, 82, 0.4);
}

.nrh-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nrh-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nrh-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nrh-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================================
   PREMIUM MOBILE MENU
   =========================================== */

/* Mobile Menu Backdrop */
.nrh-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1004;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nrh-mobile-backdrop.show {
    display: block;
    opacity: 1;
}

.nrh-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow-y: auto;
    z-index: 1005;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
}

.nrh-mobile-menu.open {
    display: block;
}

.nrh-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a3352 0%, #243f6e 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nrh-mobile-logo img {
    height: 40px;
}

.nrh-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nrh-mobile-close span {
    font-size: 28px;
    color: #ffffff;
    font-weight: 300;
}

.nrh-mobile-nav {
    padding: 24px;
}

.nrh-mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.nrh-mobile-link:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Has-children row: entire row as one visual card */
.nrh-mobile-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.nrh-mobile-item .nrh-mobile-link.has-children {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.nrh-mobile-item .nrh-mobile-link.has-children:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
}

/* Toggle button - inside the row, right side */
.nrh-mobile-toggle {
    width: 52px;
    min-width: 52px;
    height: 100%;
    min-height: 57px;
    border: none;
    background: transparent;
    color: #d4a843;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-left: 1px solid #eeeeee;
}

.nrh-mobile-toggle:hover {
    background: #1a3352;
    color: #ffffff;
}

.nrh-mobile-toggle svg {
    transition: transform 0.3s ease;
}

.nrh-mobile-item.open .nrh-mobile-toggle {
    background: #1a3352;
    color: #ffffff;
}

.nrh-mobile-item.open .nrh-mobile-toggle svg {
    transform: rotate(180deg);
}

/* Sub-menu: full width below the link row */
.nrh-mobile-item .nrh-mobile-sub {
    width: 100%;
    flex-basis: 100%;
}

.nrh-mobile-sub {
    display: none;
    padding: 16px 20px;
    background: #f0f4f8;
    border-radius: 0 0 14px 14px;
    border-top: 1px solid #dce3eb;
}

.nrh-mobile-item.open .nrh-mobile-sub {
    display: block;
}

.nrh-mobile-sublink {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    color: #555555;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.nrh-mobile-sublink:last-child {
    margin-bottom: 0;
}

.nrh-mobile-sublink:hover {
    background: linear-gradient(135deg, #1a3352 0%, #243f6e 100%);
    color: #ffffff;
    transform: translateX(8px);
}

.nrh-mobile-footer {
    padding: 24px;
    border-top: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nrh-mobile-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #1a3352 0%, #243f6e 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 51, 82, 0.3);
}

.nrh-mobile-tel svg {
    color: #fff;
}

.nrh-mobile-quote {
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #d4a843 0%, #e6bc5a 50%, #d4a843 100%);
    background-size: 200% 100%;
    color: #15294a;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.35);
    transition: all 0.3s ease;
}

.nrh-mobile-quote:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.45);
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */
@media (max-width: 1200px) {
    .nrh-wrap {
        padding: 0 24px;
    }
    
    .nrh-mainbar-inner {
        gap: 24px;
    }
    
    .nrh-nav-item > a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nrh-dropdown {
        min-width: 340px;
    }
}

@media (max-width: 1024px) {
    .nrh-nav,
    .nrh-nav-right {
        display: none;
    }

    .nrh-hamburger {
        display: flex;
    }

    .nrh-mainbar-inner {
        height: 72px;
    }
}

@media (max-width: 1024px) {
    .nrh-search-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nrh-infobar .nrh-info-left {
        gap: 16px;
        font-size: 12px;
    }
    
    .nrh-info-divider {
        display: none;
    }
    
    .nrh-mainbar-inner {
        height: 64px;
        padding: 0 16px;
    }
    
    .nrh-logo img {
        height: 44px;
    }
    
    .nrh-wrap {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .nrh-logo img {
        height: 38px;
    }
    
    .nrh-hamburger {
        width: 42px;
        height: 42px;
    }
    
    .nrh-mobile-nav {
        padding: 16px;
    }
    
    .nrh-mobile-link {
        padding: 16px;
        font-size: 16px;
    }
}

/* ===========================================
   ACTIVE & HOVER STATES
   =========================================== */
.nrh-nav-item.active > a {
    color: #1a3352;
    background: rgba(26, 51, 82, 0.06);
}

body.menu-open {
    overflow: hidden;
}

/* ===========================================
   SCROLL BEHAVIOR
   =========================================== */
.nrh-mainbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   MOBILE SEARCH BAR
   =========================================== */
.nrh-mobile-search {
    display: none;
}

@media (max-width: 1024px) {
    .nrh-mobile-search {
        display: block;
        background: #f0f4f8;
        border-bottom: 1px solid #dce3eb;
        padding: 8px 0;
    }

    .nrh-mobile-search-form {
        display: flex;
        align-items: center;
        background: #fff;
        border: 2px solid #2d5a87;
        border-radius: 24px;
        overflow: hidden;
        height: 40px;
    }

    .nrh-mobile-search-input {
        flex: 1;
        border: none;
        outline: none;
        padding: 0 16px;
        font-size: 14px;
        background: transparent;
        color: #333;
        height: 100%;
    }

    .nrh-mobile-search-input::placeholder {
        color: #999;
    }

    .nrh-mobile-search-btn {
        background: #2d5a87;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0 16px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s;
    }

    .nrh-mobile-search-btn:hover {
        background: #1d4a77;
    }

    /* Hide the search button in mainbar on mobile since we have inline search */
    .nrh-search-btn {
        display: none !important;
    }
}

/* Desktop: keep mobile search hidden */
@media (min-width: 1025px) {
    .nrh-mobile-search {
        display: none !important;
    }
}

/* ===========================================
   SEARCH MODAL
   =========================================== */
.nrh-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    margin-right: 15px;
}

.nrh-search-btn:hover {
    color: #2d5a87;
}

.nrh-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.nrh-search-modal.open {
    display: block;
}

.nrh-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.nrh-search-box {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 15vh auto 0;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
}

.nrh-search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.nrh-search-close:hover {
    color: #333;
}

.nrh-search-form {
    display: flex;
    gap: 10px;
}

.nrh-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.nrh-search-input:focus {
    border-color: #2d5a87;
}

.nrh-search-submit {
    background: #2d5a87;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
}

.nrh-search-submit:hover {
    background: #1e3a5f;
}