/* ==========================================================================
   Noor Al Barsha Kitchen — link-in-bio landing page
   Dark only. Mobile first. No third-party requests.
   ========================================================================== */

/* --- Self-hosted webfonts ------------------------------------------------
   Files live in /fonts. If a file is missing the browser silently falls back
   to the stacks declared in --font-* below, so the page still renders.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Almarai";
  src: url("fonts/almarai-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Almarai";
  src: url("fonts/almarai-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:            #0A0A0A;
  --surface:       #121110;
  --gold:          #E8B94A;
  --gold-hi:       #FFE79E;
  --cream:         #FFF4E0;
  --muted:         #C6A264;
  --hairline:      rgba(232, 185, 74, 0.28);

  /* Condensed display face + condensed-ish fallbacks present on iOS/Android */
  --font-display: "Anton", "Oswald", "Roboto Condensed", "Arial Narrow",
                  Impact, Haettenschweiler, system-ui, sans-serif;
  /* Neutral body face — system stack, zero bytes, always available */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  /* Arabic-capable faces only: Geeza Pro (iOS), Noto Naskh Arabic (Android),
     Tahoma/Segoe UI (Windows). Never falls through to a Latin-only face. */
  --font-ar: "Almarai", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic",
             "Segoe UI", Tahoma, sans-serif;

  --wrap: 30rem;          /* 480px */
  --tap: 3rem;            /* 48px minimum tap target */
  --radius: 0.625rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;               /* guard against in-app browser overflow */
  background-color: var(--bg);
  /* Faint khatam lattice. Alpha baked into the stroke, ~4%. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23E8B94A' stroke-opacity='0.04' stroke-width='3'%3E%3Cpath d='M18 18H82V82H18Z'/%3E%3Cpath d='M50 4.7 95.3 50 50 95.3 4.7 50Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 6rem 6rem;
  background-repeat: repeat;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(232, 185, 74, 0.18);
  padding: 0 1rem env(safe-area-inset-bottom);
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

/* --- Ornaments ----------------------------------------------------------- */

.rule__star, .footer__star { fill: var(--gold); display: block; }

.rule {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.5rem auto 1rem;
  max-width: var(--wrap);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.rule__star { width: 0.5rem; height: 0.5rem; flex: none; }

/* --- Grand opening banner ------------------------------------------------ */

.banner {
  max-width: var(--wrap);
  margin: 0.75rem auto 0;
  padding: 0.75rem 0.5rem 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(232, 185, 74, 0.10);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.banner__body { flex: 1; min-width: 0; }
.banner__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.banner__text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--cream);
}
.banner__branch { color: var(--gold); }
.banner__close {
  flex: none;
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.banner__close:hover { color: var(--cream); }

/* --- Hero ---------------------------------------------------------------- */

/* Kept deliberately short: the branch cards are the point of this page and
   need to reach the fold on a 320x568 phone. */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem 0 0.75rem;
  text-align: center;
}
/* Brand mark. width/height attributes on the <img> reserve the box so the
   page never reflows while it loads. */
.mark {
  display: block;
  width: 6rem;
  height: auto;
  max-width: 100%;
  margin: 0 auto 0.375rem;
}
.hero__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero__name-ar {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gold);
  margin-top: 0.125rem;
}
.hero__tagline {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- Sections ------------------------------------------------------------ */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 1.25rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
}
.section__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section--social { text-align: center; }

.noscript {
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--cream);
}

/* --- Branch cards -------------------------------------------------------- */

.branches { display: grid; gap: 1rem; }

.branch {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem;
}
.branch__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.branch__label {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--cream);
}
.branch__badge {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
}
.branch__address {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.branch__actions {
  margin-top: 0.875rem;
  display: grid;
  gap: 0.5rem;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn__icon { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn--secondary,
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--hairline);
}
.btn--ghost {
  max-width: var(--wrap);
  margin: 0 auto;
  color: var(--gold);
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
  .btn--secondary:hover, .btn--ghost:hover { border-color: var(--gold); }
}
.btn:active { transform: translateY(1px); }

/* --- Menu ---------------------------------------------------------------- */

.group + .group { margin-top: 1.5rem; }

.group__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--hairline);
}

.dish {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(232, 185, 74, 0.12);
}
.dish:last-child { border-bottom: 0; }

.dish__names { min-width: 0; }
.dish__en {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}
/* dir="rtl" on the element keeps the bidi order and letter joining correct.
   text-align is overridden only so the Arabic line sits under the English
   name rather than ragged against the right edge of a shrink-wrapped box. */
.dish__ar {
  font-family: var(--font-ar);
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--muted);
  text-align: left;
}

.dish__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3125rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
}
.pill__size {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  text-align: center;
}
.footer__star { width: 1.125rem; height: 1.125rem; margin: 0 auto 0.75rem; }
.footer__ar {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--gold);
}
.footer__line {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__line--muted { opacity: 0.75; }

/* --- Wider phones / small tablets ---------------------------------------- */

@media (min-width: 34rem) {
  .hero__name { font-size: 2.5rem; }
  :root { --wrap: 34rem; }
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, border-color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  * { animation: none !important; transition: none !important; }
}
