:root {
  --navy: #0B1F4B;
  --navy-2: #13306E;
  --blue: #1E63D6;
  --sky: #3B9BFF;
  --orange: #F47B20;
  --orange-2: #FF9442;
  --ink: #0F1B33;
  --muted: #5A6785;
  --line: #E3E8F2;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FC;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 75, .08);
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--navy); }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--navy); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: 700 13px var(--font-en); letter-spacing: .5px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  height: 40px; min-width: 48px; border-radius: 10px; cursor: pointer;
}
html[lang="en"] .lang-btn { font-family: var(--font-ar); font-size: 15px; }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.menu-btn {
  display: none; width: 42px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  font-size: 22px; cursor: pointer; align-items: center; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn i { font-size: 20px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(244, 123, 32, .3); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(59, 155, 255, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(244, 123, 32, .10), transparent 60%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
  padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #EAF2FF; color: var(--blue); font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 18px 0 16px; }
.accent { color: var(--orange); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: 15px; }
.hero-badges i { color: var(--blue); font-size: 20px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  width: min(400px, 100%); aspect-ratio: 1; border-radius: 32px; background: #fff;
  box-shadow: 0 30px 60px rgba(11, 31, 75, .12); display: grid; place-items: center; padding: 36px;
  border: 1px solid var(--line);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--navy);
  animation: float 6s ease-in-out infinite;
}
.chip i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #EAF2FF; color: var(--blue); font-size: 19px;
}
.chip-1 { top: 8%; inset-inline-start: -4%; }
.chip-2 { top: 46%; inset-inline-end: -6%; animation-delay: -2s; }
.chip-2 i { background: #FFF1E6; color: var(--orange); }
.chip-3 { bottom: 6%; inset-inline-start: 4%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.kicker {
  display: inline-block; color: var(--orange); font-weight: 800; font-size: 14px;
  letter-spacing: .5px; margin-bottom: 8px;
}
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.section-head h2, .contact-info h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: repeat(2, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCF5; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-size: 28px;
  margin-bottom: 18px;
}
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service.featured { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border-color: transparent; }
.service.featured h3 { color: #fff; }
.service.featured p { color: #C9D6F2; }
.service.featured .icon { background: var(--orange); }

.audience { padding: 32px; }
.aud-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.aud-head .icon { margin: 0; }
.audience h3 { font-size: 24px; }
.audience > p { color: var(--muted); }
.audience.dark { background: var(--navy); border-color: transparent; }
.audience.dark h3 { color: #fff; }
.audience.dark > p { color: #C9D6F2; }
.audience.dark .icon { background: var(--orange); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: "\ea5e"; font-family: "tabler-icons"; color: var(--orange); font-size: 20px; line-height: 1.4;
}
.audience.dark .checks li { color: #fff; }

.feature { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: var(--bg-alt); }
.feature i {
  font-size: 30px; color: var(--blue); background: #fff; width: 64px; height: 64px;
  border-radius: 50%; display: inline-grid; place-items: center; box-shadow: var(--shadow); margin-bottom: 14px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange); color: #fff; font: 800 18px var(--font-en); margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info > p { color: var(--muted); margin: 12px 0 24px; font-size: 17px; }
.info-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 12px;
}
a.info-card:hover { border-color: var(--blue); }
.info-card i {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--navy); color: #fff; font-size: 22px;
}
.info-card span { display: block; color: var(--muted); font-size: 13px; }
.info-card strong { color: var(--navy); font-size: 16px; word-break: break-all; }

.form { display: grid; gap: 16px; box-shadow: var(--shadow); position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 99, 214, .12);
}
.form .invalid { border-color: #D93025; }
.form .hp { position: absolute; inset-inline-start: 0; top: 0; padding: 0; border: 0; max-width: 1px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-msg { min-height: 1px; font-weight: 600; font-size: 15px; }
.form-msg.ok { color: #137333; }
.form-msg.err { color: #D93025; }

/* Footer */
.footer { background: var(--navy); color: #C9D6F2; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
.footer img { background: #fff; border-radius: 12px; padding: 4px; width: 48px; }
.footer a { color: #fff; font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .four, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; font-size: 14px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .nav {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .contact-grid, .two { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { width: min(300px, 80%); padding: 26px; }
  .chip { font-size: 12.5px; padding: 8px 12px; }
  .chip i { width: 28px; height: 28px; font-size: 16px; }
  .chip-1 { inset-inline-start: 0; }
  .chip-2 { inset-inline-end: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .header-inner { height: 66px; gap: 12px; }
  .nav { top: 66px; }
  .brand img { height: 44px; }
  .services-grid, .four, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .lead { font-size: 16.5px; }
  .card, .audience { padding: 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.form .lbl { display: block; }
.req { color: var(--orange); font-weight: 800; }

/* Compact service cards on phones (12 services) */
@media (max-width: 560px) {
  .services-grid { gap: 12px; }
  .service { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .service .icon { grid-row: span 2; width: 48px; height: 48px; font-size: 24px; border-radius: 12px; margin: 0; }
  .service h3 { font-size: 17px; margin-bottom: 2px; }
  .service p { font-size: 14.5px; }
}
