body {
    margin: 0;
    background: #0f2a1f;
}

.cardapio {
    padding: 140px 20px 80px;
    max-width: 1200px;
    margin: auto;
}

.cardapio h1 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 50px;
    color: #bd3702;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 60px;
    background-color: #8b0000;
    padding: 20px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    display: flex;

}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-center,
.nav-right {
    transform: translateY(-2%);
}

.nav-left {
    position: absolute;
    left: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
}

.nav-left .btn-pedir {
    white-space: nowrap;
}

.nav-btn {
    display: inline-block;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.nav-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-right: 20px;
}

.nav-menu {
    text-decoration: none;
    padding: 20px;
    font-size: 20px;
    position: relative;
    font-weight: 800;
    color: transparent;
    background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #036613 50%, #036613 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.4s ease;
}

.nav-menu::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 1.7px;
    background-color: #ffffff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu:hover {
    background-position: -100% 0%;
}

.nav-menu:hover::after {
    width: 100%;
    left: 0;
}

.logo {
    max-width: 140px;
    height: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    position: absolute;
    right: 60px;
}

.nav-menu-mobile {
    display: none;
}

/* BOTÕES */

.btn-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px 22px;
    border: 2px solid #ffffff;
    border-radius: 9px;
    z-index: 1000;
    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
}

.nav-right span {

    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.icon-shop {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-shop:hover {

    transform: translateY(-2px);
    color: rgb(4, 138, 4);
    border-color: rgb(4, 138, 4);
    transform: scale(1.05);
}

.btn-shop:hover span {
    color: rgb(4, 138, 4);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-topo {
  position: fixed;
  bottom: 90px;
  right: 25px;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #8b0000;
  color: #ffffff;

  border: 2px solid #ffffff;
  border-radius: 50%;

  cursor: pointer;
  text-decoration: none;

  opacity: 0;
  pointer-events: none;

  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;

  z-index: 998;
}

.btn-topo.visible svg {
  width: 22px;
  height: 22px;
  display: block;
  transform: translate(10px, 10px) !important;

}

.btn-topo.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-topo:hover {
  background-color: #aa0808;
  transform: translateY(0) scale(1.05);
}


/* ===== WHATSAPP ===== */
.whatsapp-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}

.whatsapp-flutuante:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.whatsapp-flutuante img {
    width: 22px;
}

/* ===== MENU MOBILE ===== */

/* Variaveis */
:root {
    --menu-bg: #0f2a1f;
    --menu-border: #1f4d3a;
    --menu-hover: #6e0a0a;
    --menu-text: #ffffff;
    --menu-muted: #b7d6c8;
}

.nav-menu-mobile {
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.menu-hamburger {
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


.menu-mobile {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 280px;
    background: #0f2a1f;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: left 0.3s ease;
    z-index: 1000;
}

.menu-mobile.active {
    left: 20px;
}


.menu-title {
    color: var(--menu-text);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--menu-border);
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-link {
    color: var(--menu-text);
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.25s ease, transform 0.2s ease;
}

.menu-link:hover {
    transform: translateX(4px);
    color: #aa0808;
}

.menu-link:first-child {
    background: #1e6f4f;
    font-weight: 700;
}

.menu-link:first-child:hover {
    background: #278a62;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* CATEGORIAS */

.categoria {
    margin-bottom: 70px;
}

.categoria h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #e2e2e2;
    border-left: 6px solid #8b0000;
    padding-left: 12px;
}

.grid-cardapio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.item-cardapio {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.item-cardapio:hover {
    transform: translateY(-5px);
}

.item-cardapio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 16px;
    text-align: center;
}

.item-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.item-info span {
    font-size: 16px;
    font-weight: bold;
    color: #8b0000;
}

/* ===== FOOTER ===== */
.footer {
    background: #310606;
    color: #fff;
    width: 100%;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.footer-col:first-child {
    justify-self: start;
    text-align: left;
}

.footer-col:last-child {
    justify-self: end;
    text-align: right;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #e5e5e5;
}

.footer-text {
    line-height: 1.8;
    font-size: 15px;
    color: #d0d0d0;
}

.footer-redes {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 10px;
}

.redes {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.redes:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 14px;
    color: #bfbfbf;
}

/* =========================================================
                RESPONSIVIDADE — CARDÁPIO 
========================================================= */

/* ================= DESKTOP ================= */
@media (min-width: 1025px) {

    /* menu textual só no desktop */
    .nav-menu {
        display: inline-block;
    }

    /* hambúrguer SEMPRE visível */
    .menu-hamburger,
    .nav-menu-mobile {
        display: block;
    }
}

/* ================= TABLET + MOBILE ================= */
@media (max-width: 1024px) {

    /* esconde menus textuais */
    .nav-menu {
        display: none !important;
    }

    /* hambúrguer sempre ativo */
    .menu-hamburger,
    .nav-menu-mobile {
        display: block !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-left {
        display: block;
    }

    .nav-center {
        transform: translateY(-5%);
    }

    /* carrinho */
    .nav-right {
        position: absolute;
        right: 10%;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-right span {
        display: none;
    }

    .btn-shop {
        padding: 8px;
        border-radius: 10px;
    }

    /* cardápio */
    .cardapio {
        padding: 120px 20px 60px;
    }

    .grid-cardapio {
        grid-template-columns: repeat(2, 1fr);
    }

    .categoria h2 {
        font-size: 26px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .navbar {
        max-height: 80px;
        padding: 10px 15px;
    }

    .nav-container {
        padding: 12px 15px;
    }

    .logo {
        max-width: 115px;
    }

    .cardapio h1 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .categoria {
        margin-bottom: 50px;
    }

    .categoria h2 {
        font-size: 24px;
    }

    .item-cardapio img {
        height: 180px;
    }

    /* footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-col:first-child,
    .footer-col:last-child {
        justify-self: center;
        text-align: center;
    }

    .footer-redes {
        justify-content: center;
    }

    /* WhatsApp */
    .whatsapp-flutuante {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .whatsapp-flutuante span {
        display: none;
    }

}

/* ================= MOBILE PEQUENO ================= */
@media (max-width: 600px) {

    .grid-cardapio {
        grid-template-columns: 1fr;
    }

    .item-info h3 {
        font-size: 16px;
    }

    .item-info span {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
