/* ==========================================================================
   Design Tokens - Edit these to customize colors and fonts
   ========================================================================== */
:root {
    --color-primary: #49645f;
    --color-secondary: #8b4513;
    --color-accent: #d4a574;
    --color-background: #faf8f5;
    --color-background-alt: #f0ebe3;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #fff;

    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'League Spartan', sans-serif;

    --max-width: 1200px;
    --spacing: 2rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.section {
    padding: 4rem 0;
}

#apropos {
    background: #fefeff;
}

#menu {
    background: #fff;
}

.section-alt {
    background: var(--color-background-alt);
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-dark a {
    color: var(--color-white);
    text-decoration: underline;
}

.section-dark .content-block p,
.section-dark .contact-block p {
    opacity: 0.9;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem var(--spacing);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-primary);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 60px;
    width: auto;
}

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

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
    color: var(--color-white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fefeff;
    color: var(--color-primary);
}

.hero-content {
    padding: var(--spacing);
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    opacity: 0.9;
}

/* ==========================================================================
   Content Blocks (rendered markdown)
   ========================================================================== */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1rem;
}

.content-block h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-block ul, .content-block ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.section-carousel {
    padding: 2rem 0;
    background: #fefeff;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

.carousel-slide {
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-slide {
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-slide {
        width: 260px;
        height: 260px;
    }
}

.content-block hr {
    display: none;
}

/* ==========================================================================
   Menu
   ========================================================================== */
#menu h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.menu-list {
    max-width: 600px;
    margin: 0 auto;
}

.menu-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.menu-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.menu-item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--color-text-light);
    margin: 0 0.5rem;
    min-width: 20px;
}

.menu-item-price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.menu-item-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ==========================================================================
   Contact Info
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-block h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-block p {
    margin-bottom: 0.5rem;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-instagram {
    width: 1.2rem;
    height: 1.2rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        min-height: auto;
    }

    .section {
        padding: 3rem 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}
