/* ==================================================
   Cardápio Page - Oásis Motel
   ================================================== */
   :root {
    --primary-color: #9c1c19;
    --secondary-color: #691311;
    --accent-color: #d5a021;
    --dark-color: #333333;
    --light-color: #ffffff;
    --bg-color: #f5f5f5;
    --bg-dark: #1a0605;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    --primary-color-rgb: 156, 28, 25;
    --secondary-color-rgb: 105, 19, 17;
    --accent-color-rgb: 213, 160, 33;
}

/* Estilo básico para o container (caso não esteja no styles.css) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilo para o botão btn-primary (fallback) */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    margin-right: 8px;
}

/* Nova Seção: Cozinha 24 Horas */
.cozinha-info {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.cozinha-content {
    margin-top: 80px;
    display: flex;
    flex-direction: row; /* Ícones à esquerda, texto à direita */
    align-items: center; /* Alinha verticalmente os itens */
    gap: 40px; /* Espaço entre os ícones e o texto */
    flex-wrap: wrap; /* Permite que os elementos quebrem linha em telas menores */
}

.cozinha-icons {
    display: flex;
    gap: 20px; /* Espaço entre os dois ícones */
}

.cozinha-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cozinha-icon i {
    font-size: 64px; /* Aumentado de 48px para 64px */
    color: var(--light-color);
    margin-bottom: 15px; /* Aumentado de 10px para 15px */
}

.cozinha-icon span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px; /* Aumentado de 18px para 22px */
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    line-height: 1.2;
}

.cozinha-icon span.cozinha-title-number {
    font-size: 36px; /* Aumentado de 28px para 36px */
    color: var(--light-color); /* Cor branca para o "24", como na imagem */
    display: inline; /* Garante que fique na mesma linha */
}

.cozinha-text {
    flex: 1; /* O texto ocupa o espaço restante */
}

.cozinha-text p {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: var(--light-color);
    line-height: 1.6;
    margin: 0;
}

/* Seção: Pratos Executivos */
.cafe-manha {
    background-color: var(--primary-color);
    padding: 40px 0;
}

/* Seção: Petiscos */
.petiscos {
    background-color: var(--primary-color);
    padding: 40px 0;
}

/* Seção: Drinks */
.drinks {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--light-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.line-before,
.line-after {
    display: inline-block;
    height: 10px;
    background: repeating-linear-gradient(
        to right,
        var(--accent-color) 0,
        var(--accent-color) 5px,
        transparent 5px,
        transparent 10px
    );
    width: 200px;
    background-size: 200% 100%;
    animation: moveDashes 2s linear infinite;
}

@keyframes moveDashes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -20px 0;
    }
}

/* Inverte a direção da animação para a linha à direita */
.line-after {
    animation-direction: reverse;
}

.cafe-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

/* Nova Galeria em Camadas - OTIMIZADA */
.layered-gallery {
    width: 400px;
    position: relative;
    height: 400px;
    margin-bottom: 40px;
}

.gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
}

.gallery-card {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease-out;
    transform-origin: center;
    transform-style: preserve-3d;
    cursor: pointer;
    z-index: calc(6 - var(--order));
    top: calc(var(--order) * 15px);
    left: calc((var(--order) - 1) * 15px);
    border: 4px solid var(--light-color);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:nth-child(1) { transform: rotate(-6deg); }
.gallery-card:nth-child(2) { transform: rotate(-3deg); }
.gallery-card:nth-child(3) { transform: rotate(0deg); }
.gallery-card:nth-child(4) { transform: rotate(3deg); }
.gallery-card:nth-child(5) { transform: rotate(6deg); }
.gallery-card:nth-child(6) { transform: rotate(9deg); }

.gallery-card.active {
    z-index: 10;
    transform: translateY(-30px) scale(1.1) rotate(0deg);
}

/* Controles de galeria - Otimizados */
.gallery-controls {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 11;
    height: 35px;
}

.gallery-prev {
    left: 0;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-prev,
.gallery-next {
    background-color: var(--accent-color);
    border: none;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 12;
    touch-action: manipulation;
}

.gallery-prev i,
.gallery-next i {
    font-size: 14px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--light-color);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev:active,
.gallery-next:active,
.gallery-prev.active,
.gallery-next.active {
    transform: scale(0.95) translateY(1px);
    background-color: #ffffff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease-out;
}

/* Legenda da galeria */
.gallery-caption {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 10px 0;
}

.caption-text {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.caption-text:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.cafe-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cafe-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
}

.cafe-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--light-color);
    margin: 0 0 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center; /* Alinha verticalmente ao centro */
    justify-content: space-between; /* Alinha título à esquerda e preço à direita */
    flex-wrap: nowrap;
    width: 100%;
}

