
/* =========================================================
   MOG PREMIUM HEADER
   Industrial Navy + Signature Orange
   Works with existing Porto HTML structure
========================================================= */

:root {
    --mog-header-navy: #14243a;
    --mog-header-navy-deep: #0d192a;
    --mog-header-orange: #e87524;
    --mog-header-orange-hover: #cf6118;
    --mog-header-white: #ffffff;
    --mog-header-muted: #aebaca;
}

/* Main header */
#header {
    position: relative;
    z-index: 1000;
    font-family: inherit;
}

#header .header-body {
    background: var(--mog-header-white) !important;
    border-top: 3px solid var(--mog-header-orange) !important;
    border-bottom: 1px solid #e5e9ef !important;
    box-shadow: 0 8px 28px rgba(13, 25, 42, .07) !important;
}

/* Header container */
#header .header-container {
    min-height: 100px;
}

#header .header-row {
    align-items: center;
}

/* Logo */
#header .header-logo {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

#header .header-logo a {
    display: inline-flex;
    align-items: center;
}

#header .header-logo img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    transition: opacity .2s ease, transform .2s ease;
}

#header .header-logo a:hover img {
    opacity: .92;
}

/* Right-side utility row */
#header .header-column > .header-row {
    min-height: 42px;
}

/* Hotline */
#header .header-nav-top {
    margin: 0 0 8px;
}

#header .header-nav-top ul {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

#header .header-nav-top li {
    margin: 0;
    padding: 0;
}

#header .header-nav-top li span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid #f2d9c8;
    border-radius: 4px;
    background: #fff8f2;
    color: var(--mog-header-navy) !important;
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
}

#header .header-nav-top li i {
    color: var(--mog-header-orange) !important;
    font-size: 17px;
}

/* Search */
#header .header-search {
    margin-right: 14px;
}

#header .header-search .input-group {
    overflow: hidden;
    border: 1px solid #e1e6ed;
    border-radius: 4px;
    background: #fff;
}

#header .header-search .form-control {
    height: 38px;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mog-header-navy);
    font-size: 13px;
}

#header .header-search .input-group-btn .btn {
    height: 38px;
    min-width: 40px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--mog-header-navy) !important;
    color: #fff !important;
}

#header .header-search .input-group-btn .btn:hover {
    background: var(--mog-header-orange) !important;
}

/* Navigation area */
#header .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
}

#header .header-nav-main {
    margin: 0;
}

#header .header-nav-main > nav > ul {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
}

/* Main navigation links */
#header #mainNav > li {
    position: relative;
    margin: 0;
}

#header #mainNav > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 15px !important;
    border-radius: 3px;
    background: transparent !important;
    color: var(--mog-header-navy) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .25px;
    line-height: 1.5;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}

/* Orange accent under links */
#header #mainNav > li > a::after {
    position: absolute;
    right: 15px;
    bottom: 4px;
    left: 15px;
    height: 2px;
    background: var(--mog-header-orange);
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .2s ease;
}

#header #mainNav > li:hover > a::after,
#header #mainNav > li:focus-within > a::after,
#header #mainNav > li.active > a::after {
    transform: scaleX(1);
}

#header #mainNav > li:hover > a,
#header #mainNav > li:focus-within > a {
    color: var(--mog-header-orange) !important;
}

#header #mainNav > li.active > a {
    color: var(--mog-header-orange) !important;
}

/* Dropdown arrow */
#header #mainNav > li.dropdown > a::before {
    margin-right: 7px;
    color: #929eac;
    font-size: 10px;
}

/* Dropdown menu */
#header #mainNav .dropdown-menu {
    min-width: 235px;
    margin-top: 0;
    padding: 8px;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--mog-header-orange);
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(13, 25, 42, .16);
}

#header #mainNav .dropdown-menu > li > a {
    display: block;
    padding: 11px 13px;
    border-radius: 3px;
    color: var(--mog-header-navy) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    white-space: normal;
    transition: color .2s ease, background .2s ease, padding .2s ease;
}

#header #mainNav .dropdown-menu > li > a:hover,
#header #mainNav .dropdown-menu > li > a:focus {
    padding-right: 18px;
    background: #fff4eb !important;
    color: var(--mog-header-orange-hover) !important;
}

/* Social icons */
#header .header-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 12px;
    padding: 0;
}

#header .header-social-icons li {
    margin: 0;
}

#header .header-social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e7ed;
    border-radius: 50%;
    background: #fff;
    color: var(--mog-header-navy) !important;
    transition: all .2s ease;
}

#header .header-social-icons li a:hover {
    border-color: var(--mog-header-orange);
    background: var(--mog-header-orange);
    color: #fff !important;
}

/* Mobile toggle */
#header .header-btn-collapse-nav {
    margin: 5px 0;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--mog-header-navy) !important;
    color: #fff !important;
    box-shadow: none !important;
}

#header .header-btn-collapse-nav:hover,
#header .header-btn-collapse-nav:focus {
    background: var(--mog-header-orange) !important;
}

/* Sticky header compatibility */
#header .header-body.sticky-header {
    box-shadow: 0 8px 25px rgba(13, 25, 42, .12) !important;
}

#header .header-logo img {
    max-width: 100%;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    #header .header-container {
        min-height: 85px;
    }

    #header .header-logo img {
        width: 135px;
    }

    #header #mainNav > li > a {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 11px;
    }

    #header .header-social-icons {
        gap: 3px;
        margin-left: 6px;
    }

    #header .header-social-icons li a {
        width: 28px;
        height: 28px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    #header .header-body {
        border-top-width: 3px !important;
    }

    #header .header-container {
        min-height: 74px;
        height: auto;
    }

    #header .header-logo {
        padding: 6px 0;
    }

    #header .header-logo img {
        width: 125px;
        max-height: 65px;
    }

    #header .header-nav {
        min-height: 0;
    }

    #header .header-btn-collapse-nav {
        margin: 8px 0;
        padding: 10px 13px;
        font-size: 16px;
    }

    #header .header-nav-main {
        width: 100%;
        margin-top: 8px;
        border-top: 1px solid #e5e9ef;
    }

    #header .header-nav-main nav {
        width: 100%;
    }

    #header .header-nav-main > nav > ul {
        display: block;
        padding: 8px 0;
    }

    #header #mainNav > li {
        display: block;
        width: 100%;
    }

    #header #mainNav > li > a {
        display: block;
        min-height: 0;
        padding: 12px 15px !important;
        border-radius: 3px;
        font-size: 13px;
    }

    #header #mainNav > li > a::after {
        display: none;
    }

    #header #mainNav > li.active > a,
    #header #mainNav > li:hover > a {
        background: #fff4eb !important;
        color: var(--mog-header-orange) !important;
    }

    #header #mainNav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        min-width: 0;
        padding: 4px 12px;
        border: 0;
        border-right: 2px solid var(--mog-header-orange);
        border-radius: 0;
        background: #f7f9fc;
        box-shadow: none;
    }

    #header #mainNav .dropdown-menu > li > a {
        padding: 10px 12px;
        font-size: 12px;
    }

    #header .header-social-icons {
        display: none !important;
    }

    #header .header-search {
        display: none !important;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    #header *,
    #header *::before,
    #header *::after {
        transition: none !important;
    }
}
