/* Custom Header Styles */

/* Reset and Base */
.custom-site-header * {
    box-sizing: border-box;
}

.custom-site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide Blocksy/Elementor Headers */
[data-id="header"],
.site-header,
.elementor-location-header,
.elementor-widget-header,
.ehf-header {
    display: none !important;
}

/* Top Promotional Bar */
.top-promo-bar {
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.top-promo-bar .promo-text {
    text-transform: capitalize;
}

/* Main Header */
.main-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-center {
    flex: 1;
    text-align: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: inherit;
}

/* Logo */
.site-logo {
    text-decoration: none;
    display: inline-block;
}

.logo-image {
    height: 96px;
    width: auto;
    max-width: 400px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Newsletter Button */
.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.newsletter-btn:hover {
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    padding: 12px 0;
}

.nav-desktop {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-desktop a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-transform: capitalize;
    padding: 5px 17px;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    opacity: 0.8;
}

.nav-mobile {
    text-align: center;
}

.nav-mobile a {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.search-container input {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.search-container button[type="submit"] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo-image {
        height: 72px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .newsletter-btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .top-promo-bar {
        font-size: 12px;
        padding: 6px 0;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-mobile {
        display: none !important;
    }
}

/* Mobile Menu Active State */
.mobile-menu-active .nav-mobile {
    display: block !important;
    animation: slideDown 0.3s ease;
}

.mobile-menu-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
