/* ===== Fonts ===== */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/almarai-400.woff2") format("woff2");
}
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/almarai-700.woff2") format("woff2");
}
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/almarai-800.woff2") format("woff2");
}

/* ===== Design tokens ===== */
:root {
  --navy: #0e2a4d;
  --navy-deep: #0a2035;
  --orange: #f4791e;
  --orange-dark: #d9660f;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --ink: #1c2b3a;
  --muted: #5b6b7c;
  --border: #e4e8ee;
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1180px;
  --font: "Almarai", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
}

h1, h2, h3, h4 { font-weight: 800; color: var(--navy); margin: 0 0 .6em; line-height: 1.4; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 72px; }
.section-tight { padding-block: 40px; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.section-head p { font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ===== Icon badge ===== */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(10,32,53,.08);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .main-nav a { padding: 14px 18px; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* ===== Diagonal stripes (brand motif) ===== */
.stripes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.stripes span {
  position: absolute;
  width: 46px;
  height: 220%;
  top: -60%;
  background: var(--orange);
  transform: rotate(-20deg);
  opacity: .9;
}
.stripes span:nth-child(1) { inset-inline-end: 6%; background: var(--navy); width: 90px; }
.stripes span:nth-child(2) { inset-inline-end: 15%; }
.stripes span:nth-child(3) { inset-inline-end: 20%; width: 20px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  padding-block: 72px;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; }
}
.hero-tag { color: var(--orange); font-weight: 800; margin-bottom: 10px; display: block; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero p.lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,42,77,.15), rgba(14,42,77,.55));
}
.hero-badge {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(10,32,53,.2);
  font-weight: 800;
  color: var(--navy);
}
.hero-badge span { display: block; color: var(--orange); font-size: 1.4rem; }

/* ===== Navy band / dark section ===== */
.band-navy {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: rgba(255,255,255,.78); }

/* ===== Icon + heading item (matches PDF's من نحن / رسالتنا pattern) ===== */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.feature-row h3 { margin-bottom: 6px; }
.feature-row:last-child { margin-bottom: 0; }

/* ===== Cards grid ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  background: var(--navy-deep);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  border-inline-start: 4px solid var(--orange);
}
.value-card .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  opacity: .5;
  margin-bottom: 10px;
}
.value-card h3 { color: var(--white); }
.value-card p { color: rgba(255,255,255,.75); margin: 0; }

.goal-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.goal-card .icon-badge { margin-bottom: 16px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.info-card:hover { box-shadow: 0 16px 30px rgba(10,32,53,.1); transform: translateY(-3px); }

/* ===== Services (departments) ===== */
.dept {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.dept-head {
  background: var(--navy);
  color: var(--white);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dept-head .icon-badge { background: rgba(255,255,255,.1); border-color: var(--orange); }
.dept-head h3 { color: var(--white); margin: 0; }
.dept-body {
  padding: 28px;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .dept-body { grid-template-columns: 1fr 1fr; } }
.dept-col h4 {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.dept-col ul li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}
.dept-col ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-deep); }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-list .icon-badge { width: 42px; height: 42px; background: rgba(255,255,255,.08); }
.contact-list a, .contact-list span { color: var(--white); font-weight: 700; }

.form-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,121,30,.15);
}
.hp-field { position: absolute; inset-inline-start: -9999px; }
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 700; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e8f6ee; color: #1a7d43; }
.form-msg.err { background: #fdeceb; color: #c0392b; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer a:hover { color: var(--orange); }
.footer-list li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: .9rem;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding-block: 56px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 640px; }
.breadcrumb { color: var(--orange); font-weight: 700; margin-bottom: 10px; display: block; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== Temporary phase-1 link lock (remove when all pages are approved) ===== */
body[data-links-locked] a:not([data-enabled]) { cursor: default; }
