/* ============================================================
   SAVORIA — Luxury Restaurant CSS
   Dark Mediterranean palette | RTL / LTR support
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg:         #0a0a0a;
  --bg2:        #111111;
  --card:       #141414;
  --border:     rgba(255,255,255,0.08);
  --primary:    #c9a96e;
  --primary-fg: #0a0a0a;
  --fg:         #e8e8e4;
  --fg60:       rgba(232,232,228,0.60);
  --fg40:       rgba(232,232,228,0.40);
  --fg25:       rgba(232,232,228,0.25);
  --red:        #ef4444;
  --green:      #4ade80;
  --sky:        #38bdf8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius:     0;
  --shadow:     0 8px 32px rgba(0,0,0,0.5);
  --trans:      .3s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }
em { font-style: italic; color: var(--primary); }
a  { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary); }
.serif { font-family: var(--font-serif); }

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section  { padding: 80px 0; }
.section-lg { padding: 120px 0; }
.grid-2   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex     { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center  { text-align: center; }
.gap-4   { gap: 16px; }
.gap-6   { gap: 24px; }

/* RTL overrides */
[dir=rtl] body { direction: rtl; }
[dir=rtl] .text-left { text-align: right; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background var(--trans), border-color var(--trans), padding var(--trans);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow);
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.nav-logo  { font-family: var(--font-serif); font-size: 1.7rem; color: var(--primary); letter-spacing: .15em; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-links a {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--fg60); transition: color var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.delivery-link { display: flex; align-items: center; gap: 5px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  padding: 5px 12px; border: 1px solid var(--border);
  background: transparent; color: var(--fg60); cursor: pointer;
  transition: all var(--trans);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-cart {
  position: relative; padding: 6px;
  color: var(--fg60); cursor: pointer; transition: color var(--trans);
}
.nav-cart:hover { color: var(--primary); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--primary); color: var(--primary-fg);
  font-size: 9px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--trans);
  text-decoration: none;
}
.btn-primary  { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover  { background: #d4b07e; color: var(--primary-fg); }
.btn-outline  { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover  { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 10px; }
.btn-lg { padding: 18px 44px; font-size: 12px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #16a34a; color: #fff; }

/* ── Tag / Badge ─────────────────────────────────────── */
.tag {
  display: inline-block; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; padding: 4px 12px;
  border: 1px solid; border-radius: 0;
}
.tag-primary { color: var(--primary); border-color: rgba(201,169,110,.3); background: rgba(201,169,110,.08); }
.tag-green   { color: var(--green);   border-color: rgba(74,222,128,.3);  background: rgba(74,222,128,.08);  }
.tag-red     { color: var(--red);     border-color: rgba(239,68,68,.3);   background: rgba(239,68,68,.08);   }
.tag-blue    { color: var(--sky);     border-color: rgba(56,189,248,.3);  background: rgba(56,189,248,.08);  }
.tag-orange  { color: #fb923c;        border-color: rgba(251,146,60,.3);  background: rgba(251,146,60,.08);  }
.tag-muted   { color: var(--fg40);    border-color: var(--border); background: transparent; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  transition: border-color var(--trans);
}
.card:hover { border-color: rgba(201,169,110,.3); }

/* ── Forms ───────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  {
  display: block; margin-bottom: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg60);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--fg); font-size: 14px; font-family: var(--font-sans);
  transition: border-color var(--trans);
  border-radius: 0; outline: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg25); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-check   { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input { accent-color: var(--primary); width: 16px; height: 16px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,.3) 70%),
    linear-gradient(135deg, #1a1008 0%, #0a0a0a 60%, #080d10 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 100px 24px 60px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 24px; display: block;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); color: #fff; margin-bottom: 24px; }
.hero p  { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 40px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Section headings ────────────────────────────────── */
.section-tag {
  display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; font-weight: 600;
}
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
.section-desc  { color: var(--fg60); max-width: 580px; font-size: .95rem; }

/* ── Menu Grid ───────────────────────────────────────── */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.menu-card {
  background: var(--card); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--trans);
}
.menu-card:hover { border-color: rgba(201,169,110,.35); transform: translateY(-3px); }
.menu-card-img  { width: 100%; height: 200px; object-fit: cover; background: var(--bg2); }
.menu-card-body { padding: 16px; }
.menu-card-name { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.menu-card-desc { font-size: 12px; color: var(--fg60); line-height: 1.5; margin-bottom: 12px; height: 36px; overflow: hidden; }
.menu-card-foot { display: flex; align-items: center; justify-content: space-between; }
.menu-card-price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary); }
.menu-card-meta  { font-size: 11px; color: var(--fg40); }

/* Category tabs */
.category-tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.category-tab  {
  padding: 12px 20px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--fg60); cursor: pointer; transition: all var(--trans); text-decoration: none;
}
.category-tab:hover { color: var(--fg); }
.category-tab.active { border-bottom-color: var(--primary); color: var(--primary); }

/* ── Delivery page ───────────────────────────────────── */
.delivery-hero { min-height: 70vh; }
.stats-bar { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stat-item { text-align: center; padding: 12px; }
.stat-value { font-family: var(--font-serif); font-size: 2.2rem; color: var(--primary); }
.stat-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg40); margin-top: 4px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
  transition: border-color var(--trans);
}
.feature-card:hover { border-color: rgba(201,169,110,.35); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: var(--fg60); line-height: 1.6; }
.zone-chip {
  display: inline-block; padding: 6px 16px;
  border: 1px solid rgba(201,169,110,.3); color: rgba(201,169,110,.8);
  font-size: 12px; letter-spacing: .1em; margin: 4px;
}
.free-banner {
  background: rgba(201,169,110,.08); border-bottom: 1px solid rgba(201,169,110,.15);
  padding: 10px; text-align: center;
  color: var(--primary); font-size: 13px; letter-spacing: .1em;
}

/* ── Order page ──────────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.order-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.order-type-btn {
  padding: 14px 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg60);
  cursor: pointer; text-align: center; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--trans); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.order-type-btn:hover { border-color: rgba(201,169,110,.4); }
.order-type-btn.active { border-color: var(--primary); background: rgba(201,169,110,.1); color: var(--primary); }
.cart-item { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--border); margin-bottom: 8px; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.cart-item-name { font-family: var(--font-serif); font-size: .95rem; }
.cart-item-price { color: var(--primary); font-size: .9rem; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg60); margin-bottom: 8px; }
.totals-final { display: flex; justify-content: space-between; font-family: var(--font-serif); font-size: 1.3rem; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }

/* ── Reservations ────────────────────────────────────── */
.res-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.info-card { background: var(--card); border: 1px solid var(--border); padding: 28px; margin-bottom: 16px; }
.info-card h4 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 10px; }
.info-card p  { font-size: 13px; color: var(--fg60); line-height: 1.6; }

