/* css/style.css - J. Henry's Restaurant Master Stylesheet */

:root {
    --primary: #8B0000;
    --primary-dark: #600000;
    --accent: #d4af37;
    --bg-cream: #f8f6f0;
    --card-bg: #ffffff;
    --text-dark: #222222;
    --text-muted: #555555;
    --border: #e2ded4;
}

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--bg-cream); 
    color: var(--text-dark); 
    line-height: 1.6; 
}

.container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* Category Sticky Navigation Bar */
.category-nav-bar {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    padding: 12px 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.flex-nav-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-pill, .cat-pill {
    background: #333333;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid #555555;
    transition: all 0.2s ease-in-out;
}

.nav-pill:hover, .cat-pill:hover,
.nav-pill.active, .cat-pill.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.menu-category-section {
    scroll-margin-top: 90px;
    margin-bottom: 50px;
}

/* Menu Grid & Cards */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.menu-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.menu-card-img-wrap {
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    overflow: hidden !important;
    background: #f0ece1;
    position: relative;
}

.menu-card-img-wrap img {
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    display: block !important;
}

.category-note {
    background: #fff8dc;
    border-left: 4px solid var(--accent);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    border-radius: 0 4px 4px 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 767px) {
    .menu-grid { grid-template-columns: 1fr; gap: 16px; }
}
