@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html.menu-open {
    overflow: hidden;
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(253, 245, 230);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* HEADER MINIMALISTA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 7.5%;
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    z-index: 4000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 5px 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    padding-top: 10px;
}

#nav_logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

#nav_list {
    display: flex;
    list-style: none;
    gap: 40px;
}

#nav-close-button {
    display: none;
    padding: 25px;
    max-width: fit-content;
    font-size: 24px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: #8b4513;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b4513;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: rgb(253, 245, 230);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1100;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    animation: fadeInDropdown 0.3s ease forwards;
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background-color: rgba(113, 0, 0, 0.1);
    color: #8b4513;
    transform: translateX(5px);
}

.dropdown-menu li a::after {
    display: none;
}

.btn-contact {
    background: #8b4513;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 0%;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #7b3503;
    transform: translateY(-2px);
}

#mobile_btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 2000;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* RESPONSIVIDADE */
@media screen and (max-width: 1300px) {
    #nav_list {
        position: fixed;
        top: 0;
        width: 320px;
        height: 150vh;

        background: rgb(253, 245, 230);
        flex-direction: column;
        gap: 0;

        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);

        transform: translateX(100%);
        transition: transform 0.35s ease;
        right: 0;
        z-index: 3000;

        display: flex;
    }

    #nav_list.active {
        transform: translateX(0);
    }

    #nav-close-button {
        display: flex;
    }

    #mobile_btn {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        box-shadow: none;
        padding: 0;

        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s ease;
    }

    .dropdown-menu>* {
        overflow: hidden;
    }

    #navbar li {
        font-size: 24px;
        padding: 6px;
    }

    .dropdown-content li a {
        font-size: 16px;
    }

    .dropdown.active .dropdown-menu {
        /* max-height: 1000px; */
        grid-template-rows: 1fr;
    }

    .nav-item a,
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        padding: 18px, 25px;
        width: 100%;
    }

    .nav-item a:hover::after {
        width: 0;
    }

    .btn-contact {
        font-size: 24px;
    }
}