:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #66736d;
  --line: #dbe2dd;
  --teal: #5b3fd6;
  --teal-dark: #362183;
  --gold: #c99a42;
  --soft: #eeeafb;
  --shadow: 0 20px 60px rgba(14, 28, 23, 0.13);
  --font-heading: Arial, "Noto Sans Arabic", sans-serif;
  --font-body: Inter, "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-number: "Arial Black", Arial, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

body[dir="rtl"] {
  text-align: right;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 245, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 226, 221, 0.75);
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-family: var(--font-number);
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(91, 63, 214, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong,
.hero h1,
.section h2,
.legal-page h1,
.service-card h3,
.steps h3,
summary {
  font-family: var(--font-heading);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #2e3a35;
  font-weight: 600;
  font-size: 14px;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  color: #fff;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 25, 20, 0.82) 0%, rgba(8, 25, 20, 0.62) 38%, rgba(8, 25, 20, 0.16) 78%);
}

body[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(8, 25, 20, 0.82) 0%, rgba(8, 25, 20, 0.62) 38%, rgba(8, 25, 20, 0.16) 78%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-inline: clamp(18px, 8vw, 96px);
  color: #fff;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
}

.hero h1,
.section h2,
.legal-page h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(40px, 6vw, 74px);
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.footer-links,
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 14px 30px rgba(91, 63, 214, 0.24);
  transform: translateY(-2px);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.button.wide {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(800px, 100%);
  margin: 46px 0 0;
}

.trust-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.trust-row div:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.trust-row dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-row dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 4vw, 56px);
  max-width: 100%;
  overflow-x: clip;
}

.intro,
.section-head,
.split,
.quote {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.section h2,
.legal-page h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin-bottom: 42px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px auto 0;
}

.intro-text,
.split-copy p,
.quote-copy p,
.legal-page p {
  color: var(--muted);
}

.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(14, 28, 23, 0.06);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91, 63, 214, 0.28);
  box-shadow: 0 24px 55px rgba(14, 28, 23, 0.14);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #8c78ff, var(--teal-dark));
  box-shadow: 0 14px 26px rgba(91, 63, 214, 0.25);
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.service-card h3,
.steps h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.service-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.quote-preview {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
  transition: transform 320ms ease, box-shadow 320ms ease;
  will-change: transform;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms ease;
}

.image-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(14, 28, 23, 0.18);
}

.image-panel:hover img {
  transform: scale(1.045);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.process {
  background: #f1eefc;
}

.steps {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.steps article:hover {
  transform: translateY(-7px);
  border-color: rgba(91, 63, 214, 0.26);
  box-shadow: 0 20px 46px rgba(14, 28, 23, 0.12);
}

.steps span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #8c78ff, var(--teal-dark));
  color: #fff;
  box-shadow: 0 14px 26px rgba(91, 63, 214, 0.25);
  font-family: var(--font-number);
  font-weight: 900;
}

.faq-list {
  width: min(860px, 100%);
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: transform 240ms ease, color 240ms ease;
}

details:hover {
  transform: translateX(4px);
}

body[dir="rtl"] details:hover {
  transform: translateX(-4px);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 19px;
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-lines {
  margin-top: 26px;
  flex-direction: column;
  font-weight: 800;
}

.quote-form {
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.quote-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(14, 28, 23, 0.17);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5cf;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

small {
  color: var(--muted);
  font-weight: 500;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 600;
}

.checkbox input {
  width: auto;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #17201c;
  color: #fff;
}

.site-footer p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0;
}

.site-footer .footer-credit {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  margin-top: 12px;
}

.footer-links {
  justify-content: flex-end;
  font-weight: 800;
}

.subpage .site-header {
  position: static;
}

.legal-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.legal-page .lead {
  font-size: 20px;
}

.legal-page section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-22px);
}

.reveal.reveal-right {
  transform: translateX(22px);
}

body[dir="rtl"] .reveal.reveal-left {
  transform: translateX(22px);
}

body[dir="rtl"] .reveal.reveal-right {
  transform: translateX(-22px);
}

.reveal.is-visible,
body[dir="rtl"] .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .language-switcher {
    justify-self: end;
  }

  .intro,
  .split,
  .quote,
  .quote-preview {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: rgba(8, 25, 20, 0.72);
  }

  body[dir="rtl"] .hero-overlay {
    background: rgba(8, 25, 20, 0.72);
  }

  .hero-content {
    padding: 48px 0;
  }

  .trust-row,
  .service-grid,
  .steps,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    justify-self: end;
  }

  .main-nav {
    border-top: 1px solid var(--line);
    gap: 0;
    padding: 8px 0 0;
  }

  .main-nav a {
    padding: 11px 0;
  }

  .language-switcher {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .language-switcher button {
    padding: 8px 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    margin-inline: 14px;
    padding: 72px 0 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
    margin-top: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .trust-row {
    margin-top: 26px;
  }

  .trust-row div,
  .service-card,
  .steps article,
  .quote-form {
    padding: 18px;
  }

  .service-icon,
  .steps span {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }

  .section {
    padding: 58px 14px;
  }

  .section-head {
    margin-bottom: 28px;
    text-align: start;
  }

  .section h2,
  .legal-page h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }

  .split,
  .quote {
    gap: 24px;
  }

  .image-panel img {
    aspect-ratio: 1 / 0.82;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .legal-page {
    width: min(100% - 28px, 900px);
    padding: 46px 0;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 32px;
  }

  .button {
    min-height: 46px;
    padding-inline: 14px;
  }

  .service-card h3,
  .steps h3 {
    font-size: 19px;
  }
}
