:root {
    --bg: #fbf7f1;
    --surface: #ffffff;
    --ink: #0b2e4a;
    --muted: #6b5446;
    --primary: #b3541e;
    --primary-dark: #8a3e15;
    --accent: #c89f5a;
    --border: #e8ddd0;
    --shadow: 0 10px 30px -12px rgba(70, 30, 10, 0.25);
}

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

body {
    font-family: 'Tajawal', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Amiri', 'Tajawal', serif; font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: embed; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 247, 241, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.site-header-inner {
    min-height: 72px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; flex: 0 0 auto;
    background: var(--primary-dark); color: #fff; font-weight: 800;
    border: 2px solid var(--accent); overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: grid; gap: 2px; }
.brand-name { font-family: 'Amiri', serif; font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.brand-tagline { color: var(--muted); font-size: 0.78rem; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
    color: var(--ink); text-decoration: none; padding: 8px 12px;
    border-radius: 999px; font-size: 0.95rem; font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(200, 159, 90, 0.18); color: var(--primary-dark); }

/* HERO */
.hero {
    min-height: 80vh; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0b2e4a, #145f8c, #2a8fc4, #0f4467);
    background-size: 300% 300%; animation: heroShift 16s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 80px 24px;
}
.hero-content { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blobFloat 18s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; background: #5fd0ff; top: -120px; left: -100px; }
.b2 { width: 360px; height: 360px; background: #ffd6e8; bottom: -140px; right: -80px; animation-duration: 22s; opacity: .35; }
.b3 { width: 280px; height: 280px; background: #a7f0ff; top: 40%; left: 60%; animation-duration: 14s; opacity: .3; }
.bubble { position: absolute; bottom: -60px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 60%, transparent 70%);
    border: 1px solid rgba(255,255,255,.35); animation: bubbleRise var(--d) linear var(--w) infinite; }
.wave { position: absolute; bottom: -1px; left: 0; width: 200%; height: 90px; fill: var(--bg, #fbf7f0); animation: waveMove 12s linear infinite; }
.hero-image { border-radius: 50%; animation: logoFloat 5s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 60px rgba(95,208,255,.6); }
@keyframes heroShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blobFloat { to { transform: translate(80px, 60px) scale(1.2); } }
@keyframes bubbleRise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(-50vh) translateX(20px); } 100% { transform: translateY(-100vh) translateX(-10px); opacity: 0; } }
@keyframes waveMove { to { transform: translateX(-50%); } }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero, .blob, .bubble, .wave, .hero-image { animation: none; } }
.hero-eyebrow { font-size: 1rem; color: #fff; margin-bottom: 12px; font-weight: 700; }
.hero-image { display: block; width: min(380px, 80%); height: auto; margin: 0 auto 8px; }
.hero-title { font-size: clamp(3rem, 9vw, 6rem); line-height: 1.1; margin-bottom: 12px; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; margin-bottom: 32px; }
.btn-primary {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 14px 36px; text-decoration: none; border-radius: 999px;
    font-weight: 700; font-size: 1.05rem; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 48px; text-align: center; }
.page-title { font-size: clamp(2.8rem, 7vw, 4.5rem); line-height: 1.1; margin-bottom: 10px; }
.page-subtitle { color: #d8c9b9; font-size: 1.1rem; }

.home-info { padding: 64px 0 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.info-square {
    display: flex; align-items: center; gap: 18px; min-height: 150px; padding: 28px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}
a.info-square:hover { border-color: var(--accent); transform: translateY(-2px); }
.info-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 54px; height: 54px; border-radius: 50%; background: var(--primary-dark); color: #fff;
}
.info-icon svg { fill: currentColor; width: 25px; height: 25px; }
.info-square strong { display: block; font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 1.2; margin-bottom: 4px; }
.info-square small { display: block; color: var(--muted); font-size: 1rem; }

/* CATEGORY NAV */
.category-nav {
    position: sticky; top: 72px; z-index: 50; padding: 12px 0;
    background: rgba(251, 247, 241, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.category-nav ul {
    list-style: none; display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 2px; scrollbar-width: none;
}
.category-nav ul::-webkit-scrollbar { display: none; }
.category-nav a {
    display: flex; align-items: center; justify-content: center;
    min-width: 110px; min-height: 40px; padding: 8px 20px;
    border: 2px solid rgba(200, 159, 90, 0.48); border-radius: 999px;
    color: var(--ink); background: rgba(251, 247, 241, 0.72);
    text-decoration: none; font-weight: 800; font-size: 1rem; white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.category-nav a:hover { border-color: var(--accent); color: var(--primary-dark); }
.category-nav a.is-active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* MENU */
.menu-section { padding: 64px 0 24px; scroll-margin-top: 130px; }
.section-title {
    font-size: clamp(2.3rem, 5vw, 3.2rem); text-align: center;
    margin-bottom: 40px; color: var(--primary-dark);
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 2px;
    background: var(--accent); margin: 12px auto 0;
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.dish-card {
    background: var(--surface); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(70,30,10,0.3); }
.dish-image { aspect-ratio: 16 / 10; background: var(--border) center / cover; }
.dish-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.dish-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
    background: var(--bg); color: var(--primary-dark); padding: 2px 12px;
    border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border);
}
.dish-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dish-name { font-family: 'Tajawal', sans-serif; font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.dish-latin { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 500; direction: ltr; }
.dish-price {
    display: grid; flex: 0 0 auto; text-align: right; color: var(--primary);
    font-size: 1.15rem; font-weight: 800; line-height: 1.3; white-space: nowrap;
}
.dish-price small { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.dish-desc { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* FOOTER */
.site-footer { background: var(--ink); color: #d8c9b9; padding: 56px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
.footer-title { color: var(--accent); font-size: 1.9rem; margin-bottom: 6px; }
.site-footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; color: #fff;
    border: 1px solid rgba(200, 159, 90, 0.45); transition: background 0.2s;
}
.footer-socials a:hover { background: rgba(200, 159, 90, 0.16); }
.footer-socials svg { fill: currentColor; width: 18px; height: 18px; }
.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.7; }

/* ADMIN */
.admin-page { background: #f4eee6; }
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 70px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-header-actions span { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.admin-eyebrow { color: var(--primary-dark); font-size: 0.85rem; font-weight: 800; }
.admin-header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.admin-link, .admin-actions a, .admin-actions button, .admin-form button, .admin-import-export button {
    border: 0; border-radius: 999px; background: var(--primary-dark); color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 8px 18px; font: inherit; font-size: 0.9rem; font-weight: 800; text-decoration: none;
}
.admin-link.secondary { background: var(--ink); }
.admin-actions { display: flex; gap: 8px; }
.admin-actions form { display: inline; }
.admin-actions button { background: #7b241c; }
.admin-alert { border-radius: 8px; margin-bottom: 18px; padding: 12px 14px; font-weight: 700; }
.admin-alert.success { background: #e8f4e3; color: #28551c; }
.admin-alert.error { background: #fae8e4; color: #7b241c; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.admin-tabs a {
    flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    background: rgba(255,255,255,0.72); border: 1px solid var(--border); border-radius: 999px;
    color: var(--ink); font-size: 0.9rem; font-weight: 800; text-decoration: none;
}
.admin-tabs a.is-active, .admin-tabs a:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.admin-panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow); margin-bottom: 24px; padding: 22px;
}
.admin-panel h2 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 16px; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; color: var(--ink);
    border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.admin-form input[type="color"] { padding: 4px; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form button { align-self: end; }
.admin-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.admin-table-wrap { overflow-x: auto; }
.admin-import-export { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-import-export form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-filter { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.admin-filter select, .admin-filter input { min-height: 38px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th { text-align: left; color: var(--primary-dark); font-size: 0.85rem; padding: 10px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.login-box { max-width: 420px; margin: 10vh auto; }
.login-box .admin-form { grid-template-columns: 1fr; }

@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .info-grid, .admin-form { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .brand-tagline { display: none; }
    .site-header-inner { min-height: 64px; }
    .category-nav { top: 64px; }
    .hero { min-height: 70vh; }
}
.hero .btn-primary { background: #fff; color: #145f8c; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero .btn-primary:hover { background: #eaf7ff; }
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-strip { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,46,74,.55), rgba(11,46,74,.75)); }
.hero-strip-track { display: flex; gap: 12px; height: 120%; width: max-content; animation: stripScroll 60s linear infinite; filter: blur(4px) saturate(1.2); }
.hero-strip-track img { height: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
@keyframes stripScroll { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .hero-strip-track { animation: none; } }
.map-embed { display: block; width: 100%; height: 360px; border: 0; border-radius: 18px; margin-top: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.site-footer { background: linear-gradient(160deg, #0b2e4a, #145f8c 70%, #2a8fc4); color: #d6ecf8; }
.footer-title { color: #fff; }
.footer-socials a { border-color: rgba(255,255,255,.45); color: #fff; }
.footer-socials a:hover { background: rgba(255,255,255,.18); }
.footer-bottom { border-top-color: rgba(255,255,255,.2); }
.info-hours { margin-top: 22px; }
.site-footer { padding: 28px 0 14px; margin-top: 48px; }
.footer-grid { gap: 16px; margin-bottom: 16px; }
.footer-title { font-size: 1.4rem; margin-bottom: 2px; }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 4px; }
.site-footer p { margin: 0; font-size: .9rem; }
.footer-socials { margin-top: 8px; }
.footer-bottom { padding-top: 12px; font-size: .8rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; }
.page-logo { display: block; width: min(200px, 50vw); height: auto; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 10px 40px rgba(0,0,0,.4); }
.page-hero { background: linear-gradient(160deg, #0b2e4a, #145f8c 65%, #2a8fc4); padding: 48px 0 36px; }
.page-hero { background: linear-gradient(135deg, #0b2e4a, #145f8c, #2a8fc4, #0f4467); background-size: 300% 300%; animation: heroShift 16s ease-in-out infinite; }
.page-hero .page-logo { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .page-hero, .page-hero .page-logo { animation: none; } }
.page-hero { padding-bottom: 80px; }
.page-hero .wave { height: 60px; }
