/* Client Shared Header Styles */
header.client-header,
.client-header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.client-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header.client-header .header-container,
.client-header .header-container,
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo img {
    height: auto;
    width: 170px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-menu .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-menu .has-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 0;
    z-index: 1001;
}

.nav-menu .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    padding: 0;
    margin: 0;
}

.nav-menu .dropdown-menu li:first-child {
    margin-top: 0;
}

.nav-menu .dropdown-menu li:last-child {
    margin-bottom: 0;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    background: transparent;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.nav-menu .dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .dropdown-menu a::before,
.nav-menu .dropdown-menu a::after {
    display: none;
}

.nav-menu .dropdown-menu a:hover {
    background-color: rgba(107, 142, 107, 0.08);
    color: var(--primary-green);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    transform: translateY(-2px);
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--white);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--white);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 2rem;
    padding-top: 5rem;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.active .mobile-nav-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
}

.mobile-nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: var(--primary-green);
}

/* Mobile Dropdown */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0.5rem 0 0 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-has-dropdown.active .mobile-dropdown-menu {
    max-height: 600px;
}

.mobile-dropdown-menu li {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.mobile-dropdown-menu a {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: none;
    padding: 0.5rem 0;
}

.mobile-dropdown-menu a:hover {
    color: var(--accent-green);
}

.mobile-cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    transform: translateY(-2px);
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
    
    .nav-menu .dropdown-menu {
        min-width: 280px;
    }
    
    .cta-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        max-width: 100%;
    }

    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo img {
        width: 150px;
    }
    
    .cta-button {
        display: none;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .logo img {
        width: 150px;
    }
    
    .mobile-nav-content {
        padding: 1.5rem;
        padding-top: 5rem;
    }
    
    .mobile-nav-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .mobile-nav-menu a {
        font-size: 1.1rem;
    }
}

