/* ==========================================================================
   Eat With Samar — design system
   Palette and type carried over from the original build; hero typography and
   RTL handling rebuilt. Hand-authored, no build step required.
   ========================================================================== */

:root {
  --ink:        #0f2747;
  --ink-soft:   #3b5674;
  --navy:       #1a3d73;
  --navy-deep:  #102a54;
  --sage:       #5c738c;
  --cream:      #f3f7fb;
  --paper:      #ffffff;
  --sumac:      #c8102e;
  --sumac-deep: #9d0d24;
  --line:       #dbe4ef;
  --line-soft:  #eaf0f7;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;

  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.125rem);
  --step-3:  clamp(1.875rem, 1.55rem + 1.6vw, 2.875rem);
  --step-4:  clamp(2.375rem, 1.75rem + 3.1vw, 4.25rem);
}

[lang="ar"], [dir="rtl"] {
  --font-display: "Noto Naskh Arabic", "Amiri", Georgia, serif;
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body { line-height: 1.9; }

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.012em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  letter-spacing: 0;
  line-height: 1.45;
  font-weight: 700;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 44rem; }
.shell--mid { max-width: 62rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip:focus { inset-inline-start: 0.75rem; top: 0.75rem; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sumac);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- eyebrow / small caps label ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sumac);
  margin: 0 0 0.9rem;
  display: block;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }
