/* BESTTABLE / BISTRO GARAGE Branding */
:root {
    /* Brand Colors from Manual */
    --color-red-primary: #99001F;
    --color-brick-accent: #BD413B;
    --color-cream: #F2EFE2;
    --color-sand: #E0D4B8;
    --color-graphite-grey: #565C5D;
    --color-slate-grey: #2D2926;

    /* Semantic Mappings */
    --primary-red: var(--color-red-primary);
    
    /* Theme Mappings */
    --bg-body: var(--color-slate-grey);
    --bg-surface: #1a1816; /* Slightly darker than slate for contrast on cards/header */
    --bg-surface-hover: #332f2c;

    --text-main: var(--color-cream);
    --text-muted: #a0a0a0; /* Keeping as is for now, or match graphite if needed */
    --text-inverse: #ffffff;

    --border-color: var(--color-graphite-grey);

    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 4px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 12px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-white {
    background-color: var(--bg-surface);
}

.bg-cream {
    background-color: var(--bg-body);
}

.bg-dark {
    background-color: var(--bg-surface-alt);
    color: var(--text-main);
}

.bg-red {
    background-color: var(--primary-red);
    color: var(--text-inverse);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-inverse);
    border-color: var(--primary-red);
}

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

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

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-body);
}

/* Header & Nav */
header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?q=80&w=2574&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Override margin if needed */
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Features/Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-red);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* Menu Preview */
.menu-preview {
    background-color: var(--bg-surface);
}

/* Footer */
footer {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}