:root {
  --navy-950: #061a32;
  --navy-900: #0b2f5b;
  --navy-800: #0f427f;
  --cyan: #31abe1;
  --cyan-soft: #8ed8f5;
  --white: #f4f8fb;
  --muted: #a6b1c0;
  --line: #5fc2ea33;
  --panel: #0b1e32ad;
  --radius: 8px;
  --shadow: 0 20px 50px #061a321f;
  --font-en: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-en);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
section { scroll-margin-top: 90px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 5vw;
  background: #061a32ee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--cyan); }
.header-side { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.lang-toggle button {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-weight: 700; cursor: pointer; padding: 4px 2px;
}
.lang-toggle button.active { color: var(--cyan); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-soft); color: var(--navy-950); }
.btn-outline { border-color: var(--line); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-compact { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 620px;
  display: flex; align-items: center;
  padding: 90px 5vw 70px;
  background:
    radial-gradient(900px 500px at 85% 10%, #0f427f66, transparent 60%),
    radial-gradient(700px 420px at 10% 90%, #31abe122, transparent 60%),
    var(--navy-950);
}
.hero-content { max-width: 900px; }
.eyebrow {
  display: inline-block; color: var(--cyan);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 18px;
}
.accent { color: var(--cyan); }
.hero-body { font-size: 1.2rem; color: var(--muted); margin: 22px 0 34px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pillars { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.pillar {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.88rem; color: var(--muted); font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: 84px 5vw; max-width: 1400px; margin: 0 auto; }
.section-alt { background: var(--panel); max-width: none; }
.section-alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 780px; margin-bottom: 46px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.fine { font-size: 0.85rem; color: var(--muted); }

.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-v { font-size: 2.6rem; font-weight: 800; color: var(--cyan); }
.stat-l { color: var(--muted); font-size: 0.95rem; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { border-color: #5fc2ea66; }
.card-tag { color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.service-n { font-size: 1.6rem; font-weight: 800; color: var(--cyan); opacity: .8; }
.brochure-card { padding: 0; overflow: hidden; }
.brochure-cover img { width: 100%; height: 210px; object-fit: cover; }
.brochure-card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.brochure-card .card-body p { color: var(--muted); font-size: 0.95rem; }
.project-value { font-size: 1.9rem; font-weight: 800; color: var(--cyan); }
.project-label { color: var(--muted); font-size: 0.85rem; margin-top: -8px; }
.project-role { font-size: 0.9rem; color: var(--cyan-soft); }
.team-card { flex-direction: row; align-items: flex-start; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); flex-shrink: 0; }
.team-role { color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.team-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- water roles ---------- */
.role-note { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.role-note > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.role-note strong { color: var(--cyan); }
.role-note p { color: var(--muted); margin-top: 6px; }
.role-note .fine { grid-column: 1 / -1; }
.tags { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-step { border-top: 2px solid var(--cyan); padding-top: 18px; }
.process-step .process-n { color: var(--cyan); font-weight: 800; font-size: 1.1rem; }
.process-step h3 { margin: 8px 0 6px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- tools ---------- */
.tool-section .section-head { margin-bottom: 30px; }
.tool-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  background: var(--navy-950); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.tool-form .btn { justify-self: start; }
.tool-result {
  margin-top: 26px; border: 1px solid var(--cyan);
  border-radius: var(--radius); padding: 30px; background: var(--panel);
}
.tool-result h3 { font-size: 1.5rem; }
.result-kicker { color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.result-reasons { margin: 16px 0; padding-inline-start: 20px; color: var(--muted); }
.result-reasons li { margin-bottom: 6px; }
.result-flag {
  border-inline-start: 3px solid var(--cyan); padding: 10px 16px;
  background: #31abe114; border-radius: 4px; margin: 14px 0; font-size: 0.95rem;
}
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.complementary { margin-top: 14px; color: var(--muted); }
.complementary strong { color: var(--white); }
.score-line { display: flex; align-items: baseline; gap: 14px; margin: 10px 0; }
.score-num { font-size: 3rem; font-weight: 800; color: var(--cyan); }
.band-text { font-size: 1.1rem; font-weight: 700; }
.gaps-list { margin: 12px 0; padding-inline-start: 20px; color: var(--muted); }
.brief-box {
  background: var(--navy-950); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-top: 16px; white-space: pre-wrap;
  font-family: ui-monospace, monospace; font-size: 0.88rem; color: var(--white);
  max-height: 320px; overflow: auto;
}

/* ---------- network ---------- */
.network-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; max-width: 900px; }
.network-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); }
.network-list li::before { content: '\221E  '; color: var(--cyan); font-weight: 800; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.contact-info p { margin-bottom: 14px; color: var(--muted); }
.contact-info strong { color: var(--white); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn, .contact-form .fine { grid-column: 1 / -1; justify-self: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 5vw; text-align: center; color: var(--muted); }
.footer-nav { display: flex; gap: 20px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.footer-nav a { color: var(--white); font-weight: 600; font-size: 0.92rem; }
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cyan); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; box-shadow: var(--shadow);
}
.wa-float:hover { background: var(--cyan-soft); color: var(--navy-950); }

/* ---------- reveal ---------- */
.section, .hero-content { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: var(--navy-950); flex-direction: column;
    padding: 20px 5vw; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; margin-inline-start: auto; }
  .header-side { margin-inline-start: 0; }
  .site-header { flex-wrap: wrap; }
  .grid-3, .grid-2, .process-steps, .tool-form, .contact-form, .role-note, .network-list { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .hero { min-height: auto; padding-top: 60px; }
}