.eyebrow--light { color: #ff9aa8; }
.eyebrow--muted { color: var(--sage); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}
[dir="rtl"] .lede { line-height: 1.85; max-width: 44ch; }
.lede--light { color: rgba(243, 247, 251, 0.86); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-inline-end: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand__name em { font-style: normal; color: var(--sumac); }
.brand__sub { font-size: 0.72rem; color: var(--sage); font-family: "Noto Naskh Arabic", serif; }

.nav { display: none; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sumac); font-weight: 600; }
@media (min-width: 62rem) { .nav { display: flex; } }

.lang-switch { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.lang-switch a {
  text-decoration: none; font-size: 0.82rem; font-weight: 600; color: var(--sage);
  padding: 0.3rem 0.65rem; border-radius: 6px; line-height: 1.4;
}
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15,39,71,0.12); }
.lang-switch a:not([aria-current]):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  min-height: 44px;
}
.btn--primary { background: var(--sumac); color: #fff; }
.btn--primary:hover { background: var(--sumac-deep); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; min-height: 38px; }
.nav-cta { display: none; }
@media (min-width: 48rem) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
@media (min-width: 62rem) { .menu-toggle { display: none; } }

.mobile-nav { border-top: 1px solid var(--line-soft); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.mobile-nav a { display: block; padding: 0.75rem var(--gutter); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a[aria-current="page"] { color: var(--sumac); font-weight: 700; }

/* ==========================================================================
   HERO — rebuilt for legibility
   Original problem: near-white Fraunces at 700 over a 25%-opacity scrim at the
   top of a bright photo. Fixed with a heavier optical weight, a much stronger
   two-stop scrim, and a text shadow that survives busy photography.
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Two stacked scrims: a strong vertical wash plus a soft pool behind the copy. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(9, 24, 46, 0.94) 0%, rgba(9, 24, 46, 0.80) 38%, rgba(9, 24, 46, 0.60) 70%, rgba(9, 24, 46, 0.48) 100%);
}
.hero__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(6, 18, 36, 0.55) 0%, rgba(6, 18, 36, 0) 68%);
}

.hero__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(30rem, 62vh, 40rem);
  padding-block: clamp(6rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(4, 14, 30, 0.55), 0 1px 3px rgba(4, 14, 30, 0.6);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}
[dir="rtl"] .hero h1 {
  letter-spacing: 0;
  max-width: 20ch;
  font-weight: 700;
  font-variation-settings: normal;
  text-shadow: 0 2px 18px rgba(4, 14, 30, 0.6), 0 1px 3px rgba(4, 14, 30, 0.7);
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  margin: 1rem 0 0;
  color: #fff;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  text-shadow: 0 1px 10px rgba(4, 14, 30, 0.6);
}
.hero__name span[aria-hidden] { color: var(--sumac); }

.hero__lede {
  margin-top: 1.15rem;
  max-width: 46ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(4, 14, 30, 0.6);
}
[dir="rtl"] .hero__lede { line-height: 1.85; max-width: 50ch; }

.hero__meta {
  margin-top: 1.4rem; font-size: 0.9rem; color: rgba(255,255,255,0.86);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
  text-shadow: 0 1px 8px rgba(4, 14, 30, 0.7);
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__credential { margin-top: 1.5rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.78); }
[dir="rtl"] .hero__credential { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

/* compact page hero for interior pages */
.pagehero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.pagehero__media { position: absolute; inset: 0; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,24,46,0.95) 0%, rgba(9,24,46,0.82) 45%, rgba(9,24,46,0.66) 100%); }
.pagehero__body { position: relative; z-index: 2; padding-block: clamp(4.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem); }
.pagehero h1 {
  font-size: var(--step-3); font-weight: 800; color: #fff; max-width: 20ch;
  text-shadow: 0 2px 16px rgba(4,14,30,0.55);
}
[dir="rtl"] .pagehero h1 { font-weight: 700; }
.pagehero p { margin-top: 1rem; max-width: 48ch; color: rgba(255,255,255,0.92); font-size: var(--step-1); line-height: 1.55; text-shadow: 0 1px 10px rgba(4,14,30,0.6); }
[dir="rtl"] .pagehero p { line-height: 1.85; }

/* ---------- credential band ---------- */
.band { background: var(--navy-deep); color: var(--cream); }
.band__grid { display: grid; gap: 1.5rem 2rem; padding-block: 2.25rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 56rem) { .band__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.band__item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #fff; }
.band__item span { display: block; font-size: 0.88rem; color: rgba(243,247,251,0.72); margin-top: 0.2rem; }

/* ---------- generic layout helpers ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: 0.85fr 1.15fr; } .split--even { grid-template-columns: 1fr 1fr; } .split--reverse { grid-template-columns: 1.15fr 0.85fr; } }

.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sumac); margin-top: 0.7rem; }
.section--ink .checklist, .section--ink .checklist li { border-color: rgba(243,247,251,0.18); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color .16s ease, transform .16s ease;
}
a.card { text-decoration: none; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }
.card__num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--sumac); letter-spacing: 0.12em; }
.card__more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: 0.92rem; color: var(--sumac); }

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 54rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; list-style: none; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--sumac);
  display: block; margin-bottom: 0.6rem;
}
[dir="rtl"] .steps li::before { content: counter(step, arabic-indic); }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

.note-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.note { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); transition: border-color .16s ease, transform .16s ease; }
.note:hover { border-color: var(--ink); transform: translateY(-2px); }
.note__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.note__img img { width: 100%; height: 100%; object-fit: cover; }
.note__body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.note__kicker { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--sumac); }
[dir="rtl"] .note__kicker { letter-spacing: 0; text-transform: none; font-size: 0.82rem; }
.note h3 { font-size: var(--step-1); }
.note p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0; display: flex; gap: 1rem; align-items: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-inline-start: auto; font-family: var(--font-body); font-weight: 400;
  font-size: 1.6rem; line-height: 1; color: var(--sumac); flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq__answer { padding-bottom: 1.35rem; color: var(--ink-soft); max-width: 62ch; }

.prose { max-width: 40rem; }
.prose--center { margin-inline: auto; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.85rem; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.6rem; }
.prose ul, .prose ol { padding-inline-start: 1.35rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  margin: 2rem 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--sumac);
  font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--ink);
}
[dir="rtl"] .prose blockquote { font-style: normal; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius-lg); }
.prose figcaption { font-size: 0.88rem; color: var(--sage); margin-top: 0.6rem; }

.callout {
  background: var(--cream); border: 1px solid var(--line); border-inline-start: 3px solid var(--sumac);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 2rem 0;
}
.callout p { margin: 0; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

.portrait { border-radius: var(--radius-lg); overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.figure-wide { border-radius: var(--radius-lg); overflow: hidden; }
.figure-wide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.cta {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
}
.cta h2 { font-size: var(--step-2); color: #fff; max-width: 22ch; margin-inline: auto; }
.cta p { margin: 1rem auto 1.75rem; max-width: 46ch; color: rgba(243,247,251,0.85); }
.cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

.disclaimer { font-size: 0.86rem; color: var(--sage); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; max-width: 60ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(243,247,251,0.8); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: rgba(243,247,251,0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-grid h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,247,251,0.55); margin-bottom: 0.9rem; font-family: var(--font-body); font-weight: 700; }
[dir="rtl"] .footer-grid h3 { letter-spacing: 0; text-transform: none; font-size: 0.88rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,247,251,0.16); font-size: 0.84rem; color: rgba(243,247,251,0.6); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-brand em { font-style: normal; color: #ff8093; }

.social { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(243,247,251,0.25); border-radius: 50%; }
.social a:hover { border-color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- illustrated section graphics ---------- */
.figure-svg { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.figure-svg svg { width: 100%; height: auto; display: block; }
.figure-svg figcaption { margin-top: 1rem; font-size: 0.88rem; color: var(--sage); text-align: center; }

/* Keep Arabic figure cards on the same right-hand edge as their headings. */
[dir="rtl"] .figure-svg { margin-inline: 0; }

/* RTL: mirror the directional artwork, keep the text upright */
[dir="rtl"] .figure-svg svg.mirror { transform: scaleX(-1); }
[dir="rtl"] .figure-svg svg.mirror text { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }
