@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #8b4513; /* SaddleBrown */
    --secondary: #556b2f; /* DarkOliveGreen */
    --accent: #d2691e; /* Chocolate */
    --bg-light: #fdf5e6; /* OldLace */
    --bg-dark: #2c1e14;
    --text-main: #333;
    --text-light: #fdf5e6;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Header & Navigation */
header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 0.6rem 0;
    background: rgba(44, 30, 20, 0.98);
    backdrop-filter: blur(15px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

header.scrolled .nav-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

.logo-area {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

header.scrolled .logo-area {
    text-align: left;
    transform: scale(0.85);
    transform-origin: left center;
}

.logo-area h1 {
    font-family: 'Daniel', cursive;
    font-size: 2.2rem;
    color: var(--accent);
    letter-spacing: 0;
    margin-bottom: -8px;
    line-height: 1;
}

.logo-area span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--text-light);
    opacity: 0.8;
}

header.scrolled .logo-area span {
    letter-spacing: 3px;
}

nav {
    width: 100%;
    transition: all 0.4s ease;
}

header.scrolled nav {
    width: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

header.scrolled .nav-tabs {
    border-bottom: none;
    padding-bottom: 0;
    gap: 1.5rem;
}

.nav-tabs li {
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-tabs li:hover, .nav-tabs li.active {
    opacity: 1;
    color: var(--accent);
}

.nav-tabs li::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-tabs li.active::after {
    width: 100%;
}

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 170px 1.5rem 2rem 1.5rem; /* Aumentado de 140px para 170px para evitar corte pelo header */
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* Menu Consolidation */
.menu-category {
    padding: 3rem 0;
}

.category-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 0;
}

.menu-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(139, 69, 19, 0.2), rgba(0, 0, 0, 0));
    margin: 2rem 0;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem; /* Espaço extra para não ser cortado pela aba superior */
}

.dish-nav-bar {
    display: flex;
    justify-content: flex-start; /* Alinhado à esquerda para scroll horizontal */
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Esconde barra no Firefox */
}

.dish-nav-bar::-webkit-scrollbar {
    display: none; /* Esconde barra no Chrome/Safari */
}

.dish-nav-item {
    background: white;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    white-space: nowrap; /* Garante que o texto não quebre */
}

.dish-nav-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.15);
}

/* Dish Detail Section */
#detalhe-prato {
    padding-top: 2rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.back-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
}

.detail-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.detail-thumbnails img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.detail-thumbnails img:hover, .detail-thumbnails img.active {
    opacity: 1;
    border-color: var(--accent);
}

.detail-ing-list {
    list-style: disc;
    padding-left: 1.5rem;
    columns: 2;
    margin-top: 1rem;
}

