/* =============================================
   VARIÁVEIS GLOBAIS
   ============================================= */
:root {
    --verde: #214130;
    --verde-escuro: #08361f;
    --dourado: #d4af37;
    --branco: #ffffff;
    --preto: #000000;
    --cinza-suave: #a0a0a0;
    --fundo-card: #f9f9f9;
}

/* =============================================
   RESET E BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    background: var(--preto);
    color: var(--branco);
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}

/* =============================================
   BANNER DE COOKIES
   ============================================= */
.cookie-simple-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--verde);
    border-top: 3px solid var(--dourado);
    padding: 15px 0;
    z-index: 10000;
    display: none;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.cookie-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.cookie-text p {
    font-size: 14px;
    color: var(--branco);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-aceitar,
.btn-cookie-recusar {
    background: var(--branco);
    color: var(--preto);
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 13px;
}

.btn-cookie-aceitar:hover,
.btn-cookie-recusar:hover {
    background: var(--dourado);
    color: var(--preto);
}

/* =============================================
   HEADER
   ============================================= */
header {
    display: flex;
    justify-content: space-between;
    padding: 10px 8%;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--verde);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-texto {
    color: var(--dourado);
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

nav a {
    color: var(--branco);
    text-decoration: none;
    margin-left: 20px;
    font-size: 12px;
    font-weight: bold;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--dourado);
}

/* =============================================
   CARROSSEL
   ============================================= */
.hero-slider {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 10px #000;
}

/* =============================================
   DESTAQUES DA COZINHA
   ============================================= */
.pratos-da-casa {
    padding: 40px 5%;
    background: var(--branco);
    color: var(--preto);
    text-align: center;
}

.section-title {
    color: var(--verde);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.pratos-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.prato-card {
    flex: 1;
    min-width: 280px;
    background: var(--fundo-card);
    padding: 20px;
    border-radius: 15px;
    border-bottom: 5px solid var(--verde);
    transition: transform 0.3s;
}

.prato-card:hover {
    transform: translateY(-10px);
}

.prato-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.prato-card h3 {
    margin: 15px 0 8px;
    font-size: 1.2rem;
    color: var(--verde);
}

/* =============================================
   BOTÕES DE AÇÃO
   ============================================= */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
}

.btn-delivery {
    background: var(--verde);
    color: var(--branco);
    border: none;
    padding: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.btn-delivery:hover {
    background: var(--verde-escuro);
}

.btn-cardapio {
    display: block;
    background: var(--dourado);
    color: var(--preto);
    text-decoration: none;
    padding: 20px;
    font-weight: bold;
    border-radius: 10px;
    font-size: 15px;
    transition: opacity 0.3s;
}

.btn-cardapio:hover {
    opacity: 0.85;
}

/* =============================================
   NOSSA HISTÓRIA
   ============================================= */
.historia {
    padding: 100px 10%;
    background: var(--verde);
    text-align: center;
}

.historia-container h2 {
    color: var(--dourado);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.historia-container p {
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
}

/* =============================================
   RODAPÉ
   ============================================= */
footer {
    padding: 60px 10%;
    border-top: 4px solid var(--dourado);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Esquerda */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    display: block;
}

.footer-brand span {
    color: var(--dourado);
    font-size: 20px;
    font-weight: bold;
}

.socials {
    margin-top: 20px;
}

.socials a {
    text-decoration: none;
}

.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;
    transition: transform 0.3s;
}

.socials a:hover i {
    transform: scale(1.2);
}

/* Direita */
.footer-right {
    text-align: right;
}

.footer-title {
    color: var(--dourado);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: bold;
}

.address-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.address-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.address-item:hover {
    transform: translateX(-5px);
}

.address-text {
    text-align: right;
    margin-right: 15px;
}

.address-text .unit-name {
    color: var(--dourado);
    font-weight: 900;
    font-size: 14px;
    display: block;
    letter-spacing: 1px;
}

.address-text p {
    color: var(--cinza-suave);
    font-size: 13px;
    margin: 4px 0 0 0;
}

.gold-bar-vertical {
    width: 3px;
    height: 45px;
    background: var(--dourado);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

/* =============================================
   TELA DE DELIVERY
   ============================================= */
.delivery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--verde);
    z-index: 2000;
    padding: 60px 10%;
    overflow-y: auto;
    text-align: center;
}

.delivery-overlay.active-screen {
    display: block;
}

.delivery-title {
    color: var(--branco);
    font-size: 2rem;
    margin-bottom: 10px;
}

.geo-status {
    color: var(--dourado);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Grid de cards */
.units-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 10px 0;
}

/* =============================================
   CARD DE UNIDADE (ESTADO PADRÃO)
   ============================================= */
.unit-card {
    background: var(--branco);
    color: var(--verde);
    width: 300px;
    padding: 30px 25px;
    border-radius: 15px;
    border: 3px solid transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.unit-card:hover {
    border-color: var(--dourado);
    transform: translateY(-5px);
}

.unit-card-name {
    color: var(--verde);
    font-size: 1.1rem;
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

/* Label de distância */
.km-label {
    display: block;
    font-weight: bold;
    color: #000; 
    font-size: 1rem;
    margin: 15px 0;
    min-height: 24px;
}

/* Botão de pedido */
.btn-pedido {
    background: var(--verde);
    color: var(--branco);
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
}

.btn-pedido:hover {
    background: var(--verde-escuro);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-pedido:active {
    background: var(--dourado);
    transform: scale(0.97);
}

/* =============================================
   CARD MAIS PRÓXIMO — DESTAQUE
   ============================================= */
.card-destaque {
    border-color: var(--dourado) !important;
    background: #fffbf0 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.45) !important;
}

.card-destaque .km-label {
    color: var(--verde) !important;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--dourado);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
}

.card-destaque .btn-pedido {
    background: var(--dourado);
    color: var(--preto);
}

.card-destaque .btn-pedido:hover {
    background: #c09b28;
}

/* =============================================
   BOTÃO VOLTAR
   ============================================= */
.btn-voltar {
    background: transparent;
    border: 2px solid var(--branco);
    color: var(--branco);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    margin-bottom: 25px;
    font-size: 14px;
}

.btn-voltar:hover {
    border-color: var(--dourado);
    color: var(--dourado);
}

.btn-voltar:active {
    background: var(--dourado);
    color: var(--preto);
    transform: scale(0.95);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        flex-direction: column; /* Empilha a logo e o menu */
        gap: 15px; /* Dá um respiro entre a logo e os links */
    }

    .logo-texto {
        font-size: 16px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* Permite que os links quebrem de linha se faltar espaço */
        width: 100%;
    }

    nav a {
        margin: 5px 10px; /* Aumenta a área de clique para o dedo */
        font-size: 13px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
    }

    .address-container {
        align-items: flex-start;
    }

    .address-item {
        flex-direction: row-reverse;
    }

    .address-text {
        text-align: left;
        margin-right: 0;
        margin-left: 15px;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .unit-card {
        width: 100%;
        max-width: 340px;
    }

    .delivery-overlay {
        padding: 40px 5%;
    }
.insta-unit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    color: var(--branco);
    transition: opacity 0.2s;
}

.insta-unit:hover {
    opacity: 0.75;
}

.insta-unit .fa-instagram {
    font-size: 16px;
}