/* ==========================================================
   Samouli POP — shared brand tokens (from Master Brand Guidelines v1.0)
   Colour  · p.12  Navy 45% · Cream 25% · Yellow 25% · Coral 5%
   Type    · p.14  Noto Kufi Arabic (display) · Noto Sans Arabic (body)
                   Montserrat Bold/SemiBold (Latin) · Noto Sans (fallback)
   UI      · p.26  Navy = type & nav · Yellow = primary actions
                   Coral = alerts/promos only · Cream/white surfaces
   ========================================================== */

:root {
  --navy: #082B58;
  --cream: #F8F1E3;
  --yellow: #FFCC00;
  --coral: #FF6B4A;
  --white: #FFFFFF;

  /* tints of the master palette only — no off-palette colours */
  --navy-90: rgba(8, 43, 88, .9);
  --navy-70: rgba(8, 43, 88, .72);
  --navy-50: rgba(8, 43, 88, .5);
  --navy-12: rgba(8, 43, 88, .12);
  --navy-06: rgba(8, 43, 88, .06);
  --cream-80: rgba(248, 241, 227, .82);
  --cream-60: rgba(248, 241, 227, .62);
  --cream-15: rgba(248, 241, 227, .15);

  --font-display: 'Montserrat', 'Noto Kufi Arabic', sans-serif;
  --font-body: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
  --font-latin: 'Montserrat', 'Noto Sans', sans-serif;

  --ease-pop: cubic-bezier(.2, .9, .25, 1.2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.25; }
p { margin: 0; }

/* Latin runs inside Arabic copy (English supports at ~70-80% size) */
.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* Logo: always master artwork, never re-typed, no effects (p.07–11) */
.brand-logo { display: inline-block; padding: 6px; } /* ≈0.5X clear space at nav size */
.brand-logo img { width: 100%; height: auto; }

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

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible { outline-color: var(--yellow); }

/* Icon language (p.17): rounded strokes, one weight, navy base, yellow/coral accents only */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
