/* IMBA Pickup and Gold Draw 2026, landing page. Mobile first, Arabic (RTL) and English (LTR).
   Brand colours are measured from the IMBA BMT logo (blue #263285, yellow #fac518); the font is ours until IMBA
   sends its brand files. Change them here, in :root, and nowhere else. */
:root {
  --paper: #f4f2ed;      /* page */
  --card: #ffffff;
  --ink: #15171a;        /* text and outlines */
  --ink-2: #41454b;      /* secondary text */
  --muted: #6c7077;      /* labels, fine print */
  --line: #d9d5cc;       /* section rules */
  --brand: #263285;      /* IMBA blue (from the logo): buttons, pins, dates */
  --brand-ink: #ffffff;  /* text on the brand colour */
  --brand-2: #fac518;    /* IMBA yellow (from the logo), not used yet */
  --ph: #ffe27a;         /* the yellow marker: a design element now, kept even after details are confirmed */
  --ph-fill: #e7e3da;    /* draft only: photo placeholders */
  --r: 14px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.75; }

/* One language at a time. Every piece of copy is written twice in the HTML, once per language. */
html[lang="ar"] body [lang="en"],
html[lang="en"] body [lang="ar"] { display: none !important; }

p, h1, h2, h3, dl, dd, figure { margin: 0; }
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding-inline: 16px; }

