/* ============================================
   SPLASH SCREEN
============================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  animation: splash-content-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.splash-logo {
  height: 96px;
  width: 96px;
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 22px rgba(171, 37, 48, 0.5));
  animation: splash-logo-pulse 2.2s ease-in-out infinite;
}
.splash-loader {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.splash-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ab2530;
  animation: splash-dot 1.2s ease-in-out infinite;
}
.splash-loader span:nth-child(2) { animation-delay: 0.15s; }
.splash-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes splash-content-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px rgba(171, 37, 48, 0.5));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 36px rgba(171, 37, 48, 0.85));
  }
}
@keyframes splash-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-7px); }
}

/* ============================================
   Next Burger — Visual Identity
   Brand Red       #ab2530
   Dark:  warm charcoal #150708 / cream text
   Light: warm off-white #fff8f3 / deep brown text
============================================ */

:root,
:root[data-theme="dark"] {
  --brand: #ab2530;
  --brand-dim: #7a1820;
  --brand-soft: rgba(171, 37, 48, 0.15);
  --cream: #f7e4d6;
  --midnight: #150708;
  --midnight-2: #1f0a0c;
  --midnight-3: #2e0f12;
  --surface-deepest: var(--surface-deepest);
  --scrim: var(--scrim);
  --scrim-mobile: var(--scrim-mobile);
  --backdrop: var(--backdrop);
  --backdrop-strong: var(--backdrop-strong);
  --backdrop-soft: var(--backdrop-soft);
  --input-bg: var(--input-bg);
  --input-bg-focus: var(--input-bg-focus);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(171, 37, 48, 0.15);
  --white: #ffffff;
  --text: #f7e4d6;
  --text-rgb: 247, 228, 214;
  --text-muted: rgba(247, 228, 214, 0.7);
  --text-dim: rgba(247, 228, 214, 0.5);

  --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
  /* Vazirmatn is designed for Persian + Sorani Kurdish — proper glyphs for
     ڕ ڵ ۆ ێ ی, which Cairo doesn't render correctly. */
  --font-kurdish: 'Vazirmatn', 'Cairo', 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --shadow-glow: 0 0 60px rgba(171, 37, 48, 0.35);

  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Light-theme tweaks for elements that need different treatment ===== */
/* The `background-image` longhand preserves `background-clip: text` from the
   base rule; using `background:` shorthand would reset clip to border-box and
   the gradient would fill the box instead of the glyphs. */
:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .menu-title {
  background-image: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
}
/* Kill the decorative blurs and warm gradients in light mode — the user
   asked for a clean flat background without any shadow/blur bleed. */
:root[data-theme="light"] .hero-bg-pattern,
:root[data-theme="light"] .hero-glow {
  display: none;
}
:root[data-theme="light"] .hero,
:root[data-theme="light"] .menu-hero {
  background: var(--midnight);
}
:root[data-theme="light"] .services,
:root[data-theme="light"] .footer {
  background: var(--midnight);
}
:root[data-theme="light"] .footer { border-top-color: rgba(171, 37, 48, 0.12); }
/* Drop the red drop-shadow around the splash + hero logos in light mode —
   on a cream bg the glow reads as a pink aura. */
:root[data-theme="light"] .splash-logo,
:root[data-theme="light"] .hero-icon {
  filter: none;
}
:root[data-theme="light"] .splash-logo { animation: none; }
/* Language + theme buttons in the navbar — drop the pink fill in light mode,
   keep a clean transparent chip with a soft neutral border. */
:root[data-theme="light"] .lang-trigger,
:root[data-theme="light"] .theme-trigger {
  background: transparent;
  border-color: rgba(26, 13, 14, 0.15);
}
:root[data-theme="light"] .lang-trigger:hover,
:root[data-theme="light"] .theme-trigger:hover {
  background: rgba(171, 37, 48, 0.06);
  border-color: rgba(171, 37, 48, 0.35);
}
/* Search bar + category tab strip on the menu page — drop the pink fill,
   keep a clean white surface with a soft neutral border. The active tab
   pill itself stays brand-red. */
:root[data-theme="light"] .menu-search,
:root[data-theme="light"] .menu-tabs-scroll {
  background: #ffffff;
  border-color: rgba(26, 13, 14, 0.1);
}
:root[data-theme="light"] .menu-search:hover,
:root[data-theme="light"] .menu-search:focus-visible {
  background: #ffffff;
  border-color: rgba(171, 37, 48, 0.35);
}
:root[data-theme="light"] .splash-loader span {
  background: var(--brand);
}
/* Translucent-white chips/buttons need a brand-tinted variant on light bg. */
:root[data-theme="light"] .hero-menu-btn {
  color: var(--text);
  background: rgba(171, 37, 48, 0.06);
  border-color: rgba(171, 37, 48, 0.2);
}
:root[data-theme="light"] .hero-menu-btn:hover,
:root[data-theme="light"] .hero-menu-btn:focus-visible {
  background: rgba(171, 37, 48, 0.12);
  border-color: rgba(171, 37, 48, 0.4);
}
/* Elements whose surface is brand-red — text must stay pure white in both themes. */
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .lang-modal-icon,
:root[data-theme="light"] .socials a:hover,
:root[data-theme="light"] .menu-tab.active,
:root[data-theme="light"] .search-panel-close:hover,
:root[data-theme="light"] .item-modal-close:hover,
:root[data-theme="light"] ::selection {
  color: #ffffff;
}
:root[data-theme="light"] ::selection {
  background: var(--brand);
}
/* Cards / surfaces use translucent-white in dark mode (a subtle lift over the
   dark bg). On a warm-cream bg that's invisible — give them a real white surface. */
:root[data-theme="light"] .lang-option,
:root[data-theme="light"] .menu-item,
:root[data-theme="light"] .contact-form,
:root[data-theme="light"] .item-row,
:root[data-theme="light"] .cat-row {
  background: rgba(255, 255, 255, 0.75);
}
:root[data-theme="light"] .menu-item:hover,
:root[data-theme="light"] .lang-option:hover {
  background: #ffffff;
}

/* ===== Light theme ===== */
:root[data-theme="light"] {
  --brand: #ab2530;
  --brand-dim: #7a1820;
  --brand-soft: rgba(171, 37, 48, 0.08);
  --cream: #2a1517;
  --midnight: #fff8f3;
  --midnight-2: #fbeee0;
  --midnight-3: #f5dfca;
  --surface-deepest: #f0d5b8;
  --scrim: rgba(255, 248, 243, 0.92);
  --scrim-mobile: rgba(255, 248, 243, 0.97);
  --backdrop: rgba(40, 20, 22, 0.45);
  --backdrop-strong: rgba(40, 20, 22, 0.55);
  --backdrop-soft: rgba(40, 20, 22, 0.3);
  --input-bg: rgba(255, 248, 243, 0.7);
  --input-bg-focus: rgba(255, 248, 243, 0.95);
  --shadow-card: 0 8px 28px rgba(171, 37, 48, 0.08);
  --shadow-modal: 0 24px 60px rgba(171, 37, 48, 0.12), 0 0 60px rgba(171, 37, 48, 0.05);
  --shadow-glow: 0 0 40px rgba(171, 37, 48, 0.18);
  /* In light mode `--white` flips to deep brown so it works as
     "highest-contrast text on light surfaces". Elements whose surface
     is brand-red still need pure white — see overrides below. */
  --white: #1a0d0e;
  --text: #1a0d0e;
  --text-rgb: 26, 13, 14;
  --text-muted: rgba(26, 13, 14, 0.7);
  --text-dim: rgba(26, 13, 14, 0.5);
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* RTL: Arabic uses Cairo, Kurdish uses Vazirmatn (which has the
   Sorani-specific glyphs ڕ ڵ ۆ ێ that Cairo lacks). */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .menu-title,
html[dir="rtl"] .category-title,
html[dir="rtl"] .item-modal-title { font-family: var(--font-arabic); letter-spacing: 0; }

/* Custom Kurdish fonts — UniMahanRebin for headlines, Rudaw for body. */
@font-face {
  font-family: 'UniMahanRebin';
  src: url('../assets/fonts/UniMahanRebin.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'RudawRegular';
  src: url('../assets/fonts/RudawRegular.ttf') format('truetype');
  font-display: swap;
}

/* Body text in Kurdish uses Rudaw (good for paragraphs).
   Force Arabic-script shaping features so letters join properly. */
html[lang="ku"] body,
html[lang="ku"] input,
html[lang="ku"] textarea,
html[lang="ku"] button,
html[lang="ku"] select {
  font-family: 'RudawRegular', var(--font-kurdish);
  font-feature-settings: "init", "medi", "fina", "isol", "calt", "liga", "rlig";
  font-variant-ligatures: contextual;
  letter-spacing: 0;
  word-spacing: normal;
}

/* Display headlines in Kurdish use UniMahanRebin. */
html[lang="ku"] .hero-title,
html[lang="ku"] .section-title,
html[lang="ku"] .menu-title,
html[lang="ku"] .category-title,
html[lang="ku"] .item-modal-title {
  font-family: 'UniMahanRebin', var(--font-kurdish);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.hero-title, .section-title, .menu-title, .category-title { letter-spacing: 0.02em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(171, 37, 48, 0.4);
}
.btn-primary:hover {
  background: var(--brand-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(171, 37, 48, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(var(--text-rgb), 0.3);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: padding var(--t), background var(--t), backdrop-filter var(--t), border-color var(--t);
}
.navbar.scrolled {
  padding: 12px 32px;
  background: var(--scrim);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(171, 37, 48, 0.1);
}

.nav-logo img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active { color: var(--cream); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--t);
}
.nav-links a.active::after { width: 100%; }
@media (hover: hover) {
  .nav-links a:hover { color: var(--cream); }
  .nav-links a:hover::after { width: 100%; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language trigger button (globe icon + current code) */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(171, 37, 48, 0.1);
  border: 1px solid rgba(171, 37, 48, 0.25);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.lang-trigger svg { width: 18px; height: 18px; }
/* The 2-letter language code is always Latin — keep Inter so the Kurdish
   font's tall baseline doesn't push "KU" off-center. */
.lang-current { font-family: var(--font-body); line-height: 1; }
.lang-trigger:hover {
  background: rgba(171, 37, 48, 0.2);
  border-color: rgba(171, 37, 48, 0.5);
  transform: translateY(-1px);
}

/* Theme toggle (sun / moon) — sits next to the language switcher */
.theme-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(171, 37, 48, 0.1);
  border: 1px solid rgba(171, 37, 48, 0.25);
  border-radius: 50%;
  color: var(--cream);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.theme-trigger:hover {
  background: rgba(171, 37, 48, 0.2);
  border-color: rgba(171, 37, 48, 0.5);
  transform: translateY(-1px);
}
.theme-trigger svg { width: 18px; height: 18px; }
.theme-trigger .theme-icon-sun,
.theme-trigger .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-trigger .theme-icon-sun { display: block; }
:root[data-theme="light"] .theme-trigger .theme-icon-moon { display: block; }
:root:not([data-theme]) .theme-trigger .theme-icon-sun { display: block; }
@media (max-width: 768px) {
  .theme-trigger { width: 32px; height: 32px; }
  .theme-trigger svg { width: 16px; height: 16px; }
}

/* Language modal */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lang-modal-in 0.25s ease;
}
.lang-modal[hidden] { display: none; }

.lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.lang-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, var(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid rgba(171, 37, 48, 0.3);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-modal);
  text-align: center;
  animation: lang-card-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lang-modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lang-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(171, 37, 48, 0.35);
}
.lang-modal-icon svg { width: 24px; height: 24px; }

#langModalTitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}
.lang-modal-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(171, 37, 48, 0.18);
  border-radius: 12px;
  text-align: start;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.lang-option:hover {
  background: rgba(171, 37, 48, 0.12);
  border-color: rgba(171, 37, 48, 0.5);
}
.lang-option.active {
  background: rgba(171, 37, 48, 0.18);
  border-color: var(--brand);
}
.lang-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lang-native {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
}
.lang-name {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.lang-check {
  width: 20px;
  height: 20px;
  color: var(--brand);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--t), transform var(--t);
  flex-shrink: 0;
}
.lang-option.active .lang-check {
  opacity: 1;
  transform: scale(1);
}

/* RTL: keep native script readable, flip icon side */
html[dir="rtl"] .lang-option { text-align: end; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, var(--midnight-3) 0%, var(--midnight) 60%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(171, 37, 48, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(171, 37, 48, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(171, 37, 48, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(171, 37, 48, 0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(171, 37, 48, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 24px rgba(171, 37, 48, 0.5));
  animation: float 4s ease-in-out infinite;
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-title {
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 50%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.hero-menu-btn:hover,
.hero-menu-btn:focus-visible {
  background: rgba(171, 37, 48, 0.18);
  border-color: rgba(171, 37, 48, 0.5);
  transform: translateY(-1px);
  outline: none;
}
.hero-menu-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(var(--text-rgb), 0.4);
  border-radius: 999px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
/* Arabic/Kurdish: zero letter-spacing so script letters can join. */
html[dir="rtl"] .section-eyebrow {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ku"] .section-eyebrow {
  font-family: 'UniMahanRebin', var(--font-kurdish);
  letter-spacing: 0;
  text-transform: none;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== About ===== */
.about { background: var(--midnight); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto;
}
.about-text strong { color: var(--cream); font-weight: 600; }

/* Arabic + Kurdish: don't justify (browsers stretch via kashida / inter-letter
   spacing on RTL scripts which makes letters look detached). */
html[dir="rtl"] .about-text p {
  text-align: start;
  hyphens: manual;
}

.mobile-br { display: none; }
@media (max-width: 768px) {
  .mobile-br { display: inline; }
  .about-text p {
    text-align: justify;
    hyphens: manual;
  }
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature {
  background: linear-gradient(135deg, rgba(171, 37, 48, 0.08) 0%, rgba(171, 37, 48, 0.02) 100%);
  border: 1px solid rgba(171, 37, 48, 0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 37, 48, 0.5);
  background: linear-gradient(135deg, rgba(171, 37, 48, 0.15) 0%, rgba(171, 37, 48, 0.05) 100%);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Services ===== */
.services { background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: linear-gradient(135deg, rgba(171, 37, 48, 0.08) 0%, rgba(171, 37, 48, 0.02) 100%);
  border: 1px solid rgba(171, 37, 48, 0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 37, 48, 0.5);
  background: linear-gradient(135deg, rgba(171, 37, 48, 0.15) 0%, rgba(171, 37, 48, 0.05) 100%);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 16px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }
.service-card a { color: var(--brand); font-weight: 600; }
.service-card a:hover { color: var(--cream); }

/* ===== Contact ===== */
.contact { background: var(--midnight); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
  max-width: 560px;
  margin: 0 auto;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.info-icon svg { width: 22px; height: 22px; }
.info-row h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.info-row p { color: var(--text-muted); font-size: 0.95rem; }

.socials {
  display: flex;
  flex-wrap: wrap;        /* let extra icons wrap to a second row instead of overflowing */
  gap: 10px;
  margin-top: 12px;
  max-width: 100%;
  min-width: 0;
}
.socials a {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;          /* keep each chip a fixed 44px square */
  border-radius: 12px;
  background: rgba(171, 37, 48, 0.1);
  border: 1px solid rgba(171, 37, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background var(--t), color var(--t), transform var(--t);
}
.socials a:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-3px);
}
.socials svg { width: 20px; height: 20px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(171, 37, 48, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  background: var(--input-bg);
  border: 1px solid rgba(171, 37, 48, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
}
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea { font-family: var(--font-arabic); }
html[lang="ku"] .contact-form input,
html[lang="ku"] .contact-form textarea { font-family: var(--font-kurdish); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--input-bg-focus);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { align-self: flex-start; }
.form-status {
  font-size: 0.9rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(171, 37, 48, 0.25);
}

/* ===== Footer ===== */
.footer {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--surface-deepest) 100%);
  border-top: 1px solid rgba(171, 37, 48, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer-brand img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; }
.footer-links { display: flex; gap: 28px; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand); }
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}
/* Break "All rights reserved." onto its own line below "© 2026 Next Burger." */
.footer-copy [data-i18n="footer.rights"] {
  display: block;
  margin-top: 4px;
}
.footer-credit {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 4px;
  opacity: 0.75;
}
/* Shared style for the "Berzinar.Team" link used in both the footer and the
   mobile nav overlay. The underline lives on the inner .credit-name span so
   it sits tight under just the text, not under the external-link icon. */
.credit-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.credit-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.credit-link svg {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
}
.credit-link:hover {
  color: var(--brand);
}

/* Mobile-only credit at the bottom of the hamburger overlay. */
.nav-credit { display: none; }

/* ============================================
   MENU PAGE
============================================ */
.menu-page {
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.menu-page .menu-main { flex: 1 0 auto; }
.menu-page .footer    { flex-shrink: 0; margin-top: auto; }

.menu-hero {
  position: relative;
  padding: 95px 0 32px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, var(--midnight-3) 0%, var(--midnight) 70%);
  overflow: hidden;
}
.menu-hero .container { padding: 0 18px; }
.menu-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  margin: 12px 0 14px;
  background: linear-gradient(135deg, var(--white) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* Search trigger — looks like an input but is a button that opens the panel */
.menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(171, 37, 48, 0.08);
  border: 1px solid rgba(171, 37, 48, 0.2);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: start;
  cursor: text;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.menu-search:hover,
.menu-search:focus-visible {
  border-color: var(--brand);
  background: rgba(171, 37, 48, 0.14);
  outline: none;
  box-shadow: 0 0 0 4px rgba(171, 37, 48, 0.18);
}
.menu-search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.menu-search-text { flex: 1; }

/* Side panel */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.search-panel-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop-soft);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.search-panel.open .search-panel-backdrop { opacity: 1; }
.search-panel-card {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--midnight);
  border-inline-start: 1px solid rgba(171, 37, 48, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s ease;
}
html[dir="rtl"] .search-panel-card { transform: translateX(-100%); }
.search-panel.open .search-panel-card { transform: translateX(0); }

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(171, 37, 48, 0.15);
}
.search-panel-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-panel-input-wrap .menu-search-icon {
  position: absolute;
  inset-inline-start: 14px;
}
.search-panel-input {
  width: 100%;
  padding-block: 12px;
  padding-inline-start: 42px;
  padding-inline-end: 16px;
  border-radius: 999px;
  background: rgba(171, 37, 48, 0.08);
  border: 1px solid rgba(171, 37, 48, 0.2);
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.search-panel-input::placeholder { color: var(--text-muted); }
.search-panel-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(171, 37, 48, 0.12);
  box-shadow: 0 0 0 4px rgba(171, 37, 48, 0.18);
}
.search-panel-input::-webkit-search-cancel-button { display: none; }
.search-panel-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(171, 37, 48, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  flex-shrink: 0;
}
.search-panel-close:hover { background: var(--brand); }
.search-panel-close svg { width: 16px; height: 16px; }

.search-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}
.search-panel-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 12px;
  font-size: 0.95rem;
}
.search-panel-list { display: flex; flex-direction: column; gap: 10px; }
.search-result.menu-item {
  margin: 0;
  padding: 14px 16px;
}
/* Override .menu-item's display:grid so the [hidden] attribute actually hides
   non-matching search results. Without this, the JS sets hidden=true but the
   class-level display:grid keeps the item rendered. */
.menu-item[hidden],
.search-result[hidden] { display: none; }
.search-result .search-result-cat {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 4px;
}

body.search-panel-open { overflow: hidden; }

/* Item detail modal */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1200px;
  animation: lang-modal-in 0.25s ease;
}
.item-modal[hidden] { display: none; }
.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.item-modal-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  perspective: 1200px;
}
.item-modal-card {
  width: 100%;
  background: linear-gradient(160deg, var(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid rgba(171, 37, 48, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-modal);
  text-align: center;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#itemModalCurrent {
  position: relative;
  z-index: 10;
  touch-action: pan-y;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: lang-card-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.item-modal-card--prev,
.item-modal-card--next {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.45;
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.item-modal-card--prev { transform: translate3d(-38%, 0, 0) scale(0.85) rotateY(18deg); }
.item-modal-card--next { transform: translate3d(38%, 0, 0) scale(0.85) rotateY(-18deg); }
.item-modal-card--prev[hidden],
.item-modal-card--next[hidden] { display: none; }

/* Slide animations driven by data-anim on the stack */
.item-modal-card.is-exit-left  { transform: translate3d(-115%, 0, 0) rotateY(-22deg); opacity: 0; }
.item-modal-card.is-exit-right { transform: translate3d(115%, 0, 0)  rotateY(22deg);  opacity: 0; }
.item-modal-card--prev.is-promote,
.item-modal-card--next.is-promote { transform: translate3d(0, 0, 0) scale(1) rotateY(0); opacity: 1; }
.item-modal-card.is-instant,
.item-modal-card.is-instant * { transition: none !important; }
.item-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(171, 37, 48, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.item-modal-close:hover { background: var(--brand); }
.item-modal-close svg { width: 16px; height: 16px; }
.item-modal-image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  margin: 8px auto 18px;
  background: linear-gradient(135deg, var(--brand-dim) 0%, var(--midnight-3) 100%);
  display: block;
}
.item-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.item-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.item-modal-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(171, 37, 48, 0.12);
  border: 1px solid rgba(171, 37, 48, 0.3);
  padding: 10px 22px;
  border-radius: 999px;
}
body.item-modal-open { overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Pill is fixed-width (matches search bar). Tabs scroll horizontally inside it. */
.menu-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  background: rgba(171, 37, 48, 0.08);
  border: 1px solid rgba(171, 37, 48, 0.2);
  border-radius: 999px;
  padding: 6px;
  text-align: start;
}
.menu-tabs-scroll::-webkit-scrollbar { display: none; }

.menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  /* Anchor tabs to the start of the pill even when there are only a couple. */
  width: max-content;
  min-width: 100%;
  justify-content: flex-start;
}
.menu-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.menu-tab.active {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(171, 37, 48, 0.4);
}
.menu-tab:hover:not(.active) { color: var(--cream); }

.menu-main { padding: 60px 24px 100px; }

.menu-category { display: none; }
.menu-category.active { display: block; }
.menu-category.switching { animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.menu-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(171, 37, 48, 0.12);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.item-image {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-dim) 0%, var(--midnight-3) 100%);
}
.menu-item .item-info { grid-column: 2; grid-row: 1; min-width: 0; align-self: start; }
.menu-item .price { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
.menu-item { cursor: pointer; }
.menu-item:hover {
  transform: translateY(-3px);
  border-color: rgba(171, 37, 48, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.menu-item.highlight {
  background: linear-gradient(135deg, rgba(171, 37, 48, 0.15) 0%, rgba(171, 37, 48, 0.04) 100%);
  border-color: rgba(171, 37, 48, 0.35);
}
.item-info { flex: 1; }
.item-info h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
html[dir="rtl"] .item-info h3 { font-family: var(--font-arabic); }
html[lang="ku"] .item-info h3 { font-family: var(--font-kurdish); }
.item-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   RTL adjustments
============================================ */
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .footer-copy { text-align: center; }
html[dir="rtl"] .service-card a { font-weight: 700; }

/* ============================================
   Reveal-on-scroll animation (CSS-only fallback safe)
============================================ */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal.animating { animation: reveal-in 0.7s ease both; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-copy { text-align: center; }
  .footer-links { justify-content: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand img { margin-inline: auto; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .navbar.scrolled { padding: 10px 16px; }
  .nav-actions { gap: 10px; }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: var(--scrim-mobile);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t), visibility var(--t);
    z-index: 99;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open a:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.12s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.20s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.24s; }

  .nav-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: -14px;  /* tighten the 28px flex gap inherited from .nav-links */
    color: var(--text-dim);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Undo the .nav-links a { font-size: 1.4rem } rule for the credit link. */
  .nav-credit .credit-link { font-size: inherit; }
  .nav-links.open .nav-credit {
    opacity: 0.85;
    transform: translateY(0);
    transition-delay: 0.32s;
  }

  .hamburger { display: flex; position: relative; z-index: 101; }

  /* When the mobile menu is open, the navbar must not have backdrop-filter:
     that property turns the navbar into a containing block for its
     position:fixed descendants, which traps .nav-links inside the navbar
     instead of letting it fill the viewport. The menu's own backdrop-filter
     covers the entire screen, so visually nothing is lost. */
  .navbar:has(.nav-links.open) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .lang-trigger { padding: 6px 10px 6px 8px; font-size: 0.72rem; gap: 6px; }
  .lang-trigger svg { width: 16px; height: 16px; }

  .section { padding: 70px 0; }
  .about-features { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }
  .contact-form { padding: 24px; }

  .menu-hero { padding: 78px 0 24px; }
  .menu-hero .container { padding: 0 14px; }
  .menu-tabs-scroll { padding: 4px; }
  .menu-tabs { gap: 2px; }
  .menu-tab { padding: 8px 14px; font-size: 0.82rem; }
  .menu-item { padding: 18px; }

  /* Smaller social chips on mobile so a long row wraps cleanly. */
  .socials { gap: 8px; justify-content: flex-start; }
  .socials a { width: 38px; height: 38px; border-radius: 10px; }
  .socials svg { width: 17px; height: 17px; }
}

@media (max-width: 540px) {
  .hero { padding: 110px 20px 70px; }
  .hero-title {
    font-size: 1.9rem;
    letter-spacing: 0;
    line-height: 1.1;
  }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn { width: 100%; }
  .nav-logo img { height: 44px; width: 44px; }
  .footer-brand img { height: 40px; width: 40px; }
  .lang-modal-card { padding: 22px 18px 18px; max-width: 320px; }
  .lang-modal-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .lang-modal-icon svg { width: 22px; height: 22px; }
  #langModalTitle { font-size: 1.05rem; }
  .lang-modal-sub { font-size: 0.8rem; margin-bottom: 14px; }
  .lang-option { padding: 10px 14px; }
  .lang-native { font-size: 0.92rem; }
  .lang-name { font-size: 0.74rem; }
  .lang-switcher button { padding: 4px 7px; font-size: 0.66rem; letter-spacing: 0.04em; }
  .section-title { font-size: 1.7rem; letter-spacing: 0; }
  .menu-title { font-size: 2rem; letter-spacing: 0; }
  .menu-item { column-gap: 12px; row-gap: 6px; padding: 12px; }
  .item-image { width: 70px; height: 70px; }
  .menu-item .price { font-size: 0.9rem; }
  .container { padding: 0 18px; }
}

/* ============================================
   Accessibility
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection { background: var(--brand); color: var(--white); }

/* Custom scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb {
  background: rgba(171, 37, 48, 0.4);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
