:root {
  --green-950: #0b2a1f;
  --green-900: #123b2c;
  --green-800: #1a4d3a;
  --green-600: #2f6b52;
  --beige-100: #f7f1e6;
  --beige-200: #efe5d2;
  --beige-300: #e2d2b4;
  --gold: #c6a46a;
  --white: #ffffff;
  --ink: #1d2a24;
  --muted: #5d6b63;
  --whatsapp: #1fa855;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(11, 42, 31, 0.45);
  --font-display: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige-100);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gold); color: var(--green-950); box-shadow: 0 12px 28px -14px rgba(198, 164, 106, 0.9); }
.btn--primary:hover { background: #d4b47c; }
.btn--primary:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #1a9149; }
.btn--ghost { border-color: rgba(239, 229, 210, 0.45); color: var(--beige-100); }
.btn--ghost:hover { background: rgba(239, 229, 210, 0.12); }
.btn--ghost-dark { border-color: var(--green-900); color: var(--green-900); }
.btn--ghost-dark:hover { background: var(--green-900); color: var(--beige-100); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { background: var(--whatsapp); border-color: var(--whatsapp); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding-inline-start: 2.2rem;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1.6rem;
  height: 1.5px;
  background: currentColor;
}

/* Header */
.topbar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  padding-block: 1.2rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--beige-100); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--beige-200);
  color: var(--green-900);
  font: 700 1.5rem/1 var(--font-display);
}
.brand__name { display: flex; flex-direction: column; font: 600 1.1rem/1.3 var(--font-display); }
.brand__name small { font: 400 0.78rem/1.4 var(--font-body); opacity: 0.75; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--beige-100);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(198, 164, 106, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(47, 107, 82, 0.55), transparent 60%),
    var(--green-900);
  padding: 8.5rem 0 5.5rem;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239, 229, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 229, 210, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
.hero h1 span { color: var(--beige-300); }
.hero .lead { font-size: 1.12rem; color: rgba(247, 241, 230, 0.82); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 2.6rem; }
.hero__stats {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 0;
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(239, 229, 210, 0.16);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font: 700 1.6rem/1.2 var(--font-display); color: var(--gold); }
.hero__stats span { font-size: 0.88rem; opacity: 0.75; }

.hero__card {
  background: var(--beige-100);
  color: var(--ink);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  position: relative;
}
.hero__card::before {
  content: '';
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1.5px solid rgba(198, 164, 106, 0.5);
  border-radius: 28px;
  z-index: -1;
}
.card-label { font: 600 1.15rem/1.4 var(--font-display); color: var(--green-900); margin-bottom: 1.2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--beige-200);
  font: 600 0.9rem/1 var(--font-body);
}
.steps strong { display: block; color: var(--green-900); }
.steps p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Services */
.services { padding: 6rem 0; background: var(--white); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3.2rem; }
.section-head .eyebrow { padding-inline: 2.2rem; }
.section-head .eyebrow::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: 1.6rem;
  height: 1.5px;
  background: currentColor;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--green-900); }
.section-head p { color: var(--muted); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service {
  background: var(--beige-100);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--beige-300); }
.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--gold);
  font: 700 1.3rem/1 var(--font-display);
  margin-bottom: 1.2rem;
}
.service h3 { font-size: 1.2rem; color: var(--green-900); margin-bottom: 0.5rem; }
.service p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Lead form */
.lead-section {
  padding: 6rem 0;
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  color: var(--beige-100);
}
.lead-section__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.lead-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.lead-section__copy > p { color: rgba(247, 241, 230, 0.8); font-size: 1.05rem; }
.eyebrow--light { color: var(--beige-300); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.7rem; }
.checks li { display: flex; align-items: center; gap: 0.7rem; }
.checks li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(198, 164, 106, 0.2);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}

.lead-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--green-900); }
.field input,
.field select {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--beige-100);
  border: 1.5px solid var(--beige-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.field input[dir='ltr'] { text-align: right; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23123b2c' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}
.field input::placeholder { color: #9aa49e; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-600);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 107, 82, 0.15);
}
.field input:user-invalid,
.field select:user-invalid { border-color: #b4483c; }
.hidden-field { position: absolute; left: -9999px; }
.form-note { margin: 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--green-950); color: rgba(247, 241, 230, 0.7); padding: 1.6rem 0; font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; }
.footer p { margin: 0; }
.footer a { color: var(--beige-300); text-decoration: none; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(31, 168, 85, 0.7);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* Thank-you page */
.thanks-page {
  min-height: 100vh;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(198, 164, 106, 0.18), transparent 70%),
    var(--green-900);
}
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.thanks__card {
  width: min(560px, 100%);
  background: var(--beige-100);
  border-radius: 28px;
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: rise 0.6s ease both;
}
.thanks__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--gold);
}
.thanks h1 { color: var(--green-900); font-size: clamp(1.6rem, 4vw, 2.1rem); }
.thanks p { color: var(--muted); }
.thanks__service {
  display: inline-block;
  background: var(--beige-200);
  color: var(--green-900);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.2rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .lead-section__grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 7rem 0 4rem; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 1.4rem; justify-content: space-between; }
  .hero__card { padding: 1.5rem; }
  .hero__card::before { display: none; }
  .services,
  .lead-section { padding: 4rem 0; }
  .services__grid { grid-template-columns: 1fr; }
  .lead-form { padding: 1.5rem; }
  .lead-section__copy .btn { width: 100%; text-align: center; }
  .brand__name small { display: none; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