/* ── Track Order ─────────────────────────────────────── */
.track-step { display: flex; gap: 16px; margin-bottom: 28px; position: relative; }
.track-step:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 44px;
  width: 2px; height: calc(100% + 4px); background: var(--border);
}
[dir=rtl] .track-step:not(:last-child)::after { left: auto; right: 19px; }
.track-step.done::after   { background: var(--primary); }
.track-dot {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 2px solid var(--border); background: var(--card);
  position: relative; z-index: 1;
}
.track-dot.done    { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.track-dot.current { background: var(--card); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(201,169,110,.15); }
.track-label  { font-size: .95rem; font-weight: 500; padding-top: 8px; }
.track-sublbl { font-size: 12px; color: var(--fg60); margin-top: 2px; }

/* ── Admin ───────────────────────────────────────────── */
.admin-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.admin-tab {
  padding: 12px 24px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--fg60); cursor: pointer; text-decoration: none; transition: all var(--trans);
}
.admin-tab:hover { color: var(--fg); }
.admin-tab.active { border-bottom-color: var(--primary); color: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg40); padding: 10px 12px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
[dir=rtl] .admin-table th { text-align: right; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.edit-form { background: var(--card); border: 1px solid var(--primary); padding: 20px; margin-bottom: 8px; }

/* Status colors */
.s-pending   { color: #facc15; background: rgba(250,204,21,.08);  border-color: rgba(250,204,21,.2);  }
.s-confirmed { color: var(--sky); background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.2); }
.s-preparing { color: #fb923c; background: rgba(251,146,60,.08);  border-color: rgba(251,146,60,.2);  }
.s-ready     { color: var(--green); background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.2); }
.s-out       { color: var(--sky); background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.2); }
.s-delivered { color: var(--primary); background: rgba(201,169,110,.08); border-color: rgba(201,169,110,.2); }
.s-cancelled { color: var(--red); background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.2);  }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.8rem; color: var(--primary); letter-spacing: .15em; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--fg40); line-height: 1.7; max-width: 260px; }
.footer-title { font-family: var(--font-serif); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.footer-list  { list-style: none; }
.footer-list li { font-size: 13px; color: var(--fg60); margin-bottom: 8px; }
.footer-copy { text-align: center; font-size: 11px; color: var(--fg25); letter-spacing: .15em; padding-top: 24px; border-top: 1px solid var(--border); }

/* ── Alert ───────────────────────────────────────────── */
.alert { padding: 12px 18px; margin-bottom: 20px; font-size: 13px; border: 1px solid; }
.alert-success { color: var(--green);  border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.alert-error   { color: var(--red);    border-color: rgba(239,68,68,.3);  background: rgba(239,68,68,.08);  }
.alert-info    { color: var(--primary); border-color: rgba(201,169,110,.3); background: rgba(201,169,110,.08); }

/* ── Utilities ───────────────────────────────────────── */
.pt-page { padding-top: 100px; }
.hidden  { display: none !important; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--fg40); }
.separator { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.sticky-top { position: sticky; top: 100px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .order-grid  { grid-template-columns: 1fr; }
  .res-grid    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .grid-3      { grid-template-columns: 1fr 1fr; }
  .nav-links   { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2      { grid-template-columns: 1fr; }
  .order-type-grid { grid-template-columns: repeat(3,1fr); }
  .section     { padding: 50px 0; }
  .hero h1     { font-size: 2.4rem; }
}

/* ── Loading spinner ─────────────────────────────────── */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,169,110,.3); border-radius: 2px; }
