:root {
  --navy: #07182f;
  --navy-2: #0d2749;
  --steel: #6b7888;
  --line: #d9e1ea;
  --muted: #66758a;
  --paper: #f4f7fa;
  --white: #ffffff;
  --gold: #c99b42;
  --gold-2: #e4c16d;
  --ink: #0a1729;
  --shadow: 0 18px 42px rgba(7, 24, 47, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Arial", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
html[lang="ar"] body { font-family: "Cairo", "Arial", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 234, 0.78);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  max-width: 180px;
}
.brand-logo {
  display: block;
  width: clamp(146px, 14vw, 180px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 8px;
  color: #23344d;
  font-size: .86rem;
  border-bottom: 2px solid transparent;
}
.nav a.active, .nav a:hover { color: var(--navy); border-color: var(--gold); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 8px;
  cursor: pointer;
  min-width: 42px;
}
.lang-switch button.active { background: var(--navy); color: var(--white); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--navy); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 24, 47, .96), rgba(7, 24, 47, .68) 44%, rgba(7, 24, 47, .20)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
html[dir="rtl"] .hero::before {
  background-image: linear-gradient(270deg, rgba(7, 24, 47, .96), rgba(7, 24, 47, .68) 44%, rgba(7, 24, 47, .20)), var(--hero-image);
}
.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0 78px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 800;
  font-size: .92rem;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.05rem, 4.8vw, 4.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.btn.primary { background: var(--gold); color: #15110a; }
.btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.34); color: var(--white); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--line); }

.section { padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px); }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: var(--white); }
.container { width: min(1180px, 100%); margin: 0 auto; }
.section-head {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-bottom: 34px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.13;
}
.dark h2, .dark .section-head p { color: var(--white); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.media {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7,24,47,.2));
  pointer-events: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(7,24,47,.06);
}
.card h3 { margin: 0 0 8px; color: var(--navy); line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  background: #edf2f7;
  color: var(--navy);
  border-inline-start: 4px solid var(--gold);
  font-weight: 900;
}
.list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-inline-start: 28px;
  color: #33445c;
}
.dark .list li { color: rgba(255,255,255,.82); }
.list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  background: var(--gold);
}
.service-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.service-row b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold-2);
}
.service-row h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.service-row p { margin: 0; color: var(--muted); font-size: .94rem; }
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.process li {
  counter-increment: step;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; color: #23344d; font-weight: 800; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  min-height: 46px;
  background: #fbfcfe;
  color: var(--ink);
}
.form textarea { min-height: 118px; resize: vertical; }
.form .wide { grid-column: 1 / -1; }
.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  background: var(--navy);
  color: var(--white);
}
.contact-strip p { margin: 0; color: rgba(255,255,255,.78); }
.footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: #051225;
  color: var(--white);
}
.footer p, .footer small { color: rgba(255,255,255,.68); margin: 8px 0 0; }
.footer-contact { display: grid; gap: 8px; justify-items: end; }
.footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.whatsapp {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--white);
  background: #16794b;
  box-shadow: var(--shadow);
  font-weight: 900;
}
.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7,24,47,.92), rgba(7,24,47,.58)), var(--page-image);
  background-size: cover;
  background-position: center;
}
html[dir="rtl"] .page-hero::before {
  background-image: linear-gradient(270deg, rgba(7,24,47,.92), rgba(7,24,47,.58)), var(--page-image);
}
.page-hero .container { position: relative; padding-bottom: 56px; }
.page-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.1rem, 4vw, 4.5rem); line-height: 1.08; }
.page-hero p { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.84); font-size: 1.08rem; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; justify-self: end; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    padding: 14px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav { display: grid; justify-content: stretch; }
  .nav a { padding: 12px; border: 1px solid var(--line); }
  .lang-switch { justify-self: end; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .service-table { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 70px;
  }
  .brand { min-width: 0; }
  .brand-logo {
    width: min(184px, calc(100vw - 118px));
    max-height: 54px;
  }
  .lang-switch { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .nav { inset-block-start: 118px; }
  .hero { min-height: 640px; }
  .hero-content { padding: 72px 0 58px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .process { grid-template-columns: 1fr; }
  .media { min-height: 280px; }
  .form { grid-template-columns: 1fr; }
  .contact-strip, .footer { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; }
}
