/* Importação de fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

/*-----------------------------------*/
/* #CUSTOM PROPERTIES / VARIABLES
/*-----------------------------------*/
:root {
    --primary-color: #E67E22; /* Laranja queimado vibrante */
    --secondary-color: #2C3E50; /* Cinza escuro/Azul marinho */
    --text-color: #34495E;
    --light-text-color: #7f8c8d;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --border-color: #ECF0F1;
    --shadow-color: rgba(44, 62, 80, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/*-----------------------------------*/
/* #RESET E CONFIGURAÇÕES GLOBAIS
/*-----------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/*-----------------------------------*/
/* # BOTÕES GLOBAIS
/*-----------------------------------*/
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}


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

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

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

.btn-outline:hover {
    background-color: var(--card-background);
    border-color: var(--card-background);
    color: var(--primary-color);
}

.btn-logout {
    background-color: transparent;
    color: var(--light-text-color);
    border: none;
    padding: 0.8rem 1rem;
}

/*-----------------------------------*/
/* # HEADER
/*-----------------------------------*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.4s ease;
}

header.scrolled .logo {
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header.scrolled .btn-primary {
    background-color: var(--primary-color);
    color: white;
}
header.scrolled .btn-primary:hover{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

header.scrolled .btn-logout {
    color: var(--light-text-color);
    background-color: transparent;
}

/*-----------------------------------*/
/* # HERO SECTION
/*-----------------------------------*/
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    /* !!!!!!!!!!! MUDE A IMAGEM AQUI !!!!!!!!!!! */
    background: url('img/Hamb2.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideUpFade 1s ease-out forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: slideUpFade 1s ease-out 0.3s forwards;
    opacity: 0;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    animation: slideUpFade 1s ease-out 0.6s forwards;
    opacity: 0;
}

.btn-hero:hover {
    background-color: transparent;
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/*-----------------------------------*/
/* # SEARCH BAR
/*-----------------------------------*/
.search-container {
    margin: 2rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text-color);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--card-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input::placeholder {
    color: var(--light-text-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/*-----------------------------------*/
/* # NAVEGAÇÃO DE FILTROS
/*-----------------------------------*/
.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    font-family: var(--font-primary);
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    color: var(--light-text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/*-----------------------------------*/
/* # MENU (CARDÁPIO)
/*-----------------------------------*/
.menu-category {
    margin-bottom: 4rem;
    display: none; /* JS controla a visibilidade */
}

.menu-category.visible {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

.menu-category h2 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.8em;
    position: relative;
    padding-bottom: 1rem;
}

.menu-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.category-items {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

.category-items::-webkit-scrollbar {
    height: 6px;
}

.category-items::-webkit-scrollbar-track {
    background: var(--background-color);
}

.category-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/*-----------------------------------*/
/* # CAROUSEL NAVIGATION
/*-----------------------------------*/
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #d66a1a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn-prev {
    order: -1;
}

.carousel-btn-next {
    order: 3;
}

#menu-container {
    flex: 1;
    order: 1;
}

.menu-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    flex-shrink: 0;
    width: 280px;
    min-width: 280px;
}

.menu-item.visible {
     animation: popUp 0.5s ease-out forwards;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.15);
}

.menu-item .image-wrapper {
    overflow: hidden;
    height: 160px;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.08);
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-item h3 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.menu-item p {
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.menu-item .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.6em;
    align-self: flex-end;
}

/*-----------------------------------*/
/* # FOOTER
/*-----------------------------------*/
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

footer p {
    margin: 0;
}

/*-----------------------------------*/
/* # ANIMAÇÕES
/*-----------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/*-----------------------------------*/
/* # HERO BRAND (Mobile only)
/*-----------------------------------*/
.hero-brand {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-secondary);
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    margin: 0;
    opacity: 0.9;
    z-index: 10;
}

.hero-content {
    position: relative;
}

/*-----------------------------------*/
/* # BOTTOM NAVIGATION (MOBILE)
/*-----------------------------------*/
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    border-top: 2px solid var(--primary-color);
    z-index: 999;
    padding: 0.4rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.65rem;
    transition: all 0.3s ease;
    gap: 0.1rem;
    position: relative;
    font-weight: 500;
}

.bottom-nav .nav-item i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav .nav-item:hover i {
    transform: scale(1.1);
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.bottom-nav .nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(230, 126, 34, 0.6));
}

.bottom-nav .nav-item span {
    white-space: nowrap;
}

/*-----------------------------------*/
/* # RESPONSIVIDADE
/*-----------------------------------*/
@media (min-width: 768px) {
    .menu-item {
        width: 320px;
        min-width: 320px;
    }

    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .menu-item {
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 65px; /* Space for bottom nav */
    }

    /* Hide header completely on mobile */
    header {
        display: none;
    }

    header.scrolled {
        display: none;
    }

    /* Show hero brand */
    .hero-brand {
        display: block;
    }

    /* Search bar responsivo */
    .search-container {
        margin: 1.5rem 0 1rem 0;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .search-input {
        padding: 0.7rem 0.8rem 0.7rem 2.5rem;
        font-size: 0.95rem;
    }

    .search-icon {
        left: 0.8rem;
        font-size: 0.9rem;
    }

    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .filter-btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

    /* Show bottom nav on mobile */
    .bottom-nav {
        display: flex;
    }

    /* Hide main nav on mobile */
    .main-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 60px;
    }

    .bottom-nav .nav-item {
        padding: 0.4rem 0;
        font-size: 0.65rem;
    }

    .bottom-nav .nav-item i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .menu-item {
        width: 240px;
        min-width: 240px;
    }

    .menu-item .image-wrapper {
        height: 140px;
    }

    .category-items {
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-wrapper {
        gap: 0.5rem;
    }
}