/* ============================================================
   VANTIX Facility Services — Shared Stylesheet
   Supports: LTR (English) + RTL (Arabic)
============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --blue-primary: #1B5DA0;
  --blue-dark: #13407A;
  --blue-deep: #0D2B54;
  --blue-light: #E8F0FA;
  --charcoal: #3D3D3D;
  --text-dark: #1A1A1A;
  --text-muted: #5A5A5A;   /* bumped from #6B6B6B → 7.0:1 on white, 6.1:1 on warm */
  --bg-warm: #F5F0E8;
  --bg-white: #FFFFFF;
  --border-light: #D8D0C4;
  --card-shadow: 0 4px 24px rgba(27, 93, 160, .12);
  --card-shadow-h: 0 16px 48px rgba(27, 93, 160, .22);
  --radius-card: 16px;
  --radius-btn: 8px;
  --nav-h: 80px;
  --ease: 0.35s cubic-bezier(.4, 0, .2, 1);
  /* Accessibility tokens */
  --focus-ring: 3px solid #1B5DA0;
  --focus-ring-offset: 3px;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── RTL root overrides ─────────────────────────────────── */
html[lang="ar"] body {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .section-title,
html[lang="ar"] .hero-headline,
html[lang="ar"] .display {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0 !important;
  line-height: 1.25;
}

html[lang="ar"] .section-label {
  letter-spacing: 0;
  font-size: 13px;
}

html[lang="ar"] .philosophy-text {
  letter-spacing: 0;
}

/* ── Lang-toggle blocks ──────────────────────────────────── */
html[lang="en"] .lang-ar,
html[lang="ar"] .lang-en {
  display: none !important;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 104px 0;
}

/* ── Typography utilities ───────────────────────────────── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;       /* was 12px; 13px bold passes WCAG AA */
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section-label.light {
  color: rgba(255, 255, 255, .82); /* was .5 (fails WCAG); .82 ≈ 6.5:1 on dark blue */
}

/* RTL section-label handled above */

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: -.5px;
}

.section-title.light {
  color: #fff;
}

.section-title span {
  color: var(--blue-primary);
}

.section-title .dim {
  color: rgba(255, 255, 255, .25);
}

.rule {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--blue-primary);
  margin: 20px 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
}

html[lang="ar"] .btn {
  font-family: 'Cairo', sans-serif;
}

.btn-blue {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}

.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 93, 160, .38);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-outline-blue:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Animations ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease, transform .75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .1s
}

.d2 {
  transition-delay: .2s
}

.d3 {
  transition-delay: .3s
}

.d4 {
  transition-delay: .4s
}

.d5 {
  transition-delay: .5s
}

.d6 {
  transition-delay: .6s
}

/* ── Language Switcher ──────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: 4px 6px;
  transition: background var(--ease);
}

#navbar.scrolled .lang-switch {
  background: var(--blue-light);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--ease);
  color: rgba(255, 255, 255, .65);
  letter-spacing: .5px;
}

#navbar.scrolled .lang-btn {
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--blue-primary);
  color: #fff !important;
}

.lang-sep {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  pointer-events: none;
  user-select: none;
}

#navbar.scrolled .lang-sep {
  color: var(--border-light);
}

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--ease);
}

/* Dual logo swap — white on dark navbar, color+Arabic on scrolled/white navbar */
.logo-nav-color { display: none; }
.logo-nav-white { display: block; }
#navbar.scrolled .logo-nav-white { display: none; }
#navbar.scrolled .logo-nav-color { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  position: relative;
  transition: color var(--ease);
}

html[lang="ar"] .nav-links a {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--blue-primary);
  transform: scaleX(0);
  transition: transform var(--ease);
}

html[lang="ar"] .nav-links a::after {
  left: auto;
  right: 12px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

#navbar.scrolled .nav-links a {
  color: var(--charcoal);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--blue-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all var(--ease);
}

#navbar.scrolled .hamburger span {
  background: var(--charcoal);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
  padding: 16px 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
  z-index: 999;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
}

html[lang="ar"] .nav-mobile a {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.nav-mobile .mob-cta {
  margin-top: 16px;
  border-bottom: none;
}

.mob-lang {
  display: flex;
  gap: 12px;
  padding: 16px 0 0;
}

.mob-lang button {
  background: var(--blue-light);
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--blue-primary);
  transition: all var(--ease);
}

.mob-lang button.active {
  background: var(--blue-primary);
  color: #fff;
}

