:root {
  --navy: #2c3077;
  --navy-2: #3a3f9c;
  --gold: #c9ad3c;
  --gold-dark: #94791b;
  --ink: #1d2033;
  --muted: #5c6075;
  --bg: #ffffff;
  --tint: #f6f3ec;
  --line: #e6e1d5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(44, 48, 119, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

.eyebrow {
  color: var(--gold-dark); font-weight: 600; font-size: .95rem; margin-bottom: .4em;
}

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-gold:hover { background: #d6bc55; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* الرأس */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 1.2rem; }
.brand small { color: var(--gold-dark); font-size: .85rem; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav .nav-cta { padding: 9px 22px; color: #1d1606; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* الواجهة */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 173, 60, .22), transparent 42%),
    linear-gradient(135deg, #1b1e52 0%, var(--navy) 55%, var(--navy-2) 100%);
  padding: clamp(56px, 9vw, 112px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px; padding: 12px 26px;
}
.hero-card li { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.hero-card li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-card svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: rgba(201, 173, 60, .18); stroke: var(--gold); }
.hero-card strong { display: block; font-size: 1.08rem; }
.hero-card span { color: rgba(255, 255, 255, .75); font-size: .95rem; }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* الأقسام */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .muted { color: rgba(255, 255, 255, .78); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.values { display: grid; gap: 14px; }
.values li {
  background: var(--tint); border-inline-start: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 22px;
}
.values strong { display: block; color: var(--navy); font-size: 1.1rem; }
.values span { color: var(--muted); }

.grid.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card svg { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--tint); color: var(--navy-2); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 32px; }
.steps li {
  counter-increment: step; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 20px 22px;
}
.steps li::before {
  content: counter(step); position: absolute; top: 16px; inset-inline-start: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 700;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chips li {
  padding: 9px 24px; border-radius: 999px;
  border: 1px solid rgba(201, 173, 60, .6); color: #fff; font-weight: 500;
}

details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold-dark); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* التواصل */
.contact-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-list li > span:first-child { display: block; color: var(--muted); font-size: .9rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; padding: 11px 14px; border: 1px solid #cfc9bb; border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy-2); border-color: transparent; }

/* التذييل */
.footer { background: #1b1e52; color: rgba(255, 255, 255, .8); padding: 40px 0 28px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--gold); }
.legal, .social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: #fff; }
.copy { flex-basis: 100%; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }

.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 16px; padding: 12px 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer { padding-bottom: 92px; }
  .grid.cards, .steps, .form { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.brand img { object-fit: contain; }
.logo-plate { background: #fff; border-radius: 12px; padding: 5px; }
