/* =========================================================
   QIMAM - REFINED SINGLE CSS FILE
   Contrast + Typography + Readability Tuning
   ========================================================= */

/* =========================
   1) RESET / BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

/* =========================
   2) DESIGN TOKENS
   ========================= */
:root {
  /* Brand */
  --primary: #0c344a;
  --primary-2: #11455f;
  --primary-3: #1a5b79;
  --accent: #c4b15f;
  --accent-2: #dccb85;
  --accent-3: #9f8d42;

  /* Backgrounds */
  --bg-body: #f4f7fa;
  --bg-soft: #eef3f7;
  --bg-card: #ffffff;
  --bg-card-2: #f8fafc;
  --bg-dark: #0b1d28;
  --bg-dark-2: #102836;
  --bg-dark-3: #173748;

  /* Text system */
  --text-heading: #0d2f42;
  --text-primary: #1f3d4d;
  --text-secondary: #567180;
  --text-muted: #7b919d;
  --text-on-dark: #f5f8fb;
  --text-on-dark-soft: rgba(245, 248, 251, 0.82);
  --text-on-dark-muted: rgba(245, 248, 251, 0.68);

  /* Borders */
  --border: rgba(13, 47, 66, 0.10);
  --border-strong: rgba(13, 47, 66, 0.18);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm: 0 10px 24px rgba(9, 32, 46, 0.06);
  --shadow-md: 0 18px 44px rgba(9, 32, 46, 0.10);
  --shadow-lg: 0 24px 58px rgba(7, 24, 35, 0.14);
  --shadow-xl: 0 32px 84px rgba(7, 24, 35, 0.18);
  --shadow-accent: 0 18px 44px rgba(196, 177, 95, 0.24);

  /* Typography */
--font-ar: "IBM Plex Sans Arabic", "Tahoma", Arial, sans-serif;
--font-en: "Inter", "Segoe UI", Arial, sans-serif;
--font-base: var(--font-ar);
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-36: 2.25rem;
  --fs-42: 2.625rem;
  --fs-48: 3rem;
  --fs-56: 3.5rem;

  --lh-tight: 1.2;
  --lh-heading: 1.28;
  --lh-body: 1.9;
  --lh-body-compact: 1.75;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1320px;
  --section-space: clamp(72px, 8vw, 124px);
  --nav-height: 92px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 180ms var(--ease);
  --transition: 280ms var(--ease);
  --transition-slow: 420ms var(--ease);
}

/* =========================
   3) TYPOGRAPHY SYSTEM
   ========================= */
body {
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(196, 177, 95, 0.07), transparent 22%),
    radial-gradient(circle at right center, rgba(17, 69, 95, 0.07), transparent 18%),
    var(--bg-body);
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;

  /* التحكم في كسر السطر */
  max-width: 100%;
  text-wrap: balance;
}

/* Section titles behavior */

.section-heading h2 {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .section-heading h2 {
    max-width: 28ch;
  }
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.6rem);
  line-height: 1.32;
}

h4 {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.42;
}

p,
li,
input,
textarea,
select {
  color: var(--text-primary);
  font-size: clamp(0.95rem, 0.95vw, 1rem);
  line-height: 1.85;
  font-weight: 400;
}

small {
  font-size: var(--fs-13);
  color: var(--text-muted);
}

::selection {
  background: rgba(196, 177, 95, 0.28);
  color: var(--text-heading);
}

/* =========================
   4) GENERAL LAYOUT
   ========================= */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

section {
  position: relative;
}

main > section {
  padding-block: var(--section-space);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(196, 177, 95, 0.24);
  background: rgba(196, 177, 95, 0.10);
  color: var(--accent-3);
  font-size: var(--fs-13);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-heading .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(196, 177, 95, 0.12);
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.05vw, 1.05rem);
  line-height: 1.9;
}

