:root {
  --navy-950: #071426;
  --navy-900: #0b1f3a;
  --navy-800: #12345b;
  --blue-700: #175aa8;
  --blue-600: #2474c7;
  --gold-600: #a98233;
  --gold-500: #c39a45;
  --green-600: #128c4a;
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf0;
  --surface: #f5f8fc;
  --white: #fff;
  --shadow-sm: 0 8px 24px rgba(7, 20, 38, .08);
  --shadow-md: 0 18px 44px rgba(7, 20, 38, .13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); line-height: 1.35; }
p { color: var(--muted); }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; right: 16px; z-index: 9999; background: var(--navy-950); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--blue-700); font-weight: 800; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.section { padding: 64px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cbd5e1; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 6vw, 2.75rem); }
.section-head p { max-width: 700px; margin-bottom: 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(231,234,240,.9); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; flex: 1 1 auto; align-items: center; gap: 9px; min-width: 0; overflow: hidden; }
.brand img { width: 50px; height: 50px; flex: 0 0 50px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-title { display: block; max-width: 230px; color: var(--navy-950); font-size: clamp(.7rem, 3.2vw, .82rem); font-weight: 900; line-height: 1.35; white-space: normal; }
.brand-tag { display: block; color: var(--gold-600); font-size: .68rem; font-weight: 700; }
.menu-toggle { width: 46px; height: 46px; display: grid; flex: 0 0 46px; place-items: center; margin-inline-start: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy-950); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; transition: .25s ease; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; right: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.main-nav { position: fixed; inset: 73px 0 76px; padding: 22px 16px; background: #fff; transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; }
.main-nav.open { transform: translateX(0); box-shadow: var(--shadow-md); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 14px 8px; color: var(--navy-950); border-bottom: 1px solid var(--line); font-weight: 700; }
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] { color: var(--blue-700); }
.desktop-call { display: none !important; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { color: #fff; background: var(--blue-700); }
.btn-primary:hover { background: var(--navy-800); }
.btn-outline { color: var(--navy-900); background: #fff; border-color: #cfd6e2; }
.btn-gold { color: var(--navy-950); background: var(--gold-500); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }

/* Hero */
.hero { position: relative; min-height: 640px; display: grid; align-items: end; overflow: hidden; background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,14,28,.12) 0%, rgba(5,14,28,.82) 64%, rgba(5,14,28,.98) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 72px 48px; color: #fff; }
.hero .eyebrow { color: #f0cf89; }
.hero h1 { max-width: 780px; margin-bottom: 18px; color: #fff; font-size: clamp(2rem, 8.5vw, 4.5rem); }
.hero p { max-width: 680px; margin-bottom: 26px; color: #e2e8f0; font-size: 1.05rem; }
.hero .btn-outline { background: rgba(255,255,255,.96); }
.trust-strip { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #eef2f6; font-size: .9rem; font-weight: 700; }
.trust-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 5px rgba(195,154,69,.15); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { position: relative; overflow: hidden; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(7,20,38,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd6e5; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; color: var(--blue-700); background: #eaf3ff; }
.card-icon svg { width: 27px; height: 27px; fill: currentColor; }
.card h3 { margin-bottom: 8px; font-size: 1.13rem; }
.card p { margin-bottom: 0; font-size: .94rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--blue-700); font-weight: 800; }
.image-card { padding: 0; }
.image-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.image-card-body { padding: 22px; }
.image-card-body p:last-child { margin-bottom: 0; }

/* Split layouts */
.split { display: grid; gap: 30px; align-items: center; }
.split-media { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media img { width: 100%; min-height: 350px; object-fit: cover; }
.split-content h2 { font-size: clamp(1.7rem, 6vw, 2.8rem); }
.check-list { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-right: 28px; color: #344054; font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--blue-700); font-weight: 900; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.stat { padding: 18px 12px; text-align: center; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; color: var(--navy-950); font-size: 1.25rem; }
.stat span { color: var(--muted); font-size: .82rem; }

/* Inner page */
.page-hero { padding: 58px 0 46px; color: #fff; background: radial-gradient(circle at 15% 10%, #1e4f83 0, transparent 34%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: #cbd5e1; font-size: .86rem; }
.breadcrumbs a { color: #fff; }
.page-hero h1 { margin-bottom: 12px; color: #fff; font-size: clamp(2rem, 8vw, 3.7rem); }
.page-hero p { max-width: 720px; margin-bottom: 0; color: #d8e2ee; }
.service-detail { scroll-margin-top: 95px; }
.service-detail + .service-detail { margin-top: 20px; }
.service-detail h2 { font-size: 1.35rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 6px 11px; color: var(--navy-800); background: #edf4fc; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.notice { padding: 18px; border-right: 4px solid var(--gold-500); border-radius: 12px; background: #fff9ea; }
.notice p:last-child { margin-bottom: 0; }

/* Blog */
.blog-layout { display: grid; gap: 28px; }
.article-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.article-card + .article-card { margin-top: 20px; }
.article-card h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
.article-card h3 { margin-top: 24px; font-size: 1.15rem; }
.article-card p, .article-card li { color: #475467; }
.article-card ul, .article-card ol { padding-right: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; color: var(--muted); font-size: .8rem; }
.toc { position: sticky; top: 98px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.toc h2 { font-size: 1.1rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 8px 0; color: var(--blue-700); font-weight: 700; font-size: .9rem; }
.source-links { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ccd4df; font-size: .82rem; }
.source-links a { color: var(--blue-700); text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; }
.contact-item strong { display: block; color: var(--navy-950); }
.contact-item p { margin-bottom: 0; font-size: .92rem; }
.map { overflow: hidden; min-height: 410px; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 410px; display: block; border: 0; }
.contact-banner { position: relative; overflow: hidden; padding: 36px 22px; border-radius: var(--radius-lg); background: var(--navy-950); }
.contact-banner::after { content: ""; position: absolute; width: 220px; height: 220px; left: -80px; bottom: -120px; border-radius: 50%; background: rgba(195,154,69,.14); }
.contact-banner h2 { color: #fff; }
.contact-banner p { color: #d6deea; }

/* Footer */
.site-footer { background: #06111f; color: #fff; }
.footer-main { padding: 50px 0 28px; display: grid; gap: 30px; }
.footer-brand { max-width: 420px; }
.footer-brand img { width: 82px; border-radius: 14px; margin-bottom: 16px; }
.footer-brand h2, .footer-col h3 { color: #fff; }
.footer-brand p, .footer-col p { color: #b9c4d2; }
.footer-col h3 { margin-bottom: 12px; font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 5px 0; color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 18px 0 96px; border-top: 1px solid rgba(255,255,255,.12); color: #93a4b8; font-size: .78rem; }

/* Mobile sticky actions */
.mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1200; height: 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(7,20,38,.12); }
.mobile-actions a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border-radius: 13px; font-size: .86rem; font-weight: 900; }
.mobile-call { background: var(--blue-700); }
.mobile-whatsapp { background: var(--green-600); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 600px) {
  body { font-size: 17px; }
  .container { width: min(100% - 48px, var(--container)); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
  .hero { min-height: 680px; }
  .hero-content { padding-block: 105px 72px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .site-header { backdrop-filter: blur(14px); }
  body { padding-bottom: 0; }
  .section { padding: 92px 0; }
  .header-inner { min-height: 86px; }
  .brand { flex: 0 1 auto; overflow: visible; }
  .brand img { width: 64px; height: 64px; flex-basis: 64px; }
  .brand-title { max-width: none; font-size: .94rem; white-space: nowrap; }
  .brand-tag { font-size: .72rem; }
  .menu-toggle { display: none; }
  .main-nav { position: static; inset: auto; padding: 0; background: transparent; transform: none; overflow: visible; }
  .main-nav ul { display: flex; align-items: center; gap: 6px; }
  .main-nav a { padding: 10px 11px; border: 0; font-size: .88rem; }
  .desktop-call { display: inline-flex !important; padding: 10px 15px; font-size: .82rem; }
  .hero { min-height: 690px; align-items: center; }
  .hero-media img { object-position: center; }
  .hero-media::after { background: linear-gradient(90deg, rgba(5,14,28,.03) 28%, rgba(5,14,28,.26) 46%, rgba(5,14,28,.95) 100%); }
  .hero-content { padding-block: 100px; }
  .hero-content > * { max-width: 650px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 62px; }
  .split.reverse .split-media { order: 2; }
  .blog-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: stretch; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { padding-bottom: 18px; }
  .mobile-actions { display: none; }
}

@media (max-width: 359px) {
  .container { width: min(100% - 20px, var(--container)); }
  .header-inner { gap: 7px; }
  .brand { gap: 7px; }
  .brand img { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-title { font-size: .7rem; }
  .brand-tag { font-size: .62rem; }
  .menu-toggle { width: 43px; height: 43px; flex-basis: 43px; }
}

@media (min-width: 1200px) {
  .main-nav a { padding-inline: 14px; }
  .desktop-call { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
