/* ============================================================
   Varano Grill House — demo restaurant site by truq.online.
   Warm, appetizing, light. Mobile-first; the phone menu
   experience is the star. Logical properties for LTR + RTL.
   ============================================================ */

:root {
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fff1e7;
  --accent-border: #f5cdb2;
  --wa: #1faa53;
  --ink: #2b1c11;
  --muted: #7c6a5a;
  --line: #eee1d2;
  --bg: #fffdf9;
  --bg-warm: #faf3e9;
  --radius: 16px;
  --shadow: 0 6px 22px rgba(74, 40, 12, 0.08);
  --shadow-lg: 0 16px 38px rgba(74, 40, 12, 0.14);
  --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-arabic: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* room for the floating button + badge */
  padding-block-end: 84px;
}

html[lang="ar"] body,
html[lang="ckb"] body { font-family: var(--font-arabic); line-height: 1.75; }
html[lang="ar"] *,
html[lang="ckb"] * { letter-spacing: 0 !important; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* English page gets the serif display voice for headings */
html[lang="en"] h1,
html[lang="en"] h2 { font-family: var(--font-display); font-weight: 700; }

.container { max-width: 1040px; margin-inline: auto; padding-inline: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; }
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-ghost { background: #fff; color: var(--accent-dark); border: 1.5px solid var(--accent-border); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-wa { background: var(--wa); box-shadow: 0 8px 20px rgba(31, 170, 83, 0.3); }
.btn-wa:hover { background: #178f45; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 60px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-inline-end: auto; }
html[lang="en"] .brand { font-family: var(--font-display); }
.brand:hover { text-decoration: none; }
.brand .flame { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.active { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 4px rgba(74, 40, 12, 0.14); }

/* ---------- Compact hero ---------- */
.hero {
  text-align: center;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(194, 65, 12, 0.09), transparent 70%),
    var(--bg-warm);
  border-block-end: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  margin-block-end: 1rem;
}
.hero .sub { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem); max-width: 44ch; margin-inline: auto; margin-block-end: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Menu ---------- */
.menu-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.menu-head { text-align: center; margin-block-end: 1.5rem; }
.menu-head p { color: var(--muted); }

/* Sticky category tabs: horizontal scroll on phones, centered on wide screens */
.menu-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.75rem;
  margin-block-end: 1.5rem;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .menu-tabs { justify-content: center; } }

.menu-tab {
  flex: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.menu-tab:hover { border-color: var(--accent-border); color: var(--accent-dark); }
.menu-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Grid: compact rows on phones, cards on wide screens */
.menu-grid {
  display: grid;
  gap: 0.85rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.menu-grid.switching { opacity: 0; transform: translateY(8px); }

.menu-item {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: var(--shadow);
}
.menu-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.menu-item h3 { font-size: 1.02rem; margin: 0 0 0.15rem; }
html[lang="en"] .menu-item h3 { font-family: var(--font-latin); font-weight: 800; }
.menu-price { flex: none; font-weight: 800; color: var(--accent-dark); font-size: 0.95rem; white-space: nowrap; }
.menu-item p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.5rem; line-height: 1.45; }
.order-link {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wa);
  width: fit-content;
}
.order-link svg { width: 1.05em; height: 1.05em; }
.order-link:hover { text-decoration: underline; }

/* Dish media: photo or gradient placeholder. Same box either way,
   so swapping a real photo in changes nothing else. */
.dish-img, .dish-ph {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}
.dish-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.4rem; position: relative; overflow: hidden; }
.dish-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 90% at 20% 10%, rgba(255, 255, 255, 0.28), transparent 60%);
}
.dish-ph span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
html[lang="en"] .dish-ph span { font-family: var(--font-display); font-style: italic; font-size: 0.78rem; }

/* Warm gradient variants, cycled per item */
.ph-0 { background: linear-gradient(135deg, #d97706, #b45309); }
.ph-1 { background: linear-gradient(135deg, #c2410c, #9a3412); }
.ph-2 { background: linear-gradient(135deg, #a16207, #854d0e); }
.ph-3 { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.ph-4 { background: linear-gradient(135deg, #4d7c0f, #3f6212); }
.ph-5 { background: linear-gradient(135deg, #0f766e, #115e59); }

@media (min-width: 700px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .menu-item { flex-direction: column; padding: 0; overflow: hidden; }
  .menu-item-body { padding: 1rem 1.15rem 1.15rem; }
  .dish-img, .dish-ph { width: 100%; height: 150px; border-radius: 0; }
  .dish-ph span { font-size: 1.05rem; }
  html[lang="en"] .dish-ph span { font-size: 1.15rem; }
}
@media (min-width: 1000px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About / hours / location ---------- */
.about-strip {
  background: var(--bg-warm);
  border-block: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.about-strip p { max-width: 58ch; margin-inline: auto; margin-block: 0; color: var(--ink); font-size: 1.02rem; }

.info-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.info-grid { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .info-grid { grid-template-columns: 2fr 3fr; } }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.25rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-block-end: 1px dashed var(--line);
  font-size: 0.97rem;
}
.hours-list li:last-child { border-block-end: 0; }
.hours-list .time { font-weight: 700; white-space: nowrap; }
.info-card .address { color: var(--muted); font-size: 0.95rem; }
.map-frame {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 12px;
  margin-block-start: 0.75rem;
  background: var(--bg-warm);
}

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 1.5rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-langs { display: flex; gap: 1rem; }

/* ---------- Floating WhatsApp + truq badge ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 170, 83, 0.4);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

.truq-badge {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 16px;
  z-index: 60;
  background: #fff;
  border: 1px solid #C9C9FF;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1B1BD6;
  box-shadow: 0 6px 18px rgba(35, 35, 255, 0.14);
  white-space: nowrap;
}
.truq-badge:hover { background: #EDEDFF; text-decoration: none; }
.truq-badge strong { color: #2323FF; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