/* =========================
   5) HEADER / NAVBAR
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 250, 0.82);
  border-bottom: 1px solid rgba(13, 47, 66, 0.08);
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(13, 47, 66, 0.06);
}

.topbar p {
  font-size: var(--fs-13);
  color: var(--text-secondary);
  font-weight: 600;
}

.main-nav {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.brand img {
  width: clamp(118px, 10vw, 172px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(12, 52, 74, 0.10));
}

.brand-caption {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.brand-caption-ar {
  color: var(--accent-3);
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  font-weight: 800;
  white-space: nowrap;
}


.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  line-height: 1.1;
  color: var(--text-heading);
  font-weight: 800;
}

.brand-text span {
  margin-top: 4px;
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--text-heading);
  font-size: var(--fs-15);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
  border-radius: var(--radius-pill);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--primary-3);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 46px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(13, 47, 66, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-heading);
  font-size: var(--fs-14);
  font-weight: 800;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: rgba(196, 177, 95, 0.10);
  border-color: rgba(196, 177, 95, 0.34);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* =========================
   6) BUTTONS
   ========================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  font-size: clamp(0.9rem, 0.9vw, 0.95rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

/* Button premium hover */

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b2328;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 46px rgba(196, 177, 95, 0.28);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--text-on-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-heading);
  border: 1px solid rgba(13, 47, 66, 0.14);
  box-shadow: 0 12px 26px rgba(9, 32, 46, 0.04);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(196, 177, 95, 0.08);
  border-color: rgba(196, 177, 95, 0.34);
}

/* =========================
   7) HERO
   ========================= */
.hero:not(.hero-slider) {
  padding-top: clamp(44px, 7vw, 92px);
  padding-bottom: clamp(56px, 8vw, 110px);
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 177, 95, 0.16), transparent 20%),
    radial-gradient(circle at 88% 28%, rgba(17, 69, 95, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(244, 247, 250, 0.96) 100%);
  overflow: clip;
}

.hero:not(.hero-slider)::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  top: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 177, 95, 0.16), transparent 68%);
  pointer-events: none;
}

.hero:not(.hero-slider) .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero:not(.hero-slider) .hero-content {
  position: relative;
  z-index: 2;
}

.hero:not(.hero-slider) .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(196, 177, 95, 0.12);
  border: 1px solid rgba(196, 177, 95, 0.24);
  color: var(--accent-3);
  font-size: var(--fs-14);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero:not(.hero-slider) h1 {
  margin-bottom: 12px;
}

.hero-text {
  max-width: 700px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 2;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-highlights {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  max-width: 760px;
}

.hero-highlights li {
  position: relative;
  padding-inline-start: 24px;
  font-size: var(--fs-15);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.85;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.88em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(196, 177, 95, 0.14);
}

.hero-media figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}

.hero-media figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 28, 40, 0.78), rgba(12, 52, 74, 0.52) 50%, rgba(16, 71, 97, 0.50) 100%);
  z-index: 1;
}

.hero-media img {
  width: 100%;
  min-height: 600px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow);
}

.hero-media:hover img {
  transform: scale(1.06);
}

.hero-media figcaption {
  position: absolute;
  inset-inline: 28px;
  bottom: 30px;
  z-index: 3;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: var(--text-on-dark);
  font-size: var(--fs-15);
  line-height: 1.85;
  font-weight: 600;
}

/* =========================
   8) STATS
   ========================= */
.stats {
  padding-block: clamp(34px, 4vw, 56px) clamp(44px, 5vw, 72px);
  background: linear-gradient(180deg, #f4f7fa 0%, #eef3f7 100%);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: 0 14px 34px rgba(9, 32, 46, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-3));
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 177, 95, 0.24);
  box-shadow: 0 20px 46px rgba(9, 32, 46, 0.12);
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 1.3vw, 1.34rem);
  line-height: 1.3;
  color: var(--text-heading);
  font-weight: 800;
}

.stat-card span {
  display: block;
  font-size: var(--fs-15);
  line-height: 1.85;
  color: var(--text-secondary);
}

/* =========================
   9) ABOUT
   ========================= */
