/**
 * 3DM Express - Header Styles
 */

/* ── Top Bar ───────────────────────────────────────── */

.header__top-bar {
    background-color: #0F1B33;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: #A0AEC0;
}

.header__top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header__contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__phone,
.header__email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.2s;
}

.header__phone:hover,
.header__email:hover {
    color: #FF6B00;
}

.header__top-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #A0AEC0;
    font-size: 0.8125rem;
}

/* ── Main Navigation ───────────────────────────────── */

.header__nav {
    background-color: #FFFFFF;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.header__nav.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

/* ── Brand / Logo ──────────────────────────────────── */

.header__brand {
    flex-shrink: 0;
}

.header__logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    color: #1B2A4A;
}

.header__logo-mark {
    font-size: 1.75rem;
    font-weight: 900;
    color: #FF6B00;
    letter-spacing: -0.02em;
}

.header__logo-sub {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B2A4A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Menu ──────────────────────────────────────────── */

.header__menu-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.header__menu li {
    position: relative;
}

.header__menu li a {
    display: block;
    padding: 0.75rem 1.1rem;
    color: #2D3748;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.header__menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background-color: #FF6B00;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.header__menu li a:hover,
.header__menu li.current-menu-item a,
.header__menu li.current_page_item a {
    color: #FF6B00;
}

.header__menu li a:hover::after,
.header__menu li.current-menu-item a::after,
.header__menu li.current_page_item a::after {
    transform: scaleX(1);
}

/* Sub-menu */
.header__menu li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.header__menu li:hover .sub-menu {
    display: block;
}

.header__menu li .sub-menu li a {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.header__menu li .sub-menu li a::after {
    display: none;
}

/* ── CTA Button ────────────────────────────────────── */

.header__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    background-color: #FF6B00;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-left: 0.75rem;
    white-space: nowrap;
}

.header__cta-btn:hover {
    background-color: #E05E00;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* ── Hamburger Toggle ──────────────────────────────── */

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.header__hamburger span {
    display: block;
    height: 2px;
    background-color: #1B2A4A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header__menu-toggle[aria-expanded="true"] .header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__hamburger span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ────────────────────────────────────────── */

@media (max-width: 991px) {
    .header__top-address {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    .header__menu-wrapper {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }

    .header__menu-wrapper.is-open {
        display: flex;
    }

    .header__menu {
        flex-direction: column;
        gap: 0;
    }

    .header__menu li a {
        padding: 0.875rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #F0F0F0;
    }

    .header__menu li a::after {
        display: none;
    }

    .header__menu li .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
    }

    .header__cta-btn {
        margin-left: 0;
        margin-top: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    /* Mobile overlay */
    .header__overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .header__overlay.is-active {
        display: block;
    }
}

@media (max-width: 575px) {
    .header__contact-info {
        gap: 0.75rem;
    }

    .header__phone span,
    .header__email span {
        display: none;
    }

    .header__top-bar {
        font-size: 0.75rem;
    }

    .header__nav-inner {
        min-height: 60px;
    }

    .header__logo-mark {
        font-size: 1.5rem;
    }

    .header__logo-sub {
        font-size: 0.9rem;
    }
}

/* ── Admin bar offset ──────────────────────────────── */

.admin-bar .header__nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .header__nav {
        top: 46px;
    }
}
