/* =========================================================
   Mosadad website — page styles for the 2026 redesign.
   Load site-chrome.css after this file: it holds the fonts,
   design tokens, header and footer that these styles use.
   Pages that use this file do not load style.css, Tailwind
   or DaisyUI.
========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.on-blue .eyebrow,
.eyebrow--on-blue {
  color: var(--on-blue-label);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.h-display,
.h-page,
.h-section,
.h-cta {
  font-family: var(--serif);
  font-weight: 400;
}

.h-display {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.h-page {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.h-section {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h-section--sm {
  font-size: clamp(32px, 3vw, 44px);
}

.h-cta {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
}

.h-cta--lg {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
}

.h-display em,
.h-page em,
.h-section em,
.h-cta em,
.quote em {
  font-style: italic;
  color: var(--blue);
}

.on-blue em {
  color: var(--white);
}

.lead {
  font-size: 21px;
  line-height: 1.6;
}

.lead--sm {
  font-size: 18px;
}

.strong-link {
  font-weight: 600;
}

.text-muted {
  color: var(--muted);
}

/* ---------- Layout ---------- */
.page {
  overflow-x: clip;
}

.section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.section--wash {
  background: var(--wash);
}

.section--no-rule {
  border-top: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px var(--gutter);
  /* The design's thin side rails were removed (user, 2026-11-05) */
}

.container--96 {
  padding-top: 96px;
  padding-bottom: 96px;
}

.container--88 {
  padding-top: 88px;
  padding-bottom: 88px;
}

.container--tight-top {
  padding-top: 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}

.section-head--center {
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 56px;
}

.section-head--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head--row > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}

.split--center {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack--22 {
  gap: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr));
  gap: 20px;
}

/* Bordered grid: every cell draws its right and bottom rule and is
   pulled 1px outward, so the outer frame hides the edge rules. The
   lines stay correct however many columns the row wraps to, and an
   incomplete last row leaves white space. */
.ruled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-grid);
  overflow: hidden;
}

.ruled-grid > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-right: -1px;
  margin-bottom: -1px;
}

/* Inset band that holds a rounded panel (hero, CTA, stats) */
.band {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.band--hero {
  padding: 8px 8px 0;
  border-top: 0;
}

.panel {
  position: relative;
  border-radius: var(--radius-panel);
}

.panel--blue {
  background-color: var(--blue);
  color: var(--white);
}

.panel--tint {
  background-color: var(--tint);
  color: var(--ink);
}

/* Dot pattern (from the design) fading out from the top-right corner */
.pattern {
  isolation: isolate;
}

.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 1600px auto;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 75%);
  mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 75%);
}

.panel--blue.pattern::before {
  background-image: url("images/pattern-on-blue.png");
}

.panel--tint.pattern::before,
.section--tint.pattern::before {
  background-image: url("images/pattern-on-light.png");
}

.section--tint {
  position: relative;
  background-color: var(--tint);
}

/* Mosadad brand pattern (user, 2026-11-04, from Mosadad-Pattern-1/2.pdf):
   a still pixel dither from white on the left to colour on the right,
   behind every section and full-width panel of the redesigned pages.
   Light blocks use pattern 1 (white to tint); blue panels use the same
   dither in a lighter blue so white text stays readable. Made by
   ../_backup-before-redesign-2026-10-28/make-patterns.ps1. It replaces
   the top-right dot pattern above, and leaves small cards (value cards,
   quote panel) alone. */
.page .panel.panel--blue {
  background: var(--blue) url("images/mosadad-pattern-blue.png?v=20261111c") center top / cover no-repeat;
}

/* As in the design reference (user, 2026-11-05), only the light-blue
   tinted blocks carry it; white sections stay plain white and the pale
   grey "wash" sections (e.g. Home's "Who it's for") stay plain wash */
.page .panel.panel--tint {
  background: var(--white) url("images/mosadad-pattern-light.png?v=20261111c") center top / cover no-repeat;
}

.page .pattern::before {
  display: none;
}

/* Full-width tinted sections (Home "One shared platform") sit as an inset
   rounded panel in a white frame, like the "Talk to us" panel (user,
   2026-11-05), instead of running edge to edge */
.page > .section.section--tint {
  position: relative;
  isolation: isolate;
  background: var(--white);
}