.about {
  background: linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.86) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-text > p {
  color: var(--text-primary);
  font-size: var(--fs-17);
  line-height: 2;
}

.about-text > p + p {
  margin-top: 18px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.about-points article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-points article::before {
  content: "";
  position: absolute;
  inset-inline-start: 24px;
  top: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-pill);
}

.about-points h3 {
  margin-bottom: 12px;
}

.about-points p {
  color: var(--text-secondary);
  font-size: var(--fs-16);
  line-height: 1.95;
}

.about-media img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* =========================
   10) WHY US
   ========================= */
.why-us {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 55%, var(--bg-dark-3) 100%);
  color: var(--text-on-dark-soft);
}

.why-us .section-heading h2,
.why-us .section-heading p:not(.eyebrow),
.why-us h3 {
  color: var(--text-on-dark);
}

.why-us .section-heading p:not(.eyebrow) {
  color: var(--text-on-dark-soft);
}

.why-us .section-heading .eyebrow {
  background: rgba(196, 177, 95, 0.12);
  border-color: rgba(196, 177, 95, 0.24);
  color: var(--accent-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.why-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 24px;
  top: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-pill);
}

.why-card h3 {
  margin-bottom: 14px;
}

.why-card p {
  color: var(--text-on-dark-soft);
  font-size: var(--fs-16);
  line-height: 1.95;
}

.why-card:hover,
.why-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(196, 177, 95, 0.34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

/* =========================
   11) SERVICES / CARDS
   ========================= */
.services-grid,
.projects-grid,
.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card,
.project-card,
.documents-grid article {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover,
.project-card:hover,
.documents-grid article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 177, 95, 0.26);
}

.service-card img,
.project-card img,
.documents-grid article img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover img,
.project-card:hover img,
.documents-grid article:hover img {
  transform: scale(1.06);
}

.service-card h3,
.project-card h3,
.documents-grid article h3 {
  padding: 24px 24px 0;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.service-card p,
.project-card p,
.documents-grid article p {
  padding-inline: 24px;
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: var(--fs-16);
  line-height: 1.9;
}

.service-card a,
.documents-grid article a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px 24px;
  color: var(--primary-3);
  font-size: var(--fs-15);
  font-weight: 800;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-card a::after,
.documents-grid article a::after {
  content: "↗";
  font-size: 1rem;
}

.service-card a:hover,
.documents-grid article a:hover {
  color: var(--accent-3);
}

/* =========================
   12) SOLUTIONS
   ========================= */
.solutions {
  background:
    radial-gradient(circle at 12% 10%, rgba(196,177,95,0.08), transparent 16%),
    linear-gradient(180deg, rgba(238,243,247,0.82) 0%, rgba(255,255,255,0.96) 100%);
}

.solution-block {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
}

.solution-block + .solution-block {
  margin-top: 24px;
}

.solution-intro {
  max-width: 960px;
  margin-bottom: 28px;
}

.solution-intro h3 {
  margin-bottom: 14px;
}

.solution-intro p {
  color: var(--text-secondary);
  font-size: var(--fs-17);
  line-height: 2;
}

.solution-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-list-grid article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 47, 66, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.90));
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.solution-list-grid article::before {
  content: "";
  position: absolute;
  inset-inline-start: 24px;
  top: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-pill);
}

.solution-list-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 177, 95, 0.24);
}

.solution-list-grid h4 {
  margin-bottom: 12px;
}

.solution-list-grid p {
  color: var(--text-secondary);
  line-height: 1.95;
}

.solution-subsection {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(12, 52, 74, 0.035);
  border: 1px solid rgba(13, 47, 66, 0.08);
}

.solution-subsection h4 {
  margin-bottom: 16px;
}

.solution-subsection ul {
  display: grid;
  gap: 12px;
}

.solution-subsection li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-primary);
  font-size: var(--fs-16);
  line-height: 1.9;
}

.solution-subsection li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.88em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent);
}

/* =========================
   13) WORKFLOW
   ========================= */
