/* ═══════════════════════════════════════════════════════════════
   SFMA EXPO 2026 — Dr. Raihan Jumah workshop · Riyadh, 20 Sept 2026
   Garment: the invite creative. Deep navy + cyan, teal portrait frame.
   Palette from the campaign storyboard: #03142B navy · #00BBDD cyan ·
   #EEF6FF white. No gold anywhere.
   Type: Noto Sans Arabic (AR, default) · Montserrat (EN)
   AR default (RTL) · English toggle — logical properties throughout.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:       #03142B;
  --navy-2:     #071B38;
  --navy-3:     #0C2447;
  --cyan:       #00BBDD;
  --cyan-soft:  #5ED3EA;
  --teal:       #5FB4B4;   /* invite portrait frame */
  --white:      #EEF6FF;
  --muted:      rgba(238, 246, 255, 0.72);
  --faint:      rgba(238, 246, 255, 0.6);
  --line:       rgba(238, 246, 255, 0.12);
  --radius:     12px;
  --radius-lg:  22px;
  --pad-x:      clamp(1.25rem, 5vw, 4rem);
  --font:       'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
html[lang="en"] { --font: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 1rem; z-index: 100; background: var(--cyan); color: var(--navy); font-weight: 700; padding: 0.8rem 1.4rem; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { inset-block-start: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
button, a, select, input { touch-action: manipulation; }
body {
  font-family: var(--font);
  color: var(--white);
  background: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Language switching: only the active language's spans render */
html[lang="ar"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ar"] { display: none !important; }
/* Latin brand names inside Arabic copy keep the Latin face */
html[lang="ar"] .eyebrow-brand, html[lang="ar"] .stat b, html[lang="ar"] .cd-unit b,
html[lang="ar"] .footer-copy, html[lang="ar"] .speaker-link { font-family: 'Montserrat', sans-serif; }

.wrap { width: min(1120px, 100% - 2 * var(--pad-x)); margin-inline: auto; }

/* ─────────────── Header ─────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(3,20,43,0.92), rgba(3,20,43,0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(3,20,43,0.96); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; direction: ltr; /* fixed: KI left, toggle right, both languages */ }
.logo-row { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.6rem); }
.lg { width: auto; object-fit: contain; }
.lg-ki { height: 30px; }
.lg-expo { height: 46px; }
.logo-sep { width: 1px; height: 34px; background: rgba(238,246,255,0.25); }
.lang-toggle {
  flex: none;
  font: 600 0.85rem 'Montserrat', sans-serif;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(238,246,255,0.35);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  min-height: 44px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: rgba(0,187,221,0.15); border-color: var(--cyan); outline: none; }
html[lang="en"] .lang-toggle { font-family: 'Noto Sans Arabic', sans-serif; }

/* ─────────────── Hero ─────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); isolation: isolate; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(0,187,221,0.18), transparent 70%),
    radial-gradient(50% 45% at 5% 100%, rgba(95,180,180,0.22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(238,246,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(238,246,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.eyebrow { font-weight: 700; letter-spacing: 0.02em; color: var(--cyan); font-size: 1rem; margin-block-end: 1rem; }
.eyebrow .dot { color: var(--faint); margin-inline: 0.35rem; }
.hero-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.35; font-weight: 800; margin-block-end: 1.6rem; }
.hero-title em { font-style: normal; font-weight: 500; color: var(--white); display: block; margin-block-start: 0.35rem; font-size: 0.78em; line-height: 1.5; opacity: 0.92; }
html[lang="en"] .hero-title { line-height: 1.25; }

.facts { list-style: none; display: grid; gap: 0.7rem; margin-block-end: 1.8rem; }
.facts li { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 500; color: var(--white); font-size: 1.02rem; }
.facts svg { flex: none; width: 22px; height: 22px; margin-block-start: 0.35em; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-end: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 8px 28px rgba(0,187,221,0.28); }
.btn-primary:hover { background: var(--cyan-soft); box-shadow: 0 10px 32px rgba(0,187,221,0.4); }
.btn-ghost { background: rgba(238,246,255,0.06); color: var(--white); border-color: rgba(238,246,255,0.25); }
.btn-ghost:hover { background: rgba(238,246,255,0.12); border-color: rgba(238,246,255,0.5); }
.btn-outline { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-outline:hover { background: rgba(0,187,221,0.12); }
.btn-block { width: 100%; }
.wa-ico { width: 20px; height: 20px; fill: #25D366; }

.countdown { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.2rem; padding: 0.8rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(238,246,255,0.04); }
.cd-label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.cd-units { display: flex; gap: 1.1rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; }
.cd-unit b { font-size: 1.5rem; line-height: 1.1; color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown.cd-live { border-color: var(--cyan); background: rgba(0,187,221,0.12); }
.countdown.cd-live .cd-label, .countdown.cd-done .cd-label { color: var(--white); font-weight: 700; }

/* Speaker card — teal frame from the invite */
.speaker-card {
  background: var(--teal); color: var(--navy);
  border-radius: var(--radius-lg); padding: 1.1rem 1.1rem 1.4rem;
  text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  max-width: 400px; justify-self: center; width: 100%;
  position: relative;
}
.card-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--navy); opacity: 0.85; margin-block-end: 0.8rem; }
html[lang="en"] .card-kicker { text-transform: uppercase; letter-spacing: 0.18em; }
.portrait { border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1.06; background: #000; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.speaker-name { font-size: 1.55rem; font-weight: 800; margin-block: 0.9rem 0.15rem; color: var(--navy); }
.speaker-role { font-size: 0.9rem; font-weight: 600; line-height: 1.5; color: var(--navy); opacity: 0.85; }
.speaker-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-block-start: 0.6rem; min-height: 44px; padding-inline: 0.5rem; font: 600 0.82rem 'Montserrat', sans-serif; color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(3,20,43,0.35); }
.speaker-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ─────────────── Sections ─────────────── */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.section-alt { background: var(--navy-2); }
.section-kicker { color: var(--cyan); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; margin-block-end: 0.6rem; }
html[lang="en"] .section-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; }
.section-title { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 800; line-height: 1.35; margin-block-end: 1rem; max-width: 22ch; }
html[lang="en"] .section-title { max-width: 28ch; line-height: 1.22; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }
.lead.center { max-width: 60ch; }
.inline-link { color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0,187,221,0.4); }
.inline-link:hover { border-color: var(--cyan); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-block: 2.2rem 2rem; }
.pillar { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.6rem; position: relative; overflow: hidden; }
.pillar::before { content: ''; position: absolute; inset-inline-start: 0; inset-block: 0; width: 3px; background: linear-gradient(var(--cyan), var(--teal)); }
.pillar-ico { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.15rem; font-weight: 800; margin-block: 0.7rem 0.5rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

.audience { margin-block-start: 2.4rem; padding-block-start: 2rem; border-top: 1px solid var(--line); }
.audience-title { font-size: 1.05rem; font-weight: 800; color: var(--cyan); margin-block-end: 1.1rem; }
.audience-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.audience-grid li { display: flex; flex-direction: column; gap: 0.7rem; background: rgba(238,246,255,0.04); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.1rem; font-size: 0.97rem; font-weight: 600; line-height: 1.5; }
.audience-grid svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Speaker — compact profile card in its own band */
.profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); background: var(--navy-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; inset-inline-start: 0; inset-block: 0; width: 4px; background: linear-gradient(var(--cyan), var(--teal)); }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 4px solid var(--teal); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.profile-name { font-size: 1.45rem; font-weight: 800; line-height: 1.3; margin-block-end: 0.15rem; }
.profile-role { color: var(--cyan); font-weight: 700; font-size: 0.95rem; margin-block-end: 0.6rem; }
.profile-bio { color: var(--muted); font-size: 0.98rem; max-width: 62ch; }
.profile-cta { white-space: nowrap; }
.profile-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Event section */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-block: 2.2rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1rem; text-align: center; background: rgba(238,246,255,0.03); }
.stat b { display: block; font: 800 2.2rem/1.1 'Montserrat', sans-serif; color: var(--cyan); direction: ltr; }
.stat span { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.event-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.detail h3 { font-size: 0.85rem; color: var(--cyan); font-weight: 700; margin-block-end: 0.3rem; letter-spacing: 0.04em; }
html[lang="en"] .detail h3 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }
.detail p { font-weight: 500; }