/* ── HERO (home page only) ──────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(10, 30, 65, .90) 0%, rgba(19, 64, 122, .80) 45%, rgba(0, 0, 0, .65) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(135deg, rgba(27, 93, 160, .05) 0px, rgba(27, 93, 160, .05) 1px, transparent 1px, transparent 60px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: aFadeUp .8s ease .2s forwards;
}

.hero-eyebrow-bar {
  width: 36px;
  height: 2px;
  background: var(--blue-primary);
  flex-shrink: 0;
}

.hero-eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

html[lang="ar"] .hero-eyebrow-text {
  letter-spacing: 0;
  font-size: 13px;
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 800;
  line-height: .96;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
  opacity: 0;
  animation: aFadeUp .9s ease .4s forwards;
}

html[lang="ar"] .hero-headline {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-headline em {
  font-style: normal;
  color: #5BB3F0;
}

.hero-accent-line {
  width: 0;
  height: 4px;
  background: var(--blue-primary);
  margin: 26px 0;
  border-radius: 2px;
  animation: aExpandW .9s ease .9s forwards;
}

@keyframes aExpandW {
  to {
    width: 80px;
  }
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 40px;
  opacity: 0;
  animation: aFadeUp .8s ease .6s forwards;
}

html[lang="ar"] .hero-sub {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  max-width: 600px;
  text-align: right;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: aFadeUp .8s ease .85s forwards;
}

@keyframes aFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: aBounce 2s ease infinite;
}

@keyframes aBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── Page Banner (inner pages) ──────────────────────────── */
.page-banner {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
  overflow: hidden;
  margin-top: var(--nav-h);
  isolation: isolate;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(10, 30, 65, .88) 0%, rgba(19, 64, 122, .75) 50%, rgba(0, 0, 0, .6) 100%);
}

.page-banner-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(27, 93, 160, .06) 0, rgba(27, 93, 160, .06) 1px, transparent 1px, transparent 60px);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner-content {
  position: relative;
}

.page-banner-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

html[lang="ar"] .page-banner-label {
  letter-spacing: 0;
  font-family: 'Cairo', sans-serif;
}

.page-banner-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-primary);
  flex-shrink: 0;
}

.page-banner-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -.5px;
}

html[lang="ar"] .page-banner-title {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
}

.page-banner-title span {
  color: #5BB3F0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .70);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .80);
  transition: color var(--ease);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb-sep {
  font-size: 10px;
}

html[lang="ar"] .breadcrumb-sep i {
  display: inline-block;
  transform: scaleX(-1);
}

html[lang="ar"] .page-banner-title {
  text-align: right;
}

/* ── Shared Section Components ──────────────────────────── */
/* Intro section */
#intro {
  background: var(--bg-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro-quote-wrap {
  border-inline-start: 4px solid var(--blue-primary);
  padding-inline-start: 32px;
  position: relative;
}

.intro-quote-wrap::before {
  content: '\201C';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 130px;
  line-height: .7;
  color: var(--blue-light);
  position: absolute;
  top: -10px;
  inset-inline-start: 16px;
  pointer-events: none;
  user-select: none;
}

html[lang="ar"] .intro-quote-wrap::before {
  font-family: 'Cairo', sans-serif;
  content: '\201C';
}

.intro-quote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.35;
  margin-top: 20px;
}

html[lang="ar"] .intro-quote {
  font-family: 'Cairo', sans-serif;
  font-style: normal;
}

.intro-quote em {
  font-style: normal;
  color: var(--blue-primary);
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

.istat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}

.istat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

html[lang="ar"] .istat-lbl {
  font-family: 'Cairo', sans-serif;
}

.intro-body .section-title {
  margin-top: 12px;
}

.intro-body p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
  margin-top: 4px;
}

html[lang="ar"] .intro-body p {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  font-size: 15px;
}

/* ── About ──────────────────────────────────────────────── */
#about {
  background: var(--bg-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
  margin-top: 16px;
}

html[lang="ar"] .about-body p {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  font-size: 15px;
}

.about-italic {
  font-style: italic;
  color: var(--blue-primary) !important;
  font-weight: 500;
  margin-top: 16px !important;
  margin-bottom: 4px !important;
}

html[lang="ar"] .about-italic {
  font-style: normal;
  font-family: 'Cairo', sans-serif;
}

.about-callout {
  background: var(--blue-deep);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  margin: 8px 0 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.about-callout-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.about-callout-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  line-height: 1.42;
}

html[lang="ar"] .about-callout-text {
  font-family: 'Cairo', sans-serif;
  font-style: normal;
  text-align: right;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-white);
  border-radius: 12px;
  border-inline-start: 3px solid var(--blue-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: all var(--ease);
}

.pillar:hover {
  transform: translateX(6px);
  box-shadow: var(--card-shadow);
}

html[lang="ar"] .pillar:hover {
  transform: translateX(-6px);
}

.pillar-icon {
  font-size: 20px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.pillar-text {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-dark);
}

html[lang="ar"] .pillar-text {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.about-img-col {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.about-img-badge {
  position: absolute;
  bottom: -18px;
  inset-inline-start: -18px;
  background: var(--blue-primary);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(27, 93, 160, .4);
}

.about-img-badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.about-img-badge-sub {
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
  line-height: 1.4;
}

html[lang="ar"] .about-img-badge-sub {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

/* ── Values / VMV ───────────────────────────────────────── */
#values {
  background: var(--bg-white);
}

.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  margin-bottom: 72px;
}

.vmv-card {
  background: var(--blue-primary);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vmv-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.vmv-card.dark {
  background: var(--blue-dark);
}

.vmv-card.deep {
  background: var(--blue-deep);
}

.vmv-icon {
  font-size: 26px;
  margin-bottom: 14px;
  opacity: .85;
}

.vmv-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 10px;
}

html[lang="ar"] .vmv-label {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

.vmv-text {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .88);
}

html[lang="ar"] .vmv-text {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.vcard {
  background: var(--bg-warm);
  border-radius: var(--radius-card);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid transparent;
  transition: all var(--ease);
}

.vcard:hover {
  background: var(--bg-white);
  border-color: var(--blue-light);
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}

.vcard-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--blue-primary);
  transition: all var(--ease);
}

