/* Header Brand Styles - Matching Premium Layout */

.site-header {
    background: #ffffff !important;
    color: #00a551 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure header stays white on all states */
.site-header:hover,
.site-header.scrolled {
    background: #ffffff !important;
    color: #00a551 !important;
}

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

.header-container-modern {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-branding img {
    max-height: 45px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
}

.site-logo-link {
    text-decoration: none;
    color: #00a551;
    display: flex;
    align-items: center;
}

.site-logo-link img {
    max-height: 45px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.site-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00a551;
}

.logo-accent {
    color: #ffa8c5;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 2.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    color: #1b1b1b;
    font-weight: 600;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0.2px;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00a551;
    transition: width 0.3s ease;
}

.main-menu a:hover,
.main-menu a.current-menu-item {
    color: #00a551;
}

.main-menu a:hover::after,
.main-menu a.current-menu-item::after {
    width: 100%;
}

.header-action-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-action-dots .action-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #00a551;
    box-shadow: 0 6px 12px rgba(0, 165, 81, 0.3);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #00a551;
    transition: var(--transition);
}

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

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

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

/* Responsive */
@media (max-width: 968px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0.75rem 1.5rem;
    }

    .header-container-modern {
        display: flex;
    }
    
    .site-logo-link img,
    .site-branding img {
        max-height: 40px !important;
        max-width: 180px !important;
    }
    
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-action-dots {
        display: none;
    }

    .main-navigation.menu-open {
        max-height: 500px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    .site-logo-link img,
    .site-branding img {
        max-height: 38px !important;
        max-width: 170px !important;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        gap: 5px;
        z-index: 1001;
        margin-left: auto;
    }
    
    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #1b1b1b;
        transition: all 0.3s ease;
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .main-navigation.menu-open {
        max-height: 500px;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        width: 100%;
    }
    
    .main-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .main-menu a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .site-logo-text {
        font-size: 1rem;
    }
    
    .menu-toggle {
        padding: 0.4rem;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
}
