:root {
  --bg: #14110d;
  --surface: #1f1a14;
  --surface-alt: #2a231a;
  --text: #f3ead8;
  --muted: #b9ab92;
  --accent: #d4a64a;
  --accent-text: #1a1206;
  --secondary: #2a9d96;
  --line: rgba(212, 166, 74, 0.22);
  --font-display: 'Marcellus', 'Shippori Mincho', serif;
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  color-scheme: dark;
}
:root:lang(ar) {
  --font-display: 'Marcellus', 'Amiri', serif;
  --font-body: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Noto Sans Arabic', system-ui, sans-serif;
}

/* Restaurant template. Colours and fonts come from each site's theme (injected as :root vars by build.mjs). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.3; }
h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: 0.01em; margin-bottom: 1rem; }
p { margin: 0 0 1rem; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p { word-break: auto-phrase; line-break: strict; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Visually hidden without pushing anything off-screen (an off-screen offset makes right-to-left pages scroll sideways). */
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.kicker {
  font-family: var(--font-display);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.small-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--accent); margin: 1.5rem 0 0.4rem; font-weight: 700; }
.section-intro { color: var(--muted); max-width: 40em; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.18em; text-decoration: none; color: var(--accent); margin: 0; }
.nav { display: none; gap: 28px; margin-inline-start: auto; font-size: 0.9rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.lang { margin-inline-start: auto; display: flex; gap: 6px; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: var(--accent); }
@media (min-width: 820px) {
  .nav { display: flex; }
  .lang { margin-inline-start: 8px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-media { position: relative; height: 46vh; min-height: 280px; max-height: 520px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.hero-copy { padding: 8px 20px 48px; max-width: 640px; }
.eyebrow { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
h1 { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.h1-brand { font-family: var(--font-display); white-space: nowrap; font-size: clamp(2.6rem, min(11vw, 6.2vw + 1rem), 5.5rem); letter-spacing: 0.12em; color: var(--accent); line-height: 1; }
.h1-tag { font-family: var(--font-display); font-size: clamp(1.3rem, 3.6vw, 1.9rem); font-weight: 700; }
.lede { color: var(--muted); font-size: 1.05rem; }
.quick { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.quick li { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: calc(100vh - 64px); }
  .hero-media { order: 2; max-height: none; min-height: 0; height: calc(100vh - 64px); }
  .hero-media::after { background: linear-gradient(to right, var(--bg), transparent 35%); }
  .hero-copy { padding-block: 48px; padding-inline: max(20px, calc((100vw - 1180px) / 2 + 20px)) 48px; max-width: none; }
}

/* Highlights */
.highlights { border-block: 1px solid var(--line); background: var(--surface); }
.highlight-grid { list-style: none; margin: 0 auto; display: grid; gap: 24px; padding-block: 32px; }
.highlight-grid li { display: flex; gap: 14px; align-items: flex-start; }
.highlight-grid .icon { width: 30px; height: 30px; color: var(--accent); margin-top: 4px; }
.highlight-grid h2 { font-size: 1.1rem; margin: 0 0 0.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.highlight-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (min-width: 720px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); } }

/* Split (shisha) */
.split { padding: 88px 0; }
.split-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.split-media img { border-radius: 4px; width: 100%; max-height: 420px; object-fit: cover; }
@media (min-width: 900px) { .split-media img { max-height: 640px; } }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.9rem; }
.notice { font-size: 0.85rem; color: var(--muted); border-inline-start: 2px solid var(--secondary); padding-inline-start: 12px; margin-top: 1.5rem; }
@media (min-width: 900px) { .split-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 72px; } }

/* Menu */
.menu { padding: 88px 0; background: var(--surface); }
.menu-section { margin-top: 48px; }
.menu-section-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 24px; }
.menu-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.dish { background: var(--surface-alt); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dish:hover .dish-img img { transform: scale(1.04); }
.dish-body { padding: 18px 20px 20px; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 0.4rem; }
.dish h4 { font-size: 1.1rem; font-weight: 700; }
.price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.dish p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.tags { display: flex; gap: 6px; margin-top: 0.8rem; }
.tag { font-size: 0.72rem; letter-spacing: 0.05em; padding: 0.1rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-halal { border-color: var(--secondary); color: color-mix(in srgb, var(--secondary) 70%, white); }
.tag-vegetarian, .tag-vegan { border-color: #6f9a4a; color: #a9cf86; }
@media (min-width: 600px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

/* Story */
.story { padding: 88px 0; }
.story-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.story-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: 0.08em; }
.groups { margin-top: 2rem; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px; }
.groups h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--accent); }
.groups p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .story-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; } }

/* Visit */
.visit { padding: 88px 0 120px; background: var(--surface); border-top: 1px solid var(--line); }
.visit-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
address { font-style: normal; }
address a, .visit-info p a, .contact-list a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 4px; }
address a:hover, .visit-info p a:hover, .contact-list a:hover { text-decoration-color: var(--accent); }
.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; max-width: 320px; }
.hours dd { margin: 0; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.map { min-height: 340px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.3) contrast(1.05); }
@media (min-width: 900px) { .visit-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 112px; }
.footer-inner { display: grid; gap: 12px; justify-items: start; }
.follow { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.follow:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 0.8rem; margin: 0; }
@media (min-width: 820px) { .site-footer { padding-bottom: 40px; } .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } .follow { justify-self: center; } }

