/* ===== نمو الأعمال — نظام التصميم (نموذج أولي) ===== */

@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/thmanyahsans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../fonts/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2D2D73;
  --navy-dark: #201F52;
  --navy-soft: #F1F3FC;
  --light-blue: #A2B9F6;
  --light-blue-deep: #7C93DE;
  --ink: #1E1E3F;
  --muted: #6A6D8C;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FD;
  --border: #E4E7F7;
  --success: #1E9E6B;
  --success-soft: #E8F7F0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(45, 45, 115, .06);
  --shadow-md: 0 12px 32px rgba(45, 45, 115, .12);
  --container: 1160px;
  --font: "Thmanyah Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

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

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--light-blue-deep);
  background: var(--navy-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-block-end: 14px;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.25; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.section-head { max-width: 640px; margin-block-end: 40px; }
.section-head p { color: var(--muted); margin-block-start: 10px; font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ===== Logo mark (icon) ===== */
.logo-mark { width: 34px; height: auto; flex-shrink: 0; }
.logo-mark .lm-dark { fill: var(--navy); }
.logo-mark .lm-accent { fill: var(--light-blue); }
.logo-mark--on-dark .lm-dark,
.logo-mark--on-dark .lm-accent { fill: #fff; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}
.brand--on-dark { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-outline--on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline--on-dark:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: .96rem;
}
.nav-links a { color: var(--ink); padding-block: 6px; border-block-end: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-block-end-color: var(--light-blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
}
.lang-switch:hover { background: var(--navy-soft); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: 100px 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -140px;
  inset-block-start: -80px;
  width: 640px;
  height: 640px;
  background-image: url("../img/pattern.svg");
  background-size: cover;
  opacity: .14;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 680px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.15rem; margin-block: 20px 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-block-start: 56px;
  padding-block-start: 32px;
  border-block-start: 1px solid rgba(255,255,255,.18);
}
.stat-strip .stat b { display: block; font-size: 1.4rem; font-weight: 900; color: var(--light-blue); }
.stat-strip .stat span { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ===== Service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 18px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-block-end: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-block-end: 16px; }
.service-card .service-link { font-weight: 700; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.service-card .service-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }
html[dir="rtl"] .service-card:hover .service-link svg { transform: translateX(-4px); }

/* ===== About teaser / CTA banner ===== */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-teaser p { color: var(--muted); font-size: 1.05rem; margin-block: 16px 22px; }
.about-visual {
  background: var(--navy-soft);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual .logo-mark { width: 140px; }

.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  inset-block-end: -100px;
  width: 380px;
  height: 380px;
  background-image: url("../img/pattern.svg");
  background-size: cover;
  opacity: .12;
}
.cta-banner h2 { color: #fff; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ===== Page header (inner pages) ===== */
.page-header {
  background: var(--navy-soft);
  padding-block: 56px;
  text-align: center;
}
.page-header .eyebrow { background: #fff; }
.page-header p { color: var(--muted); max-width: 560px; margin-inline: auto; margin-block-start: 12px; }

/* ===== About page ===== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.value-card .service-icon { margin-inline: auto; }
.value-card p { color: var(--muted); font-size: .92rem; margin-block-start: 8px; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  border-inline-start: 4px solid var(--light-blue);
}
.vm-card h3 { margin-block-end: 10px; }
.vm-card p { color: var(--muted); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--light-blue-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.team-card h3 { margin-block-end: 2px; }
.team-card .role { color: var(--light-blue-deep); font-weight: 700; font-size: .88rem; margin-block-end: 14px; display: block; }
.team-card p.bio { color: var(--muted); font-size: .93rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; }
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  inset-block-end: -60px;
  width: 260px;
  height: 260px;
  background-image: url("../img/pattern.svg");
  background-size: cover;
  opacity: .14;
}
.contact-info-card h3 { color: #fff; position: relative; z-index: 1; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-block-start: 22px; position: relative; z-index: 1; }
.contact-item .ci-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
.contact-item .ci-label { font-size: .8rem; color: rgba(255,255,255,.65); }
.contact-item .ci-value { font-weight: 700; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-block-end: 20px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-block-end: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--light-blue-deep);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.8rem;
}
.form-success p { color: var(--muted); margin-block-start: 8px; }

/* ===== Wizard ===== */
.wizard-shell { max-width: 760px; margin-inline: auto; }
.stepper {
  display: flex;
  justify-content: space-between;
  margin-block-end: 44px;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 15px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.step-dot .circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: var(--muted);
  transition: all .2s ease;
}
.step-dot span.label { font-size: .74rem; color: var(--muted); font-weight: 600; text-align: center; }
.step-dot.active .circle { border-color: var(--navy); background: var(--navy); color: #fff; }
.step-dot.active span.label { color: var(--navy); }
.step-dot.done .circle { border-color: var(--light-blue-deep); background: var(--light-blue); color: var(--navy); }

.wizard-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.wizard-step h2 { margin-block-end: 6px; }
.wizard-step .step-desc { color: var(--muted); margin-block-end: 28px; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-card:hover { border-color: var(--light-blue-deep); }
.option-card input { display: none; }
.option-card .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; }
.option-card input:checked ~ .dot { border-color: var(--navy); }
.option-card input:checked ~ .dot::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%; background: var(--navy);
}
.option-card:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.option-card .opt-title { font-weight: 700; font-size: .95rem; }
.option-card .opt-sub { font-size: .82rem; color: var(--muted); }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-block-start: 34px;
  padding-block-start: 26px;
  border-block-start: 1px solid var(--border);
}

.summary-list { display: grid; gap: 14px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block-end: 14px;
  border-block-end: 1px dashed var(--border);
  font-size: .95rem;
}
.summary-row .s-label { color: var(--muted); }
.summary-row .s-value { font-weight: 700; text-align: end; }

.wizard-success { text-align: center; padding-block: 20px; }
.wizard-success .check-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; font-size: 2.2rem;
}
.wizard-success p { color: var(--muted); max-width: 420px; margin-inline: auto; }
.ref-code { display: inline-block; margin-block-start: 18px; background: var(--bg-soft); padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--navy); }

.field-hint { font-size: .8rem; color: var(--muted); margin-block-start: -12px; margin-block-end: 18px; }
.error-msg { color: #C0392B; font-size: .82rem; margin-block-start: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: #C0392B; }
.field.invalid .error-msg { display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-block-end: 16px; }
.footer-grid p { font-size: .9rem; line-height: 1.8; margin-block-start: 14px; color: rgba(255,255,255,.65); }
.footer-links li { margin-block-end: 10px; }
.footer-links a { font-size: .92rem; color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-block-start: 40px;
  padding-block-start: 24px;
  border-block-start: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn span.long { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .wizard-card { padding: 26px 20px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .stepper .label { display: none; }
  .step-dot .circle { width: 26px; height: 26px; font-size: .75rem; }
  section { padding-block: 52px; }
}

/* mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .close-btn { background: none; border: none; font-size: 1.6rem; color: var(--navy); }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; margin-block-end: 34px; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 1.15rem; font-weight: 700; color: var(--navy); border-block-end: 1px solid var(--border); }
.mobile-nav .lang-switch { margin-block-start: 20px; display: inline-block; }