.workflow {
  background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(238,243,247,0.76) 100%);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.workflow-grid article {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.workflow-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 177, 95, 0.26);
}

.workflow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196,177,95,0.18), rgba(196,177,95,0.08));
  border: 1px solid rgba(196, 177, 95, 0.24);
  color: var(--accent-3);
  font-size: var(--fs-18);
  font-weight: 800;
}

.workflow-grid h3 {
  margin-bottom: 12px;
}

.workflow-grid p {
  color: var(--text-secondary);
  line-height: 1.9;
}

/* =========================
   14) DOCUMENTS / CLIENTS
   ========================= */
.documents-content > p,
.clients-intro {
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: var(--fs-17);
  line-height: 1.95;
}

.clients {
  background: linear-gradient(180deg, rgba(12,52,74,0.03) 0%, rgba(255,255,255,0.88) 100%);
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.clients-logos img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
  filter: grayscale(1);
  opacity: 0.88;
  transition:
    transform var(--transition),
    filter var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
}

.clients-logos img:hover {
  transform: translateY(-4px);
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

/* =========================
   15) CTA BAND
   ========================= */
.cta-band {
  padding-block: clamp(52px, 7vw, 88px);
}

.cta-content {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 55%, var(--bg-dark-3) 100%);
  box-shadow: var(--shadow-xl);
}

.cta-content h2 {
  max-width: 780px;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.cta-content p {
  max-width: 760px;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-17);
  line-height: 1.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* =========================
   16) FAQ
   ========================= */
.faq {
  background: linear-gradient(180deg, rgba(255,255,255,0.80) 0%, rgba(238,243,247,0.84) 100%);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.faq-list article {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.faq-list article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 177, 95, 0.24);
}

.faq-list h3 {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  color: var(--text-heading);
}

.faq-list p {
  color: var(--text-secondary);
  font-size: var(--fs-16);
  line-height: 1.95;
}

/* =========================
   17) CONTACT / FORM
   ========================= */
.contact {
  background:
    radial-gradient(circle at 88% 12%, rgba(196,177,95,0.12), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(238,243,247,0.84) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-info article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-sm);
}

.contact-info article::before {
  content: "";
  position: absolute;
  inset-inline-start: 24px;
  top: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-pill);
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p,
.contact-info li {
  color: var(--text-secondary);
  line-height: 1.9;
}

.contact-info a {
  color: var(--primary-3);
  font-weight: 800;
}

.contact-form-wrap {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 10px;
}