.page > .section.section--tint.pattern::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background: var(--white) url("images/mosadad-pattern-light.png?v=20261111c") center top / cover no-repeat;
  opacity: 1;
  animation: none;
  -webkit-mask: none;
  mask: none;
}

/* Review comments (2026-11-09):
   - The brand pattern is drawn 1:1 (1920px wide, 2160px tall PNGs) so its
     squares are never stretched or blurred; above.
   - Blue content panels (Home "Projected impact", Insurance "What you
     keep") are plain blue; only the page heroes keep the pattern.
   - Panels after the hero run edge to edge: no white frame around them
     and no rounded corners, on every redesigned page. */
.page .panel.panel--blue.impact,
.page .panel.panel--blue.statement-panel {
  background: var(--blue);
}

.page > .band:not(.band--hero) {
  padding: 0;
}

.page > .band:not(.band--hero) > .panel {
  border-radius: 0;
}

/* The hero runs edge to edge too (user, 2026-11-09: "lines on both left
   and right sides"), so no white strip shows down either side */
.page > .band.band--hero {
  padding: 0;
}

.page > .band.band--hero > .panel {
  border-radius: 0;
}

/* Keep the pattern squares sharp on scaled screens (125% / 150% display
   scaling), so it never looks stretched or blurred (user, 2026-11-11) */
.page .panel.panel--blue,
.page .panel.panel--tint,
.page > .section.section--tint.pattern::before {
  image-rendering: auto;
}

.page .panel.panel--blue *,
.page .panel.panel--tint * {
  image-rendering: auto;
}

/* ALL page heroes (user, 2026-11-11): the designer's own pattern from
   "Pattern application.pdf" p1, drawn 1:1 (5px cells, never scaled) with its
   full gradient - sparse bottom-left, dense top-right (mirrored in Arabic). */
.page .panel.panel--blue.hero {
  background: var(--blue);
}

.page .panel.panel--blue.hero.pattern::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url("images/mosadad-pattern-blue.png?v=20261111c") center top / cover no-repeat;
  image-rendering: auto;
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: none;
  animation: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--blue);
}

.btn--secondary:hover {
  background: var(--tint);
  color: var(--blue-dark);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
}

.btn--outline:hover {
  background: var(--tint);
  color: var(--blue-dark);
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.btn--white:hover {
  background: var(--tint);
  border-color: var(--tint);
  color: var(--blue-dark);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Icon tiles ---------- */
.icon-tile {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-tile);
  background: var(--tint);
  color: var(--blue);
}

.icon-tile svg {
  width: 28px;
  height: 28px;
}

.icon-tile--white {
  background: var(--white);
}

.icon-tile--44 {
  width: 44px;
  height: 44px;
}

.icon-tile--44 svg {
  width: 22px;
  height: 22px;
}

.icon-tile--40 {
  width: 40px;
  height: 40px;
}

.icon-tile--40 svg {
  width: 20px;
  height: 20px;
}

/* Inline stroke icons inherit the text colour */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Heroes ---------- */
.hero {
  padding: 96px 24px 104px;
  text-align: center;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero__desc {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-blue-text);
}

.hero .btn-row {
  margin-top: 8px;
}

.hero--home {
  /* Top trimmed from 120px (user, 2026-11-03) */
  padding: 80px 24px 132px;
}

.hero--home .hero__inner {
  max-width: 980px;
  gap: 26px;
}

.hero--home .hero__desc {
  max-width: 720px;
  font-size: 21px;
}

.hero--home .btn-row {
  margin-top: 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* ---------- CTA panel ---------- */
.cta {
  overflow: hidden;
  padding: 96px 24px;
  text-align: center;
}

.cta--home {
  padding: 120px 24px;
}

.cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta__desc {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.float-icon {
  position: absolute;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 16px 36px rgba(16, 40, 90, 0.12);
  animation: floaty 5.2s ease-in-out infinite;
}

.float-icon svg {
  width: 32px;
  height: 32px;
}

.float-icon--1 { left: 9%;  top: 22%;    transform: rotate(-8deg); animation-delay: 0.4s; animation-duration: 5.2s; }
.float-icon--2 { left: 17%; bottom: 18%; transform: rotate(6deg);  animation-delay: 0.8s; animation-duration: 5.9s; }
.float-icon--3 { right: 10%; top: 20%;   transform: rotate(8deg);  animation-delay: 1.2s; animation-duration: 6.6s; }
.float-icon--4 { right: 18%; bottom: 16%; transform: rotate(-6deg); animation-delay: 1.6s; animation-duration: 7.3s; }

@media (max-width: 900px) {
  .float-icon {
    display: none;
  }
}

/* ---------- Cards and lists ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}

.card--link {
  gap: 20px;
  min-height: 300px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.card--link .text-link {
  margin-top: auto;
}

.card__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
}

.card__title--30 {
  font-size: 30px;
}

.card__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.card__note {
  font-size: 16px;
  color: var(--muted);
}

/* Numbered steps */
.step {
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step__num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--step-num);
}

.step__text {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
}

/* Feature cells */
.feature {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature__text {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

/* Statements on blue ("What you keep") */
.statement-panel {
  padding: 56px 56px;
}

.statement-panel__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.statement {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}

.statement__text {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
}

/* Mission / vision */
.value-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
  padding: 48px 44px;
  border-radius: var(--radius-card);
}

.value-card__text {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.2;
}

/* Team */
.person {
  padding: 32px;
}

.person__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-tile);
  background: var(--tint);
  object-fit: cover;
  object-position: center 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--blue);
}