/* ---------- yellow markers: started as draft marks, kept as a design element (Zain, 16 Oct) ---------- */
.ph {
  background: var(--ph);
  color: var(--ink);
  padding: 0 .3em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-decoration: none;
}
.ph-sm { font-size: 11.5px; font-weight: 600; padding: 1px 6px; }
.ph-box {
  background: var(--ph-fill);
  border: 1.5px dashed #a8a397;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
}
.ph-icon { width: 46%; max-width: 170px; height: auto; color: #8f8a7f; }
.photo-gold .ph-icon { width: 44%; }
.ph-tag {
  background: var(--ph);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 4px;
}
.ph-txt { font-size: 13px; line-height: 1.35; max-width: 26ch; }

/* ---------- header ---------- */
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 32px; width: auto; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lb {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.lb[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lb:focus-visible, .btn:focus-visible, .logo:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- 1. the prizes ---------- */
.hero { padding-top: 6px; }
.kicker {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 8px;
}
.kicker strong { color: var(--ink); font-weight: 700; }
h1 {
  font-size: clamp(34px, 9.6vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.015em;
}
.lead { margin-top: 10px; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
html[lang="ar"] .kicker, html[lang="ar"] h1 { letter-spacing: 0; }
html[lang="ar"] h1 { line-height: 1.3; }
html[lang="ar"] .lead { line-height: 1.7; }

.status {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* IMBA's own prize visuals (cut-outs on transparent backgrounds, 22 Oct): the pickup large, the gold stack in front of
   its corner, a short caption under each */
.prizes { position: relative; margin-top: 18px; padding-bottom: 8px; }
.photo { position: relative; }
.photo img { display: block; width: 100%; height: auto; }
.photo-car { padding-bottom: 70px; }
.photo-gold {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 54%;
}
.pcap { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.photo-car .pcap { position: absolute; bottom: 44px; inset-inline-start: 4px; max-width: 44%; }
.photo-gold .pcap { text-align: end; }

.prize-list { margin-top: 14px; display: grid; gap: 12px; }
.prize-list > div { border-top: 1.5px solid var(--ink); padding-top: 10px; }
dt { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
dd { margin-top: 2px; font-size: 21px; font-weight: 700; line-height: 1.25; }
html[lang="ar"] dt { letter-spacing: 0; font-size: 13.5px; }
html[lang="ar"] dd { line-height: 1.5; }

/* ---------- sections ---------- */
.sec { margin-top: 40px; padding-top: 28px; border-top: 1.5px solid var(--line); }
h2 { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h2 { line-height: 1.45; letter-spacing: 0; }
.sub { margin-top: 6px; color: var(--ink-2); }
.note { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- 2. how to enter: two identical coupons ---------- */
.coupons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.coupon {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.c-top { padding: 16px 8px 14px; flex: 1; }
.c-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
html[lang="ar"] .c-label { letter-spacing: 0; font-size: 15px; }
.c-amt { margin-top: 10px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.c-cur { font-size: 15px; font-weight: 600; }
.c-num { font-size: 46px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.c-more { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
/* the tear line, with a notch cut into each side */
.c-bot { position: relative; border-top: 1.5px dashed var(--ink); padding: 12px 8px 14px; }
.c-bot::before, .c-bot::after {
  content: "";
  position: absolute;
  top: -9.75px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.c-bot::before { left: -10.5px; clip-path: inset(0 0 0 50%); }
.c-bot::after { right: -10.5px; clip-path: inset(0 50% 0 0); }
.c-get { font-size: 17px; font-weight: 700; line-height: 1.3; }

.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.steps li::before {
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
html[lang="ar"] .steps li { line-height: 1.7; }

/* ---------- 3. the dates ---------- */
.dates { display: grid; gap: 10px; margin-top: 16px; }
.date {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
}
.d-day { flex: none; width: 66px; text-align: center; line-height: 1; padding-inline-end: 14px; border-inline-end: 1.5px dashed var(--ink); }
.d-num { display: block; font-size: 36px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.d-mon { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .d-mon { letter-spacing: 0; }
.d-label { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .d-label { letter-spacing: 0; font-size: 14px; }
.d-full { margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.3; }

/* ---------- the third draw: last year's winners ---------- */
.w-label { margin-top: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .w-label { letter-spacing: 0; font-size: 14px; }
.winners { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ph-fill); }
.w-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-cap { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
/* last year's draw on Instagram: two tappable rows, a cover and a line each */
.vlinks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.vlinks a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
}
.vlinks img { flex: none; width: 72px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--ph-fill); }
.vl-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vl-txt b { font-size: 16px; line-height: 1.3; }
.vl-go { font-size: 14px; font-weight: 700; color: var(--brand); }
.vl-go::after { content: " \2192"; }
html[dir="rtl"] .vl-go::after { content: " \2190"; }

/* ---------- 4. the branches ---------- */
.branches { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.branch {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 16px 14px 14px;
}
.pin { flex: none; width: 24px; height: 30px; color: var(--brand); margin-top: 2px; }
.b-body { flex: 1; min-width: 0; }
.branch h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.b-meta { margin-top: 3px; font-size: 15px; color: var(--ink-2); }
.b-note { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.b-call {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.b-call bdi { unicode-bidi: isolate; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-dir { width: 100%; margin-top: 14px; }

/* ---------- 5. footer ---------- */
.foot {
  margin-top: 48px;
  background: var(--ink);
  color: #d9d6cf;
  font-size: 14px;
  line-height: 1.6;
  padding: 28px 0 0;
}
.foot > .wrap { padding-bottom: 32px; }
/* the light bottom bar with the logo (the logo's letters are white, so it needs a light background) */
.foot-bar {
  border-top: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
}
.foot-bar p + p { margin-top: 2px; }
.fb-logo { display: block; height: 34px; width: auto; margin-bottom: 12px; }
.fb-name { font-weight: 700; color: var(--ink); }
.fb-contact a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.fb-copy { margin-top: 10px !important; color: var(--muted); font-size: 12.5px; }
html[lang="ar"] .foot { line-height: 1.8; }
.foot p + p { margin-top: 10px; }
.foot .tc { font-size: 16px; font-weight: 700; color: #fff; }
.foot .ph { color: var(--ink); }
.f-call { color: #fff; font-weight: 700; text-underline-offset: 3px; }
/* about IMBA: light section between the dark terms block and the white bottom bar, with two swipe rows */
.about { background: var(--paper); color: var(--ink); padding: 36px 0 32px; line-height: 1.55; }
html[lang="ar"] .about { line-height: 1.75; }
.about h2 { font-size: 27px; }
.lead2 { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 20px 0 6px; }
.facts > div { border-top: 1.5px solid var(--ink); padding-top: 8px; }
.facts dt { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--brand); letter-spacing: 0; text-transform: none; }
.facts dd { margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.row-h { margin-top: 28px; font-size: 18px; font-weight: 700; }
.team { margin-top: 22px; }
.team img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r); background: var(--ph-fill); }
.team figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; }
/* the swipe rows: full bleed, snap to each card, the next card peeks in */
.rail {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 16px 6px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }
.rail img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--ph-fill); }
.rail a { display: block; text-decoration: none; color: inherit; }
.rail-v > li { width: 42%; max-width: 220px; }
.rail-v img { aspect-ratio: 9 / 16; object-fit: cover; }
.rail-w > li { width: 78%; max-width: 380px; }
.rail-w img { aspect-ratio: 4 / 3; object-fit: cover; }
.r-cap { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
@media (min-width: 720px) { .rail { padding-inline: calc((100% - 568px) / 2); scroll-padding-inline: calc((100% - 568px) / 2); } }
/* the full terms: a clear white button that opens the 14 clauses */
.terms { margin: 12px 0 18px; }
.terms summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after { content: "+"; font-size: 24px; font-weight: 500; line-height: 1; }
.terms[open] summary::after { content: "\2212"; }
.terms summary:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.terms ol { margin: 14px 0 0; padding-inline-start: 22px; font-size: 14px; line-height: 1.6; color: #d9d6cf; }
html[lang="ar"] .terms ol { line-height: 1.85; }
.terms li + li { margin-top: 8px; }

/* ---------- bottom button: always one tap from the branches ---------- */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1.5px solid var(--line);
  transition: transform .25s ease;
}
.cta-bar .btn { display: flex; width: 100%; max-width: 528px; margin: 0 auto; min-height: 52px; font-size: 17px; }
.cta-bar.hide { transform: translateY(110%); }
html.closed .cta-bar { display: none; } /* after 23 Dec there is nothing to go and buy */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-bar { transition: none; }
}

/* ---------- wider screens: same single column, a little more air ---------- */
@media (min-width: 720px) {
  .wrap { max-width: 600px; }
  .hero { padding-top: 24px; }
  .sec { margin-top: 56px; padding-top: 36px; }
}
