:root {
    --bg: #f7f3ec;
    --bg-alt: #ffffff;
    --text: #2c1315;
    --muted: #5c3f3f;
    --accent: #b8793b;
    --accent-2: #f0d8b5;
    --border: #e5d6c6;
    --shadow: 0 18px 44px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.25s ease;
    --nav-height: 90px;
    --ink: #2c1315;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

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

a:hover {
    color: #7c4318;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.will-animate {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: min(1160px, 94vw);
    margin: 0 auto;
}

/* Header & navigation */
.header-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(120deg, rgba(44, 19, 21, 0.96), rgba(44, 19, 21, 0.88));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(240, 216, 181, 0.2);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    min-height: var(--nav-height);
    transition: padding var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0;
    font-weight: 700;
    color: #f6ead5;
    letter-spacing: 0.04em;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    text-transform: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
    color: #f5e8d5;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #f2cfa0;
    border-color: #f2cfa0;
    transform: translateY(-2px);
}

.main-nav a.active {
    color: #f2cfa0;
    border-color: #f2cfa0;
}

.nav-phone {
    font-weight: 800;
    color: #f9eede;
    padding: 0.1rem 0;
    border-radius: 4px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.nav-phone:hover { color: #f2cfa0; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(240, 216, 181, 0.35);
    background: rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    width: 100%;
    height: 2px;
    background: #f2cfa0;
    transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-bar.is-scrolled {
    background: rgba(44, 19, 21, 0.95);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    border-color: rgba(240, 216, 181, 0.3);
}

.header-bar.is-scrolled .nav-wrapper { padding: 0.65rem 0; }
.header-bar.is-scrolled .brand img { transform: scale(0.95); opacity: 0.95; }
.header-bar.is-scrolled .tagline { opacity: 0.96; }

.mobile-panel {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    color: #f5e8d5;
    background: linear-gradient(120deg, rgba(44, 19, 21, 0.96), rgba(44, 19, 21, 0.9));
    border-radius: 0 0 16px 16px;
    padding: 0 1rem 1.1rem;
}

.mobile-panel a {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid rgba(240, 216, 181, 0.3);
    font-weight: 600;
}

.mobile-panel .nav-phone {
    display: block;
    font-weight: 800;
    padding: 0.65rem 0.4rem 0.2rem;
    border-bottom: none;
    color: #f9eede;
}

/* Hero */
.site-header {
    position: relative;
    padding: var(--nav-height) 0 1.5rem;
    overflow: hidden;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: relative;
}

.hero-image {
    height: clamp(420px, 72vh, 720px);
    width: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.4s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.22) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(1.8rem, 4vw, 3.4rem) 0;
    color: #fff;
}

.hero-copy { max-width: 540px; }

.hero-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
    text-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.hero-copy p { margin: 0 0 1rem; opacity: 0.95; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.86);
    margin: 0 0 0.6rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.link-light { color: #fff; font-weight: 700; }
.link-light:hover { color: #f5ddc2; }

/* Sections */
.section {
    padding: clamp(3rem, 6vw, 4.8rem) 0;
}

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

.section h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0 0 0.6rem;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--muted);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.6rem);
    align-items: center;
}

/* Image cards */
.cuisine-gallery {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 0.5rem;
}

.gallery-card {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 22px 36px rgba(0,0,0,0.16);
    background: #fff;
    transform-origin: center;
}

.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-card-small { width: 34%; max-width: 320px; aspect-ratio: 1; transform: translate(-120%, 60%) rotate(0deg); z-index: 1; box-shadow: 0 18px 32px rgba(0,0,0,0.18); }
.gallery-card-middle { width: 50%; max-width: 460px; aspect-ratio: 5 / 6; transform: translate(80%, -10%) rotate(3deg); z-index: 2; }
.gallery-card-large { width: 50%; max-width: 460px; aspect-ratio: 4 / 5; transform: translate(-14%, -4%) rotate(-1deg); z-index: 3; }

.image-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #000;
}

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

.highlight {
    border-radius: var(--radius);
    background: #fff6ea;
    border: 1px solid #f0dec4;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.98rem;
    box-shadow: 0 10px 18px rgba(0,0,0,0.05);
}

.menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.3rem 0;
}

@media (min-width: 900px) {
    .menu-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.menu-block h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }

.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; }

.menu-item-name { font-weight: 600; }

.menu-item-price { font-weight: 700; color: var(--accent); }

.menu-last-update { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; }

.menu-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    align-items: start;
    margin: 1rem 0 1.4rem;
}

@media (min-width: 992px) {
    .menu-layout {
        grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.4fr);
        gap: 1.3rem;
    }
}

.menu-details {
    background: linear-gradient(145deg, #fffaf2, #f2e6d6);
    border: 1px solid rgba(185, 121, 59, 0.2);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 18px 32px rgba(0,0,0,0.1);
}

.menu-details .highlight {
    background: rgba(185, 121, 59, 0.08);
    border-color: rgba(185, 121, 59, 0.32);
}

.carte-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    align-items: start;
    margin-top: 1.4rem;
}

