/* =============================================
   BURGER RESTAURANT DIRECTED STYLES (FROM IMAGE)
   File: style.css
   ============================================= */

/* Variables matching image palette */
:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #131313;
    --brand-yellow: #f4ba11; /* Strong mustard yellow from image */
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    
    --font-script: 'Yellowtail', cursive;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle background pattern simulating the burger outlines could go here */
}

/* === HEADER === */
.site-header {
    background-color: transparent; /* Overlay on dark bg */
    padding: 20px 40px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 130px; /* Reduced slightly since it has no padding now */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-arrows {
    color: var(--text-gray);
    letter-spacing: -2px;
    margin-right: -15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

/* The yellow brush-stroke button imitation */
.btn-contact {
    background-color: var(--brand-yellow);
    color: var(--bg-darker) !important;
    padding: 8px 18px;
    font-weight: 800 !important;
    position: relative;
    z-index: 1;
    /* Simulate brush stroke edges */
    clip-path: polygon(5% 0%, 100% 5%, 95% 100%, 0% 95%);
}

.btn-contact::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 4px;
    right: -4px;
    height: 8px;
    background-color: var(--brand-yellow);
    z-index: -1;
    clip-path: polygon(0% 0%, 98% 10%, 100% 100%, 5% 90%);
}

/* Elegant Location Menus */
.dropdown-menu-container {
    position: relative;
    display: inline-block;
}

.btn-location {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--brand-yellow);
    color: var(--brand-yellow) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(244, 186, 17, 0.1);
    cursor: pointer;
}

.btn-location:hover, .dropdown-menu-container.active .btn-location {
    background: var(--brand-yellow);
    color: var(--bg-darker) !important;
    box-shadow: 0 5px 20px rgba(244, 186, 17, 0.6);
    transform: translateY(-3px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 100;
    border-radius: 12px;
    border: 1px solid var(--brand-yellow);
    overflow: hidden;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu-container:hover .dropdown-content,
.dropdown-menu-container.active .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-content a {
    color: var(--text-white) !important;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem !important;
    border-bottom: 1px solid #333;
    transition: background 0.3s, color 0.3s;
    margin: 0 !important;
    width: 100% !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--brand-yellow);
    color: var(--bg-darker) !important;
}

/* === HERO CAROUSEL RE-DESIGN === */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
    background: radial-gradient(circle at center, #2a2a2a 0%, var(--bg-dark) 70%);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
    flex-wrap: nowrap; /* Prevents wrapping */
}

.carousel-slide {
    flex: 0 0 100%; /* Force exact width, no shrink */
    min-width: 100%;
    display: flex;
    flex-direction: column; /* ALWAYS Image on top, text on bottom */
    align-items: center;
    justify-content: center;
    padding: 30px 20px 10px; /* Reduced from 50px */
}

/* Hero Right Image Area (Now on TOP) */
.hero-right {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px; /* Big elegant image */
}

.burger-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 35px 35px rgba(0,0,0,0.8));
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.swoosh-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px solid rgba(244, 186, 17, 0.4);
    border-radius: 50%;
    z-index: 1;
}

