/* ============================================================
   AL DALIL AL SHAMEL — Standalone design system
   Corporate futuristic · Arabic-first (RTL) · Light + dark
   Static HTML/CSS/JS only. No backend, no database.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --brand-950: #041226;
  --brand-900: #071a3a;
  --brand-800: #0b2a5c;
  --brand-700: #0b3a8f;
  --brand-600: #1d5bd6;
  --brand-500: #2f7cff;
  --brand-100: #dce9ff;
  --brand-50: #eff5ff;

  /* Accent */
  --accent-700: #c2410c;
  --accent-600: #ea580c;
  --accent-500: #f97316;
  --accent-400: #fb923c;
  --accent-100: #ffedd5;

  /* Neutrals */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --surface-3: #e4ecf9;
  --ink: #0c1729;
  --ink-soft: #24324a;
  --muted: #5b6b85;
  --line: rgba(11, 42, 92, 0.1);
  --line-strong: rgba(11, 42, 92, 0.2);
  --field-bg: #f7f9fd;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);

  /* Typography */
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;

  /* Shape */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(7, 26, 58, 0.06);
  --shadow-sm: 0 8px 24px -12px rgba(7, 26, 58, 0.2);
  --shadow-md: 0 24px 60px -30px rgba(7, 26, 58, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(4, 18, 38, 0.45);
  --shadow-orange: 0 18px 40px -18px rgba(249, 115, 22, 0.55);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 78px;
  --section-y: clamp(4.5rem, 8.5vw, 8rem);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #060d1b;
  --surface: #0c1730;
  --surface-2: #091326;
  --surface-3: #0f1e3c;
  --ink: #eef4ff;
  --ink-soft: #d3def2;
  --muted: #9fb0cc;
  --line: rgba(148, 178, 230, 0.14);
  --line-strong: rgba(148, 178, 230, 0.28);
  --field-bg: rgba(255, 255, 255, 0.045);
  --glass: rgba(8, 19, 38, 0.72);
  --glass-strong: rgba(10, 23, 46, 0.9);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 28px 70px -34px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 44px 100px -44px rgba(0, 0, 0, 0.9);
}

/* ---------- 2. Reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-block-start: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.85;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: var(--font-ar);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.section-title span {
  display: block;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
  max-width: 62ch;
}

html[lang="ar"] .section-lead {
  line-height: 1.95;
}

.gradient-text {
  background: linear-gradient(100deg, var(--brand-600) 0%, #7c3aed 48%, var(--accent-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .gradient-text {
  background: linear-gradient(100deg, #6aa5ff 0%, #a78bfa 48%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

html[data-theme="dark"] .eyebrow {
  color: #9dc0ff;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cfe0ff;
  box-shadow: none;
}

/* ---------- 4. Accessibility ---------- */
.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-800);
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. Buttons + icon controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
  color: #17120a;
  box-shadow: var(--shadow-orange);
}

.btn-accent:hover {
  box-shadow: 0 22px 46px -18px rgba(249, 115, 22, 0.72);
  filter: brightness(1.03);
}

.btn-primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(11, 58, 143, 0.7);
}

.btn-primary:hover {
  background: var(--brand-600);
  box-shadow: 0 20px 42px -18px rgba(29, 91, 214, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--brand-500);
  color: var(--brand-700);
}

html[data-theme="dark"] .btn-ghost:hover {
  color: #9dc0ff;
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  color: var(--brand-700);
}

html[data-theme="dark"] .icon-btn:hover {
  color: #9dc0ff;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun,
.icon-moon,
.icon-close {
  display: none;
}

/* Show the mode you would switch to */
html[data-theme="light"] .icon-moon {
  display: block;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--glass);
  border-block-end: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--glass-strong);
  border-block-end-color: var(--line);
  box-shadow: 0 14px 40px -30px rgba(4, 18, 38, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 8px 14px rgba(11, 58, 143, 0.25));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[lang="ar"] .brand-text strong {
  font-family: var(--font-ar);
  font-weight: 800;
}

