/* السبلة — shared site styles. Self-hosted, no web fonts. */
:root {
  --navy: #141137;
  --navy-2: #191547;
  --card: #1e1a4a;
  --card-2: #231d62;
  --line: rgba(246, 238, 223, .09);
  --cream: #f6eedf;
  --muted: #b9b2e0;
  --saffron: #f6b23c;
  --pink: #ef4f73;
  --teal: #2fbf9f;
  --peri: #6c6fd8;
  --radius: 22px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-display: "SF Arabic Rounded", -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  /* Omani 8-point star lattice */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23f6b23c' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h6.5M49.5 28H56M28 0v6.5M28 49.5V56'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--saffron); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--saffron); color: var(--navy); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 17, 55, .86); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top { background: rgba(20, 17, 55, .72); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--cream); background: rgba(246, 238, 223, .06); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 860px) { .nav { display: flex; } .nav + .btn { margin-inline-start: 8px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--pink); color: #fff;
  box-shadow: 0 4px 0 #a52346;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #f2617f; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a52346; }
.btn.ghost { background: var(--card-2); color: var(--cream); box-shadow: 0 4px 0 #120f34; }
.btn.ghost:hover { background: #2b2474; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 #a52346; }
.btn.ghost.sm { box-shadow: 0 3px 0 #120f34; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.eyebrow { display: inline-block; color: var(--saffron); font-weight: 700; font-size: 14px; letter-spacing: 0; margin-bottom: 10px; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 6vw, 42px); font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.center { text-align: center; margin-inline: auto; }
.lattice { background-image: var(--lattice); background-size: 56px 56px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot .brand { font-size: 18px; }
.foot .brand img { width: 30px; height: 30px; border-radius: 9px; }

/* one-shot reveal (only when JS is on and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}
