/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1600px) {
    .header-container {
        max-width: 1600px;
    }
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    overflow: visible;
}

.header-logo img,
.header-logo svg {
    height: 50px;
    cursor: pointer;
    overflow: visible;
    display: block;
}

.header-logo .logo-img {
    max-width: 200px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 40px;
    flex: 1;
    justify-content: space-between;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.header-nav ul li a {
    color: var(--text-dark);
    font-weight: var(--font-weight-regular);
    font-size: 0.95rem;
    transition: color var(--transition-normal);
    position: relative;
}

.header-nav ul li a:hover {
    color: var(--turquoise-deep);
}

.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--turquoise-deep);
    transition: width var(--transition-normal);
}

.header-nav ul li a:hover::after {
    width: 100%;
}

/* Contact Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-2px);
}

.btn-call {
    color: var(--turquoise-deep);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-call:hover {
    color: var(--coral);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.lang-switcher a {
    color: var(--text-medium);
    font-weight: var(--font-weight-medium);
}

.lang-switcher a.active {
    color: var(--turquoise-deep);
}

/* CTA Button in Header */
.header-cta {
    background-color: var(--coral);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.header-cta:hover {
    background-color: #b8402f;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--turquoise-deep);
    padding: 8px;
    margin-right: 5px;
}


/* Mobile Menu */
@media (max-width: 992px) {
    .header-nav {
        margin: 0;
    }
    
    .header-nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0 150px;
        gap: 0;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .header-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .header-nav ul li a {
        display: block;
        width: 100%;
        padding: 18px 30px;
        text-align: left;
    }
    
    .header-nav ul.active {
        left: 0;
    }
    
    /* Hide actions by default on mobile */
    .header-nav .header-actions {
        display: none;
        position: fixed;
        bottom: -200px;
        left: 0;
        width: 100%;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    /* Show actions only when menu is open */
    .header-nav ul.active + .header-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 30px;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        opacity: 1;
        border-top: 2px solid #f0f0f0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1002;
    }
    
    /* Make buttons full width in mobile menu */
    .header-nav ul.active + .header-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .lang-switcher {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header-logo img,
    .header-logo svg {
        height: 40px;
    }
    
    .header-container {
        padding: 12px 15px;
    }
}
