:root {
  --red: #E8342A;
  --red-light: #FFF0EF;
  --black: #0D0D0D;
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --border: #E4E3DF;
  --text-primary: #0D0D0D;
  --text-secondary: #6B6863;
  --text-muted: #A8A5A0;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =================== NAVBAR =================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0px; text-decoration: none;
}
.logo-mark { width: 75px; height: 75px; flex-shrink: 0; display: block; }
.logo-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  color: var(--black); letter-spacing: -0.5px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
}
.lang-btn {
  padding: 5px 11px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--text-muted);
  background: none; border: none; cursor: pointer; transition: all .15s;
}
.lang-btn.active { background: var(--black); color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none; border: none; transition: all .18s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #cc2e25; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--black); background: var(--surface); }

/* =================== HERO =================== */
.hero-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 5%; }
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 72px 0 56px; position: relative;
}
.hero-watermark {
  position: absolute; right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  opacity: 0.055; pointer-events: none; user-select: none;
  object-fit: contain;
}
body.ar .hero-watermark { right: auto; left: -40px; }
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 24px;
}
.eyebrow-line { width: 28px; height: 2px; background: var(--red); flex-shrink: 0; }
body.ar .eyebrow-line { display: none; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700; line-height: 1.04;
  letter-spacing: -2px; color: var(--black); margin-bottom: 22px;
}
body.ar .hero h1 {
  font-family: var(--font-arabic);
  letter-spacing: 0; font-size: clamp(38px, 6vw, 66px);
}
.hero h1 .highlight { color: var(--red); }
.hero-desc {
  font-size: 17px; line-height: 1.68;
  color: var(--text-secondary);
  max-width: 520px; margin-bottom: 36px; font-weight: 300;
}
body.ar .hero-desc { font-family: var(--font-arabic); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lg { padding: 13px 24px; font-size: 15px; font-weight: 500; border-radius: 10px; }

/* =================== STATS =================== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 22px 5%; display: flex; align-items: center;
}
.stat-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
  padding-left: 32px; margin-left: 32px;
}
body.ar .stat-item + .stat-item {
  border-left: none; border-right: 1px solid var(--border);
  padding-left: 0; margin-left: 0;
  padding-right: 32px; margin-right: 32px;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--black); white-space: nowrap;
}
.stat-desc { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
body.ar .stat-desc { font-family: var(--font-arabic); }

/* =================== SECTION BASE =================== */
.section { max-width: var(--max-w); margin: 0 auto; padding: 88px 5%; }
.section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
body.ar .section-label { font-family: var(--font-arabic); letter-spacing: 0; }
.section-h {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  letter-spacing: -1px; color: var(--black);
  line-height: 1.1; margin-bottom: 48px;
}
body.ar .section-h { font-family: var(--font-arabic); letter-spacing: 0; }

/* =================== HOW IT WORKS =================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
body.ar .steps-grid { direction: rtl; }
.step-item {
  background: var(--surface); padding: 36px 32px;
  border-right: 1px solid var(--border); transition: background .2s;
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: #FDFCFB; }
body.ar .step-item { border-right: none; border-left: 1px solid var(--border); }
body.ar .step-item:last-child { border-left: none; }
.step-number {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700;
  color: var(--red); opacity: .1; line-height: 1; margin-bottom: 20px;
}
.step-title-text {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--black); margin-bottom: 10px;
}
body.ar .step-title-text { font-family: var(--font-arabic); }
.step-desc { font-size: 14px; line-height: 1.72; color: var(--text-secondary); }
body.ar .step-desc { font-family: var(--font-arabic); }

/* =================== CARDS =================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(232,52,42,.08);
  transform: translateY(-3px);
}
.card-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 20px;
}
.card-badge {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--red); margin-bottom: 8px;
}
body.ar .card-badge { font-family: var(--font-arabic); letter-spacing: 0; }
.card-h {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--black); margin-bottom: 10px; line-height: 1.25;
}
body.ar .card-h { font-family: var(--font-arabic); }
.card-p { font-size: 14px; line-height: 1.72; color: var(--text-secondary); }
body.ar .card-p { font-family: var(--font-arabic); }

/* =================== FORM SECTION =================== */
.form-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 88px 5%;
}
.form-layout {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 88px; align-items: start;
}
/* Keep form/sidebar side assignment stable per language direction on desktop */
@media (min-width: 901px) {
  html[dir="ltr"] .form-layout { direction: ltr; }
  html[dir="ltr"] .form-layout > .form-sidebar { grid-column: 1; }
  html[dir="ltr"] .form-layout > #form-area { grid-column: 2; }

  html[dir="rtl"] .form-layout { direction: rtl; }
  html[dir="rtl"] .form-layout > .form-sidebar { grid-column: 1; }
  html[dir="rtl"] .form-layout > #form-area { grid-column: 2; }
}
.form-sidebar { position: sticky; top: 88px; }
.form-sidebar .section-h { margin-bottom: 14px; }
.form-sidebar-sub {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary); margin-bottom: 32px;
}
body.ar .form-sidebar-sub { font-family: var(--font-arabic); }
.perks-list { display: flex; flex-direction: column; gap: 10px; }
.perk-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.55;
}
body.ar .perk-row { font-family: var(--font-arabic); }
.perk-dot {
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%; background: var(--red); margin-top: 6px;
}

