/* ===== MOBILE MENU - FRESH START ===== */

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .mobile-toggle {
        order: 2;
        margin-left: auto;
    }

    .desktop-nav {
        display: none !important;
    }

    .header-contact {
        display: none !important;
    }

    /* Mobile Toggle Button */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
    }

    .mobile-toggle span {
        width: 25px;
        height: 3px;
        background: var(--card-text);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        overflow-y: auto;
        padding: 80px 20px 40px;
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 40px;
        color: var(--card-text);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1003;
        line-height: 1;
        padding: 0;
    }

    .mobile-menu-close:hover {
        color: var(--primary);
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
        gap: 0;
    }

    .mobile-menu-content > a {
        padding: 18px 20px;
        text-align: center;
        font-size: 18px;
        color: var(--card-text);
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
    }

    .mobile-menu-content > a.active {
        color: var(--primary);
    }

    /* Mobile Dropdown */
    .mobile-dropdown {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-dropdown-btn {
        width: 100%;
        padding: 18px 20px;
        background: none;
        border: none;
        font-size: 18px;
        color: var(--card-text);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-family: 'Afacad', sans-serif;
    }

    .mobile-dropdown-btn .arrow {
        font-size: 14px;
        transition: transform 0.3s;
    }

    .mobile-dropdown.open .mobile-dropdown-btn .arrow {
        transform: rotate(180deg);
    }

    .mobile-dropdown-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #FAF7F5;
    }

    .mobile-dropdown.open .mobile-dropdown-content {
        max-height: 300px;
    }

    .mobile-dropdown-content a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        font-size: 16px;
        color: var(--card-text);
        text-decoration: none;
    }

    .mobile-dropdown-content a:hover {
        color: var(--primary);
        background: rgba(143, 109, 79, 0.1);
    }

    .mobile-menu-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 20px;
        margin-top: 30px;
        border-top: 2px solid #f0f0f0;
        font-size: 16px;
        color: var(--card-text);
    }

    .mobile-menu-phone img {
        width: 24px;
        height: 24px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .desktop-nav {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .desktop-nav > a,
    .desktop-nav .dropdown > a {
        font-family: 'Afacad', sans-serif;
        font-weight: 400;
        font-size: 18px;
        color: var(--card-text);
        text-decoration: none;
        padding-bottom: 8px;
        position: relative;
        transition: color 0.3s;
        display: inline-block;
    }

    .desktop-nav > a:hover,
    .desktop-nav > a.active,
    .desktop-nav .dropdown > a:hover,
    .desktop-nav .dropdown > a.active {
        color: var(--primary);
    }

    /* Desktop Dropdown */
    .desktop-nav .dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

    .desktop-nav .dropdown > a::after {
        content: '›';
        display: inline-block;
        margin-left: 8px;
        transform: rotate(90deg);
        font-size: 18px;
        transition: transform 0.3s ease;
        vertical-align: middle;
    }

    .desktop-nav .dropdown:hover > a::after {
        transform: rotate(-90deg);
    }

    .desktop-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--card-bg);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 20px 30px;
        min-width: auto;
        white-space: nowrap;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .desktop-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .desktop-nav .dropdown-menu a {
        font-size: 15px;
        font-family: 'Afacad', sans-serif;
        padding: 10px 0;
        color: var(--card-text);
        text-decoration: none;
        position: relative;
        display: block;
        white-space: nowrap;
        text-align: left;
    }

    .desktop-nav .dropdown-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .desktop-nav .dropdown-menu a:hover {
        color: var(--primary);
    }

    .desktop-nav .dropdown-menu a:hover::after {
        width: 60%;
    }

    .header-contact {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        color: var(--card-text);
        text-decoration: none;
    }

    .header-contact img {
        width: 24px;
        height: 24px;
    }
}