.vcard:hover .vcard-icon {
  background: var(--blue-primary);
  color: #fff;
}

.vcard-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 5px;
}

html[lang="ar"] .vcard-name {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.vcard-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

html[lang="ar"] .vcard-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.philosophy-bar {
  margin-top: 52px;
  background: var(--blue-deep);
  border-radius: var(--radius-card);
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: .5px;
}

html[lang="ar"] .philosophy-text {
  font-family: 'Cairo', sans-serif;
}

.philosophy-text .dot {
  color: rgba(255, 255, 255, .3);
  margin: 0 14px;
}

/* ── Services ───────────────────────────────────────────── */
#services {
  background: var(--bg-warm);
}

.services-intro {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

html[lang="ar"] .services-intro {
  text-align: right;
  margin: 0 0 64px;
}

.services-intro .section-label {
  justify-content: center;
}

html[lang="ar"] .services-intro .section-label {
  justify-content: flex-start;
}

.services-intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 16px;
}

html[lang="ar"] .services-intro p {
  font-family: 'Cairo', sans-serif;
}

/* Card grid */
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Overlay card ── */
.svc-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-h);
}

.svc-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
}

.svc-card:hover .svc-card-bg {
  transform: scale(1.06);
}

/* dark gradient overlay */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 22, 52, .42) 0%,
    rgba(8, 22, 52, .96) 100%
  );
  transition: background 0.4s ease;
}

.svc-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(8, 22, 52, .52) 0%,
    rgba(8, 22, 52, .98) 100%
  );
}

.svc-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px;
}

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

[dir="rtl"] .svc-card-top {
  flex-direction: row-reverse;
}

.svc-card-icon {
  width: 46px;
  height: 46px;
  background: var(--blue-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}

.svc-card:hover .svc-card-icon {
  background: #fff;
  color: var(--blue-primary);
}

.svc-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, .2);
  line-height: 1;
}

.svc-card-bottom {
  display: flex;
  flex-direction: column;
}

.svc-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

html[lang="ar"] .svc-card-name {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
}

.svc-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.68;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[lang="ar"] .svc-card-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 3px;
  width: fit-content;
  transition: color var(--ease), border-color var(--ease);
}

.svc-card:hover .svc-card-link {
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
}

[dir="rtl"] .svc-card-link {
  flex-direction: row-reverse;
}

/* ── Why VANTIX ─────────────────────────────────────────── */
#why {
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-img-wrap {
  position: relative;
}

.why-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.why-badge {
  position: absolute;
  bottom: -18px;
  inset-inline-end: -18px;
  background: var(--blue-primary);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(27, 93, 160, .4);
  text-align: center;
}

.why-badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.why-badge-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 1;
  margin-top: 5px;
}

html[lang="ar"] .why-badge-lbl {
  letter-spacing: 0;
  font-family: 'Cairo', sans-serif;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.why-pt {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all var(--ease);
}

.why-pt:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  transform: translateX(6px);
}

html[lang="ar"] .why-pt:hover {
  transform: translateX(-6px);
}

.why-pt-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue-primary);
  transition: all var(--ease);
}

.why-pt:hover .why-pt-icon {
  background: var(--blue-primary);
  color: #fff;
}

.why-pt-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

html[lang="ar"] .why-pt-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.why-pt-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

html[lang="ar"] .why-pt-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

/* ── Success Stories ────────────────────────────────────── */
#stories {
  background: var(--blue-deep);
  padding: 104px 0;
}

.stories-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 14px;
}

html[lang="ar"] .stories-subtitle {
  font-family: 'Cairo', sans-serif;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.story-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
}

.story-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.story-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5BB3F0;
  margin-bottom: 14px;
}

html[lang="ar"] .story-num {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

.story-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

html[lang="ar"] .story-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
}

.story-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
  margin-bottom: 22px;
  flex: 1;
}

html[lang="ar"] .story-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.badge {
  background: rgba(27, 93, 160, .35);
  border: 1px solid rgba(27, 93, 160, .5);
  color: rgba(255, 255, 255, .9);
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}

html[lang="ar"] .badge {
  font-family: 'Cairo', sans-serif;
}

.story-quote {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .70);
  line-height: 1.7;
  font-style: italic;
}

html[lang="ar"] .story-quote {
  font-family: 'Cairo', sans-serif;
  font-style: normal;
  text-align: right;
}

/* ── Contact ────────────────────────────────────────────── */
#contact {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  padding: 104px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
  margin-top: 52px;
}

.contact-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 28px;
}

html[lang="ar"] .contact-tagline {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.contact-tagline em {
  font-style: normal;
  color: rgba(255, 255, 255, .5);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.contact-item-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .70);
  margin-bottom: 3px;
}

html[lang="ar"] .contact-item-lbl {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

.contact-item-val {
  font-size: 15.5px;
  font-weight: 500;
  color: #fff;
}

html[lang="ar"] .contact-item-val {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.contact-item-val a {
  color: rgba(255, 255, 255, .85);
}

.contact-item-val a:hover {
  color: #fff;
  text-decoration: underline;
}

.cform {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.cform-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 26px;
}

html[lang="ar"] .cform-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 5px;
}

html[lang="ar"] .form-group label {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--ease);
  appearance: none;
}