/* The form */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgroup { display: flex; flex-direction: column; gap: 5px; }
.fgroup label {
  font-size: 12.5px; font-weight: 500; color: var(--text-primary);
}
body.ar .fgroup label { font-family: var(--font-arabic); }
.fgroup input, .fgroup textarea {
  font-family: var(--font-body); font-size: 14px; color: var(--text-primary);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 11px 13px; outline: none; resize: none;
  transition: border-color .18s, box-shadow .18s;
}
body.ar .fgroup input, body.ar .fgroup textarea { font-family: var(--font-arabic); }
.fgroup input:focus, .fgroup textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(13,13,13,.06);
}
.fgroup input::placeholder, .fgroup textarea::placeholder { color: var(--text-muted); }
.btn-submit {
  width: 100%; justify-content: center;
  padding: 14px 24px; font-size: 15px; font-weight: 600; border-radius: 10px;
  background: var(--red); color: #fff; border: none;
  font-family: var(--font-body); cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: all .18s;
}
body.ar .btn-submit { font-family: var(--font-arabic); }
.btn-submit:hover { background: #cc2e25; transform: translateY(-1px); }
.form-fine { font-size: 12px; color: var(--text-muted); text-align: center; }
body.ar .form-fine { font-family: var(--font-arabic); }

/* TidyCal container */
.tidycal-box {
  display: none; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.tidycal-box.show { display: block; }
.tidycal-top {
  display: flex; align-items: center; gap: 10px;
  background: var(--black); padding: 14px 20px;
}
body.ar .tidycal-top { flex-direction: row-reverse; }
.tidycal-top-text { font-size: 13.5px; font-weight: 500; color: #fff; }
body.ar .tidycal-top-text { font-family: var(--font-arabic); }
.tidycal-body { min-height: 200px; background: var(--bg); }
.thanks-inner { padding: 48px 32px; text-align: center; }
.thanks-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.thanks-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px;
}
body.ar .thanks-title { font-family: var(--font-arabic); }
.thanks-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
body.ar .thanks-sub { font-family: var(--font-arabic); }

/* =================== FOOTER =================== */
.footer {
  background: var(--black); padding: 28px 5%;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: #fff;
}
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,.35); }
body.ar .footer-copy { font-family: var(--font-arabic); }

/* =================== REVEAL =================== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-right: none; border-bottom: 1px solid var(--border); }
  .step-item:last-child { border-bottom: none; }
  body.ar .step-item { border-left: none; border-bottom: 1px solid var(--border); }
  body.ar .step-item:last-child { border-bottom: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-sidebar { position: relative; top: 0; }
  .form-row-2 { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; align-items: flex-start; }
  .stat-item + .stat-item {
    border-left: none; border-top: 1px solid var(--border);
    padding-left: 0; margin-left: 0;
    padding-top: 16px; margin-top: 16px;
  }
  body.ar .stat-item + .stat-item {
    border-right: none; border-top: 1px solid var(--border);
    padding-right: 0; margin-right: 0;
    padding-top: 16px; margin-top: 16px;
  }
  .hero-watermark { display: none; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .nav { padding: 0 4%; }
  .nav-actions .btn { display: none; }
  .section, .form-section { padding: 60px 4%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
