/* =====================================================
   Header
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    padding: 18px 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: var(--body-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                padding 0.3s ease,
                transform 0.3s ease;
}

/* =====================================================
   Logo
===================================================== */

.logo img {
    display: block;
    width: auto;
    height: 45px;
    transition: height 0.3s ease;
}

/* =====================================================
   Navigation
===================================================== */

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    position: relative;
    color: #111827;
    text-decoration: none;
    font-size: 17px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #2563eb;
}

.nav a.active {
    font-weight: 600;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 5px;
}

.caret-down {
    font-size: 13px;
}

/* =====================================================
   Dropdowns
===================================================== */

.nav-item {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 999;

    width: 720px;
    padding: 22px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.25s ease,
                visibility 0.25s ease,
                transform 0.25s ease;
}

.mega-menu-single {
    width: 360px;
    grid-template-columns: 1fr;
}

.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-column h4 {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-link {
    padding: 10px 12px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #111827;
    text-decoration: none;
    font-size: 14px;

    transition: background 0.2s ease,
                color 0.2s ease;
}

.service-link i {
    width: 18px;
    color: var(--color-primary);
    text-align: center;
}

.service-link:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

/* =====================================================
   Header Buttons
===================================================== */

.store-btn,
.customer-portal-btn {
    padding: 8px 16px;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;

    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.2s ease;
}

/* Store Button */

.store-btn-primary {
    background: #ff3d2e;
    color: #ffffff;
}

.store-btn-primary:hover {
    background: #e63628;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Customer Portal Button */

.customer-portal-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.customer-portal-btn-primary:hover,
.customer-portal-btn-primary.active {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.customer-portal-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.1;
}

.customer-portal-title {
    font-size: inherit;
    font-weight: 600;
}

.customer-portal-subtitle {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.9;
    white-space: nowrap;
}

/* =====================================================
   Language Switcher
===================================================== */

.actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    padding: 5px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    gap: 6px;

    background: #f1f5f9;
}

.language-switcher a {
    padding: 6px 10px;
    border-radius: 15px;

    color: #374151;
    text-decoration: none;
    font-size: 13px;

    transition: background 0.2s ease,
                color 0.2s ease;
}

.language-switcher a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.language-switcher a.active {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
}

/* =====================================================
   Mobile Menu Button
===================================================== */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 22px;
    cursor: pointer;
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 1100px) {
    .header {
        padding: 16px 40px;
        gap: 18px;
    }

    .nav {
        gap: 18px;
    }

    .nav a,
    .store-btn,
    .customer-portal-btn {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 15px 20px;
    }

    .logo img {
        height: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        padding: 20px;

        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        background: var(--body-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .nav.active {
        display: flex;
    }

    .nav-item,
    .nav-tab {
        width: 100%;
    }

    .caret-down,
    .mega-menu {
        display: none;
    }

    .store-btn,
    .customer-portal-btn {
        padding: 7px 12px;
        font-size: 14px;
    }

    .language-switcher {
        padding: 0;
        background: transparent;
    }

    .language-switcher a {
        padding: 5px 8px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .header {
        gap: 10px;
    }

    .store-btn {
        display: none;
    }

    .customer-portal-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px;
        font-size: 11px;
        line-height: 1;
    }

    .customer-portal-subtitle {
        font-size: 8px;
    }
}

/* =====================================================
   Large Screens
===================================================== */

@media (min-width: 1440px) {
    .header {
        padding: 20px 7%;
        gap: 28px;
    }

    .logo img {
        height: 50px;
    }

    .nav {
        gap: 30px;
    }

    .nav a,
    .store-btn,
    .customer-portal-btn {
        font-size: 18px;
    }

    .store-btn,
    .customer-portal-btn {
        padding: 10px 18px;
    }
}

@media (min-width: 1600px) {
    .header {
        padding-inline: 9%;
    }

    .logo img {
        height: 54px;
    }

    .nav {
        gap: 34px;
    }

    .nav a,
    .store-btn,
    .customer-portal-btn {
        font-size: 19px;
    }
}

@media (min-width: 1920px) {
    .header {
        padding-inline: 11%;
    }

    .logo img {
        height: 58px;
    }

    .nav {
        gap: 38px;
    }

    .nav a,
    .store-btn,
    .customer-portal-btn {
        font-size: 20px;
    }

    .store-btn,
    .customer-portal-btn {
        padding: 11px 20px;
    }
}

