/**
 * Redesigned Header Styles
 * Clean, semantic structure with proper z-index
 * Fonts loaded via reset.css
 */

/* ========== VARIABLES ========== */
:root {
    --h-red: #FE0000;
    --h-red-dark: #C00000;
    --h-black: #000000;
    --h-white: #ffffff;
    --h-gray: #f8f8f8;
    --h-dark-gray: #333333;
    --h-border: rgba(0,0,0,0.08);
    --h-font-title: 'Bebas Neue', sans-serif;
    --h-font-nav: 'Teko', sans-serif;
    --h-font-body: 'Rajdhani', sans-serif;
    --h-transition: 0.3s ease;
    --h-container: 1600px;
}

/* ========== CONTAINER ========== */
.header-container {
    width: 100%;
    max-width: var(--h-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== UTILITY BAR ========== */
.header-utility-bar {
    background: var(--h-black);
    padding: 6px 0;
}

.utility-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.utility-menu a {
    color: var(--h-white);
    text-decoration: none;
    font-size: 13px;
    font-family: var(--h-font-body);
    transition: color var(--h-transition);
}

.utility-menu a:hover {
    color: var(--h-red);
}

/* ========== SLOGAN BAR ========== */
.header-slogan-bar {
    background: var(--h-red);
    text-align: center;
    padding: 8px 0;
}

.slogan-text {
    font-family: var(--h-font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--h-white);
    font-style: italic;
    letter-spacing: 1px;
}

.slogan-text strong {
    font-weight: 800;
    text-transform: uppercase;
}

/* ========== MAIN HEADER ========== */
.site-header {
    background: var(--h-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--h-border);
}

.site-header .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Contact Info */
.header-contact {
    display: flex;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--h-dark-gray);
    text-decoration: none;
    font-family: var(--h-font-nav);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--h-transition);
}

.contact-link svg {
    color: var(--h-red);
}

.contact-link:hover {
    color: var(--h-red);
}

/* Logo */
.header-logo {
    text-align: center;
}

.header-logo img {
    max-height: 45px;
    width: auto;
    transition: transform var(--h-transition);
}

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

/* Header Actions (Right Side) */
.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Shop by Club Button - Prominent CTA */
.btn-shop-club {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--h-red);
    color: var(--h-white);
    padding: 0 20px;
    height: 40px;
    font-family: var(--h-font-nav);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 2px solid var(--h-red);
    position: relative;
    overflow: hidden;
    transition: all var(--h-transition);
    box-shadow: 0 2px 8px rgba(254, 0, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-shop-club::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;
}

.btn-shop-club:hover::before {
    left: 100%;
}

.btn-shop-club:hover {
    background: var(--h-black);
    border-color: var(--h-black);
    color: var(--h-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(254, 0, 0, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(254, 0, 0, 0.5); }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--h-gray);
    color: var(--h-dark-gray);
    transition: all var(--h-transition);
}

.social-icons a:hover {
    background: var(--h-red);
    color: var(--h-white);
    transform: translateY(-2px);
}

/* ========== MAIN NAVIGATION ========== */
.main-navigation {
    background: var(--h-gray);
    border-bottom: 1px solid var(--h-border);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 50px;
}

.desktop-menu {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Primary Menu */
.primary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

/* Hide "Shop by Club" from nav menu */
.primary-menu > li > a[href*="stores.hamcospo.com"],
.primary-menu > li > a[href*="shop-by-club"],
.primary-menu > li > a[href*="stores."],
.primary-menu > li:has(> a[href*="stores."]) {
    display: none !important;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 8px 12px;
    color: var(--h-black);
    text-decoration: none;
    font-family: var(--h-font-nav);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--h-transition);
    position: relative;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--h-red);
    transform: scaleX(0);
    transition: transform var(--h-transition);
}

.primary-menu > li > a:hover {
    color: var(--h-red);
}