.brand-text small {
  margin-block-start: 0.22rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="ar"] .brand-text small {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.8rem;
  inset-block-end: 0.32rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.lang-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--brand-800);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(7, 26, 58, 0.7);
}

html[data-theme="dark"] .lang-btn.is-active {
  background: var(--brand-500);
  color: #041226;
}

.menu-toggle {
  display: none;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 12, 28, 0.45);
  backdrop-filter: blur(2px);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block-start: clamp(2rem, 4vw, 3.25rem);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-blue {
  width: clamp(300px, 42vw, 620px);
  aspect-ratio: 1;
  inset-block-start: -16%;
  inset-inline-end: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(47, 124, 255, 0.45), transparent 68%);
}

.orb-orange {
  width: clamp(220px, 30vw, 440px);
  aspect-ratio: 1;
  inset-block-end: 2%;
  inset-inline-start: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.3), transparent 70%);
  animation-delay: -5s;
}

html[data-theme="dark"] .orb-blue {
  opacity: 0.4;
}

html[data-theme="dark"] .orb-orange {
  opacity: 0.28;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 20%, transparent 75%);
}

html[data-theme="dark"] .hero-grid {
  opacity: 0.28;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.25rem);
}

.hero-copy {
  max-width: 37rem;
}

.hero-title {
  margin-block: 1.1rem 1.25rem;
  font-size: clamp(2.5rem, 5.3vw, 4.4rem);
  line-height: 1.06;
}

html[lang="ar"] .hero-title {
  font-size: clamp(2.35rem, 4.9vw, 4rem);
  line-height: 1.3;
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.9rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2.35rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img,
.avatar-more {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
}

.avatar-stack img + img,
.avatar-stack .avatar-more {
  margin-inline-start: -12px;
}

.avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-800);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.proof-text p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.proof-rating {
  color: var(--accent-500);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  line-height: 1.2;
  margin-block-end: 0.25rem;
}

/* Hero visual */
.hero-media {
  position: relative;
  perspective: 1200px;
}

.hero-art {
  position: relative;
  transition: transform 0.35s ease-out;
  transform-style: preserve-3d;
}

.hero-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--brand-900);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: floatY 5.5s ease-in-out infinite;
}

.float-card-top {
  inset-block-start: 6%;
  inset-inline-start: -6%;
}

.float-card-bottom {
  inset-block-end: 8%;
  inset-inline-end: -5%;
  animation-delay: -2.4s;
}

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(47, 124, 255, 0.14);
  color: var(--brand-600);
  flex: none;
}

.float-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-icon-orange {
  background: rgba(249, 115, 22, 0.16);
  color: var(--accent-600);
}

html[data-theme="dark"] .float-icon {
  color: #7fb0ff;
}

html[data-theme="dark"] .float-icon-orange {
  color: #fb923c;
}

.float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.float-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

html[lang="ar"] .float-copy strong {
  font-family: var(--font-ar);
  font-weight: 800;
}

