/**
 * BobVila Header Styles
 * Font: Roboto
 */

/* Font Import */
body, .site-header {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header Top Bar */
.header-top-bar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #67921f;
    border-radius: 4px;
    color: #67921f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #67921f;
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Logo Wrapper - Centered */
.logo-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-logo {
    display: inline-block;
    margin-bottom: 5px;
}

.site-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
}

.site-tagline {
    margin: 0;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 400;
    white-space: nowrap;
}

/* Header Search */
.header-search-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #67921f;
    border-radius: 4px;
    background: transparent;
    color: #67921f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: #67921f;
    color: #fff;
}

/* Main Navigation */
.main-navigation {
    background: #2b2b2b;
    position: relative;
    z-index: 999;
}

.main-navigation .container {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
    margin: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: #3d3d3d;
}

/* Remove dropdown arrow styles */
.dropdown-arrow {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    left: 15px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    max-width: 800px;
    width: 90%;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #fff;
    color: #000;
}

.search-overlay .search-form {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.search-overlay .search-field {
    flex: 1;
    border: none;
    padding: 20px 25px;
    font-size: 18px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.search-overlay .search-submit {
    background: #67921f;
    color: #fff;
    border: none;
    padding: 20px 35px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.search-overlay .search-submit:hover {
    background: #567518;
}

/* Sticky Header */
.site-header.sticky {
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 16px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .logo-wrapper {
        order: 0;
    }
    
    .site-logo img {
        height: 32px;
    }
    
    .site-tagline {
        font-size: 9px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #2b2b2b;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 0 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #3d3d3d;
    }
    
    .nav-menu > li > a {
        width: 100%;
        padding: 16px 20px;
        justify-content: flex-start;
    }
    
    /* Mobile Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        gap: 10px;
    }
    
    .social-icons {
        gap: 6px;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
        border-width: 1px;
    }
    
    .social-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .site-logo img {
        height: 28px;
    }
    
    .site-tagline {
        font-size: 8px;
    }
    
    .search-toggle {
        width: 28px;
        height: 28px;
        border-width: 1px;
    }
    
    .search-toggle svg {
        width: 16px;
        height: 16px;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}