/* Floor plan */
.floorplan { margin-block-start: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.floorplan img { width: 100%; }
.floorplan figcaption { background: var(--navy-3); color: var(--faint); font-size: 0.8rem; padding: 0.6rem 1rem; }

/* Partners — one aligned tier row, then the sponsor strip */
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block-start: 2rem; }
.tier { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1rem 1.4rem; background: rgba(238,246,255,0.03); }
.tier-label { font-size: 0.8rem; color: var(--faint); font-weight: 600; letter-spacing: 0.06em; margin-block-end: 0.9rem; }
html[lang="en"] .tier-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; }
.tier-logo { height: 96px; display: flex; align-items: center; justify-content: center; }
.tier-logo img { max-height: 76%; max-width: 78%; width: auto; height: auto; object-fit: contain; }
.tier:first-child .tier-logo img { max-height: 100%; }
.strip-label { text-align: center; margin-block: 2.2rem 1.2rem; }
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; direction: ltr; }
.strip-logo { height: 84px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(238,246,255,0.03); padding: 0.8rem 1rem; }
.strip-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ─────────────── Form ─────────────── */
.form-section { background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.form-wrap { max-width: 640px; }
.lead-form { margin-block-start: 2rem; background: var(--navy-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-group { margin-block-end: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.92rem; margin-block-end: 0.4rem; }
.form-control {
  width: 100%; min-height: 48px; font-family: var(--font); font-size: 1rem; color: var(--white);
  background: rgba(3,20,43,0.7); border: 1px solid rgba(238,246,255,0.2); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,187,221,0.2); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300BBDD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 0.9rem center; padding-inline-end: 1rem; padding-inline-start: 2.4rem;
}
html[lang="en"] select.form-control { background-position: right 0.9rem center; padding-inline-start: 1rem; padding-inline-end: 2.4rem; }
select.form-control option { color: #111; background: #fff; }

/* intl-tel-input: numbers are LTR, dial code on the left in both languages */
.iti { width: 100%; direction: ltr !important; }
.iti__flag-container { left: 0 !important; right: auto !important; }
.iti--separate-dial-code input.form-control { text-align: left; padding-left: 96px !important; padding-right: 1rem !important; }
.iti--separate-dial-code .iti__selected-flag { background: rgba(238,246,255,0.06); border-radius: var(--radius) 0 0 var(--radius); color: var(--white); }
.iti__selected-dial-code { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; }
.iti__country-list { background: #fff; color: #111; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.iti__country { color: #111; }
.iti__dial-code { color: #555; }

.submit-btn { margin-block-start: 0.5rem; font-size: 1.05rem; padding-block: 1rem; }
.form-privacy { font-size: 0.8rem; color: var(--faint); margin-block-start: 1rem; text-align: center; }
.form-control.error { border-color: #F26D6D; }
.field-error { color: #F26D6D; font-size: 0.8rem; margin-block-start: 0.3rem; }

.form-success { margin-block-start: 2rem; text-align: center; background: rgba(0,187,221,0.08); border: 1px solid var(--cyan); border-radius: var(--radius-lg); padding: 2.4rem 1.8rem; }
.ok-ico { width: 56px; height: 56px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-inline: auto; margin-block-end: 0.8rem; }
.form-success h3 { font-size: 1.3rem; font-weight: 800; margin-block-end: 0.5rem; }
.form-success p { color: var(--muted); margin-block-end: 1.2rem; }

/* ─────────────── Footer ───────────────
   Fixed physical layout in both languages: brand block left,
   links right in the order WhatsApp · Instagram · LinkedIn · Share. */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem; background: var(--navy); }
.footer-inner { direction: ltr; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.footer-logo { height: 28px; width: auto; }
.footer-copy { font: 500 0.78rem 'Montserrat', sans-serif; color: var(--faint); direction: ltr; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.f-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.7rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; font-family: var(--font); transition: color .2s, background .2s; }
.f-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.f-link:hover, .f-link:focus-visible { color: var(--cyan); background: rgba(0,187,221,0.08); }
.f-link[data-wa]:hover svg { color: #25D366; }
.link-btn { background: none; border: 0; cursor: pointer; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .speaker-card { order: -1; max-width: 340px; }
  .pillars { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-cta { grid-column: 1 / -1; justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .event-details { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lg-ki { height: 24px; } .lg-expo { height: 38px; } .logo-sep { height: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 0.1rem 0.25rem; margin-inline-start: -0.7rem; }
  .lang-toggle { padding-inline: 0.9rem; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-logo { height: 72px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid li { flex-direction: row; align-items: center; padding: 0.9rem 1rem; }
  .audience-grid svg { flex: none; }
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-avatar { margin-inline: auto; }
  .profile-bio { margin-inline: auto; }
  .profile-cta { justify-self: center; }
  .cta-row .btn { width: 100%; }
}