.person__name {
  font-family: var(--serif);
  font-size: 28px;
}

.person__role {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.person__bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Ecosystem strip */
.partner {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.partner__name {
  font-family: var(--serif);
  font-size: 26px;
}

.partner__note {
  font-size: 15px;
  color: var(--muted);
}

/* Large blue quote block (Regulators "Our role") */
.quote-panel {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-radius: var(--radius-panel);
}

.quote {
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
}

/* Icon + label rows (Regulators "How you use it") */
.icon-rows {
  margin-top: 12px;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 28px;
}

/* Dashboard mock (Regulators) */
.mock-window {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(16, 40, 90, 0.1);
}

.mock-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  font-size: 13px;
  color: var(--muted);
}

.mock-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #D5DCE8;
}

.mock-window__bar span:last-child {
  margin-left: 12px;
}

.mock-window__body {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}

.mock-label {
  font-size: 15px;
  font-weight: 600;
}

.mock-bars {
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.mock-bars span {
  flex: 1;
  border-radius: 8px 8px 3px 3px;
  background: var(--on-blue-label);
}

.mock-bars span.is-current {
  background: var(--blue);
}

.mock-meters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.mock-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.mock-meter__track {
  height: 10px;
  border-radius: 5px;
  background: var(--tint);
}

.mock-meter__track span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--blue);
}

.mock-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.mock-alert svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

/* ---------- Home: problem notifications ---------- */
.notif-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 4px;
}

.notif-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.notif-panel__title svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--blue);
}

.chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.chip--solid {
  background: var(--blue);
  color: var(--white);
}

