/* ============================================
   NAVBAR MODERN - Design Avançado
   ============================================ */

.navbar-modern {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    gap: 40px;
}

/* Logo */
.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.navbar-item {
    display: flex;
    align-items: center;
    position: relative;
}


.navbar-link {
    color: #6c5142 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar-link:hover,
.navbar-link.active {
    color: #ffd700;
    background-color: transparent;
}

/* Botões especiais */
.navbar-link.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b7355;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    font-size: 14px;
}

.navbar-link.btn-primary:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b7355;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.navbar-link.btn-secondary {
    background: linear-gradient(135deg, #f5e6d3 0%, #ead5c1 100%);
    color: #8b7355;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 20px;
    border: 2px solid #d4a574;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.15);
    font-size: 14px;
}

.navbar-link.btn-secondary:hover {
    background: linear-gradient(135deg, #f5e6d3 0%, #ead5c1 100%);
    border-color: #d4a574;
    color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.2);
}

/* Dropdown */
.dropdown-container {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle:hover {
    color: #ffd700;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    visibility: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.dropdown-item {
    color: #8b7355;
    padding: 12px 20px;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: transparent;
    color: #ffd700;
    padding-left: 24px;
}

/* Toggle Button (Mobile) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: #8b7355;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   RESPONSIVO - Tablet (768px - 1199px)
   ============================================ */

@media (max-width: 1199px) {
    .navbar-container {
        padding: 0 24px;
        gap: 20px;
    }

    .navbar-menu {
        gap: 4px;
    }

    .navbar-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .navbar-link.btn-primary,
    .navbar-link.btn-secondary {
        padding: 8px 14px;
        font-size: 13px;
    }

    .logo-img {
        max-width: 120px;
    }
}

/* ============================================
   RESPONSIVO - Mobile (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
    .navbar-container {
        padding: 0 16px;
        height: 60px;
        gap: 16px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: #ffffff;
        border-top: 1px solid #f0f0f0;
        padding: 16px 0;
        gap: 0;
        justify-content: flex-start;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-link {
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        font-size: 14px;
        justify-content: flex-start;
        color: #8b7355;
    }

    .navbar-link:hover,
    .navbar-link.active {
        background-color: transparent;
        color: #ffd700;
    }

    .navbar-link.btn-primary,
    .navbar-link.btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 12px;
        margin: 8px 12px;
        width: auto;
        color: #8b7355;
    }

    .navbar-link.btn-primary {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    }

    .navbar-link.btn-secondary {
        background: linear-gradient(135deg, #f5e6d3 0%, #ead5c1 100%);
        border: 2px solid #d4a574;
    }

    .dropdown-menu {
        position: static;
        background-color: #f9f9f9;
        border: none;
        border-left: 3px solid #ffd700;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: auto;
        margin-top: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .dropdown-menu.active {
        max-height: 500px;
    }

    .dropdown-item {
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: transparent;
        color: #ffd700;
        padding-left: 44px;
    }

    .dropdown-container {
        width: 100%;
    }

    .logo-img {
        max-width: 100px;
    }
}

/* ============================================
   RESPONSIVO - Mobile Pequeno (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 12px;
    }

    .navbar-link {
        font-size: 13px;
        padding: 12px 16px;
    }

    .logo-img {
        max-width: 90px;
    }
}