.swoosh-decor--alt {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Left Text Area (Now on BOTTOM) */
.hero-left {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.discount-badge {
    margin-bottom: 10px;
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
}

.discount-num { font-size: 1.2rem; }
.discount-txt { font-size: 1.2rem; }

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.script-title {
    font-family: var(--font-script);
    color: var(--brand-yellow);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: -10px;
}

.bold-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.brush-badge {
    background-color: transparent;
    border: 2px solid var(--brand-yellow);
    color: var(--brand-yellow);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 6px 20px;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 40%; /* adjusted since image is higher up */
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.carousel-btn:hover { background: var(--brand-yellow); color: var(--bg-darker); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }


/* === MAIN LAYOUT === */
.main-content-area {
    background-color: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1400px;
}

.layout-grid {
    display: flex;
    flex-direction: column; /* Moved the sidebar to the TOP */
    gap: 20px;
    padding: 0 20px;
    margin: -70px auto 40px; /* Pulled up from -30px */
    position: relative;
    z-index: 20;
}

/* Sidebar styling (Now functioning as a Top Menu block) */
.sidebar {
    width: 100%; /* Stretches across the top */
    flex-shrink: 0;
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: fit-content;
}

/* === MAIN MENU REDESIGN (TOP STICKY PILLS) === */
.menu-section {
    background-color: var(--bg-darker);
    padding: 40px 20px;
    border-top: 1px solid #2a2a2a;
}

.menu-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stack menu on top of products */
    gap: 40px;
}

/* New Horizontal Sticky Menu */
.category-nav-top {
    width: 100%;
    position: sticky;
    top: 20px;
    z-index: 100;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-scroll-btn {
    background: transparent;
    border: none;
    color: var(--brand-yellow);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-scroll-btn:hover {
    transform: scale(1.2);
    color: var(--text-white);
}

.category-nav-list {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto; /* enable scroll on small screens */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.category-nav-list::-webkit-scrollbar { display: none; /* Chrome */ }

.category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    gap: 8px;
    padding: 12px 20px;
    background-color: #222;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid transparent;
    scroll-snap-align: center;
}

.category-link i { color: var(--text-gray); transition: 0.3s; }

.category-link:hover, .category-link.active {
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
}

.category-link:hover i, .category-link.active i {
    color: var(--bg-darker);
}


/* === PREMIUM PRODUCT CARDS === */
.products-area { flex: 1; }
.section-title.text-yellow {
    font-family: var(--font-script);
    color: var(--brand-yellow);
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.products-grid {
    display: grid;
    /* Exactly 2 responsive cards per row on all screens as requested */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
}

.premium-card {
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: rgba(244, 186, 17, 0.4); /* Subtle yellow border glow */
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    background: radial-gradient(circle at center, #252525 0%, #151515 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 5;
}

.badge-new {
    background-color: #ff4500;
    color: #fff;
}

.product-image {
    width: 95%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.7));
    transition: transform 0.4s ease;
}

.premium-card:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1; /* Pushes footer to the bottom */
}

.product-customization {
    margin-bottom: 20px;
}

.custom-link {
    color: var(--brand-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.custom-link:hover { opacity: 0.8; text-decoration: underline; }

.card-footer {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.price-container {
    margin-bottom: 15px;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand-yellow);
}

.action-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.qty-selector {
    display: flex;
    align-items: center;
    background-color: #222;
    border-radius: 8px;
    border: 1px solid #444;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    color: var(--text-white);
    border: none;
    width: 35px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover { background: #333; }

.qty-num {
    width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary-add {
    flex: 1;
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn-order-now {
    width: 100%;
    margin-top: 10px;
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn-primary-add:hover, .btn-order-now:hover {
    background-color: #fff;
    color: var(--bg-darker);
}

.btn-primary-add:active, .btn-order-now:active { 
    transform: scale(0.96); 
}

/* === GALLERY SECTION === */
.gallery-section {
    background-color: var(--bg-dark);
    padding: 60px 20px;
    border-top: 1px solid #222;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    aspect-ratio: 1 / 1; /* Keep images perfectly square to look clean and premium */
    background: radial-gradient(circle at center, #252525 0%, #151515 100%);
    border: 1px solid #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8));
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--bg-dark);
    padding: 40px;
    border-top: 1px solid #222;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dots decorative grid replacing image left bottom design */
.dots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    opacity: 0.5;
}

.dots-grid span {
    width: 4px;
    height: 4px;
    background-color: var(--text-white);
    border-radius: 50%;
}

.social-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-arrows {
    color: var(--text-gray);
    letter-spacing: -2px;
}

.social-section h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: var(--brand-yellow);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: var(--text-white);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .carousel-slide { flex-direction: column; text-align: center; }
    .hero-left, .hero-right { width: 100%; margin-bottom: 30px; }
    .discount-badge { left: 50%; transform: translateX(-50%); top: -50px; }
    .script-title { margin-right: 0; font-size: 4rem; }
    .bold-title { font-size: 3.5rem; }
    .menu-container { flex-direction: column; }
    .sidebar-menu.dark-theme { width: 100%; }
}

@media (max-width: 900px) {
    .mobile-menu-btn { display: flex !important; gap: 3px; }
    .mobile-menu-btn i { font-size: 1.5rem; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 80px 30px;
        align-items: flex-start;
        align-content: flex-start;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    .main-nav.open { right: 0; }
    .close-menu-btn {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: none;
        color: var(--brand-yellow);
        font-size: 2rem;
        cursor: pointer;
    }
    .main-nav a { font-size: 1.2rem; margin-bottom: 20px; width: 100%; }
    
    /* Configurações Dropdown Mobile */
    .dropdown-menu-container { width: 100%; margin-bottom: 20px; }
    .btn-location { width: 100%; justify-content: flex-start; padding: 12px 20px; font-size: 1.2rem !important; }
    .dropdown-content { position: static; transform: none; box-shadow: none; border: none; background-color: rgba(244, 186, 17, 0.05); margin-top: 5px; opacity: 1; visibility: visible; display: none; width: 100%; border-radius: 8px; }
    .dropdown-menu-container.active .dropdown-content { display: block; }
    .dropdown-content a { font-size: 1.1rem !important; padding: 12px 30px; border-bottom: none; text-align: left; margin-bottom: 5px !important; }
    
    .nav-arrows { display: none; }
    .btn-contact { text-align: center; }
}

@media (max-width: 500px) {
    body, html { overflow-x: hidden; width: 100%; }
    .site-header { padding: 10px 15px; }
    .script-title { font-size: 10vw; margin-bottom: 0px; }
    .bold-title { font-size: 8.5vw; letter-spacing: 1px; line-height: 1.1; margin-top: 5px; }
    .brush-badge { font-size: 3.5vw; padding: 6px 15px; letter-spacing: 1px; }
    .discount-badge { font-size: 1rem; padding: 5px 15px; top: -20px; }
    .discount-num, .discount-txt { font-size: 0.9rem; }
    .hero-slider { padding-bottom: 5px; }
    .carousel-btn { width: 35px; height: 35px; font-size: 1rem; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    .section-title.text-yellow { font-size: 2rem; }
    .category-nav-top { padding: 5px; gap: 8px; border-radius: 8px; }
    .category-link { padding: 12px 10px; font-size: 0.95rem; }
    .products-grid { gap: 20px; }
    .product-title { font-size: 1.1rem; }
    .product-price { font-size: 1.3rem; }
    .card-content { padding: 15px; }
    .header-container { flex-direction: row; justify-content: space-between; gap: 10px; }
    .logo-icon { transform: scale(0.9); transform-origin: left; }
    .card-image-wrapper { height: 180px; padding: 10px; }
    
    /* Center and resize footer completely */
    .site-footer { padding: 40px 20px; }
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-info { display: flex; flex-direction: column; align-items: center; }
    .footer-info .logo { justify-content: center; display: flex; width: 100%; }
    .address-details > div { justify-content: center !important; }
    .social-section { align-items: center; flex-direction: column; gap: 15px; }
    .footer-arrows { display: none; }
    
    /* 2-Column specific mobile adaptations */
    .products-grid, #productsWrapper.home-mode { gap: 10px !important; }
    .card-content { padding: 12px; }
    .product-title { font-size: 0.95rem; line-height: 1.2; margin-bottom: 5px; }
    .product-desc { 
        font-size: 0.8rem; margin-bottom: 10px; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    }
    .product-price { font-size: 1.1rem; }
    .card-image-wrapper { height: 125px; padding: 5px; }
    .card-footer > div:first-child { flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 10px !important; }
    .card-footer > div:last-child { flex-direction: column; gap: 5px !important; }
    .btn-primary-add { font-size: 0.8rem !important; padding: 8px 0 !important; }
    #productsWrapper.home-mode .section-title { font-size: 1.2rem; }
}

/* === DYNAMIC CSS FOR HIGHLIGHT / FILTER MODE === */
#productsWrapper.home-mode {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
#productsWrapper.home-mode .products-area {
    margin-bottom: 0 !important;
}
#productsWrapper.home-mode .section-title {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 15px;
}
#productsWrapper.home-mode .products-area .premium-card {
    display: none;
}
#productsWrapper.home-mode .products-area .premium-card:first-child {
    display: flex; /* Display only the highlight product */
}
#productsWrapper.home-mode .products-grid {
    display: block; /* Prevents nested grid from halving the card size again */
}