.form-row label {
  color: var(--text-heading);
  font-size: var(--fs-15);
  font-weight: 800;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(13, 47, 66, 0.12);
  background: rgba(248, 250, 252, 1);
  color: var(--text-primary);
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-row textarea {
  min-height: 168px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #8398a5;
}

.form-row input:hover,
.form-row textarea:hover,
.form-row select:hover {
  border-color: rgba(13, 47, 66, 0.20);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: rgba(196, 177, 95, 0.58);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(196, 177, 95, 0.14),
    0 12px 28px rgba(9, 32, 46, 0.06);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.form-note {
  margin-top: 4px;
  font-size: var(--fs-14);
  color: var(--text-secondary);
  line-height: 1.8;
}


/* =========================
   19) FOOTER
   ========================= */
.site-footer {
  position: relative;
  padding-top: clamp(54px, 6vw, 84px);
  background:
    radial-gradient(circle at left top, rgba(196,177,95,0.12), transparent 18%),
    linear-gradient(180deg, var(--bg-dark) 0%, #0a2330 100%);
  color: var(--text-on-dark-soft);
  overflow: clip;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 0.9fr;
  gap: 28px;
  padding-bottom: 34px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand h2,
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  color: var(--text-on-dark);
}

.footer-brand h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.footer-brand p {
  max-width: 420px;
  color: var(--text-on-dark-soft);
  line-height: 1.95;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a,
.footer-contact a {
  color: var(--text-on-dark-soft);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
  color: var(--accent-2);
}

.footer-services li,
.footer-contact li {
  color: var(--text-on-dark-soft);
  line-height: 1.85;
}

.footer-bottom {
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-bottom p {
  text-align: center;
  font-size: var(--fs-14);
  color: var(--text-on-dark-muted);
}

/* =========================
   20) FOCUS / UTILITIES
   ========================= */
:is(a, button, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(196, 177, 95, 0.18);
}

[hidden] {
  display: none !important;
}

/* =========================
   21) RESPONSIVE
   ========================= */
@media (max-width: 1280px) {
  .main-nav {
    grid-template-columns: auto 1fr;
  }

  .nav-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 18px;
  }

  .why-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-logos {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img,
  .about-media img {
    min-height: 420px;
  }

  .stats .container,
  .services-grid,
  .projects-grid,
  .documents-grid,
  .solution-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

.main-nav {
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-block: 12px;
  align-items: center;
}

.brand {
  justify-self: start;
  align-items: flex-start;
  text-align: start;
  max-width: 70%;
}

.nav-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.nav-actions > * {
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(9, 32, 46, 0.10);
}

.nav-links {
  display: none;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: 0 14px 34px rgba(9, 32, 46, 0.10);
}

.nav-links.is-open {
  display: grid;
  gap: 8px;
}

/* تحسين شكل الروابط داخل القائمة */
.nav-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(196, 177, 95, 0.10);
  transform: translateX(-2px);
}

  .nav-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .nav-actions > * {
    flex: 1 1 180px;
  }

  .stats .container,
  .about-points,
  .services-grid,
  .projects-grid,
  .documents-grid,
  .solution-list-grid,
  .clients-logos {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

.main-nav {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  justify-self: center;
  align-items: center;
  text-align: center;
}

.nav-toggle {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
}

  .nav-toggle,
  .lang-switch,
  .btn {
    min-height: 50px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-text,
  .cta-content p,
  .section-heading p:not(.eyebrow),
  .documents-content > p,
  .clients-intro {
    font-size: var(--fs-16);
  }

.hero-actions,
.cta-actions,
.form-actions {
  flex-direction: column;
  align-items: stretch;
}

.nav-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.nav-actions > * {
  width: 100%;
  min-height: 48px;
  padding-inline: 16px;
  font-size: 0.9rem;
  border-radius: 18px;
}

  .hero-media img,
  .about-media img {
    min-height: 320px;
  }

  .hero-media figcaption {
    inset-inline: 16px;
    bottom: 16px;
    padding: 14px 15px;
    font-size: var(--fs-14);
  }

  .stat-card,
  .why-card,
  .workflow-grid article,
  .solution-block,
  .faq-list article,
  .contact-form-wrap {
    padding: 22px 18px;
  }

  .stats .container,
  .about-points,
  .services-grid,
  .projects-grid,
  .documents-grid,
  .solution-list-grid,
  .clients-logos,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card img,
  .project-card img,
  .documents-grid article img {
    height: 220px;
  }

  .floating-whatsapp {
    inset-inline-end: 14px;
    bottom: 14px;
    min-width: 126px;
    min-height: 54px;
    font-size: var(--fs-14);
  }
}

@media (max-width: 420px) {
  .brand-text span {
    display: none;
  }

  .service-card h3,
  .project-card h3,
  .documents-grid article h3 {
    padding-inline: 18px;
    padding-top: 18px;
  }

  .service-card p,
  .project-card p,
  .documents-grid article p {
    padding-inline: 18px;
    padding-bottom: 18px;
  }

  .service-card a,
  .documents-grid article a {
    margin-inline: 18px;
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero-slider {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #091a24;
}

.hero-slider-track {
  position: relative;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg,
.hero-slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-bg img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 25, 35, 0.78) 0%, rgba(8, 25, 35, 0.58) 38%, rgba(8, 25, 35, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 25, 35, 0.10) 0%, rgba(8, 25, 35, 0.26) 100%);
  z-index: 1;
}

.hero-slide-content {
  padding-inline: clamp(16px, 4vw, 48px);
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 3;
  min-height: 100vh;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-slide-copy {
  width: min(760px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1d98b;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9c57a;
  box-shadow: 0 0 0 6px rgba(217, 197, 122, 0.14);
}

.hero-slide h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero-slider h2 {
  max-width: 15ch;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.15rem, 4.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-slider p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.9;
  font-weight: 400;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-slider .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-slider .btn-outline:hover,
.hero-slider .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-slider-controls {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-arrow-prev {
  inset-inline-start: 28px;
}

.hero-arrow-next {
  inset-inline-end: 28px;
}

.hero-slider-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 34px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: none;
  padding: 0;
  transition:
    width 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #d8c57a;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  transform: scale(1.08);
}

/* =========================================================
   FLOATING WHATSAPP - PREMIUM
   ========================================================= */

.floating-whatsapp {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: rgba(12, 20, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-4px);
  background: rgba(12, 20, 28, 0.94);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.floating-whatsapp-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #19c675 0%, #0ea765 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(14, 167, 101, 0.26);
  flex-shrink: 0;
}

.floating-whatsapp-icon svg {
  width: 24px;
  height: 24px;
}

.floating-whatsapp-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 991px) {
  .hero-slide-content {
    padding-top: 120px;
    padding-bottom: 96px;
  }

  .hero-slider h1,
  .hero-slider h2 {
    max-width: 100%;
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .hero-arrow-prev {
    inset-inline-start: 16px;
  }

  .hero-arrow-next {
    inset-inline-end: 16px;
  }
}

@media (max-width: 640px) {
  .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(8, 25, 35, 0.76) 0%, rgba(8, 25, 35, 0.54) 55%, rgba(8, 25, 35, 0.62) 100%);
  }

  .hero-slide-content {
    align-items: flex-end;
    padding-top: 110px;
    padding-bottom: 90px;
  }

  .hero-kicker {
    font-size: 0.8rem;
    padding: 9px 14px;
  }

  .hero-slider p {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slide-actions .btn {
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  .hero-slider-dots {
    bottom: 20px;
  }

  .floating-whatsapp {
    inset-inline-end: 12px;
    bottom: 12px;
    min-height: 58px;
    padding: 8px 16px 8px 8px;
    gap: 10px;
  }

  .floating-whatsapp-icon {
    width: 40px;
    height: 40px;
  }

  .floating-whatsapp-text {
    font-size: 0.9rem;
  }
}

/* Language-based font switching */

/* Arabic */
html[lang="ar"] body {
  font-family: var(--font-ar);
}

/* English */
html[lang="en"] body {
  font-family: var(--font-en);
}

/* =========================================================
   CERTIFICATES SECTION
   ========================================================= */

.certificates-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(196, 177, 95, 0.08), transparent 18%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(13, 47, 66, 0.08);
  box-shadow: 0 18px 44px rgba(9, 32, 46, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 177, 95, 0.28);
  box-shadow: 0 26px 60px rgba(9, 32, 46, 0.13);
}

.certificate-preview {
  width: 100%;
  height: 330px;
  padding: 18px;
  background: #f8fafc;
  border: 0;
  cursor: pointer;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #ffffff;
}

.certificate-card h3 {
  min-height: 74px;
  padding: 20px 22px 10px;
  color: var(--text-heading);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
}

.certificate-btn {
  margin: 0 22px 22px;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17232b;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.certificate-btn:hover,
.certificate-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(196, 177, 95, 0.25);
}

/* Modal */
.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.certificate-modal.is-open {
  display: flex;
}

.certificate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 20, 0.82);
  backdrop-filter: blur(8px);
}

.certificate-modal-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 96vw);
  max-height: 92vh;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.certificate-modal-title {
  margin: 0 56px 18px;
  color: var(--text-heading);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  text-align: center;
}

.certificate-modal-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: #f7fafc;
}

.certificate-modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0c344a;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 220ms ease, background 220ms ease;
}

.certificate-modal-close:hover,
.certificate-modal-close:focus-visible {
  transform: rotate(90deg);
  background: #102836;
}

/* Responsive */
@media (max-width: 1100px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificate-preview {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .certificate-preview {
    height: 280px;
    padding: 14px;
  }

  .certificate-modal {
    padding: 12px;
  }

  .certificate-modal-content {
    padding: 16px;
    border-radius: 20px;
  }

  .certificate-modal-title {
    margin: 0 48px 14px;
    font-size: 1.05rem;
  }

  .certificate-modal-close {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }
}

/* =========================================================
   HERO VIDEO SLIDER
   ========================================================= */

.hero-video-slider {
  min-height: 100vh;
  background: #071923;
}

.hero-video-slider .hero-slide-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.05);
}

.hero-video-slider .hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(196, 177, 95, 0.13), transparent 30%),
    linear-gradient(90deg, rgba(5, 18, 26, 0.86) 0%, rgba(5, 18, 26, 0.68) 42%, rgba(5, 18, 26, 0.34) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video-slider .hero-slide-overlay {
  background:
    linear-gradient(180deg, rgba(5, 18, 26, 0.22) 0%, rgba(5, 18, 26, 0.64) 100%);
}

.hero-video-slider .hero-slide-content {
  z-index: 4;
}

.hero-video-slider .hero-slide-copy {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(8, 25, 35, 0.34), rgba(8, 25, 35, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
}

.hero-video-slider .hero-slider h1,
.hero-video-slider .hero-slider h2 {
  color: #ffffff;
}

.hero-video-slider .hero-slider p,
.hero-video-slider p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-video-slider .hero-kicker {
  background: rgba(255, 255, 255, 0.10);
  color: #f0d98b;
}

@media (max-width: 640px) {
  .hero-video-slider .hero-slide-bg::after {
    background:
      linear-gradient(180deg, rgba(5, 18, 26, 0.78) 0%, rgba(5, 18, 26, 0.62) 50%, rgba(5, 18, 26, 0.82) 100%);
  }

  .hero-video-slider .hero-slide-copy {
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(8, 25, 35, 0.42);
  }
}

/* =========================================================
   HERO VIDEO SLIDER - PREMIUM REFINEMENT
   Replace heavy box with clean editorial text block
   ========================================================= */

.hero-video-slider .hero-slide-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5, 18, 26, 0.78) 0%,
      rgba(5, 18, 26, 0.58) 36%,
      rgba(5, 18, 26, 0.34) 68%,
      rgba(5, 18, 26, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 18, 26, 0.18) 0%,
      rgba(5, 18, 26, 0.28) 52%,
      rgba(5, 18, 26, 0.52) 100%
    );
}

