/* ===== HEADER ELEGANTE E MODERNO ===== */
.navbar {
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    padding: 0 80px;
    background: rgba(255, 255, 255, 0.726);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 30px rgba(67, 55, 39, 0.06);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(67, 55, 39, 0.08);
}

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

.navbar.scrolled {
    height: 80px !important;
    box-shadow: 0 2px 40px rgba(67, 55, 39, 0.1) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.navbar h1 {
    font-size: 28px;
    color: #433727;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-family: "Instrument Serif", serif;
    transition: all 0.3s ease;
}

.navbar h1:hover {
    color: #5a4a3a;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.navbar nav ul li a {
    font-size: 16px;
    color: #433727;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-family: "Instrument Serif", serif;
    letter-spacing: 0.01em;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #433727;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar nav ul li a:hover {
    color: #433727;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #433727;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #5a4a3a;
}

/* ===== TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 0 40px;
        height: 90px;
    }

    .navbar h1 {
        font-size: 26px;
    }

    .navbar nav ul {
        gap: 30px;
    }

    .navbar nav ul li a {
        font-size: 15px;
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 80px;
    }

    .navbar.scrolled {
        height: 70px;
        background: rgba(255, 255, 255, 0.55) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .navbar h1 {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        padding: 40px 0;
        margin: 0;
        list-style: none;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -4px 0 30px rgba(67, 55, 39, 0.1);
    }

    .navbar nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(67, 55, 39, 0.1);
    }

    .navbar nav ul li a {
        display: block;
        padding: 20px 0;
        font-size: 18px;
        width: 100%;
    }

    .navbar nav ul li:last-child {
        border-bottom: none;
    }

    .navbar nav ul.active {
        right: 0;
    }
}