/* Sticky mobile actions */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; text-decoration: none; font-size: 0.75rem; color: var(--muted); }
.mobile-cta a:first-child { color: var(--accent); }
.mobile-cta .icon { width: 22px; height: 22px; }
@media (min-width: 820px) { .mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dish-img img { transition: none; }
}

/* ── Motion: hero atmosphere ─────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: relative; z-index: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-smoke { position: absolute; inset: 0; }
/* Warm "portal" light breathing behind the title. */
.hero-fx::before {
  content: ''; position: absolute; left: 50%; top: 74%;
  width: 130vw; max-width: 900px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%);
  animation: portal-breathe 7s ease-in-out infinite;
}
.hero-rosette {
  position: absolute; left: 50%; top: 74%;
  width: 130vw; max-width: 900px; height: auto;
  color: var(--accent); opacity: 0.14;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: rosette-spin 160s linear infinite;
}
@media (min-width: 900px) {
  .hero-fx::before, .hero-rosette { left: 27%; top: 50%; width: 62vw; max-width: 980px; }
}
@keyframes rosette-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes portal-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Photo slowly drifts, like the camera is moving through the door. */
.hero-media img { animation: hero-drift 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, 1%); } }

/* Title: letters materialise out of the smoke, then a gold glint sweeps across. */
.h1-brand { text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.h1-brand > span {
  display: inline-block;
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent) 42%, #fff4cf 50%, var(--accent) 58%, var(--accent) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation:
    letter-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 75ms + 150ms) both,
    glint 7s ease-in-out calc(var(--i) * 60ms + 2.2s) infinite;
}
@keyframes letter-in { from { opacity: 0; transform: translateY(0.4em) scale(1.08); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glint { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }

.hero-copy .eyebrow, .h1-tag, .hero-copy .lede, .hero-copy .cta-row, .hero-copy .quick { animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.h1-tag { animation-delay: 0.9s; }
.hero-copy .lede { animation-delay: 1.05s; }
.hero-copy .cta-row { animation-delay: 1.2s; }
.hero-copy .quick { animation-delay: 1.35s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn-primary { position: relative; overflow: hidden; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, cta-pulse 3.2s ease-out 2.5s infinite; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }

/* Sections fade up as they scroll into view (CSS scroll-driven; ignored by browsers without support). */
@supports (animation-timeline: view()) {
  .dish, .gallery figure, .split-media, .highlight-grid li, .groups, .map {
    animation: scroll-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes scroll-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rosette, .hero-fx::before, .hero-media img, .h1-brand, .h1-brand > span,
  .hero-copy .eyebrow, .h1-tag, .hero-copy .lede, .hero-copy .cta-row, .hero-copy .quick, .btn-primary,
  .dish, .gallery figure, .split-media, .highlight-grid li, .groups, .map { animation: none !important; }
}

/* Quiet hero (content.hero.style = "quiet"): no star pattern, no glow or glint; letters just settle in. */
.hero-quiet .hero-fx::before { display: none; }
.hero-quiet .h1-brand { text-shadow: none; }
.hero-quiet .h1-brand > span {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent);
  animation: quiet-in 0.9s ease-out calc(var(--i) * 90ms + 100ms) both;
}
.hero-quiet .hero-media img { animation-duration: 40s; }
@keyframes quiet-in { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
/* Quiet style: no pulsing ring on the main button. */
.style-quiet .btn-primary { animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ── Right-to-left (Arabic) ───────────────────────────────────────────
   Grid and flex rows mirror on their own; these are the pieces that point one way. */
[dir="rtl"] .h1-brand, [dir="rtl"] .brand { direction: ltr; unicode-bidi: isolate; }
@media (min-width: 900px) {
  [dir="rtl"] .hero-media::after { background: linear-gradient(to left, var(--bg), transparent 35%); }
  [dir="rtl"] .hero-fx::before, [dir="rtl"] .hero-rosette { left: 73%; }
}
[dir="rtl"] .hero-media img { transform-origin: 40% 40%; }
/* Arabic letters join, so any letter-spacing breaks the words apart. Latin bits (brand, kickers) keep theirs. */
:lang(ar) h2, :lang(ar) .eyebrow, :lang(ar) .story-copy h2, :lang(ar) .tag, :lang(ar) .lang, :lang(ar) .h1-tag { letter-spacing: 0; }
:lang(ar) body { line-height: 1.9; }
:lang(ar) .h1-tag { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.5; }
.lang [lang="ar"] { font-size: 0.95rem; letter-spacing: 0; line-height: 1; }
:lang(ar) .dish h4, :lang(ar) .menu-section-title { font-family: var(--font-display); }
/* The brand name is set left-to-right, but on RTL pages it should still sit on the right with the rest. */
[dir="rtl"] .h1-brand { text-align: right; }
/* Arabic glyphs read smaller than Latin at the same size. */
:lang(ar) body { font-size: 17px; }
:lang(ar) .nav { font-size: 1rem; }
:lang(ar) .dish p, :lang(ar) .highlight-grid p { font-size: 0.95rem; }