.menu-board {
    justify-self: center;
    max-width: 420px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: 0 20px 36px rgba(0,0,0,0.16);
    border-radius: 16px;
    position: relative;
    isolation: isolate;
}

.menu-board img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.carte-gallery h3 { margin: 0 0 0.35rem; }
.carte-gallery p { margin: 0 0 0.8rem; color: var(--muted); }

.carte-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.5rem; }

.carte-thumb {
    padding: 0;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    transition: transform var(--transition), box-shadow var(--transition);
}

.carte-thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.08); }

.carte-thumb img { width: 100%; display: block; height: 100%; object-fit: cover; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 120;
}

.modal-overlay.active { display: flex; }

.modal-dialog {
    background: #fff;
    padding: 1.1rem 0.75rem;
    max-width: min(95vw, 960px);
    width: min(960px, 95vw);
    border-radius: 14px;
    box-shadow: 0 24px 46px rgba(0,0,0,0.22);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; }

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }
.modal-nav:hover { background: rgba(0,0,0,0.8); transform: translateY(-50%) scale(1.05); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }

.chip { background: #fff; border: 1px solid var(--border); padding: 0.4rem 0.75rem; border-radius: 8px; font-weight: 600; color: #5c5145; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.97rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(166, 99, 46, 0.35);
}

.btn-primary:hover { background: #8c501f; transform: translateY(-1px); }

.btn-ghost {
    background: #fff;
    color: #1c150d;
    border: 1px solid var(--border);
}

.btn-ghost:hover { background: #f3e7d6; }

.btn-small { padding: 0.45rem 0.8rem; font-size: 0.9rem; }

.btn-danger { background: #b84735; color: #fff; }

/* Lists */
.bullet-list { padding-left: 1.3rem; margin: 0; display: grid; gap: 0.4rem; }

.bullet-list.muted { color: var(--muted); }

.links-list a { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #2c1315 0%, #3d1b1f 60%, #241012 100%);
    color: #f7e9d8;
    padding: 2.1rem 0 1.6rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(240, 216, 181, 0.28);
    box-shadow: 0 -12px 26px rgba(0,0,0,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-title { font-weight: 800; margin: 0 0 0.4rem; letter-spacing: 0.05em; text-transform: uppercase; color: #f2cfa0; }
.site-footer a { color: #f9e8d5; font-weight: 600; }
.site-footer a:hover { color: #f2cfa0; }
.footer-bottom { margin-top: 1.1rem; font-size: 0.95rem; color: rgba(247, 233, 216, 0.7); padding-top: 0.9rem; border-top: 1px solid rgba(240, 216, 181, 0.25); }

/* Admin styles */
.admin-body { background-color: #f3eee6; }

.admin-container { max-width: 1040px; margin: 1.5rem auto 3rem; padding: 0 1.2rem 2rem; }

.admin-container h1 { margin-top: 0; letter-spacing: 0.01em; }
.admin-container p { color: #4e433a; }

.card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e6d7c6;
    padding: 1.35rem 1.35rem 1.5rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.card h2 { margin-top: 0; }

.card textarea,
.card input[type="text"],
.card input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
    border-radius: 0.45rem;
    border: 1px solid #d1c7b7;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    background: #fbf8f3;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card input:focus,
.card textarea:focus {
    outline: none;
    border-color: #b98953;
    box-shadow: 0 0 0 3px rgba(185,137,83,0.15);
}

.menu-section-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.items-wrapper { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.7rem; }

.menu-item-admin { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr) auto; gap: 0.4rem; }

.menu-section-admin { border-left: 4px solid #d8b48a; animation: fadeInUp 0.35s ease; }

.admin-container label { font-weight: 600; color: #3a3026; }

.admin-container h2, .admin-container h3 { color: #2c241c; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert { padding: 0.6rem 0.8rem; border-radius: 0.5rem; font-size: 0.9rem; margin-bottom: 0.8rem; }

.alert-success { background-color: #e5f7ea; border: 1px solid #a2d5af; }

.alert-error { background-color: #fde8e7; border: 1px solid #e5a5a0; }

.small { font-size: 0.85rem; color: #777; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .burger { display: inline-flex; }
    .mobile-panel.active { display: flex; }
    .brand h1 { font-size: 0.95rem; }
    .nav-phone { display: none; }
}

@media (max-width: 768px) {
    .hero-content { flex-direction: column; justify-content: flex-end; }
    .cuisine-gallery {
        min-height: auto;
        padding: 0.25rem 0;
        gap: 0.8rem;
    }
    .gallery-card {
        position: relative;
        width: 100%;
        max-width: none;
        transform: none !important;
        aspect-ratio: 4 / 3;
    }
    .gallery-card + .gallery-card { margin-top: 0.5rem; }
    .image-stack { grid-template-columns: 1fr; }
    .menu-item { grid-template-columns: 1fr; }
    .menu-item-price { justify-self: start; }
    .menu-item-admin { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) auto; }
    .footer-grid { grid-template-columns: 1fr; }
}