.dish-history-section {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    margin-top: 4rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.dish-history-section h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.dish-history-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
.hero {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Gap reduzido para aproximar imagem e texto */
    padding: 4rem 0;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-image {
    flex: 1.5; /* Aumentado drasticamente para dar máximo destaque à imagem */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-frame {
    width: 350px; /* Tamanho mediano */
    height: 350px;
    border-radius: 50%;
    border: 10px solid var(--primary); /* Borda marrom */
    background-color: #d2b48c; /* Fundo em um tom de marrom claro (tan) bem diferente de fora */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Espaço para não encostar na borda circular */
    margin: 0 auto;
}

.logo-frame:hover {
    transform: scale(1.05);
}

.logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Não corta nenhuma parte da imagem */
}
.hero-image img {
    max-width: 100%;
    max-height: 850px; /* Aumentado para 850px para tamanho máximo */
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Menu Cards */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.menu-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-img {
    height: 250px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px; /* Um arredondamento interno suave */
}

.menu-card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    text-align: center;
}

.card-header h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin: 0;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.know-more {
    font-size: 0.9rem;
    color: var(--accent);
    font-style: italic;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.know-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.menu-card:hover .know-more {
    color: var(--primary);
}

.menu-card:hover .know-more::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 0;
}

.contact-info {
    margin-top: 2rem;
}

.phone-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 2rem;
    transition: var(--transition);
}

.phone-btn:hover {
    background: var(--accent);
    box-shadow: 0 5px 20px rgba(210, 105, 30, 0.4);
}

.insta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.insta-btn:hover {
    background: var(--accent);
    box-shadow: 0 5px 20px rgba(210, 105, 30, 0.4);
}

/* Mobile Bottom Nav (Hidden on Desktop) */
.mobile-bottom-nav {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .logo-area h1 {
        font-size: 1.6rem;
    }

    .logo-area span {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }

    nav#main-nav {
        display: none !important;
    }

    /* Estilos Premium e Acessíveis da Barra de Navegação Inferior */
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 15px;
        right: 15px;
        height: 70px;
        background: rgba(44, 30, 20, 0.96); /* Tom chocolate escuro elegante */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 2000;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 10px;
    }

    .mobile-nav-list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        cursor: pointer;
        color: var(--text-light);
        opacity: 0.6;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .mobile-nav-icon {
        width: 22px;
        height: 22px;
        stroke: var(--text-light);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-label {
        font-size: 0.7rem;
        margin-top: 5px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-family: 'Poppins', sans-serif;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Estado Ativo Premium com Brilho e Micro-animações */
    .mobile-nav-item.active {
        opacity: 1;
        color: var(--accent) !important;
    }

    .mobile-nav-item.active .mobile-nav-icon {
        stroke: var(--accent) !important;
        transform: translateY(-5px) scale(1.15);
        filter: drop-shadow(0 2px 8px rgba(210, 105, 30, 0.6));
    }

    .mobile-nav-item.active .mobile-nav-label {
        color: var(--accent) !important;
        transform: translateY(-2px);
    }

    /* Indicador sutil na parte inferior */
    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: var(--accent);
        box-shadow: 0 0 8px var(--accent);
        animation: fadeInDot 0.3s ease-out forwards;
    }

    @keyframes fadeInDot {
        from { opacity: 0; transform: scale(0); }
        to { opacity: 1; transform: scale(1); }
    }

    header.scrolled .nav-container {
        flex-direction: row;
    }

    header.scrolled .logo-area {
        transform: scale(0.9);
    }

    main {
        padding: 100px 1rem 110px 1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .logo-frame {
        width: 250px;
        height: 250px;
        padding: 15px;
        border-width: 6px;
    }

    .logo-frame img {
        max-height: 100%;
    }

    .hero-image img {
        max-height: 350px;
    }

    .dish-nav-bar {
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
        justify-content: flex-start;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-card {
        max-width: 100%;
    }

    .card-img {
        height: 180px;
    }

    .dish-history-section {
        padding: 2rem 1.2rem;
        margin-top: 1.5rem;
        border-radius: 20px;
    }

    .dish-history-section h3 {
        font-size: 1.6rem;
    }

    .dish-history-section p {
        font-size: 1rem;
    }

    .detail-ing-list {
        columns: 1;
        text-align: left;
        display: inline-block;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .phone-btn, .insta-btn {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-frame {
        width: 240px;
        height: 240px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   INFO CARDS - Aba Informações
   ========================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0 4rem 0;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-top: 4px solid var(--accent);
    transition: var(--transition);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.info-card-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.info-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0 3rem 0;
    }

    .info-card {
        padding: 2rem 1.5rem;
        text-align: left;
    }
}

/* ==========================================
   FOOTER PREMIUM
   ========================================== */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 3rem 0;
    margin-top: 5rem;
    border-top: 3px solid var(--accent);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 0 1.5rem 4rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
    color: var(--accent);
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.5rem;
}

/* Coluna Branding */
.branding-col .footer-logo {
    margin-bottom: 1.5rem;
}

.branding-col .footer-logo h2 {
    font-family: 'Daniel', cursive;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: -5px;
}

.branding-col .footer-logo span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.7;
    max-width: 420px;
}

/* Coluna Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    font-size: 0.95rem;
    opacity: 0.75;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.footer-links li:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(5px);
}

/* Coluna Contatos */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.75;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-info a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-info-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsividade do Rodapé */
@media (max-width: 768px) {
    .main-footer {
        padding-bottom: 110px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
        text-align: left;
    }

    .branding-col .footer-logo h2 {
        font-size: 1.6rem;
    }

    .footer-col h3 {
        font-size: 1rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
        margin: 0;
    }

    .footer-contact-info li {
        justify-content: flex-start;
        font-size: 0.8rem;
    }
    
    .footer-info-icon {
        width: 16px;
        height: 16px;
    }

    .footer-links li:hover {
        transform: none;
    }
}
