/**
 * Header Styles
 *
 * @package Augro_Fresh
 */

/* ==========================================================================
   Top Bar
   ========================================================================== */

.augrofresh-topbar {
    background-color: var(--augrofresh-black-primary);
    color: var(--augrofresh-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: none;
}

@media (min-width: 768px) {
    .augrofresh-topbar {
        display: block;
    }
}

.augrofresh-topbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.augrofresh-topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.augrofresh-topbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--augrofresh-white);
    text-decoration: none;
    transition: color var(--augrofresh-transition-fast);
}

.augrofresh-topbar-item:hover {
    color: var(--augrofresh-gold-primary);
}

.augrofresh-topbar-item i,
.augrofresh-topbar-item svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   Main Header
   ========================================================================== */

.augrofresh-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--augrofresh-transition-normal);
    z-index: 1000;
}

.augrofresh-header-sticky {
    position: sticky;
    top: 0;
}

.augrofresh-header.scrolled {
    background-color: var(--augrofresh-white);
    box-shadow: var(--augrofresh-shadow-lg);
}

.augrofresh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.augrofresh-logo {
    flex-shrink: 0;
}

.augrofresh-logo a {
    display: block;
    text-decoration: none;
}

.augrofresh-logo img {
    height: 4rem;
    width: auto;
    transition: transform var(--augrofresh-transition-normal);
}

@media (min-width: 768px) {
    .augrofresh-logo img {
        height: 5rem;
    }
}

.augrofresh-logo a:hover img {
    transform: scale(1.1);
}

.augrofresh-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--augrofresh-black-primary);
    transition: color var(--augrofresh-transition-fast);
}

.augrofresh-logo a:hover .augrofresh-logo-text {
    color: var(--augrofresh-gold-primary);
}

/* Custom logo from WordPress */
.custom-logo-link {
    display: block;
}

.custom-logo {
    height: 4rem;
    width: auto;
    transition: transform var(--augrofresh-transition-normal);
}

@media (min-width: 768px) {
    .custom-logo {
        height: 5rem;
    }
}

.custom-logo-link:hover .custom-logo {
    transform: scale(1.1);
}

/* ==========================================================================
   Desktop Navigation
   ========================================================================== */

.augrofresh-nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .augrofresh-nav-desktop {
        display: block;
    }
}

.augrofresh-primary-nav {
    /* Wrapper */
}

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

.augrofresh-nav-menu li {
    position: relative;
}

.augrofresh-nav-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--augrofresh-black-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color var(--augrofresh-transition-fast);
    position: relative;
}

.augrofresh-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--augrofresh-gold-primary);
    transition: width var(--augrofresh-transition-normal);
}

.augrofresh-nav-menu a:hover,
.augrofresh-nav-menu .augrofresh-active > a,
.augrofresh-nav-menu .current-menu-item > a {
    color: var(--augrofresh-gold-primary);
}

.augrofresh-nav-menu a:hover::after,
.augrofresh-nav-menu .augrofresh-active > a::after,
.augrofresh-nav-menu .current-menu-item > a::after {
    width: 100%;
}

/* Submenu */
.augrofresh-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--augrofresh-white);
    box-shadow: var(--augrofresh-shadow-xl);
    border-radius: var(--augrofresh-radius-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--augrofresh-transition-fast);
    list-style: none;
    margin: 0;
}

.augrofresh-nav-menu li:hover > .augrofresh-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.augrofresh-submenu li {
    margin: 0;
}

.augrofresh-submenu a {
    padding: 0.75rem 1.25rem;
    text-transform: none;
    font-size: 0.9375rem;
}

.augrofresh-submenu a::after {
    display: none;
}

.augrofresh-submenu a:hover {
    background-color: var(--augrofresh-gray-50);
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */

.augrofresh-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--augrofresh-radius-md);
    transition: background-color var(--augrofresh-transition-fast);
}

@media (min-width: 1024px) {
    .augrofresh-mobile-toggle {
        display: none;
    }
}

.augrofresh-mobile-toggle:hover {
    background-color: var(--augrofresh-gray-100);
}

.augrofresh-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.125rem;
}

.augrofresh-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--augrofresh-black-primary);
    border-radius: 1px;
    transition: all var(--augrofresh-transition-fast);
}

/* Hamburger animation */
.augrofresh-mobile-toggle[aria-expanded="true"] .augrofresh-hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.augrofresh-mobile-toggle[aria-expanded="true"] .augrofresh-hamburger span:nth-child(2) {
    opacity: 0;
}

.augrofresh-mobile-toggle[aria-expanded="true"] .augrofresh-hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

.augrofresh-mobile-nav-container {
    display: none;
    border-top: 1px solid var(--augrofresh-gray-200);
    background-color: var(--augrofresh-white);
    padding: 1rem 0;
    animation: slideDown 0.3s ease;
}

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

.augrofresh-mobile-nav-container.active {
    display: block;
}

@media (min-width: 1024px) {
    .augrofresh-mobile-nav-container {
        display: none !important;
    }
}

.augrofresh-mobile-nav {
    /* Wrapper */
}

.augrofresh-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.augrofresh-mobile-menu li {
    margin: 0;
}

.augrofresh-mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--augrofresh-black-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--augrofresh-radius-md);
    transition: all var(--augrofresh-transition-fast);
}

.augrofresh-mobile-menu a:hover,
.augrofresh-mobile-menu .current-menu-item > a {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--augrofresh-gold-primary);
}

/* Mobile submenu */
.augrofresh-mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
}

.augrofresh-mobile-menu .sub-menu a {
    font-size: 0.9375rem;
    font-weight: 400;
}
