/* Wiqaya site styles. Light theme only. Tokens and class names follow site/SPEC.md section C.
   Colour logic: the brand green is also the "Ready" band, so the brand colour is the result clients
   work towards. Red, ochre and blue appear only as Readiness Index bands. */

:root {
  color-scheme: light;
  --ink:#13211F; --muted:#55625E; --rule:#C9D1CB;
  --gypsum:#EEF1EC; --white:#FFFFFF;
  --brand:#0F5B4A; --brand-hover:#0B4A3C; --wash:#DCEBE3; --mint:#9FD3C1;
  --exposed:#B42318; --developing:#9A5B00; --prepared:#36648F; --ready:var(--brand);
  --crit-bg:#FBEAE8; --focus:var(--brand);
  --radius:10px;
  --font:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:"IBM Plex Sans Condensed","IBM Plex Sans",system-ui,sans-serif;
  --font-ar:"IBM Plex Sans Arabic","IBM Plex Sans",system-ui,sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.section--brand :focus-visible, .holding :focus-visible { outline-color: var(--mint); }

[lang="ar"] { font-family: var(--font-ar); }

/* Skip link: off-screen until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--brand);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Type: condensed display face for headings and numbers, Plex Sans for reading */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 {
  font-size: clamp(44px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
}
.h1--page { font-size: clamp(32px, 5vw, 48px); }

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--alt { background: var(--gypsum); }
.section--brand { background: var(--brand); color: var(--white); }
.section--brand .lede, .section--brand .note { color: rgba(255,255,255,.82); }
.section--brand h2, .section--brand h3 { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.section--brand .btn--primary, .holding .btn--primary { background: var(--white); color: var(--brand); }
.section--brand .btn--primary:hover, .holding .btn--primary:hover { background: var(--wash); }
.btn--light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover { background: rgba(255,255,255,.12); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
}
.site-header .brand { margin-right: auto; }

/* Bilingual wordmark: English and Arabic at equal weight */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; flex-shrink: 0; }
.brand__name { font-size: 22px; font-weight: 600; line-height: 1; color: inherit; }
.brand__ar { font-family: var(--font-ar); font-size: 21px; font-weight: 600; line-height: 1; color: inherit; }

.nav { display: flex; align-items: center; gap: 28px; margin-right: 16px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { color: var(--brand); text-decoration: underline; }

.nav-menu { display: none; position: static; }
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > :not(summary) {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 4px);
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.nav-menu a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-menu a:hover { background: var(--gypsum); color: var(--brand); }

/* Hero: headline on the left, the first readiness question on the right */
.hero { padding: 72px 0 96px; background: var(--gypsum); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero .lede { font-size: 20px; }
.hero__note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero .btn-row, .lede + .btn-row { margin-top: 28px; }

.hero-q {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--brand);
  border-radius: 4px 4px var(--radius) var(--radius);
  padding: 28px;
}
.hero-q__step { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.hero-q__text {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.hero-q__opts { display: grid; gap: 8px; }
.hero-q__opt {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.hero-q__opt:hover { border-color: var(--brand); background: var(--wash); }
.hero-q__opt[aria-pressed="true"] { border-color: var(--brand); background: var(--wash); box-shadow: inset 0 0 0 1px var(--brand); }
.hero-q__foot { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Band text and pills (Readiness Index) */
.band-text--Exposed { color: var(--exposed); fill: var(--exposed); }
.band-text--Developing { color: var(--developing); fill: var(--developing); }
.band-text--Prepared { color: var(--prepared); fill: var(--prepared); }
.band-text--Ready { color: var(--ready); fill: var(--ready); }
.dial__num { font-family: var(--font-display); font-size: 30px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dial__label { font-size: 14px; font-weight: 600; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.card__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.card--feature { border: 2px solid var(--brand); position: relative; }
.card__label {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.duration { font-size: 14px; color: var(--muted); }
.card p { margin: 10px 0 0; }
.card ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15px; }
.card li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}
.card .proof-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.card .proof-line .note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; }

/* UAE */
.uae-item { border-top: 2px solid var(--mint); padding-top: 20px; }
.uae-item h3 { color: var(--white); }
.uae-item p { color: rgba(255,255,255,.85); margin: 0; }

/* Timeline (a real sequence: week 1, 2, 3) */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step { border-top: 3px solid var(--rule); padding-top: 20px; }
.step:first-child { border-top-color: var(--brand); }
.step__week {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 6px;
}
.step p { color: var(--muted); margin: 0; }

/* Deliverables: one real artefact, then the full list */
.deliv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.artefact { margin: 0; }
.act-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.45;
}
.act-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.act-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.act-card__org { font-size: 12px; color: var(--muted); text-align: right; }
.act-card__alert {
  margin: 12px 0;
  padding: 8px 10px;
  background: var(--crit-bg);
  border-left: 4px solid var(--exposed);
  font-weight: 600;
  color: var(--exposed);
}
.act-card__sub { font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.act-card ol { margin: 0; padding-left: 20px; }
.act-card ol li { margin-bottom: 4px; }
.act-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.act-card th, .act-card td { text-align: left; padding: 5px 6px 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.act-card th { font-weight: 600; color: var(--muted); }
.artefact figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.deliv-list { list-style: none; margin: 0; padding: 0; }
.deliv-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.deliv-list li:first-child { padding-top: 0; }
.deliv-list h3 { font-size: 18px; margin: 0 0 2px; }
.deliv-list p { margin: 0; color: var(--muted); font-size: 16px; }
.deliv-list .fmt { display: block; font-size: 14px; color: var(--brand); font-weight: 600; margin-top: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 8px 16px;
}

/* Scope note */
.scope-note {
  border-left: 4px solid var(--brand);
  background: var(--gypsum);
  padding: 20px 24px;
  margin-top: 32px;
}
.scope-note p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary {
  position: relative;
  padding-right: 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; font-size: 18px; }
.contact-list li { margin-bottom: 12px; }
.contact-list a { color: var(--white); text-decoration: underline; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--white); }
.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font: inherit;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(255,255,255,.6); }
.form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.form .consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--mint);
}
.form-status { font-size: 14px; color: var(--white); margin: 0; }

/* Footer: light, so it separates from the green contact section above */
.site-footer {
  background: var(--gypsum);
  color: var(--muted);
  padding: 40px 0;
  font-size: 14px;
}
.site-footer a { color: var(--ink); }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer .brand__name { font-size: 18px; }
.site-footer .brand__ar { font-size: 17px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Assessment */
.quiz {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.quiz-bar {
  height: 6px;
  background: var(--gypsum);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width .25s;
}
.domain-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--wash);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend {
  padding: 0;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.4vw, 26px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}
.opt:hover { border-color: var(--brand); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.opt.on {
  border-color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 15px;
  color: var(--muted);
}
.facts li::before { content: "\2713"; color: var(--brand); font-weight: 700; margin-right: 6px; }
.score-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.band {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--white);
}
.band.Exposed { background: var(--exposed); }
.band.Developing { background: var(--developing); }
.band.Prepared { background: var(--prepared); }
.band.Ready { background: var(--ready); }
.crit {
  background: var(--crit-bg);
  border-left: 4px solid var(--exposed);
  padding: 12px 14px;
  margin: 10px 0;
}
.crit strong { display: block; }
.domains { display: grid; gap: 12px; }
.drow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 4px 12px;
  align-items: center;
}
.drow .track {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--gypsum);
  border-radius: 99px;
  overflow: hidden;
}
.drow .track span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.drow .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
ol.actions li { margin-bottom: 12px; }
.actions .good { display: block; font-size: 15px; color: var(--muted); }
.cta-box {
  background: var(--gypsum);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}
.cta-box h3 { margin-top: 0; }
.cta-box p { margin: 0 0 12px; }
.quiz .score-head .dial { width: 136px; height: 136px; flex: none; }
.quiz h2 { font-size: 24px; line-height: 1.2; margin: 28px 0 10px; }
.quiz .dial__num { font-size: 36px; }
.quiz .dial__label { font-size: 12px; font-weight: 400; fill: var(--muted); }

/* Responsive: ordered from widest to narrowest */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-menu { display: block; }
  .hero__grid, .deliv { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .grid-2,
  .timeline,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 40px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .quiz, .hero-q { padding: 20px 16px; }
  .score-head { grid-template-columns: minmax(0, 1fr); }
  .act-card { padding: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .site-header .btn--primary { display: none; }
  .brand__name { font-size: 20px; }
  .brand__ar { font-size: 19px; }
}

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

/* Staging environment banner (only rendered in staging builds) */
.staging-banner { background: #7A1F1F; color: #fff; text-align: center; font-size: 13px; font-weight: 600;
  padding: 6px 16px; }

/* Holding ("coming soon") page: built with --env holding */
.holding { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--brand); color: #fff; }
.holding__main { flex: 1; display: flex; align-items: center; padding: 64px 24px; }
.holding__inner { width: 100%; max-width: 760px; margin: 0 auto; }
.holding__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.holding__name { font-size: 26px; font-weight: 600; color: #fff; }
.holding__ar { font-family: var(--font-ar); font-size: 25px; font-weight: 600; color: #fff; }
.holding h1 { color: #fff; margin: 0 0 20px; }
.holding .lede { color: rgba(255,255,255,.85); font-size: 20px; max-width: 620px; margin: 0; }
.holding__soon { display: inline-flex; align-items: center; gap: 10px; margin: 32px 0 0; font-weight: 600;
  font-size: 16px; color: #fff; }
.holding__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(159,211,193,.6); animation: holding-pulse 2s infinite; }
@keyframes holding-pulse { 70% { box-shadow: 0 0 0 10px rgba(159,211,193,0); } 100% { box-shadow: 0 0 0 0 rgba(159,211,193,0); } }
.holding .btn-row { margin-top: 28px; }
.holding__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 24px;
  max-width: 808px; width: 100%; margin: 0 auto; font-size: 14px; color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.2); }
@media (max-width: 480px) {
  .holding__main { padding: 40px 16px; }
  .holding__brand { margin-bottom: 40px; }
  .holding .lede { font-size: 18px; }
  .holding__footer { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .holding__dot { animation: none; } }
