body {
    font-family: 'Playfair Display', serif, system-ui;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-size: var(--base-font-size);
}

header {
    background-color: var(--header-bg);
    color: #887d7d;
    display: flex;
    flex-direction: column;
}

header .top-bar {
    order: 1;
}

header nav {
    order: 2;
}

header h1 {
    order: 3;
    margin: 1rem 0;
}

nav {
    background-color: var(--nav-bg);
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}

nav a {
    color: var(--nav-text);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e67e22;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2 {
    text-align: center;
    color: var(--header-text);
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--hero-bg);
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Menu Styles */
.menu-section {
    margin-bottom: 3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 1rem;
    transition: background-color 0.3s;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item h3 {
    margin: 1rem 0 0.5rem;
    color: var(--header-text);
}

.menu-item p {
    padding: 0 1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

.prev { left: 10px; }
.next { right: 10px; }

footer {
    text-align: center;
    padding: 2rem;
    background: var(--header-bg);
    color: white;
    margin-top: 2rem;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Theme Variables */
:root {
    --bg-color: #fcfaf7;
    --text-color: #333;
    --header-bg: #2c3e50;
    --nav-bg: #34495e;
    --nav-text: white;
    --header-text: #66819c;
    --hero-bg: #eee;
    --card-bg: white;
    --text-muted: #666;
    --base-font-size: 16px;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #0f0f0f;
    --nav-bg: #222;
    --nav-text: #bbb;
    --header-text: #f1c40f;
    --hero-bg: #2d2d2d;
    --card-bg: #2a2a2a;
    --text-muted: #aaa;
}

[data-font-size="large"] {
    --base-font-size: 22px;
}

/* Theme and Font Controls */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 20px;
    background-color: var(--nav-bg);
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.control-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--header-text);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--header-text);
    color: var(--bg-color);
}
