:root {
    --bg-color: #f8f5f0;
    --text-color: #3e2723;
    --accent-color: #d38c44;
    --accent-hover: #b57333;
    --card-bg: #ffffff;
    --border-color: #e6dfd5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 4px 6px rgba(62, 39, 35, 0.05);
    --shadow-hover: 0 10px 15px rgba(62, 39, 35, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #f4ecd8; /* Uniform aged paper beige */
    color: var(--text-color);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* Header */
.hero {
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Navigation */
.category-nav {
    background-color: var(--card-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--accent-color);
}

.category-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.category-nav ul::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.category-nav a:hover,
.category-nav a.active {
    color: #ffffff;
    background-color: var(--accent-color);
}

/* Main Menu Container */
.menu-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.menu-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-obs {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* Menu Grid for Categories like Cafes */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.menu-subcategory h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.sub-obs {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: normal;
    color: #777;
}

/* List Items Layout */
.menu-list {
    list-style: none;
}

.menu-list.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}

.menu-item {
    margin-bottom: 15px;
    padding: 8px 0;
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateX(5px);
}

.item-info {
    display: flex;
    align-items: baseline;
    width: 100%;
}

.item-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
}

.item-dots {
    flex-grow: 1;
    border-bottom: 1px dashed #ccc;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.item-price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Cards Grid for Sandubas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-card .item-name {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.menu-card .item-price {
    background-color: var(--bg-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1rem;
}

.item-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #e6dfd5;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer p:first-child {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-color);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(211, 140, 68, 0.75); /* --accent-color #d38c44 com transparência */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(62, 39, 35, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: rgba(62, 39, 35, 0.85); /* --text-color #3e2723 com transparência */
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(62, 39, 35, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

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

/* Responsive */
@media (max-width: 768px) {
    .logo-title {
        font-size: 2.5rem;
    }
    .menu-grid, .menu-list.columns-2 {
        grid-template-columns: 1fr;
    }
    .category-nav ul {
        gap: 10px;
    }
    .category-nav a {
        font-size: 0.85rem;
    }
}