html[lang="ar"] .form-group input,
html[lang="ar"] .form-group select,
html[lang="ar"] .form-group textarea {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
}

/* Validation states */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-color: #e53e3e !important;
  background: rgba(229,62,62,.06);
}

.form-group input.field-error:focus,
.form-group select.field-error:focus,
.form-group textarea.field-error:focus {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.15);
}

.field-error-msg {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #e53e3e;
  font-weight: 500;
}

.form-group textarea {
  height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15.5px;
  padding: 15px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--blue-deep);
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-logo img {
  height: 48px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .5px;
  margin-bottom: 6px;
}

html[lang="ar"] .footer-tagline {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

.footer-arabic {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 4px;
}

.footer-nav-hd {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .60);
  margin-bottom: 18px;
}

html[lang="ar"] .footer-nav-hd {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-align: right;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

html[lang="ar"] .footer-nav-list {
  align-items: flex-start;
}

.footer-nav-list a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
  transition: color var(--ease);
}

html[lang="ar"] .footer-nav-list a {
  font-family: 'Cairo', sans-serif;
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

html[lang="ar"] .footer-copy {
  font-family: 'Cairo', sans-serif;
}

.footer-copy .sep {
  margin: 0 8px;
  opacity: .5;
}

/* ── Service Detail Pages ─────────────────────────────── */
.svc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.svc-overview-body>p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px;
}

.svc-scope-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-scope-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--charcoal);
  line-height: 1.5;
}

.svc-scope-item i {
  color: var(--blue-primary);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 13px;
}

.svc-overview-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

/* ── Service Activity Accordion ──────────────────────────── */
.svc-accordion {
  margin-top: 48px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.svc-acc-item {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.svc-acc-item:last-child { border-bottom: none; }

.svc-acc-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease);
}
[dir="rtl"] .svc-acc-trigger { flex-direction: row-reverse; text-align: right; }

.svc-acc-trigger:hover { background: var(--blue-light); }
.svc-acc-item.active .svc-acc-trigger { background: var(--blue-light); }

.svc-acc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all var(--ease);
}
.svc-acc-item.active .svc-acc-icon {
  background: var(--blue-primary);
  color: #fff;
}

.svc-acc-title {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-dark);
  text-align: left;
  transition: color var(--ease);
}
[dir="rtl"] .svc-acc-title { text-align: right; }
.svc-acc-item.active .svc-acc-title { color: var(--blue-primary); }

.svc-acc-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform var(--ease), color var(--ease);
}
.svc-acc-item.active .svc-acc-chevron {
  transform: rotate(180deg);
  color: var(--blue-primary);
}

.svc-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(.4, 0, .2, 1);
}

.svc-acc-body-inner {
  padding: 4px 28px 24px 88px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--text-muted);
}
[dir="rtl"] .svc-acc-body-inner { padding: 4px 88px 24px 28px; }

.svc-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.svc-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  text-decoration: none;
  transition: all var(--ease);
  color: var(--text-dark);
}

.svc-nav-card:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  transform: translateY(-2px);
}

.svc-nav-card i {
  font-size: 16px;
  color: var(--blue-primary);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.svc-nav-card span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* ── Story Detail Pages ───────────────────────────────── */
.story-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--blue-deep);
}

.story-stat-item {
  background: var(--blue-deep);
  padding: 32px 28px;
  text-align: center;
}

.story-stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.story-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.story-stat-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, .70);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.story-detail-section {
  padding: 80px 0;
}

.story-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-detail-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.story-detail-body>p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 14px;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.story-timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}

.story-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  width: 2px;
  bottom: 0;
  background: var(--border-light);
}

.story-timeline-dot {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--blue-primary);
  position: relative;
  z-index: 1;
  transition: all var(--ease);
}

.story-timeline-item:hover .story-timeline-dot {
  background: var(--blue-primary);
  color: #fff;
}

.story-timeline-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.story-timeline-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.story-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.story-result-card {
  background: var(--blue-deep);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  text-align: center;
  transition: all var(--ease);
}

.story-result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 30, 65, .3);
}

.story-result-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.story-result-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-top: 8px;
  line-height: 1.5;
}

.story-result-icon {
  font-size: 22px;
  color: var(--blue-primary);
  margin-bottom: 14px;
}

.story-services-used {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.story-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--blue-primary);
  color: var(--blue-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease);
}

.story-service-tag:hover {
  background: var(--blue-primary);
  color: #fff;
}

.story-service-tag i {
  font-size: 12px;
}

.story-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.story-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  text-decoration: none;
  transition: all var(--ease);
}

