/* ==========================================================================
   US3QAR landing pages — brand base (v2, minimal)
   Brand reference: US3QAR_facbookCover Youtube Banner.webp
   Light grey canvas · brand red Arabic headlines · navy wordmark · star divider
   ========================================================================== */

:root {
  /* Brand colours (sampled from the banner) */
  --red: #a5090a;          /* Arabic headline + tagline */
  --crimson: #b22235;      /* the "3" in US3QAR, stars */
  --navy: #3e5193;         /* wordmark, primary button */
  --navy-deep: #3c3b6e;    /* centre star, button hover */
  --star-grey: #a9a9ae;

  /* Neutrals */
  --canvas: #f0f0f0;
  --white: #ffffff;
  --ink: #2b2b2e;
  --muted: #6b6b72;
  --line: #d4d4d8;

  /* Type */
  --font-ar: "Noto Kufi Arabic", "Tahoma", sans-serif;
  --font-lat: "Saira", "Segoe UI", sans-serif;

  --container: 1080px;
  --narrow: 720px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-ar); font-size: 17px; line-height: 1.9;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 55%, transparent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--navy); color: #fff; text-decoration: none; border-radius: 6px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 32px); margin-inline: auto; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-lat); font-weight: 500; letter-spacing: .2em; color: var(--navy);
  direction: ltr; unicode-bidi: isolate; text-decoration: none; white-space: nowrap;
}
.wordmark b { color: var(--crimson); font-weight: 500; }
.wordmark small { font-size: .8em; letter-spacing: .14em; }

/* ---------- Star divider (signature motif) ---------- */
.stars {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-block: 22px 26px;
}
.stars::before, .stars::after {
  content: ""; flex: 0 1 clamp(56px, 12vw, 150px); height: 4px;
  border-top: 1px solid #b9b9be; border-bottom: 1px solid #b9b9be;
}
.stars i {
  flex: none; width: 110px; height: 20px; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 24'%3E%3Cdefs%3E%3Cpath id='s' d='M12 1.5l3 7 7.6.6-5.8 5 1.8 7.4L12 17.6l-6.6 3.9 1.8-7.4-5.8-5 7.6-.6z'/%3E%3C/defs%3E%3Cuse href='%23s' fill='%23a9a9ae' transform='translate(5.4 5.4) scale(.55)'/%3E%3Cuse href='%23s' fill='%23b22235' transform='translate(27.6 3.6) scale(.7)'/%3E%3Cuse href='%23s' fill='%233c3b6e' transform='translate(54 0)'/%3E%3Cuse href='%23s' fill='%23b22235' transform='translate(87.6 3.6) scale(.7)'/%3E%3Cuse href='%23s' fill='%23a9a9ae' transform='translate(113.4 5.4) scale(.55)'/%3E%3C/svg%3E");
}

/* ---------- Button (the single CTA) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; min-width: 200px; padding: 12px 40px; border-radius: 4px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  box-shadow: 0 10px 24px -14px var(--navy); transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-label { display: inline-block; }

/* ---------- Floating WhatsApp (fixed lower-right, always visible) ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .4); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; } .wa-float svg { width: 30px; height: 30px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .wordmark { font-size: 22px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--canvas); text-align: center;
  min-height: min(100svh, 940px); padding: calc(var(--header-h) + clamp(48px, 10vh, 110px)) 0 clamp(220px, 34vh, 360px);
}
.hero-photo { position: absolute; inset: auto 0 0 0; height: 62%; z-index: 0; pointer-events: none; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
  filter: grayscale(.35) saturate(.9) contrast(.9) brightness(1.06); opacity: .72;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%); mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}
.hero .narrow { position: relative; z-index: 1; }
.eyebrow { color: var(--red); font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; }
.hero h1 {
  color: var(--red); font-weight: 700; font-size: clamp(32px, 5vw, 60px); line-height: 1.5; letter-spacing: -.01em;
}
.hero h1 .key { color: var(--navy); }   /* key phrase, e.g. "السوق الأمريكي" */
/* Wider headline that breaks only where the <br> is (desktop); wraps naturally on phones */
.hero h1.wide {
  --w: min(1060px, 100vw - 32px);
  width: var(--w); margin-inline: calc((min(720px, 100vw - 32px) - var(--w)) / 2);
  font-size: clamp(30px, 4vw, 54px);
}
.hero .sub { margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink); }
.hero .btn { margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 150px); text-align: center; }
.section.tint { background: var(--canvas); }
.section h2 { color: var(--red); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.55; }
.section .text { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.section .btn { margin-top: 34px; }

/* "Who it's for" list */
.for-list { list-style: none; margin: 34px auto 0; max-width: 560px; text-align: start; }
.for-list li {
  display: flex; align-items: baseline; gap: 14px; padding-block: 18px;
  border-bottom: 1px solid var(--line); font-size: 18px;
}
.for-list li:first-child { border-top: 1px solid var(--line); }
.for-list li::before {
  content: ""; flex: none; width: 12px; height: 12px; transform: translateY(1px);
  background: var(--navy);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Split: photo beside text (alternates sides) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; text-align: start; }
.split-photo { margin: 0; }
.split-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  filter: grayscale(.25) saturate(.92) contrast(.95);
  box-shadow: 0 24px 48px -32px rgba(20, 24, 40, .45);
}
.split.alt .split-photo { order: 2; }           /* photo on the left (RTL) */
.split .stars { justify-content: flex-start; margin-top: 0; }
.split .stars::before { display: none; }
.split .for-list { margin-inline: 0; max-width: none; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.alt .split-photo { order: 0; }        /* photo always on top on phones */
}

/* ---------- Placeholder marker ---------- */
.ph { background: #fff3c4; outline: 1px dashed #c9a400; outline-offset: 2px; border-radius: 3px; padding-inline: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 48px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer .wordmark { font-size: 20px; }
.site-footer .tagline { color: var(--red); margin-top: 6px; }
.site-footer .disclaimer { max-width: 760px; margin: 22px auto 0; font-size: 12.5px; line-height: 1.9; }
.site-footer .copy { margin-top: 14px; font-size: 12.5px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wordmark { font-size: 19px; }
  .site-nav { gap: 18px; }
  .hero { padding-bottom: 200px; }
  .hero-photo { height: 48%; }
  .btn { width: 100%; }
  .stars i { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