.item-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 5px;
}

/* Pontilhados entre título e preço */
.dotted-line {
    flex-grow: 1; /* Preenche o espaço entre título e preço */
    height: 1px;
    margin: 0 10px;
    border-bottom: 2px dotted var(--accent-color);
    opacity: 0.6;
    align-self: center; /* Centraliza verticalmente */
}

.item-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    text-align: right;
}

.item-details p {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: var(--light-color);
    margin: 0;
    line-height: 1.4;
    padding-left: 25px; /* Espaço para alinhar com o texto do título */
}

/* Promo Info */
.promo-info {
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: center;
}

.promo-info p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* Linha divisória animada única */
.divider-line {
    background-color: var(--primary-color);
    padding: 20px 0;
}

.full-dashed-line {
    display: block;
    height: 10px;
    background: repeating-linear-gradient(
        to right,
        var(--accent-color) 0,
        var(--accent-color) 5px,
        transparent 5px,
        transparent 10px
    );
    width: 100%;
    max-width: 800px; /* Largura máxima para não ficar muito longa */
    margin: 0 auto;
    background-size: 200% 100%;
    animation: moveDashes 2s linear infinite;
}

/* Seção: Pagamento */
.payment-section {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.payment-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.payment-content h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--light-color);
    top: 15px;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icons i {
    font-size: 36px;
    color: var(--accent-color);
    transition: var(--transition);
}

.payment-icons i:hover {
    color: var(--light-color);
}

/* Seção: Mapa */
.map-section {
    background-color: #ffffff;
    padding: 40px 0;
}

