:root {
  --navy: #0f172a;
  --teal: #14b8a6;
  --purple: #7c3aed;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft-teal: rgba(20, 184, 166, 0.12);
  --soft-purple: rgba(124, 58, 237, 0.11);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Alexandria", Tahoma, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand small {
  display: block;
  margin-top: -5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  background: #eef2ff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.btn-secondary {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.btn-ghost {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  color: #fff;
  background: #1e293b;
  border-color: #1e293b;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 64px 0 38px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.11), rgba(124, 58, 237, 0.09)),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  color: #0f766e;
  background: var(--soft-teal);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #475569;
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.hero-visual img {
  width: min(520px, 100%);
  filter: drop-shadow(0 30px 55px rgba(15, 23, 42, 0.18));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.section-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: #475569;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #050505;
  background: transparent;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p {
  margin: 0 0 18px;
  color: #475569;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #050505;
  font-weight: 900;
}

.text-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.page-hero {
  padding: 76px 0 54px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.11), rgba(124, 58, 237, 0.09)),
    var(--bg);
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 48px;
}

.services-hero-grid h1 {
  max-width: 760px;
}

.services-hero-mark {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.services-hero-mark span,
.services-hero-mark strong {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 8px;
  font-weight: 900;
}

.services-hero-mark span:nth-child(1) {
  color: #fff;
  background: var(--navy);
}

.services-hero-mark span:nth-child(2) {
  color: #fff;
  background: var(--teal);
}

.services-hero-mark span:nth-child(3) {
  color: #fff;
  background: var(--purple);
}

.services-hero-mark strong {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 26px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.tab-btn.active {
  color: #fff;
  border-color: transparent;
  background: var(--navy);
}

.tab-panel[hidden] {
  display: none;
}

.track-heading {
  margin-bottom: 24px;
  padding: 24px;
  border-right: 4px solid var(--teal);
  background: rgba(20, 184, 166, 0.06);
}

.consulting-track {
  border-right-color: var(--purple);
  background: rgba(124, 58, 237, 0.06);
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-toggle,
.service-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: right;
  cursor: pointer;
}

.service-heading {
  cursor: default;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
}

.service-title .icon-box {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

.chevron {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.chevron svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.service-card.open .chevron {
  transform: rotate(180deg);
}

.service-body {
  display: block;
  padding: 0 22px 22px;
}

.services-list {
  grid-template-columns: 1fr;
}

.service-summary {
  margin-bottom: 20px;
}

.service-body h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.subservice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
}

.subservice-item {
  display: grid;
  gap: 3px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.subservice-item:hover {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.04);
}

.subservice-item strong {
  font-size: 15px;
}

.subservice-item span {
  color: var(--muted);
  font-size: 14px;
}

.subservice-item small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 800;
}

.subservice-item small svg {
  width: 14px;
  height: 14px;
}

.service-cta {
  width: 100%;
}

.decision-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.services-final-cta {
  padding-top: 0;
  background: #fff;
}

.cta-panel {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.cta-panel .section-kicker {
  color: #5eead4;
}

.cta-panel p:not(.section-kicker) {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: start;
}

.info-panel {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.info-panel p {
  color: #cbd5e1;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 184, 166, 0.18);
  border-color: var(--teal);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.values-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-content {
  max-width: 880px;
}

.legal-content h2 {
  margin-top: 34px;
}

.site-footer {
  padding: 42px 0 24px;
  color: #cbd5e1;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer a {
  color: #e2e8f0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  color: #94a3b8;
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #1daf55;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    inset-inline: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .services-hero-grid,
  .form-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-hero-mark {
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 310px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .metric-strip,
  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .services-hero-mark {
    padding: 12px;
  }

  .services-hero-mark span,
  .services-hero-mark strong {
    min-height: 88px;
  }

  .subservice-list {
    grid-template-columns: 1fr;
  }

  .decision-band {
    display: block;
  }

  .decision-band .section-actions {
    margin-top: 22px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    display: block;
  }

  .btn {
    width: 100%;
  }
}
