/**
 * Header & Navigation Styles
 * Top bar, main header, mega menu, mobile navigation
 */

/* Top Bar with CTAs */
.top-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 15px;
}

.top-bar__phone svg {
    color: #d4488e;
}

.top-bar__phone:hover {
    color: #d4488e;
}

.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-top-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #d4488e 0%, #b03a78 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-top-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 72, 142, 0.3);
    background: linear-gradient(135deg, #b03a78 0%, #8a2d5e 100%);
    color: #fff;
}

/* Header */
.header {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.is-hidden {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-right: 16px;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-switcher__toggle:hover {
    background: #eee;
}

.lang-switcher__flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-switcher__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-switcher:hover .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-switcher__option:hover {
    background: #f5f5f5;
}

.lang-switcher__option.active {
    background: #fef0f5;
    color: #d4488e;
}

.lang-switcher__option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Mega Menu */
.nav__dropdown--mega {
    position: static;
}

.nav__mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px 40px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    min-width: 800px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.nav__dropdown--mega:hover .nav__mega-menu {
    opacity: 1;
    visibility: visible;
}

.nav__mega-column {
    min-width: 0;
}

.nav__mega-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #d4488e;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.nav__mega-link {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav__mega-link:hover {
    color: #d4488e;
    padding-left: 8px;
}

/* Mobile CTAs in header */
.header__mobile-cta,
.header__mobile-call {
    display: none;
}

/* Mobile Menu Button */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    margin: 3px 0;
    transition: all 0.3s;
}

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

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

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

/* Mobile Navigation */
.mobile-nav-dropdown {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 100000;
    overflow-y: auto;
    padding: 0;
    border-top: 1px solid #eee;
}

.mobile-nav-dropdown.is-open {
    display: block;
}

.mobile-nav-section {
    border-bottom: 1px solid #eee;
    padding: 16px 20px;
}

.mobile-nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mobile-nav-item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.mobile-nav-item-btn .mobile-nav-chevron {
    transition: transform 0.2s;
    color: #999;
}

.mobile-nav-item-btn.active .mobile-nav-chevron {
    transform: rotate(180deg);
}

.mobile-nav-subitems {
    display: none;
    padding: 0 0 8px 16px;
}

.mobile-nav-subitems.is-open {
    display: block;
}

.mobile-nav-subitems a {
    display: block;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.mobile-nav-subitems a:hover {
    color: #d4488e;
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #d4488e;
}

.mobile-nav-contact {
    display: flex;
    gap: 10px;
    padding: 15px 20px 0 20px;
}

.mobile-nav-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.mobile-nav-whatsapp {
    background: #25D366;
    color: #fff;
}

.mobile-nav-whatsapp:hover {
    background: #1da851;
}

.mobile-nav-email {
    background: #1a1a2e;
    color: #fff;
}

.mobile-nav-email:hover {
    background: #2d2d4a;
}

.mobile-nav-cta {
    padding: 20px;
}

.mobile-nav-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #d4488e 0%, #b03a78 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .header__inner {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header__logo-img {
        height: 40px;
    }

    .nav,
    .nav__links {
        display: none;
    }

    .header__actions {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 2;
    }

    .header__mobile-call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: #d4488e;
        border-radius: 0;
        text-decoration: none;
    }

    .header__mobile-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: linear-gradient(135deg, #d4488e 0%, #b03a78 100%);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        border-radius: 6px;
        text-decoration: none;
        white-space: nowrap;
    }

    .lang-switcher {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
        order: 3;
    }

    .nav__mega-menu {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .mobile-nav-dropdown {
        top: 60px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-dropdown {
        top: 52px;
    }
}

/* Keep header visible when menu is open */
body.menu-open .mobile-nav-dropdown {
    display: block;
    z-index: 100000;
}

body.menu-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.menu-open .lang-switcher__dropdown {
    z-index: 100002;
}
