@charset "UTF-8";

/* ===== VARIÁVEIS E RESET ===== */
:root {
    --color-primary: #ff8c00; /* DarkOrange */
    --color-secondary: #2e8b57; /* SeaGreen */
    --color-accent: #ffd700; /* Gold */
    --color-dark: #2d3436;
    --color-light-gray: #f4f7f6;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-red: #d63031;
    --color-whatsapp: #25d366;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --border-radius-sm: 4px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Bloqueia rolagem horizontal no nível do html */
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light-gray);
    overflow-x: hidden; /* Bloqueia rolagem horizontal */
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2.5rem auto var(--spacing-lg);
    font-size: 1.1rem;
    color: #777;
    font-style: italic;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

section {
    padding: var(--spacing-xl) 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(255, 140, 0, 0.39);
}

.btn-primary:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.23);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--color-whatsapp);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-success:hover {
    background: #21bd5c;
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(45, 52, 54, 0.98); /* Voltando para o fundo escuro que você preferia */
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 4000; /* Aumentado para ficar acima do menu drawer */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 10px;
    transition: var(--transition);
}

/* Quando o menu está aberto, as barras devem ser escuras para aparecer no fundo branco */
.hamburger.active span {
    background: var(--color-dark) !important;
}

header.scrolled .hamburger span {
    background: var(--color-primary);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

header.scrolled .nav-link {
    color: var(--color-white);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    margin-top: -80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text-highlight {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text-secondary {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* ===== MENU SECTION ===== */
.menu {
    background-color: var(--color-cream);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow);
    color: #666;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(255, 140, 0, 0.39);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: -1.5rem auto 3rem;
}

.service-tag {
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-tag i {
    color: var(--color-primary);
    transition: var(--transition);
}

.service-tag:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.service-tag:hover i {
    transform: scale(1.2);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-item h3 {
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.menu-item p {
    color: #777;
    font-size: 0.95rem;
    flex-grow: 1;
}

.menu-price {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

/* ===== CART SIDEBAR ===== */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}

.cart-fab:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.5);
}

.cart-count {
    background: var(--color-red);
    color: white;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: bold;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Use percentage to hide completely */
    width: 420px;
    max-width: 90%; /* Leave some space on tablets */
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 2500; /* Higher than header and lightbox background */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

.cart-header {
    padding: 25px;
    background: var(--color-primary); /* Amarelo/Laranja do tema */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-name {
    font-weight: 600;
    color: var(--color-dark);
}

.item-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== FORM STYLING ===== */
.form-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-primary); /* Amarelo do tema */
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.cart-footer {
    padding: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1rem;
}

.summary-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2400; /* Logo abaixo do sidebar */
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.contact-address-box {
    margin-bottom: 40px;
}

.contact-label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-dark);
}

.contact-label i {
    color: var(--color-primary);
    width: 25px;
}

.contact-detail {
    color: #666;
}

.contact-form-styled {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.btn-submit-contact {
    width: 100%;
    padding: 16px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    background: #000; /* Fundo preto caso haja algum carregamento */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche o quadrado proporcionalmente sem margens */
    object-position: center; /* Centraliza a imagem */
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ===== LIGHTBOX MODERNO ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2600;
}

.lightbox-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 992px) {
    .lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
    .lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
    .lightbox-close { top: 20px; right: 20px; }
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-dark);
    color: #aaa;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    margin-bottom: 30px;
    font-weight: 300;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-social-links a {
    font-size: 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.developer-credits {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 10px;
    display: block;
}

.developer-credits a {
    color: #25d366;
    text-decoration: none;
    margin-left: 5px;
}

/* Responsive Mobile Styles */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .header-container {
        justify-content: space-between;
        width: 100%;
    }

    .hamburger { 
        display: flex;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 3000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--color-dark) !important;
        font-size: 1.2rem;
    }
    
    .hero-content h1 { font-size: 3rem; }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image img {
        height: 350px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header.scrolled { background: rgba(45, 52, 54, 0.98); }
    header.scrolled .nav-link { color: var(--color-white); }
    header.scrolled .hamburger span { background: var(--color-white); }
    
    .hero { 
        height: auto;
        min-height: 80vh; /* Aumentado para valorizar a imagem vertical */
        background-color: #000;
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-mobile.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        padding: 120px 0 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 30px 15px;
    }

    .hero-content h1 { font-size: 2rem; }
    
    .cart-sidebar { 
        width: 100%; 
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}
