@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600&family=Noto+Naskh+Arabic:wght@500;600;700&display=swap");

:root {
  --bg: oklch(0.985 0.004 95);
  --surface: oklch(1 0 0);
  --fg: oklch(0.22 0.02 55);
  --muted: oklch(0.48 0.02 60);
  --border: oklch(0.90 0.015 90);
  --accent: oklch(0.72 0.10 85);
  --accent-deep: oklch(0.55 0.10 80);
  --success: oklch(0.55 0.12 150);
  --font-display: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px oklch(0.22 0.02 55 / 0.04);
  --shadow-md: 0 8px 28px oklch(0.22 0.02 55 / 0.07);
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-en {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--fg);
}

.nav-desktop a[aria-current="page"] {
  background: oklch(0.96 0.01 90);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: oklch(0.18 0.02 55);
  box-shadow: var(--shadow-sm), inset 0 1px 0 oklch(1 0 0 / 0.25);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: oklch(0.99 0.005 95);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: oklch(0.78 0.04 85);
  background: var(--surface);
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 0 1.25rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-mobile .btn {
  margin: 1rem 1.25rem 0;
  width: calc(100% - 2.5rem);
}

/* —— Eyebrow / labels —— */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* —— Hero —— */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, oklch(1 0 0) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.25rem;
  max-width: 16ch;
}

.hero-copy .lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.hero-panel-title {
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.trust-list {
  display: grid;
  gap: 1rem;
}

.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: oklch(0.98 0.01 90);
}

.trust-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 550;
  margin-bottom: 0.15rem;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-head.row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 1.25rem;
}

.section-head.row > div {
  max-width: 36rem;
}

.section-muted {
  background: oklch(0.97 0.006 95);
  border-block: 1px solid var(--border);
}

.section-dark {
  background: var(--fg);
  color: oklch(0.96 0.01 95);
}

.section-dark .section-head p,
.section-dark .muted {
  color: oklch(0.78 0.02 90);
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-dark .eyebrow::before {
  background: var(--accent);
}

/* —— Service cards —— */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.service-card:hover {
  border-color: oklch(0.82 0.04 85);
  box-shadow: var(--shadow-sm);
}

.service-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  background: var(--bg);
}

.service-card .icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.service-card .link {
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.service-card .link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.service-card:hover .link svg {
  transform: translateX(-3px);
}

/* —— Split / about band —— */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.split-visual img {
  width: min(100%, 320px);
  height: auto;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0.85rem 0 1rem;
}

.split-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 48ch;
  line-height: 1.7;
}

.checklist {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 1.75rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.95rem;
  font-weight: 500;
}

.checklist svg {
  width: 18px;
  height: 18px;
  color: var(--accent-deep);
  margin-top: 0.15rem;
}

/* —— Process —— */
.process-grid {
  display: grid;
  gap: 0;
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  padding: 1.5rem 1.35rem;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  display: grid;
  gap: 0.65rem;
}

.process-step:last-child {
  border-bottom: none;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.process-step p {
  color: oklch(0.78 0.02 90);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* —— Values / pillars —— */
.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.pillar:last-child {
  border-bottom: 1px solid var(--border);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.65;
}

/* —— CTA band —— */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.cta-box p {
  color: var(--muted);
  max-width: 42ch;
  margin-top: 0.5rem;
}

/* —— Contact form —— */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-meta {
  display: grid;
  gap: 1rem;
}

.contact-meta-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.contact-meta-item .icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
}

.contact-meta-item .icon svg {
  width: 16px;
  height: 16px;
}

.contact-meta-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  margin-bottom: 0.15rem;
}

.contact-meta-item span,
.contact-meta-item a {
  font-size: 0.92rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: oklch(0.72 0.08 85);
  box-shadow: 0 0 0 3px oklch(0.72 0.10 85 / 0.18);
}

.field-row {
  display: grid;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem;
  border: 1px solid oklch(0.75 0.08 150);
  background: oklch(0.97 0.03 150);
  border-radius: var(--radius);
  color: oklch(0.35 0.08 150);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* —— Service detail rows —— */
.service-detail {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:first-of-type {
  border-top: 1px solid var(--border);
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-detail p {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  color: var(--fg);
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted {
  color: var(--muted);
}

/* —— Responsive —— */
@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step {
    border-bottom: 1px solid oklch(1 0 0 / 0.08);
    border-inline-end: 1px solid oklch(1 0 0 / 0.08);
  }

  .process-step:nth-child(2n) {
    border-inline-end: none;
  }

  .process-step:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .pillar {
    padding: 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-inline-start: 1px solid var(--border);
  }

  .pillar:first-child {
    border-inline-start: none;
    padding-inline-start: 0;
  }

  .pillar:last-child {
    padding-inline-end: 0;
  }

  .service-detail {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions .btn-primary-mobile {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    border-bottom: none;
    border-inline-end: 1px solid oklch(1 0 0 / 0.08);
  }

  .process-step:nth-child(2n) {
    border-inline-end: 1px solid oklch(1 0 0 / 0.08);
  }

  .process-step:last-child {
    border-inline-end: none;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  .container {
    width: min(100% - 1.75rem, var(--max));
  }
}