.primary-menu > li > a:hover::after {
    transform: scaleX(1);
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a {
    color: var(--h-red);
}

.primary-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--h-white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 3px solid var(--h-red);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--h-transition);
    z-index: 1000;
}

.primary-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.primary-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--h-dark-gray);
    text-decoration: none;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all var(--h-transition);
}

.primary-menu .sub-menu a:hover {
    background: rgba(254,0,0,0.05);
    border-left-color: var(--h-red);
    padding-left: 25px;
    color: var(--h-red);
}

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--h-black);
    border-radius: 2px;
    transition: all var(--h-transition);
}

.hamburger-line:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--h-red);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--h-red);
}

/* ========== MOBILE MENU PANEL ========== */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--h-white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 10000;
    overflow-y: auto;
    transition: right var(--h-transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.is-open {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--h-border);
}

.mobile-logo img {
    max-height: 35px;
    width: auto;
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--h-gray);
    border: none;
    padding: 0;
    margin: 0;
    color: var(--h-black);
    line-height: 1;
    transition: all var(--h-transition);
}

.mobile-close:hover {
    background: var(--h-red);
    color: var(--h-white);
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--h-border);
}

.mobile-contact-bar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--h-dark-gray);
    text-decoration: none;
    font-family: var(--h-font-nav);
    font-size: 15px;
    font-weight: 600;
}

.mobile-contact-bar svg {
    color: var(--h-red);
}

/* Mobile Shop Button */
.mobile-shop-btn {
    display: block;
    margin: 15px 20px;
    padding: 14px 20px;
    background: var(--h-red);
    color: var(--h-white);
    text-align: center;
    text-decoration: none;
    font-family: var(--h-font-nav);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.3);
    transition: all var(--h-transition);
}

.mobile-shop-btn:hover {
    background: var(--h-black);
}

/* Mobile Menu */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
}

.mobile-menu > li > a[href*="stores.hamcospo.com"],
.mobile-menu > li > a[href*="shop-by-club"],
.mobile-menu > li:has(> a[href*="stores."]) {
    display: none !important;
}

.mobile-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--h-black);
    text-decoration: none;
    font-family: var(--h-font-nav);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--h-border);
    transition: all var(--h-transition);
}

.mobile-menu > li > a:hover {
    color: var(--h-red);
    padding-left: 25px;
}

.mobile-menu > li.menu-item-has-children > a {
    position: relative;
}

.mobile-menu > li.menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: 400;
}

.mobile-menu > li.menu-item-has-children.submenu-open > a::after {
    content: '-';
}

.mobile-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--h-gray);
    border-left: 3px solid var(--h-red);
    margin-left: 20px;
}

.mobile-menu > li.menu-item-has-children.submenu-open > .sub-menu {
    display: block;
}

.mobile-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--h-dark-gray);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px dashed var(--h-border);
}

.mobile-menu .sub-menu a:hover {
    color: var(--h-red);
}

/* Mobile Social Icons */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid var(--h-border);
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--h-gray);
    color: var(--h-dark-gray);
    transition: all var(--h-transition);
}

.mobile-social a:hover {
    background: var(--h-red);
    color: var(--h-white);
}

/* ========== MOBILE OVERLAY ========== */
.mobile-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--h-transition);
    cursor: pointer;
}

.mobile-overlay-bg.is-open {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ========== STICKY NAVIGATION ========== */
.main-navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

body.admin-bar .main-navigation.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .main-navigation.sticky {
        top: 46px;
    }
}

/* ========== RESPONSIVE - TABLET & MOBILE ========== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .desktop-menu {
        display: none;
    }
}

/* ========== MOBILE SMALL ========== */
@media (max-width: 768px) {
    .utility-menu {
        gap: 12px;
    }

    .utility-menu a {
        font-size: 11px;
    }

    .slogan-text {
        font-size: 15px;
    }

    .site-header .header-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .header-contact,
    .header-actions {
        display: none;
    }

    .header-logo img {
        max-height: 40px;
    }

    .site-header {
        padding: 10px 0;
    }
}