.float-copy small {
  margin-block-start: 0.18rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.hero-pill {
  position: absolute;
  inset-block-end: -1rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #22c55e;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 1.4rem;
  border-block: 1px solid var(--line);
}

.stat {
  padding-inline: clamp(0.75rem, 2vw, 1.6rem);
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

html[lang="ar"] .stat-value {
  font-family: var(--font-ar);
  font-weight: 800;
  letter-spacing: 0;
}

.stat-suffix {
  color: var(--accent-500);
}

.stat-label {
  margin-block-start: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- 8. Trust strip ---------- */
.trust-strip {
  padding-block: 1.65rem;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.trust-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3.25rem);
}

.trust-logos li {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.trust-logos li:hover {
  opacity: 1;
  color: var(--brand-600);
}

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.about-media {
  position: relative;
  width: min(100%, 44rem);
  margin-inline: auto;
  padding-block-end: 2.5rem;
}

.about-copy {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.about-main {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-main img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.about-detail {
  position: absolute;
  inset-inline-end: -1.5rem;
  inset-block-end: 0;
  width: 55%;
  overflow: hidden;
  border: 6px solid var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  inset-block-start: 6%;
  inset-inline-start: -1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-strong);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.15;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: floatY 6s ease-in-out infinite;
}

.about-badge span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .about-badge span {
  letter-spacing: 0;
  text-transform: none;
}

.about-badge strong {
  margin-block: 0.2rem;
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

html[data-theme="dark"] .about-badge strong {
  color: #8db7ff;
}

.about-lead {
  margin-block: 0;
}

.about-copy .section-title {
  margin-block: 1rem 1.2rem;
}

.check-list {
  display: grid;
  gap: 0.95rem;
  margin-block: 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.check-list strong {
  color: var(--ink);
  font-weight: 700;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  margin-block-start: 0.15rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-block-end: 0.75rem;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
}

html[data-theme="dark"] .mini-icon {
  background: rgba(47, 124, 255, 0.12);
  color: #8db7ff;
}

.mini-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-card h3 {
  margin-block-end: 0.3rem;
  font-size: 0.98rem;
}

html[lang="ar"] .mini-card h3 {
  font-size: 1.02rem;
}

.mini-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* ---------- 10. Services ---------- */
.services {
  background: var(--surface-2);
  overflow: clip;
}

.services-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 10%, rgba(47, 124, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 42% 40% at 92% 88%, rgba(249, 115, 22, 0.11), transparent 72%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-block-end: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head .section-title {
  margin-block-start: 1rem;
}

.section-head .section-lead {
  max-width: 40ch;
  padding-block-end: 0.35rem;
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

/* An expanded service takes the whole row; the other cards flow underneath. */
.service-card.is-expanded,
.service-card:has(.service-details[open]) {
  grid-column: 1 / -1;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset-block-start: -90px;
  inset-inline-end: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 124, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.35rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--brand-50), rgba(47, 124, 255, 0.12));
  color: var(--brand-600);
  transition: transform 0.28s ease, background-color 0.28s ease;
}

html[data-theme="dark"] .service-icon {
  background: linear-gradient(145deg, rgba(47, 124, 255, 0.16), rgba(124, 58, 237, 0.12));
  color: #8db7ff;
}

.service-card:hover .service-icon {
  transform: translateY(-3px) rotate(-3deg);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-num {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.service-card h3 {
  margin-block-end: 0.55rem;
  font-size: 1.15rem;
}

html[lang="ar"] .service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  margin-block-end: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-block-start: auto;
  color: var(--brand-600);
  font-size: 0.82rem;
  font-weight: 700;
  transition: gap 0.22s ease, color 0.22s ease;
}

html[data-theme="dark"] .service-link {
  color: #8db7ff;
}

.service-link .icon {
  width: 16px;
  height: 16px;
}

.service-link:hover {
  gap: 0.7rem;
  color: var(--accent-600);
}

html[data-theme="dark"] .service-link:hover {
  color: var(--accent-400);
}

.services-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block-start: 2.25rem;
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--line);
}

.services-foot p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- 11. Testimonials ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.rating-score {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rating-score span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.rating-summary p {
  margin-block-start: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.stars {
  color: var(--accent-500);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.quote-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.quote-mark {
  position: absolute;
  inset-block-start: -0.6rem;
  inset-inline-end: 1.1rem;
  color: var(--brand-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.5rem;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}

.quote-card blockquote {
  position: relative;
  margin-block: 1rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

html[lang="ar"] .quote-card blockquote {
  line-height: 2;
  font-size: 0.98rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: auto;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.quote-author img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  object-fit: cover;
}

.quote-author span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-author strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.quote-author small {
  color: var(--muted);
  font-size: 0.74rem;
}

.quote-card-featured {
  border-color: transparent;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(47, 124, 255, 0.5), transparent 60%),
    linear-gradient(155deg, var(--brand-800), var(--brand-950));
  color: #dbe7ff;
  box-shadow: var(--shadow-md);
}

.quote-card-featured .quote-mark {
  color: #fff;
  opacity: 0.14;
}

.quote-card-featured blockquote {
  color: #eaf1ff;
}

.quote-card-featured .quote-author {
  border-block-start-color: rgba(255, 255, 255, 0.14);
}

.quote-card-featured .quote-author strong {
  color: #fff;
}

.quote-card-featured .quote-author small {
  color: #a9bde0;
}

.quote-card-featured .stars {
  color: var(--accent-400);
}

/* ---------- 12. Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 55% 60% at 85% 10%, rgba(47, 124, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 55% at 8% 90%, rgba(249, 115, 22, 0.16), transparent 70%),
    linear-gradient(155deg, var(--brand-900), var(--brand-950));
  color: #e8effc;
  overflow: clip;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact .section-title {
  margin-block: 1rem 1.2rem;
  color: #fff;
}

.contact .section-title .gradient-text {
  background: linear-gradient(100deg, #9dc0ff 0%, #c4b5fd 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.contact .section-lead {
  color: #aebfda;
}

.contact .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cfe0ff;
  box-shadow: none;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
  margin-block: 2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #a9c7ff;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list li > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.contact-list small {
  color: #93a8c8;
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-list strong {
  margin-block-start: 0.2rem;
  color: #f0f5ff;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
  background: var(--brand-600);
  color: #fff;
}

.contact .social-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d7e5ff;
}

.contact .social-btn:hover {
  border-color: var(--accent-500);
  background: var(--accent-500);
  color: #17120a;
}

.social-btn-light {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #d7e5ff;
}

.social-btn-light:hover {
  border-color: var(--accent-500);
  background: var(--accent-500);
  color: #17120a;
}

.contact-social {
  margin-block: 1.35rem 0.5rem;
}

.contact-social-label {
  display: block;
  margin-block-end: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact .contact-social-label {
  color: #d7e5ff;
}

.footer-social-label {
  display: block;
  margin-block: 1.1rem 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-map {
  position: relative;
  margin-block-start: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.contact-map img {
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.contact-map figcaption {
  position: absolute;
  inset-block-end: 0.8rem;
  inset-inline-start: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(5, 17, 38, 0.74);
  color: #eaf1ff;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-card {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.contact-card-head {
  margin-block-end: 1.4rem;
}

.contact-card-head h3 {
  margin-block-end: 0.35rem;
  font-size: 1.3rem;
}

html[lang="ar"] .contact-card-head h3 {
  font-size: 1.4rem;
}

.contact-card-head p {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html[lang="ar"] .field input,
html[lang="ar"] .field select,
html[lang="ar"] .field textarea {
  font-size: 0.95rem;
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(47, 124, 255, 0.14);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 38, 38, 0.55);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  flex: none;
  margin-block-start: 0.2rem;
  accent-color: var(--brand-600);
}

.form-note {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.form-status {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

html[data-theme="dark"] .form-status {
  color: #86efac;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(47, 124, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--brand-950), #030b18);
  color: #b9c8e2;
  padding-block-start: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block-end: clamp(2.25rem, 4vw, 3.25rem);
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h2 {
  margin-block-start: 0.8rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 4.5vw, 3.5rem);
}

.brand-light .brand-text strong {
  color: #fff;
}

.brand-light .brand-text small {
  color: #8da3c6;
}

.footer-brand p {
  max-width: 34ch;
  margin-block: 1.1rem 1.3rem;
  color: #93a8c8;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin-block-end: 1rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[lang="ar"] .footer-col h3 {
  font-size: 0.95rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col li,
.footer-col a {
  color: #93a8c8;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact a {
  display: inline-block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f93b5;
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: #93a8c8;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- 14. Back to top ---------- */
.to-top {
  position: fixed;
  inset-block-end: 1.35rem;
  inset-inline-end: 1.35rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 15. Content from the live site ---------- */
/* Hero: sectors served instead of placeholder avatars */
.hero-proof {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proof-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.proof-tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Sectors strip: pills rather than invented client logos */
.trust-logos {
  justify-content: flex-end;
  gap: 0.5rem;
}

.trust-logos li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

html[lang="ar"] .trust-logos li {
  font-family: var(--font-ar);
}

/* Service cards: full bullet lists available on demand */
.service-card > p {
  margin-block-end: 1rem;
}

.service-details {
  margin-block-start: auto;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--line);
}

.service-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--brand-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

html[data-theme="dark"] .service-details summary {
  color: #8db7ff;
}

.service-details summary .icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.service-details[open] summary .icon {
  transform: rotate(180deg);
}

.service-details-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.service-details ul {
  display: grid;
  gap: 0.55rem;
  margin-block-start: 0.9rem;
}

.service-details li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
}

html[lang="ar"] .service-details li {
  font-size: 0.88rem;
}

.service-details li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* Full-row expanded card uses the extra width instead of growing taller. */
.service-card.is-expanded .service-details-body,
.service-card:has(.service-details[open]) .service-details-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block-start: 0.35rem;
}

.service-card.is-expanded .service-details ul,
.service-card:has(.service-details[open]) .service-details ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.75rem;
  margin-block-start: 0;
}

@media (max-width: 760px) {
  .service-card.is-expanded .service-details-body,
  .service-card:has(.service-details[open]) .service-details-body {
    grid-template-columns: 1fr;
  }

  .service-card.is-expanded .service-details ul,
  .service-card:has(.service-details[open]) .service-details ul {
    grid-template-columns: 1fr;
  }
}

.service-page-btn {
  margin-block-start: 1rem;
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.85rem;
}

.services-cta {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
  box-shadow: var(--shadow-md);
}

.services-cta::before {
  background: linear-gradient(90deg, #fff, var(--accent-400));
}

.services-cta h3 {
  margin-block: 0.5rem 0.4rem;
  color: #fff;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
}

.services-cta p {
  max-width: 52ch;
  margin: 0;
  color: #cfe0ff;
  font-size: 0.92rem;
}

.services-cta .eyebrow {
  color: var(--accent-400);
}

.services-cta .btn {
  flex: none;
}

/* Branches */
.branches {
  background: var(--bg);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.branch-card.is-main {
  border-color: transparent;
  background: linear-gradient(150deg, var(--brand-800), var(--brand-900));
  box-shadow: var(--shadow-md);
}

.branch-card.is-soon {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.25rem;
}

.branch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
}

html[data-theme="dark"] .branch-icon {
  background: rgba(47, 124, 255, 0.16);
  color: #8db7ff;
}

.branch-card.is-main .branch-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.branch-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-tag {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.branch-card h3 {
  margin-block-end: 0.4rem;
  font-size: 1.45rem;
}

.branch-address {
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.branch-meta {
  display: grid;
  gap: 0.55rem;
  margin-block: 1.15rem 1.5rem;
}

.branch-meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.branch-meta a {
  color: inherit;
}

.branch-meta-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-600);
}

.branch-meta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: auto;
  color: var(--brand-600);
  font-size: 0.84rem;
  font-weight: 700;
}

.branch-link .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-card.is-main h3,
.branch-card.is-main .branch-tag {
  color: #fff;
}

.branch-card.is-main .branch-address,
.branch-card.is-main .branch-meta li {
  color: #cfdfff;
}

.branch-card.is-main .branch-meta-icon,
.branch-card.is-main .branch-link {
  color: var(--accent-400);
}

/* Projects */
.projects {
  background: var(--surface-2);
  overflow: clip;
}

.projects-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 90% 10%, rgba(249, 115, 22, 0.09), transparent 70%);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.project-media {
  position: relative;
  min-height: 340px;
  background: var(--brand-900);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-year {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-start: 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(4, 18, 38, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3.5vw, 3rem);
}

.project-body h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.project-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags li {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.project-body .btn {
  margin-block-start: 0.6rem;
}

/* News strip */
.news-band {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.news-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.news-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-600);
}

html[data-theme="dark"] .news-icon {
  background: rgba(47, 124, 255, 0.14);
  color: #8db7ff;
}

.news-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-copy {
  flex: 1;
}

.news-title {
  margin-block: 0.25rem;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
}

.news-copy p {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-inner .btn {
  flex: none;
}

/* Map is a link to the exact coordinates on the live site */
.contact-map {
  display: block;
}

.contact-map img {
  transition: transform 0.4s ease;
}

.contact-map:hover img {
  transform: scale(1.02);
}

.contact-map figcaption .icon {
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
}

/* ---------- 16. Reveal + motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2),
.testimonial-grid .reveal:nth-child(2) {
  --delay: 0.08s;
}

.services-grid .reveal:nth-child(3),
.testimonial-grid .reveal:nth-child(3) {
  --delay: 0.16s;
}

.services-grid .reveal:nth-child(4) {
  --delay: 0.06s;
}

.services-grid .reveal:nth-child(5) {
  --delay: 0.14s;
}

.services-grid .reveal:nth-child(6) {
  --delay: 0.22s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(1.06);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---------- 17. Responsive ---------- */
@media (min-width: 1001px) and (max-width: 1280px) {
  /* Seven navigation links leave less room for the desktop CTA */
  .header-cta {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }

  .header-inner {
    gap: 1rem;
  }

  .nav-link {
    padding-inline: 0.55rem;
    font-size: 0.86rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    font-size: 0.66rem;
  }
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 0.85rem var(--gutter) 1.35rem;
    overflow-y: auto;
    border-block-end: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header.nav-open .icon-menu {
    display: none;
  }

  .site-header.nav-open .icon-close {
    display: block;
  }

  .nav-link {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--surface-2);
  }

  .nav-cta {
    display: inline-flex;
    margin-block-start: 0.55rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-media {
    width: min(100%, 40rem);
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .about-copy {
    max-width: 46rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head .section-lead {
    max-width: 58ch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 46rem;
  }

  .contact-card {
    max-width: 44rem;
    width: 100%;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 70px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0;
  }

  .stat {
    padding-inline: 1rem;
  }

  .stat:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--line);
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .trust-logos {
    justify-content: flex-start;
    gap: 1.1rem 1.75rem;
  }

  .services-grid,
  .testimonial-grid,
  .branches-grid {
    grid-template-columns: 1fr;
  }

  .services-cta,
  .branch-card:last-child {
    grid-column: auto;
  }

  .services-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .news-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-inner .btn {
    width: 100%;
    justify-content: center;
  }

  .services-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .header-actions {
    gap: 0.4rem;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }

  /* 16px avoids the automatic zoom on focus in iOS Safari */
  .field input,
  .field select,
  .field textarea,
  html[lang="ar"] .field input,
  html[lang="ar"] .field select,
  html[lang="ar"] .field textarea {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .float-card {
    padding: 0.55rem 0.65rem;
  }

  .float-card-top {
    inset-inline-start: -0.35rem;
  }

  .float-card-bottom {
    inset-inline-end: -0.35rem;
  }

  .float-copy strong {
    font-size: 0.92rem;
  }

  .float-copy small {
    font-size: 0.62rem;
  }

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

  .about-detail {
    inset-inline-end: -0.5rem;
    border-width: 4px;
  }

  .about-badge {
    width: 88px;
    height: 88px;
    inset-inline-start: -0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 0.6rem;
  }
}

@media (max-width: 440px) {
  /* The wordmark would crowd the controls on the narrowest phones */
  .brand-text {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
