/* ===================================
   CLEAN HEADER V2 - CONSISTENT ACROSS ALL PAGES
   =================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Container */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Transparent header on hero */
.site-header.transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.site-header.transparent .nav-item {
    color: #ffffff;
}

.site-header.transparent .nav-item:hover {
    color: #c3372a;
}

.site-header.transparent .distributor-cta {
    background: rgba(195, 55, 42, 0.2);
    color: #ffffff !important;
    border: 1px solid rgba(195, 55, 42, 0.3);
}

.site-header.transparent .menu-icon,
.site-header.transparent .menu-icon::before,
.site-header.transparent .menu-icon::after {
    background: #ffffff;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #1d1d1f;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #1d1d1f;
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-list > li {
    position: relative;
}

/* Nav Items */
.nav-item {
    display: inline-block;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 8px 12px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-item:hover {
    color: #c3372a;
}

/* Distributor CTA */
.distributor-cta {
    background: rgba(195, 55, 42, 0.1);
    color: #c3372a !important;
    border-radius: 20px;
    padding: 8px 18px !important;
    font-weight: 600;
}

.distributor-cta:hover {
    background: rgba(195, 55, 42, 0.2);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 8px;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(195, 55, 42, 0.08);
    color: #c3372a;
}

/* Body Padding */
body {
    padding-top: 90px !important;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 20px;
    }
    
    .site-logo {
        height: 45px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: calc(100vh - 70px);
        background: #ffffff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 30px 0;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-list > li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item {
        display: block;
        padding: 16px 25px;
        font-size: 16px;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        background: #f9f9f9;
    }
    
    .dropdown-menu a {
        padding: 12px 45px;
        font-size: 14px;
    }
    
    body {
        padding-top: 70px !important;
    }
}

/* Mobile Menu Toggle Script */
.mobile-menu-toggle.active .menu-icon {
    background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}