.story-nav-card:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.story-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.story-nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {

  .intro-grid,
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vmv-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-img-col {
    order: -1;
  }

  .about-img-main {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .svc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .svc-overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .svc-acc-trigger { padding: 15px 20px; gap: 13px; }
  .svc-acc-icon { width: 38px; height: 38px; font-size: 15px; border-radius: 9px; }
  .svc-acc-title { font-size: 16px; }
  .svc-acc-body-inner { padding: 4px 20px 20px 71px; }
  [dir="rtl"] .svc-acc-body-inner { padding: 4px 71px 20px 20px; }

  .svc-nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-challenge-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 66px;
  }

  .container {
    padding: 0 22px;
  }

  .section,
  #stories,
  #contact {
    padding: 72px 0;
  }

  .page-banner {
    height: 280px;
    padding-bottom: 36px;
  }

  .nav-links,
  .nav-right .btn-blue {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .lang-switch {
    display: none;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cform {
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }


  .svc-nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-detail-stats {
    grid-template-columns: 1fr 1fr;
  }

  .story-stat-item:not(:last-child) {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .story-results-grid {
    grid-template-columns: 1fr;
  }

  .story-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 44px;
  }

  html[lang="ar"] .hero-headline {
    font-size: 38px;
  }

  .intro-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svc-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Story Blockquote ───────────────────────────────────── */
.story-blockquote {
  border-inline-start: 4px solid var(--blue-primary);
  padding: 20px 28px;
  background: var(--bg-warm);
  border-radius: 0 12px 12px 0;
  margin-top: 40px;
}

html[lang="ar"] .story-blockquote {
  border-radius: 12px 0 0 12px;
}

.story-blockquote>p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.4;
}

html[lang="ar"] .story-blockquote>p {
  font-family: 'Cairo', sans-serif;
  font-style: normal;
  text-align: right;
}

.story-blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

html[lang="ar"] .story-blockquote cite {
  letter-spacing: 0;
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  text-align: right;
}

/* ── RTL global ─────────────────────────────────────────── */
html[lang="ar"] .footer-grid {
  direction: rtl;
}

/* ── RTL Service Detail Pages ───────────────────────────── */
html[lang="ar"] .svc-overview-body>p {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

html[lang="ar"] .svc-scope-item {
  text-align: right;
}

html[lang="ar"] .svc-activity-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
}

html[lang="ar"] .svc-activity-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

html[lang="ar"] .svc-nav-card span {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

/* ── RTL Story Detail Pages ─────────────────────────────── */
html[lang="ar"] .story-detail-body>p {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

html[lang="ar"] .story-stat-lbl {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

/* Stat strip: swap divider to left side in RTL */
html[lang="ar"] .story-stat-item:not(:last-child) {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

/* Timeline connector line repositioned to right side (dot is on right in RTL) */
html[lang="ar"] .story-timeline-item:not(:last-child)::before {
  left: auto;
  right: 19px;
}

html[lang="ar"] .story-timeline-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
}

html[lang="ar"] .story-timeline-desc {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

html[lang="ar"] .story-result-label {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .story-service-tag {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .story-nav-label {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .story-nav-title {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   ACCESSIBILITY — BASE (WCAG 2.1 AA)
============================================================ */


/* ── Global focus-visible ring ──────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue-primary) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* On dark backgrounds use white ring */
.page-banner a:focus-visible,
.page-banner button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
footer a:focus-visible,
footer button:focus-visible,
.svc-card:focus-visible {
  outline-color: #fff !important;
}

/* ── Touch target minimums (44×44px) ────────────────────── */
/* Nav items live inside an 80px tall bar — bar height covers the target requirement.
   Only apply explicit min-height to standalone interactive elements. */
.svc-acc-trigger, .btn { min-height: 44px; }
.lang-btn, .mob-lang-btn { min-width: 44px; min-height: 44px; }
.hamburger { min-width: 44px; min-height: 44px; }
.nav-mobile a { min-height: 44px; display: flex; align-items: center; }

/* ── Saturation filter — scoped to page content only ────── */
/* Applying filter to body breaks position:fixed children.
   Instead we apply it via CSS variable to every direct body child
   EXCEPT the fixed-position navbar and widget. */
/* --a11y-filter is set by JS only when a color mode is active.
   When unset, var() is invalid → filter skipped → no stacking context → fixed elements stay visible. */
body > *:not(#navbar):not(.a11y-widget):not(.nav-mobile) {
  filter: var(--a11y-filter);
}

/* ── Screen-reader-only utility ─────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   ACCESSIBILITY WIDGET — Full Implementation
============================================================ */

/* ── FAB ─────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY WIDGET — UserWay-style
═══════════════════════════════════════════════════════════════ */

/* ── FAB ─────────────────────────────────────────────────── */
.a11y-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
}
[dir="rtl"] .a11y-widget { right: auto; left: 28px; }

.a11y-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  border: 3px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(27,93,160,.50), 0 0 0 0 rgba(27,93,160,.35);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  position: relative;
  z-index: 1;
  animation: a11yFabPulse 3.2s ease-in-out infinite;
}
@keyframes a11yFabPulse {
  0%   { box-shadow: 0 4px 20px rgba(27,93,160,.5), 0 0 0 0   rgba(27,93,160,.4); }
  65%  { box-shadow: 0 4px 20px rgba(27,93,160,.5), 0 0 0 14px rgba(27,93,160,0); }
  100% { box-shadow: 0 4px 20px rgba(27,93,160,.5), 0 0 0 0   rgba(27,93,160,0); }
}
.a11y-fab[aria-expanded="true"],
.a11y-fab:hover { animation: none; }
.a11y-fab:hover { background: var(--blue-dark); transform: scale(1.1); box-shadow: 0 6px 28px rgba(27,93,160,.55); }
.a11y-fab:focus-visible { outline: 3px solid var(--blue-primary) !important; outline-offset: 4px !important; }

/* ── Panel ───────────────────────────────────────────────── */
.a11y-panel {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 368px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #f0f4f8;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.26), 0 4px 16px rgba(0,0,0,.1);
  overflow: hidden;
  animation: a11yIn .25s cubic-bezier(.34,1.3,.64,1);
}
[dir="rtl"] .a11y-panel { right: auto; left: 28px; }
.a11y-panel[hidden] { display: none !important; }

@keyframes a11yIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Panel Header ────────────────────────────────────────── */
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 15px;
  background: var(--blue-deep);
  color: #fff;
  flex-shrink: 0;
}
.a11y-panel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-panel-title i {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.a11y-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  transition: background var(--ease);
  flex-shrink: 0;
}
.a11y-close:hover { background: rgba(255,255,255,.26); }
.a11y-close:focus-visible { outline: 2px solid #fff !important; outline-offset: 1px !important; }

/* ── Panel Body ──────────────────────────────────────────── */
.a11y-panel-body {
  overflow-y: auto;
  padding: 16px 14px 20px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.12) transparent;
}
.a11y-panel-body::-webkit-scrollbar { width: 4px; }
.a11y-panel-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 2px; }

/* ─────────────────────────────────────────────────────────
   UW (UserWay-style) panel body components
───────────────────────────────────────────────────────── */
.uw-section { margin-bottom: 18px; }

.uw-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 9px;
  padding-left: 1px;
}

/* ── Profile grid (4 col) ────────────────────────────────── */
.uw-profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.uw-profile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  transition: all .18s;
  line-height: 1.3;
  min-height: 66px;
}
.uw-profile-btn i { font-size: 18px; color: var(--blue-primary); }
.uw-profile-btn:hover { border-color: var(--blue-primary); background: #eff6ff; transform: translateY(-1px); }
.uw-profile-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); box-shadow: 0 3px 10px rgba(27,93,160,.3); }
.uw-profile-btn.active i { color: #fff; }
.uw-profile-btn:focus-visible { outline: 2px solid var(--blue-primary) !important; outline-offset: 2px !important; }

/* ── Content adjustments ─────────────────────────────────── */
.uw-adj-list {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #fff;
}
.uw-adj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.uw-adj-row:last-child { border-bottom: none; }
.uw-adj-info { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: #374151; }
.uw-adj-info i { color: var(--blue-primary); font-size: 13px; width: 14px; text-align: center; }

.uw-stepper { display: flex; align-items: center; gap: 5px; }
.uw-step {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
  user-select: none;
}
.uw-step:hover:not([disabled]) { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.uw-step[disabled] { opacity: .32; cursor: not-allowed; }
.uw-step-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  min-width: 52px;
  text-align: center;
  background: #eff6ff;
  padding: 3px 7px;
  border-radius: 6px;
}

.uw-align { display: flex; gap: 4px; }
.uw-align-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  font-size: 11px;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.uw-align-btn:hover { border-color: var(--blue-primary); color: var(--blue-primary); background: #eff6ff; }
.uw-align-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.uw-align-btn:focus-visible { outline: 2px solid var(--blue-primary) !important; }

/* ── Color & contrast palette ────────────────────────────── */
.uw-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.uw-color-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 9px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  transition: all .18s;
}
.uw-color-btn:hover { border-color: var(--blue-primary); background: #eff6ff; }
.uw-color-btn.active { border-color: var(--blue-primary); background: #eff6ff; box-shadow: inset 0 0 0 1.5px var(--blue-primary); }
.uw-color-btn:focus-visible { outline: 2px solid var(--blue-primary) !important; outline-offset: 2px !important; }

.uw-color-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}
.uw-clr-default  { background: conic-gradient(#1B5DA0 0 50%, #fff 50%); }
.uw-clr-dark     { background: #0f172a; border-color: #475569; }
.uw-clr-contrast { background: linear-gradient(135deg, #000 50%, #fff 50%); }
.uw-clr-light    { background: linear-gradient(135deg, #fef9c3 50%, #fde68a 50%); }
.uw-clr-mono     { background: linear-gradient(135deg, #6b7280 50%, #d1d5db 50%); }
.uw-clr-low-sat  { background: linear-gradient(135deg, #c4b5a0 50%, #e7e0d8 50%); }

/* ── Feature toggles (4 col) ─────────────────────────────── */
.uw-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.uw-feature-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
  transition: all .18s;
  min-height: 70px;
}
.uw-feature-btn i { font-size: 20px; color: #374151; transition: color .18s; }
.uw-feature-btn:hover { border-color: var(--blue-primary); background: #eff6ff; color: var(--blue-primary); }
.uw-feature-btn:hover i { color: var(--blue-primary); }
.uw-feature-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); box-shadow: 0 3px 10px rgba(27,93,160,.28); }
.uw-feature-btn.active i { color: #fff; }
.uw-feature-btn:focus-visible { outline: 2px solid var(--blue-primary) !important; outline-offset: 2px !important; }
.uw-feature-btn.active:focus-visible { outline-color: rgba(255,255,255,.7) !important; }

/* Active dot */
.uw-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background .18s;
}
.uw-dot.on { background: #4ade80; }

/* ── Reset ───────────────────────────────────────────────── */
.uw-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.uw-reset:hover { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.uw-reset:focus-visible { outline: 2px solid var(--blue-primary) !important; outline-offset: 2px !important; }

/* ── Dictionary popup ────────────────────────────────────── */
.a11y-dict-popup {
  position: absolute;
  z-index: 9900;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 14px;
  font-size: 14px;
}
.a11y-dict-popup[hidden] { display: none; }
.a11y-dict-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.a11y-dict-head strong { font-size: 16px; color: var(--text-dark); }
.a11y-dict-ph { font-size: 13px; color: var(--text-muted); flex: 1; }
.a11y-dict-x { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-muted); padding: 0 4px; }
.a11y-dict-pos { font-size: 12px; color: var(--blue-primary); font-style: italic; margin-bottom: 6px; }
.a11y-dict-def { color: var(--text-dark); line-height: 1.6; }
.a11y-dict-loading { color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

/* ── Tooltip popup ───────────────────────────────────────── */
.a11y-tt-popup {
  position: absolute;
  z-index: 9900;
  background: var(--blue-deep);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  transform: translateX(-50%);
}
.a11y-tt-popup[hidden] { display: none; }

/* ── Voice nav badges ────────────────────────────────────── */
.a11y-vn-badge {
  background: var(--blue-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 8990;
}

/* ── Page Structure panel ────────────────────────────────── */
.a11y-sp {
  position: fixed;
  top: 80px;
  left: 0;
  width: 280px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border-radius: 0 16px 16px 0;
  box-shadow: 4px 0 32px rgba(0,0,0,.14);
  border: 1px solid var(--border-light);
  z-index: 9700;
}
[dir="rtl"] .a11y-sp { left: auto; right: 0; border-radius: 16px 0 0 16px; }
.a11y-sp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--blue-deep); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.a11y-sp-close { background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 18px; line-height: 1; }
.a11y-sp-list { padding: 8px 0; }
.a11y-sp-item { display: block; width: 100%; padding: 9px 16px; background: none; border: none; cursor: pointer; text-align: left; font-size: 13px; color: var(--text-dark); transition: background var(--ease); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a11y-sp-item:hover { background: var(--blue-light); color: var(--blue-primary); }

/* ============================================================
   ACCESSIBILITY MODES — CSS class overrides on <html>
============================================================ */

/* Smart Contrast */
/* ── Reading Guide ───────────────────────────────────────── */
.a11y-reading-guide-el {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 36px;
  background: rgba(255,255,160,.45);
  border-top: 2px solid rgba(0,0,0,.22);
  border-bottom: 2px solid rgba(0,0,0,.22);
  pointer-events: none;
  z-index: 99990;
}

/* ── Reading Mask ────────────────────────────────────────── */
.a11y-mask-top, .a11y-mask-bot {
  position: fixed;
  left: 0; right: 0;
  background: rgba(0,0,0,.75);
  pointer-events: none;
  z-index: 99990;
  transition: top .04s, height .04s;
}

/* ── New accessibility mode classes ─────────────────────── */

/* Readable font */
html.a11y-readable-font body,
html.a11y-readable-font p, html.a11y-readable-font li,
html.a11y-readable-font a, html.a11y-readable-font span { font-family: Arial, Helvetica, sans-serif !important; }

/* Highlight titles */
html.a11y-highlight-titles h1, html.a11y-highlight-titles h2,
html.a11y-highlight-titles h3, html.a11y-highlight-titles h4 {
  outline: 2px solid var(--blue-primary) !important;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Font size steps */
html.a11y-font-1 { font-size: 18px !important; }
html.a11y-font-2 { font-size: 20px !important; }
html.a11y-font-3 { font-size: 22px !important; }
html.a11y-font-4 { font-size: 24px !important; }

/* Line height steps */
html.a11y-lh-1 p, html.a11y-lh-1 li { line-height: 1.8 !important; }
html.a11y-lh-2 p, html.a11y-lh-2 li { line-height: 2.0 !important; }
html.a11y-lh-3 p, html.a11y-lh-3 li { line-height: 2.2 !important; }
html.a11y-lh-4 p, html.a11y-lh-4 li { line-height: 2.5 !important; }

/* Letter spacing steps */
html.a11y-ls-1 p, html.a11y-ls-1 li { letter-spacing: .05em !important; }
html.a11y-ls-2 p, html.a11y-ls-2 li { letter-spacing: .10em !important; }
html.a11y-ls-3 p, html.a11y-ls-3 li { letter-spacing: .15em !important; }

/* Text alignment */
html.a11y-align-left   p, html.a11y-align-left   li { text-align: left   !important; }
html.a11y-align-center p, html.a11y-align-center li { text-align: center !important; }
html.a11y-align-right  p, html.a11y-align-right  li { text-align: right  !important; }

/* ── Smart contrast (legacy, keep) ──────────────────────── */
html.a11y-smart-contrast { --text-muted: #1E1E1E; }
html.a11y-smart-contrast p,
html.a11y-smart-contrast li,
html.a11y-smart-contrast .svc-acc-body-inner { color: #111 !important; }
html.a11y-smart-contrast .svc-card::after {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.97) 100%) !important;
}

/* Contrast+ (high contrast) */
html.a11y-contrast-plus {
  --blue-primary: #0033AA;
  --text-dark: #000000;
  --text-muted: #1A1A1A;
  --border-light: #555555;
  --bg-warm: #EFEFEF;
  --blue-light: #C0D5F8;
}
html.a11y-contrast-plus .btn { border: 2px solid currentColor !important; }
html.a11y-contrast-plus .svc-card::after { background: linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.98) 100%) !important; }
html.a11y-contrast-plus .svc-card-desc  { color: #fff !important; }

/* Pause Animations */
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
html.a11y-no-motion { scroll-behavior: auto !important; }
html.a11y-no-motion .fade-up { opacity:1 !important; transform:none !important; }
html.a11y-no-motion .svc-card-bg,
html.a11y-no-motion .svc-card:hover .svc-card-bg { transform:none !important; }

/* Highlight Links */
html.a11y-highlight-links a:not(.btn):not(.nav-logo):not(.svc-card):not(.svc-teaser-card) {
  background: rgba(27,93,160,.12) !important;
  text-decoration: underline !important;
  color: #003AA0 !important;
  border-radius: 3px;
  padding: 0 2px;
}

/* Bigger Text */
html.a11y-large-text { font-size: 20px; }
html.a11y-large-text p, html.a11y-large-text li,
html.a11y-large-text .svc-acc-body-inner, html.a11y-large-text .svc-card-desc { font-size: 1.1rem; line-height: 1.85; }
html.a11y-large-text .btn { font-size: 1rem; padding: 14px 26px; }
html.a11y-large-text .svc-card-name { font-size: 1.2rem; }

/* Text Spacing */
html.a11y-text-spacing p,
html.a11y-text-spacing li,
html.a11y-text-spacing .svc-acc-body-inner,
html.a11y-text-spacing .svc-card-desc { letter-spacing: .08em; word-spacing: .18em; }

/* Hide Images */
html.a11y-hide-images img { visibility: hidden !important; }
html.a11y-hide-images .svc-card-bg,
html.a11y-hide-images .page-banner-bg,
html.a11y-hide-images .hero-bg,
html.a11y-hide-images .svc-card-header { background-image: none !important; background: var(--blue-deep) !important; }
html.a11y-hide-images [style*="background-image"] { background-image: none !important; }

/* Dyslexia Friendly */
html.a11y-dyslexia body, html.a11y-dyslexia p, html.a11y-dyslexia li,
html.a11y-dyslexia .svc-acc-body-inner, html.a11y-dyslexia .svc-card-desc,
html.a11y-dyslexia .footer-desc { font-family: Georgia,'Times New Roman',serif !important; letter-spacing:.06em; word-spacing:.2em; line-height:1.95 !important; }

/* Big Cursor */
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M4,4 L4,30 L11,21 L17,34 L22,32 L16,19 L26,19 Z' fill='%231B5DA0' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

/* Line Height */
html.a11y-line-height p,
html.a11y-line-height li,
html.a11y-line-height .svc-acc-body-inner { line-height: 2.1 !important; }

/* Text Align — force left */
html.a11y-text-align p,
html.a11y-text-align li,
html.a11y-text-align .svc-acc-body-inner,
html.a11y-text-align .svc-card-desc,
html.a11y-text-align h1, html.a11y-text-align h2,
html.a11y-text-align h3, html.a11y-text-align h4 { text-align: left !important; }
/* RTL override — must be html[dir="rtl"], NOT [dir="rtl"] html (impossible selector) */
html[dir="rtl"].a11y-text-align p,
html[dir="rtl"].a11y-text-align li,
html[dir="rtl"].a11y-text-align .svc-acc-body-inner,
html[dir="rtl"].a11y-text-align .svc-card-desc,
html[dir="rtl"].a11y-text-align h1, html[dir="rtl"].a11y-text-align h2,
html[dir="rtl"].a11y-text-align h3, html[dir="rtl"].a11y-text-align h4 { text-align: right !important; }

/* Screen Reader active indicator */
html.a11y-screen-reader .a11y-fab { outline: 3px solid gold; }

/* Voice Nav active indicator */
html.a11y-voice-nav .a11y-fab { outline: 3px solid limegreen; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .a11y-widget { bottom: 16px; right: 16px; }
  [dir="rtl"] .a11y-widget { right: auto; left: 16px; }
  .a11y-panel { width: calc(100vw - 24px); right: 12px; bottom: 82px; }
  [dir="rtl"] .a11y-panel { right: auto; left: 12px; }
  .uw-profiles-grid  { grid-template-columns: repeat(4, 1fr); }
  .uw-features-grid  { grid-template-columns: repeat(3, 1fr); }
  .uw-color-grid     { grid-template-columns: repeat(3, 1fr); }
}

/* ── prefers-reduced-motion (OS level fallback) ──────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity:1 !important; transform:none !important; transition:none !important; }
  .svc-card-bg, .svc-card:hover .svc-card-bg { transform:none !important; }
}

/* ── prefers-contrast (OS level fallback) ───────────────── */
@media (prefers-contrast: high) {
  :root { --blue-primary:#0042A8; --text-muted:#333; --border-light:#767676; }
  .btn { border: 2px solid currentColor !important; }
}

/* ── forced-colors (Windows HC) ─────────────────────────── */
@media (forced-colors: active) {
  .a11y-fab { forced-color-adjust: none; background: Highlight; color: HighlightText; border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
