﻿@charset "UTF-8";
/* ---------- JKB brand fonts ----------
  Latin: Myriad Pro. Arabic: GE SS Two (Light for body, Bold for emphasis).
  Myriad Pro is listed first in --font-brand so Latin text uses it; it has no
  Arabic glyphs, so Arabic characters fall through to GE SS Two automatically.
  The two GE SS faces ship as separate families upstream ("GE SS Two Bold" /
  "GE SS Two Light") but are unified here into one family with real weights. */
@font-face {
  font-family: "Myriad Pro";
  src: url("../fonts/myriadpro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("../fonts/myriadpro-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/ge-ss-two-light.woff2") format("woff2");
  /* Covers 300-400 so Arabic body copy at the default weight uses Light. */
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/ge-ss-two-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* JKB brand colors — extracted from live logo (jkb.com) */
:root {
  --font-brand: "Myriad Pro", "GE SS Two", "Segoe UI", Tahoma, Arial, sans-serif;
  --jkb-navy: #16274f;
  --jkb-navy-deep: #0d1a38;
  --jkb-blue: #0379b7;
  --jkb-gold: #fbcf3d;
  --jkb-gold-soft: #fde186;
  --jkb-white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container-width: 1120px;
  /* ---- Theme tokens: light only (dark mode is disabled) ---- */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: var(--jkb-navy);
  --text-muted: #5a6488;
  --border-soft: rgba(22, 39, 79, 0.12);
  --border-strong: var(--jkb-blue);
  --title-grad-a: var(--jkb-blue);
  --title-grad-b: var(--jkb-navy);
  --card-shadow: 0 10px 26px rgba(22, 39, 79, 0.14);
  /* Thin rule colour sampled from the master KV artwork. */
  --kv-rule: 159, 136, 104;
  /* Accent for interactive chrome (buttons). Brand gold is too pale to read
   against the light background, so chrome uses deep brand blue instead. */
  --accent: #0369a1;
  --accent-contrast: #ffffff;
}

* {
  box-sizing: border-box;
}

p {
  margin: 0;
}

/* The language swap relies on the hidden attribute, so never let a later
   display rule resurrect a hidden block. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

/* The master KV's thin crossing rules, carried across the whole page.
   Built from repeating gradients rather than a bitmap so the motif stays
   crisp at any viewport size and tiles down a page of any length — a fixed
   export of the layer would have to stretch or leave gaps. */
body {
  font-family: var(--font-brand);
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(71deg, transparent 0 167px, rgba(var(--kv-rule), 0.2) 167px 168px), repeating-linear-gradient(-58deg, transparent 0 213px, rgba(var(--kv-rule), 0.16) 213px 214px), repeating-linear-gradient(24deg, transparent 0 269px, rgba(var(--kv-rule), 0.13) 269px 270px), repeating-linear-gradient(-13deg, transparent 0 331px, rgba(var(--kv-rule), 0.11) 331px 332px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }
}
img {
  max-width: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

/* Logo art itself is per-theme (navy on light, white on dark), swapped by
   updateLogos() in main.js — so no background chip is needed behind it. */
/* The lockup is wide (~5.8:1), so on narrow phones its natural width plus the
   language button overflowed the viewport. flex-shrink:0 stops flexbox from
   squashing it out of aspect; the vw-based height is tuned to the width left
   over after the container padding, gap and language button. */
.logo {
  height: clamp(30px, 10.5vw, 58px);
  width: auto;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
/* Transparent so the page's KV rules run behind the lockup uninterrupted. */
.hero {
  position: relative;
  padding-block: 24px 8px;
  text-align: center;
}

.hero-inner {
  position: relative;
}

.hero-eyebrow {
  color: #96784f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* The campaign key visual carries the campaign title, so the <h1> wraps it
   rather than rendering its own text. */
.hero-title {
  margin: 0;
  line-height: 0;
}

/* The KV is split into its two elements so they can be pushed apart. Order is
   locked LTR (mark left, title right) to match the artwork in both languages;
   space-between turns any extra width into the gap between them. */
/* The lockup is a link to the full playlist. */
.kv-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kv-link:hover,
.kv-link:focus-visible {
  transform: translateY(-3px);
}

.kv-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 8px;
}

.kv-link:hover .kv-title,
.kv-link:focus-visible .kv-title {
  background: #16305f;
}

.kv-link .kv-title {
  transition: background-color 0.2s ease;
}

.kv-lockup {
  display: flex;
  direction: ltr;
  align-items: center;
  /* The title is live text now, so it sizes to its content — centre the pair
   and control the spacing with an explicit gap rather than space-between. */
  justify-content: center;
  gap: clamp(14px, 3.5vw, 52px);
  max-width: 1040px;
  margin: 0 auto;
}

/* display:contents promotes the <img> to be the flex item — but it promotes
   the <source> too, and a zero-width source still takes a space-between slot,
   which throws the gap and centring off. Keep sources out of layout. */
.kv-lockup picture {
  display: contents;
}

.kv-lockup source {
  display: none;
}

/* Sized on vw (not a % of the row) so the mark and the single-line title scale
   together — a percentage width would keep growing while the nowrap title also
   grew, and the pair would collide in the 640-900px range. */
.kv-50 {
  flex: 0 0 auto;
  width: clamp(96px, 26vw, 340px);
  height: auto;
}

/* Live text on the brand navy, replacing the two stacked artwork boxes with a
   single line. Colour sampled from the KV: rgb(31,59,115). */
.kv-title {
  flex: 0 1 auto;
  min-width: 0;
  background: #1f3b73;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(11px, 3.6vw, 34px);
  line-height: 1.45;
  padding: 0.3em 0.6em;
  white-space: nowrap;
  text-align: center;
}

/* Below 992px the lockup stacks: the mark above, the statement beneath it.
   Freed from sharing the row, both can grow considerably — the mark roughly
   doubles on a phone, and the single-line statement is no longer squeezed by
   the mark's width. The font cap stays 34px so nothing jumps at the breakpoint. */
@media (max-width: 991px) {
  .kv-lockup {
    flex-direction: column;
    gap: clamp(12px, 2.6vw, 24px);
  }
  .kv-50 {
    width: min(58%, 320px);
  }
  .kv-title {
    font-size: clamp(18px, 5.2vw, 34px);
  }
}
/* Entrance animation is a progressive enhancement only: this is the page's key
   visual, so it must stay visible if animations never run. */
@media (prefers-reduced-motion: no-preference) {
  .kv-50 {
    animation: banner-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .kv-title {
    animation: banner-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
  }
}
@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ---------- Brief (between the banner and the governorate grid) ---------- */
.brief {
  padding-block: 4px 28px;
  text-align: center;
}

.brief-inner {
  max-width: 620px;
}

/* Paragraphs are the copy's own blocks (line breaks inside them come from <br>),
   so give blocks a clear gap and the call to action more room still. */
.brief-intro {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
}

.brief-intro p {
  margin: 0 0 14px;
}

.brief-intro p:last-child {
  font-size: 15px;
  margin-bottom: 0px;
}

.brief-cta {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

@media (max-width: 480px) {
  .brief-intro {
    font-size: 15px;
  }
  .brief-cta {
    font-size: 14px;
  }
}
/* ---------- Governorate grid ---------- */
.governorates {
  padding-block: 8px 60px;
}

.gov-grid {
  display: grid;
  /* Cards carry the full landscape key visual, including its Arabic tagline,
   so the grid stays wide-per-card: one up on phones, two then three as
   space allows. Any denser and the artwork's type stops being readable. */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

/* Two up is the densest that keeps the artwork's Arabic tagline readable: the
   container caps at 1120px, so a third column would pin cards at ~343px wide
   and never grow, whereas two gives ~529px. */
@media (min-width: 640px) {
  .gov-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
.gov-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  animation: card-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Hover lifts the card and lights its border — no scaling. The artwork is a
   finished composition, so zooming it cropped the edges of the design. */
.gov-card:hover,
.gov-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);
}

.gov-card.is-highlighted {
  border-color: var(--jkb-gold);
  box-shadow: 0 0 0 3px rgba(251, 207, 61, 0.4);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Matches the exported artboard exactly (1000x562) so the key visual is never
   cropped — every card shows the complete composition. */
.gov-thumb {
  position: relative;
  aspect-ratio: 1000/562;
  background: linear-gradient(155deg, var(--jkb-blue) 0%, var(--jkb-navy) 70%);
  overflow: hidden;
}

.gov-thumb-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No darkening scrim: the card now shows finished brand artwork, and a wash
   over it would dull the gold and the navy tagline bar. The play control
   carries its own backdrop instead. */
.gov-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: -100% -100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gov-card:hover .gov-thumb::after,
.gov-card:focus-visible .gov-thumb::after {
  opacity: 1;
  animation: shimmer 0.9s ease forwards;
}

@keyframes shimmer {
  to {
    background-position: 100% 100%;
  }
}
/* Pinned bottom-right rather than centred, so it never sits on the gold "50"
   or the tagline. Physical side (not logical) because the artwork's own layout
   is fixed — jkb.com always occupies the bottom-left. */
.play-icon {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.gov-label {
  padding: 10px 8px;
  text-align: center;
}

.gov-name {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .gov-name {
    font-size: 13px;
  }
  .play-icon {
    width: 34px;
    height: 34px;
    right: 8px;
    bottom: 8px;
  }
}
/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 24px;
  transition: border-color 0.35s ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  height: clamp(34px, 10vw, 48px);
  width: auto;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.footer-credit-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-credit-line a {
  display: flex;
  align-items: center;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-credit-line a:hover,
.footer-credit-line a:focus-visible {
  opacity: 1;
}

/* The source ITMAM wordmark is light gray, made for dark surfaces — invert it
   so it reads against this page's light background. */
.itmam-logo {
  height: 10px;
  width: auto;
  filter: invert(1);
}
