:root {
  --ink: #14201c;
  --ink-soft: #3d4f48;
  --muted: #5f7269;
  --paper: #f3f6f2;
  --paper-2: #e7efe8;
  --line: rgba(20, 32, 28, 0.12);
  --accent: #c43b2a;
  --accent-deep: #9a2d20;
  --sea: #1f6b5c;
  --sea-soft: #d7ebe4;
  --sand: #d9c4a0;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 32, 28, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 107, 92, 0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(196, 59, 42, 0.1), transparent 50%),
    linear-gradient(180deg, #f7faf7 0%, var(--paper) 40%, #eef4f0 100%);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-deep);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand span {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.disclosure {
  background: #fff8f1;
  border-bottom: 1px solid rgba(196, 59, 42, 0.18);
  color: #5a3a2a;
  font-size: 0.9rem;
}

.disclosure .container {
  padding-block: 0.7rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 24, 0.18) 0%, rgba(12, 28, 24, 0.72) 70%, rgba(12, 28, 24, 0.9) 100%),
    url("assets/hero.svg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  animation: rise 0.9s ease 0.12s both;
}

.hero p {
  margin: 0 0 1.6rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  animation: rise 0.9s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-solid {
  background: var(--sea);
  color: var(--white);
}

.btn-solid:hover {
  background: #185447;
  color: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--sea);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.panel p,
.panel li {
  color: var(--ink-soft);
}

.panel ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.panel li + li {
  margin-top: 0.45rem;
}

.operators {
  display: grid;
  gap: 1.1rem;
}

.operator {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.operator-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.operator h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 700;
}

.operator p {
  margin: 0;
  color: var(--ink-soft);
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-block {
  padding: 1.35rem 1.35rem 1.5rem;
  border-top: 3px solid var(--sea);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 239, 232, 0.55));
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.service-block p {
  margin: 0;
  color: var(--ink-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  background: #1f3d36;
  color: var(--white);
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 22%;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  margin-top: 0.2rem;
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.contact-box {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.8rem;
}

.contact-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-banner {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.2fr auto;
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-banner p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-inline-start: 1.2rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #12201c;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer a {
  color: #d7ebe4;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 900px) {
  .split,
  .contact-box,
  .footer-grid,
  .grid-3,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

  .hero {
    min-height: 78vh;
  }

  .compare-wrap {
    overflow-x: auto;
  }

  .compare-table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-brand,
  .hero h1,
  .hero p,
  .cta-row {
    animation: none;
  }
}