.map-section h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.map-container {
    max-width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.item-price .meat-type {
    font-size: 16px;
    color: var(--light-color);
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .item-price .meat-type {
        font-size: 14px;
    }
    
    .gallery-prev i,
    .gallery-next i {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .item-price .meat-type {
        font-size: 12px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25d366c7;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b354;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .cozinha-content {
        flex-direction: column; /* Empilha os elementos em telas menores */
        align-items: center; /* Centraliza os elementos */
    }

    .cozinha-icons {
        flex-direction: row; /* Ícones lado a lado em telas menores */
        justify-content: center; /* Centraliza os ícones */
        gap: 30px;
    }

    .cozinha-icon i {
        font-size: 48px;
    }

    .cozinha-icon span {
        font-size: 18px;
    }

    .cozinha-icon span.cozinha-title-number {
        font-size: 30px;
    }

    .cozinha-text {
        text-align: center; /* Centraliza o texto */
    }

    .cozinha-text p {
        font-size: 14px;
    }

    /* Todas as seções (Pratos Executivos, Petiscos, Drinks) */
    .section-title {
        font-size: 28px;
        gap: 10px;
    }

    .line-before,
    .line-after {
        width: 120px; /* Reduz a largura das linhas em telas menores */
    }

    .cafe-content {
        flex-direction: column;
        align-items: center;
    }

    .layered-gallery {
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin-bottom: 70px; /* Aumentado para acomodar a legenda */
    }

    .gallery-card {
        width: 250px;
        height: 250px;
    }
    
    .gallery-caption {
        bottom: -80px;
    }

    .cafe-item {
        flex-direction: column;
        align-items: stretch; /* Estica os itens para ocupar a largura total */
        gap: 10px;
    }
    
    .item-details h3 {
        font-size: 20px;
        display: flex;
        justify-content: space-between; /* Mantém título à esquerda e preço à direita */
        align-items: center; /* Alinha verticalmente ao centro */
        flex-wrap: nowrap;
        width: 100%;
    }

    .item-number {
        font-size: 20px;
    }

    .dotted-line {
        margin: 0 5px;
        flex-grow: 1; /* Preenche o espaço disponível */
    }

    .item-price {
        font-size: 20px;
    }
    
    .item-details p {
        font-size: 13px;
        padding-left: 20px;
    }

    /* Linha divisória */
    .full-dashed-line {
        max-width: 400px;
    }

    /* Seção de Pagamento */
    .payment-content h2 {
        font-size: 24px;
    }

    .payment-icons i {
        font-size: 30px;
    }

    /* Seção de Mapa */
    .map-section h3 {
        font-size: 20px;
    }

    .map-container {
        height: 300px;
    }
    
    /* Simplifica as rotações em mobile */
    .gallery-card:nth-child(1) { transform: rotate(-3deg); }
    .gallery-card:nth-child(2) { transform: rotate(-1deg); }
    .gallery-card:nth-child(3) { transform: rotate(0deg); }
    .gallery-card:nth-child(4) { transform: rotate(1deg); }
    .gallery-card:nth-child(5) { transform: rotate(3deg); }
    .gallery-card:nth-child(6) { transform: rotate(3deg); }
}

@media screen and (max-width: 480px) {
    .cozinha-icons {
        gap: 20px;
    }

    .cozinha-icon i {
        font-size: 42px;
    }

    .cozinha-icon span {
        font-size: 16px;
    }

    .cozinha-icon span.cozinha-title-number {
        font-size: 24px;
    }

    /* Todas as seções (Pratos Executivos, Petiscos, Drinks) */
    .section-title {
        font-size: 24px;
        gap: 5px;
    }

    .line-before,
    .line-after {
        width: 100px;
    }

    .layered-gallery {
        height: 300px;
        margin-bottom: 80px;
    }

    .gallery-card {
        width: 200px;
        height: 200px;
    }
    
    .caption-text {
        font-size: 16px;
        padding: 6px 14px;
    }

    .item-details h3 {
        font-size: 18px;
        display: flex;
        justify-content: space-between; /* Mantém título à esquerda e preço à direita */
        align-items: center; /* Alinha verticalmente ao centro */
        flex-wrap: nowrap;
        width: 100%;
    }

    .item-number {
        font-size: 18px;
    }

    .dotted-line {
        margin: 0 3px;
        flex-grow: 1; /* Preenche o espaço disponível */
    }

    .item-price {
        font-size: 18px;
    }
    
    .item-details p {
        padding-left: 15px;
    }

    /* Linha divisória */
    .full-dashed-line {
        max-width: 300px;
    }

    /* Seção de Pagamento */
    .payment-content h2 {
        font-size: 20px;
    }

    .payment-icons i {
        font-size: 24px;
    }

    /* Seção de Mapa */
    .map-section h3 {
        font-size: 18px;
    }

    .map-container {
        height: 250px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .gallery-card:hover,
    .gallery-card.active {
        transform: none !important;
    }
}

/* Otimizações para a galeria */
.gallery-card,
.gallery-caption .caption-text {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-prev:focus-visible,
.gallery-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Melhorias para dispositivos móveis */
@media screen and (max-width: 768px) {
    
    .gallery-prev::before,
    .gallery-next::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
}

@media screen and (max-width: 480px) {
    .gallery-next {
        right: 0px;
    }
}