html[dir="rtl"] .hero-video-slider .hero-slide-overlay {
  background:
    linear-gradient(
      270deg,
      rgba(5, 18, 26, 0.78) 0%,
      rgba(5, 18, 26, 0.58) 36%,
      rgba(5, 18, 26, 0.34) 68%,
      rgba(5, 18, 26, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 18, 26, 0.18) 0%,
      rgba(5, 18, 26, 0.28) 52%,
      rgba(5, 18, 26, 0.52) 100%
    );
}

.hero-video-slider .hero-slide-bg::after {
  background:
    radial-gradient(circle at 75% 30%, rgba(196, 177, 95, 0.10), transparent 28%),
    radial-gradient(circle at 20% 70%, rgba(26, 91, 121, 0.18), transparent 34%);
}

.hero-video-slider .hero-slide-bg video {
  filter: saturate(0.98) contrast(1.03) brightness(0.92);
}

.hero-video-slider .hero-slide-content {
  align-items: center;
  padding-top: 120px;
  padding-bottom: 90px;
}

.hero-video-slider .hero-slide-copy {
  width: min(720px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero-video-slider .hero-slide-copy::before {
  content: "";
  display: block;
  width: 78px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4b15f, #dccb85);
  box-shadow: 0 10px 24px rgba(196, 177, 95, 0.22);
}

.hero-video-slider .hero-kicker {
  margin-bottom: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ead47f;
  font-size: clamp(0.78rem, 0.85vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.hero-video-slider .hero-kicker::before {
  width: 7px;
  height: 7px;
  background: #d9c57a;
  box-shadow: 0 0 0 5px rgba(217, 197, 122, 0.14);
}

.hero-video-slider .hero-slider h1,
.hero-video-slider .hero-slider h2,
.hero-video-slider h1,
.hero-video-slider h2 {
  max-width: 13.5ch;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.2vw, 4.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.hero-video-slider .hero-slider p,
.hero-video-slider p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.hero-video-slider .hero-slide-actions {
  margin-top: 32px;
  gap: 14px;
}

.hero-video-slider .btn {
  min-height: 52px;
  padding-inline: 24px;
}

.hero-video-slider .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-video-slider .btn-outline:hover,
.hero-video-slider .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-video-slider .hero-arrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-video-slider .hero-dot {
  background: rgba(255, 255, 255, 0.36);
}

.hero-video-slider .hero-dot.is-active {
  background: #d8c57a;
}

/* Responsive refinement */
@media (max-width: 991px) {
  .hero-video-slider .hero-slide-content {
    padding-top: 110px;
    padding-bottom: 84px;
  }

  .hero-video-slider .hero-slider h1,
  .hero-video-slider .hero-slider h2,
  .hero-video-slider h1,
  .hero-video-slider h2 {
    max-width: 15ch;
    font-size: clamp(2rem, 6.2vw, 3.25rem);
  }
}

@media (max-width: 640px) {
  .hero-video-slider .hero-slide-overlay,
  html[dir="rtl"] .hero-video-slider .hero-slide-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5, 18, 26, 0.62) 0%,
        rgba(5, 18, 26, 0.42) 42%,
        rgba(5, 18, 26, 0.78) 100%
      );
  }

  .hero-video-slider .hero-slide-bg video {
    filter: saturate(0.96) contrast(1.02) brightness(0.88);
  }

  .hero-video-slider .hero-slide-content {
  align-items: flex-end;
  padding-top: 92px;
  padding-bottom: 80px;
  padding-inline: 18px;
}

  .hero-video-slider .hero-slide-copy::before {
    width: 58px;
    height: 3px;
    margin-bottom: 16px;
  }

  .hero-video-slider .hero-kicker {
    margin-bottom: 14px;
    font-size: 0.78rem;
  }

  .hero-video-slider .hero-slider h1,
  .hero-video-slider .hero-slider h2,
  .hero-video-slider h1,
  .hero-video-slider h2 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(1.85rem, 9vw, 2.65rem);
    line-height: 1.22;
  }

  .hero-video-slider .hero-slider p,
  .hero-video-slider p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .hero-video-slider .hero-slide-actions {
    margin-top: 22px;
    flex-direction: column;
    align-items: stretch;
  }
}
/* Footer credit */
.footer-credit {
  margin-top: 8px;
  color: rgba(245, 248, 251, 0.58);
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: center;
}

.footer-credit a {
  color: rgba(245, 248, 251, 0.76);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credit-separator {
  margin-inline: 6px;
  color: rgba(245, 248, 251, 0.42);
}

.form-message {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.form-message.error {
  color: #e5484d;
}

.form-message.success {
  color: #2f9e44;
}
@media (max-width: 640px) {
  .brand {
    align-items: center;
    text-align: center;
  }

  .brand img {
    width: 112px;
    max-height: 52px;
  }

  .brand-caption-ar {
    font-size: 0.62rem;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .brand-caption {
    display: none;
  }

  .brand img {
    width: 118px;
  }
}

@media (max-width: 640px) {
  .hero-video-slider .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-video-slider .hero-slide-actions .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
    padding-inline: 14px;
    border-radius: 14px;
  }
}

/* Mobile: keep nav actions inside burger menu only */
@media (max-width: 900px) {
  .main-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav-links.is-open + .nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-actions > * {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    font-size: 0.9rem;
  }
}