/* ------------------------------
   RESET & GLOBAL
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fefcf5;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #1f2937;
}

/* ------------------------------
   HERO SECTION (100vh, background image)
------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1499638673689-79a0b5115d87?w=1024&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 90%;
    padding: clamp(1rem, 5vw, 2rem);
}

.hero-content h1 {
    font-size: clamp(1.5rem, 10vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: clamp(1.5rem, 5vw, 2rem);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2vw, 0.9rem) clamp(1.2rem, 4vw, 2rem);
    border-radius: 60px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.hero-btn-primary {
    background: #b45309;
    border-color: #b45309;
    color: white;
}

.hero-btn-primary:hover {
    background: #9b3e07;
    transform: scale(1.02);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.hero-icon {
    width: clamp(18px, 4vw, 24px);
    height: auto;
}

/* ------------------------------
   STICKY CATEGORY NAVIGATION
------------------------------ */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.category-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    min-width: max-content;
}

.category-btn {
    background: #f3f4f6;
    border: none;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.75rem);
    border-radius: 100px;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 500;
    color: #2d3e50;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-btn.active {
    background: #b45309;
    color: white;
}

/* ------------------------------
   MENU CONTAINER (below sticky)
------------------------------ */
.menu-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.layout-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.layout-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.layout-btn.active {
    background: #b45309;
    border-color: #b45309;
    color: white;
}

/* ------------------------------
   TABLE LAYOUT (two columns)
------------------------------ */
.menu-table {
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.menu-table-inner {
    display: flex;
    flex-direction: column;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border-bottom: 1px solid #f0ede8;
    transition: background 0.2s;
}

.menu-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 2;
}

.menu-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.menu-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-name {
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.15rem);
}

.menu-desc {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    color: #6b5b4e;
}

.menu-price {
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #b45309;
    white-space: nowrap;
}

/* ------------------------------
   CARD LAYOUT
------------------------------ */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.menu-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.menu-card:hover {
    transform: translateY(-4px);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
}

.card-price {
    font-weight: 700;
    color: #b45309;
}

.card-description {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: #6c5a48;
}

/* Layout toggle */
.menu-table { display: block; }
.menu-cards { display: none; }
body.card-layout .menu-table { display: none; }
body.card-layout .menu-cards { display: grid; }

/* Responsive tweaks */
@media (max-width: 640px) {
    .menu-row {
        flex-wrap: wrap;
    }
    .menu-info {
        flex: 1 1 100%;
    }
    .menu-price {
        text-align: right;
        width: 100%;
        padding-left: 0;
    }
    .menu-thumbnail {
        width: 64px;
        height: 64px;
    }
    .layout-toolbar {
        justify-content: center;
    }
}