.chip--soft {
  background: var(--tint);
  color: var(--blue);
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.notif__app {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
}

.notif__app svg {
  width: 22px;
  height: 22px;
}

.notif__app--mail { background: #0F6CBD; }
.notif__app--sheet { background: #107C41; }
.notif__app--file { background: #C4314B; }

.notif__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.notif__meta span:last-child {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.notif__title {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notif__detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Home: ecosystem diagram ---------- */
.eco {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.eco__side {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eco__row {
  display: flex;
  align-items: center;
}

.eco__node {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-card);
}

.eco__node-title {
  font-size: 16px;
  font-weight: 600;
}

.eco__node-sub {
  font-size: 13px;
  color: var(--muted);
}

.eco__link {
  position: relative;
  flex: 1 1 40px;
  min-width: 24px;
  align-self: stretch;
}

.eco__link svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--connector);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.eco__hub {
  flex: 0 0 280px;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-panel);
  background-color: var(--blue);
  color: var(--on-blue-text);
  font-size: 15px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(16, 114, 250, 0.35);
}

.eco__hub img {
  width: 72px;
  height: 72px;
}

@media (max-width: 960px) {
  .eco {
    flex-direction: column;
    gap: 20px;
  }

  .eco__side {
    flex: none;
    width: 100%;
    max-width: 420px;
    gap: 12px;
  }

  .eco__link {
    display: none;
  }

  .eco__node {
    width: 100%;
  }

  .eco__hub {
    flex: none;
    width: 100%;
    max-width: 420px;
    order: -1;
  }
}

/* ---------- Home: projected impact ---------- */
.impact {
  overflow: hidden;
  padding: 96px 48px 80px;
}

.impact__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.impact__note {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-blue-text);
}

.impact .h-section {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.06;
  color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-card);
}

.stat-card__visual {
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  width: 100%;
}

.stat-card__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card__prefix {
  min-height: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-blue-label);
}

.stat-card__value {
  font-family: var(--serif);
  font-size: clamp(40px, 3.6vw, 56px);
  line-height: 1.1;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
}

.stat-card__label {
  font-size: 18px;
  color: var(--on-blue-text);
}

.stat-ring {
  width: 120px;
  height: 120px;
}

.stat-ring circle {
  fill: none;
  stroke-width: 12;
}

.stat-ring__track {
  stroke: rgba(255, 255, 255, 0.18);
}

.stat-ring__value {
  stroke: var(--white);
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: var(--to);
}

.stat-bars {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.stat-bars span {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, 0.32);
  transform-origin: bottom;
}

.stat-bars span:last-child {
  background: var(--white);
}

.stat-pixels {
  width: 100%;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: end;
  gap: 6px;
}

.stat-pixels span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.stat-pixels span:nth-child(10n + 7),
.stat-pixels span:nth-child(10n + 8),
.stat-pixels span:nth-child(10n + 9),
.stat-pixels span:nth-child(10n) {
  background: var(--white);
}

.stat-spark {
  width: 100%;
  height: 120px;
}

.stat-spark__area {
  fill: rgba(255, 255, 255, 0.14);
}

.stat-spark__line {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
}

.stat-spark__dot {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: center;
}

/* Entrance animations run once the stats scroll into view.
   Without JavaScript everything simply shows its final state. */
.js .impact:not(.is-visible) .stat-ring__value { stroke-dashoffset: 301.6; }
.js .impact:not(.is-visible) .stat-bars span { transform: scaleY(0); }
.js .impact:not(.is-visible) .stat-pixels span { opacity: 0; transform: scale(0.3); }
.js .impact:not(.is-visible) .stat-spark__line { stroke-dashoffset: 100; }

.impact.is-visible .stat-ring__value {
  animation: ringdraw 1.8s cubic-bezier(0.16, 0.84, 0.24, 1) 0.3s both;
}

.impact.is-visible .stat-bars span {
  animation: grow 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  animation-delay: var(--delay, 0s);
}

.impact.is-visible .stat-pixels span {
  animation: pxin 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

.impact.is-visible .stat-spark__line {
  animation: draw 1.8s cubic-bezier(0.16, 0.84, 0.24, 1) 0.3s both;
}

.stat-spark__dot {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes ringdraw { from { stroke-dashoffset: 301.6; } to { stroke-dashoffset: var(--to); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pxin { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.5); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- FAQs ---------- */
.faq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.faq-layout__intro {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.faq-list {
  flex: 999 1 560px;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  margin: 0;
}

.faq__btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__label {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.faq__num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--connector);
}

.faq__text {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 400;
}

.faq__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: var(--tint);
  color: var(--blue);
}

.faq__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.faq__icon .icon-minus,
.faq__btn[aria-expanded="true"] .icon-plus {
  display: none;
}

.faq__btn[aria-expanded="true"] .icon-minus {
  display: block;
}

.faq__btn[aria-expanded="true"] .faq__icon {
  background: var(--blue);
  color: var(--white);
}

.faq__panel {
  padding: 0 64px 30px 46px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.faq__panel[hidden] {
  display: none;
}

.faq__panel ul {
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
  color: var(--ink);
}

.faq__panel small {
  font-size: 14px;
}

@media (max-width: 640px) {
  .faq__panel {
    padding: 0 0 26px;
  }
}

/* ---------- News ----------
   One card per story, as in the design reference (user, 2026-11-05): the
   picture on one side, then the date, headline and "Read more". The EIF
   story keeps the reference's blue panel with the logo; blog stories show
   their own photo (.news-card__media--photo). */
.news-list {
  border-top: 1px solid var(--line);
}

.news-list__head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list__item {
  padding: 32px 0;
}

.news-list__item + .news-list__item {
  padding-top: 0;
}

.news-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.news-card__media {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
}

.news-card__media img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.news-card__media--photo {
  position: relative;
  background: var(--tint);
}

.news-card__media--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text cover for stories without a photo cover (user, 2026-11-11): brand
   blue + pattern, white Mosadad logo top-left and the headline in the serif,
   like the blog post cover images. */
.news-card__media--cover {
  position: relative;
  justify-content: flex-start;
  align-items: center;
  padding: 72px 40px 40px;
  background: var(--blue) url("images/mosadad-pattern-blue.png?v=20261111c") center top / cover no-repeat;
  color: #FFFFFF;
}

.news-card__media--cover .news-cover__logo {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  width: 90px;   /* same size as the logo on the blog cover images */
  height: auto;
}

.news-cover__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  text-align: start;
}

.news-cover__title em {
  font-style: italic;
  color: inherit;
}

.news-card__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.news-card__date {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.news-card__title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

@media (max-width: 760px) {
  .news-list__head {
    display: none;
  }

  .news-card__media {
    min-height: 200px;
  }

  .news-card__body {
    padding: 28px;
  }
}

/* ---------- Careers ---------- */
.jobs {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}

.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 28px 32px;
  color: var(--ink);
  text-decoration: none;
}

.jobs > li + li {
  border-top: 1px solid var(--line);
}

.job:hover {
  background: var(--wash);
  color: var(--ink);
}

.job__title {
  flex: 1 1 260px;
  font-family: var(--serif);
  font-size: 30px;
}

.job__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.job__place svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ---------- Contact ---------- */
.form-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}

.form-card__title {
  font-family: var(--serif);
  font-size: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 114, 250, 0.2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.form-card .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-size: 15px;
  font-weight: 600;
}

.form-status--ok { color: #1A7F37; }
.form-status--error { color: #B42318; }

/* Field checks (added by site.js): an error line under the field, a red
   border while it needs fixing, and a character count for the message */
.field__error {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #B42318;
}

.field__error:empty {
  display: none;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #B42318;
  background-color: #FFF8F7;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  border-color: #B42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
}

.field__count {
  align-self: flex-end;
  margin-top: -4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
}

.field__count.is-over {
  color: #B42318;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 15px;
  line-height: 1.55;
}

.notice svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue);
}

.office {
  padding: 32px;
  gap: 16px;
}

.office__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.office__city {
  font-family: var(--serif);
  /* Four offices in a row (Cairo added 2026-11-11): one line per city */
  font-size: clamp(21px, 1.6vw, 24px);
}

.office__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.office__address {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-style: normal;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .container {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .container--tight-top {
    padding-top: 16px;
  }

  .hero,
  .hero--home {
    padding: 72px 20px 80px;
  }

  .cta,
  .cta--home {
    padding: 72px 20px;
  }

  .impact {
    padding: 64px 24px;
  }

  .statement-panel {
    padding: 44px 24px;
  }

  .quote-panel {
    padding: 56px 24px;
  }

  .lead {
    font-size: 19px;
  }

  .hero__desc,
  .hero--home .hero__desc {
    font-size: 18px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .value-card {
    padding: 36px 28px;
  }

  .card {
    padding: 28px 24px;
  }

  .job {
    padding: 24px 20px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .impact:not(.is-visible) .stat-ring__value { stroke-dashoffset: var(--to); }
  .js .impact:not(.is-visible) .stat-bars span { transform: none; }
  .js .impact:not(.is-visible) .stat-pixels span { opacity: 1; transform: none; }
  .js .impact:not(.is-visible) .stat-spark__line { stroke-dashoffset: 0; }
}

/* ---------- News / blog story (template, review comments 2026-11-09) ----------
   news/eif-innovation-hub-ai-insurtech.html: page hero, then one photo and
   the text in a centred reading column. */
.article__media {
  max-width: 960px;
  margin: 0 auto 56px;
}

.article__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.article__media figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.article__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}

.article__title {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}

.article__body p {
  margin: 0 0 24px;
}

.article__source {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.article__source a {
  color: var(--blue);
}

.article__back {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .article__media {
    margin-bottom: 36px;
  }

  .article__body {
    font-size: 17px;
  }
}

.news-cover__title .nowrap {
  white-space: nowrap;
}

/* Home hero: the moving brand tide (dither squares drifting), the opening
   of the Motion film (user, 2026-11-16). The still pattern (::before) stays
   underneath as the fallback before the clip loads and for reduced motion. */
.page .panel.hero--home {
  isolation: isolate;
  overflow: hidden;
}

.page .panel.hero--home .hero-tide {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .page .panel.hero--home .hero-tide {
    display: none;
  }
}
