/* NOEMA website — palette and type mirror the app (constants/colors.ts, NoemaLogo.tsx). */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #09090b;
  --charcoal: #0f0f11;
  --card: #111214;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --silver: linear-gradient(135deg, #ffffff 0%, #e4e4e4 30%, #b0b0b0 70%, #787878 100%);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", "Geeza Pro", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 18px;
  color-scheme: dark;
}

/* ── Language switching ─────────────────────────────────────────────────────
   Both languages ship in the markup; the root data-lang hides the other one.
   Without JS the page stays in English. */
[data-lang="en"] [data-l="ar"],
[data-lang="ar"] [data-l="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 20px; height: auto; flex: none; }
.wordmark {
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.32em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* letter-spacing leaves trailing space after the last letter */
  margin-inline-end: -0.32em;
}
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .hide-sm { display: inline; }
.lang-toggle {
  appearance: none; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 14px; font: 500 13px/1.2 var(--font-body);
}
[dir="rtl"] .lang-toggle { font-family: var(--font-body); }
.lang-toggle [data-l="en"] { font-family: var(--font-ar); }
.lang-toggle:hover { border-color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-store { background: #fff; color: #000; }
.btn-store svg { width: 20px; height: 20px; }
.btn-store .store-text { text-align: start; }
.btn-store small { display: block; font-size: 11px; line-height: 1.1; opacity: .7; }
.btn-store span { display: block; font-size: 16px; line-height: 1.15; font-weight: 600; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #0b0b0b; }
.btn-gold:hover { background: var(--gold-light); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
/* Horizontal-only clip so the halo and rotating circle never widen the page.
   The owl sits inside the content column, so this never cuts it; vertically nothing is clipped. */
.hero { position: relative; padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); overflow-x: hidden; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(60% 50% at 70% 35%, rgba(212,175,55,0.10), transparent 70%),
              radial-gradient(40% 40% at 20% 10%, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.01em; margin-top: 18px;
}
[dir="rtl"] .display { font-family: var(--font-ar); font-weight: 300; font-size: clamp(40px, 6.6vw, 76px); line-height: 1.25; letter-spacing: 0; }
.display em { font-style: italic; color: var(--gold); }
[dir="rtl"] .display em { font-style: normal; }
.lede { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); max-width: 34em; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta-line { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Owl illustration — the original transparent artwork at its natural 2:3 ratio.
   No clipping, no radius, no frame: the box only sizes the image, which is fully
   contained. Behind it: a soft gold halo, a faint static ring and a rotating gold arc. */
.hero-visual {
  position: relative; justify-self: center;
  height: clamp(380px, 60vh, 540px); aspect-ratio: 2 / 3; max-width: 100%;
  overflow: visible;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 4% -40% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(212,175,55,0.20), rgba(212,175,55,0.06) 55%, transparent 80%);
  pointer-events: none;
}
.hero-visual .ring,
.hero-visual .orbit {
  position: absolute; left: 50%; top: 52%; z-index: 0;
  height: 92%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-visual .ring { border: 1px solid rgba(212,175,55,0.14); }
.hero-visual .orbit {
  border: 1.5px solid transparent;
  border-top-color: rgba(232,200,74,.7); border-right-color: rgba(232,200,74,.22);
  animation: orbit 26s linear infinite;
}
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-visual img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: contain;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin-top: 14px; }
[dir="rtl"] .section-head h2 { font-family: var(--font-ar); font-weight: 400; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.35; }
.section-head p { color: var(--text-2); margin: 14px 0 0; }

/* Moods */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 15px;
}
.chip .e { font-size: 16px; line-height: 1; }
.chip.gold { border-color: rgba(212,175,55,.35); background: var(--gold-soft); }
.chip-group + .chip-group { margin-top: 28px; }
.chip-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
[dir="rtl"] .chip-label { letter-spacing: 0; font-size: 13px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.feature .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 18px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 600; }
[dir="rtl"] .feature h3 { font-weight: 500; }
.feature p { color: var(--text-2); margin: 8px 0 0; font-size: 15px; }

/* Cities */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.city {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--border);
}
.city img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform .6s ease; }
.city:hover img { transform: scale(1.11); }
.cities-note { margin-top: 22px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.cities-note::before { content: "✦"; color: var(--gold); }

/* CTA band */
.cta {
  text-align: center; border-top: 1px solid var(--border);
  padding-block: clamp(64px, 10vw, 120px);
  background: radial-gradient(50% 80% at 50% 100%, rgba(212,175,55,.09), transparent 70%);
}
.cta h2 { font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 66px); line-height: 1.05; }
[dir="rtl"] .cta h2 { font-family: var(--font-ar); font-weight: 300; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; }
.cta p { color: var(--text-2); margin: 16px auto 30px; max-width: 32em; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Document pages (privacy / terms / support) ────────────────────────── */
.doc-hero { padding-block: clamp(48px, 8vw, 88px) 8px; }
.doc-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin-top: 14px; }
[dir="rtl"] .doc-hero h1 { font-family: var(--font-ar); font-weight: 300; font-size: clamp(34px, 5vw, 52px); line-height: 1.3; }
.doc-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.doc { max-width: 760px; padding-bottom: clamp(56px, 8vw, 96px); }
.doc h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
[dir="rtl"] .doc h2 { font-weight: 500; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--gold); text-underline-offset: 3px; }
.doc a.btn { text-decoration: none; }
.doc a.btn-gold { color: #0b0b0b; }
.doc a.btn-ghost { color: var(--text); }

.notice {
  margin: 28px 0 8px; padding: 16px 18px; border-radius: 14px;
  border: 1px dashed rgba(212,175,55,.5); background: var(--gold-soft); color: var(--text);
  font-size: 14px;
}
.notice strong { color: var(--gold); }

/* Information still to be supplied by the owner. `npm run check` fails while any remain. */
.todo {
  display: inline; padding: 1px 8px; border-radius: 6px;
  background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px dashed rgba(239,68,68,.5);
  font-size: .92em; white-space: normal;
}

.contact-card { margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card p { margin: 0 0 16px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-visual { height: clamp(340px, 46vw, 420px); }
  .features, .cities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(300px, 86vw, 380px); order: -1; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .features, .cities { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .city img { transition: none; }
  .hero-visual .orbit { animation: none; }
}
