:root {
  /* Soa brand: forest green and gold, sampled from the café's logo */
  --bg: #f5f1e8;
  --surface: #fbf9f3;
  --ink: #10261f;
  --muted: #5d6b63;
  --line: #ded8c9;
  --accent: #8a6420;
  --accent-ink: #fbf9f3;
  --gold: #d4b06a;
  --gold-ink: #0c2b26;
  --mark: #0c2b26;
  --hero-bg: #0c2b26;
  --hero-ink: #f5efe2;
  --radius: 18px;
  --max: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1a16;
    --surface: #10231e;
    --ink: #efe9dc;
    --muted: #a7b4ab;
    --line: #213a33;
    --accent: #d4b06a;
    --accent-ink: #0c2b26;
    --mark: #d4b06a;
    --hero-bg: #071612;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0a1a16;
    --surface: #10231e;
    --ink: #efe9dc;
    --muted: #a7b4ab;
    --line: #213a33;
    --accent: #d4b06a;
    --accent-ink: #0c2b26;
    --mark: #d4b06a;
    --hero-bg: #071612;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Persian & Kurdish: Arabic-script font, no letter-spacing (it breaks letter joining) */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--arabic); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 700; line-height: 1.35; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] body { line-height: 1.8; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.brand svg { width: 30px; height: auto; color: var(--mark); flex: none; }
html[lang="en"] .brand span { text-transform: uppercase; letter-spacing: .16em; font-size: .92rem; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 8px; } .brand span { display: none; } }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 0.82rem/1 var(--arabic); padding: 7px 10px; border-radius: 999px;
}
.lang button[lang="en"] { font-family: var(--sans); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--accent); white-space: nowrap;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.sm { padding: 8px 16px; font-size: 0.9rem; }

/* Hero */
.hero {
  color: var(--hero-ink);
  background:
    radial-gradient(50rem 30rem at 85% 10%, rgba(212,176,106,.16), transparent 60%),
    var(--hero-bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 88px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; opacity: .85; margin: 0 0 16px; }
.eyebrow.accent { color: var(--accent); opacity: 1; }
.hero .eyebrow { color: var(--gold); opacity: 1; }
.hero .btn:not(.ghost) { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
.hero p.lead { font-size: 1.12rem; max-width: 44ch; margin: 20px 0 32px; opacity: .9; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.collage img:nth-child(even) { transform: translateY(24px); }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0; gap: 36px; }
  .collage { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .collage img { border-radius: 12px; }
  .collage img:nth-child(even) { transform: none; }
}

/* Sections */
section.block { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2, h2.big { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--muted); max-width: 46ch; margin: 8px 0 0; }
.about-body { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 20px 0 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.pillar { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillar h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* Picks */
.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr)); gap: 12px; }
.fav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fav .img > * { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fav .body { padding: 14px 16px 18px; }
.fav h3 { font-size: 1.15rem; }
.fav .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fav .price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.fav p { color: var(--muted); margin: 6px 0 0; font-size: 0.9rem; }

/* Photo strip */
.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(16px, (100% - var(--max)) / 2) 8px; scrollbar-width: thin;
}
.strip figure { margin: 0; flex: none; width: 220px; scroll-snap-align: start; }
.strip a { text-decoration: none; }
/* Instagram heading and its button read as one line */
.ig-head { justify-content: flex-start; align-items: center; gap: 12px 18px; }
.btn.ig-follow { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ig-follow:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.strip img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.strip figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* Visit */
.visit { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.visit-grid h3 { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; font-size: .8rem; }
[dir="rtl"] .visit-grid h3 { font-family: var(--arabic); font-size: .95rem; }
.visit-grid p, .visit-grid dl { margin: 0; font-size: 1.05rem; }
.hours { display: grid; grid-template-columns: auto auto; gap: 4px 20px; justify-content: start; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .visit-grid { grid-template-columns: 1fr; gap: 28px; } }

footer { padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Menu page */
.menu-hero { padding: 56px 0 24px; }
.menu-hero h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.menu-hero p { color: var(--muted); margin: 12px 0 0; }
.tabs { position: sticky; top: 64px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; white-space: nowrap;
}
.tabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-section { padding: 48px 0 8px; scroll-margin-top: 130px; }
.menu-section h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.menu-section .note { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }
.menu-section .note b { color: var(--accent); }
.items { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item .thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #f4ecdb; }
.item .thumb > * { width: 100%; height: 100%; object-fit: cover; }
.item .text { flex: 1; min-width: 0; }
.item .row { display: flex; align-items: baseline; gap: 10px; }
.item .name { font-weight: 600; font-size: 1.05rem; }
.item .dots { flex: 1; border-bottom: 1px dotted var(--muted); opacity: .4; transform: translateY(-4px); min-width: 16px; }
.item .price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.item .desc { color: var(--muted); font-size: 0.92rem; margin: 2px 0 0; }
.tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border: 1px solid currentColor; padding: 1px 7px; border-radius: 999px; margin-inline-start: 6px; vertical-align: 2px; white-space: nowrap; }
.menu-foot { color: var(--muted); font-size: 0.9rem; padding: 48px 0 16px; }

@media print {
  .nav, .tabs, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .menu-section { break-inside: avoid; padding-top: 24px; }
}

/* Visit: address block */
.visit-grid .city { font-weight: 600; }
.visit-grid #street { color: var(--ink); margin-top: 4px; }
.visit-grid .note-sm { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.visit-media { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 40px; }
.visit-media figure { margin: 0; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.visit-media .map { margin-top: 0; aspect-ratio: auto; min-height: 360px; }
@media (max-width: 640px) {
  .visit-media { grid-template-columns: 1fr; }
  .visit-media img { aspect-ratio: 4 / 3; height: auto; }
  .visit-media .map { aspect-ratio: 4 / 5; min-height: 0; }
}
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); aspect-ratio: 16 / 9; max-width: 100%; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 5; } }
