:root {
  --blue-950: #08265f;
  --blue-900: #103778;
  --blue-800: #153f92;
  --blue-700: #245ab1;
  --blue-100: #eaf1ff;
  --red-700: #c9212e;
  --red-600: #dc2434;
  --red-100: #fff0f2;
  --ink: #172033;
  --muted: #5e6879;
  --line: #e3e8f1;
  --surface: #ffffff;
  --soft: #f7f9fc;
  --shadow: 0 18px 50px rgba(12, 43, 97, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.8;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1160px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

/* يمنع عناصر Grid/Flex أو النصوص الطويلة من توسيع الصفحة على الموبايل */
.hero-grid > *, .form-grid > *, .faq-grid > *,
.header-inner > *, .footer-inner > *, .final-cta-inner > *,
.cards-grid > *, .steps > *, .field-grid > * { min-width: 0; }
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227,232,241,.9);
}
.header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-window { width: 112px; height: 100px; display: block; }
.logo-window img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-link { color: var(--blue-900); font-weight: 700; }

.button {
  border: 0; border-radius: 14px; min-height: 50px; padding: 12px 23px;
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--red-600), #b91725); color: #fff; box-shadow: 0 12px 28px rgba(201,33,46,.25); }
.button-secondary { background: var(--blue-100); color: var(--blue-900); }
.button-outline { border: 1px solid var(--blue-700); color: var(--blue-900); background: #fff; }
.button-small { min-height: 42px; padding: 8px 17px; border-radius: 12px; }
.button-light { background: #fff; color: var(--blue-900); }

.hero {
  position: relative; overflow: hidden; padding: 82px 0 72px;
  background:
    radial-gradient(circle at 10% 15%, rgba(220,36,52,.08), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(36,90,177,.14), transparent 32%),
    linear-gradient(180deg, #fbfdff, #fff);
}
.hero::after {
  content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 80px solid rgba(36,90,177,.035); left: -250px; bottom: -210px;
}
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 58px; align-items: center; position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--red-700); font-weight: 800; font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; background: var(--red-100); padding: 6px 12px; border-radius: 999px; }
.eyebrow span { width: 8px; height: 8px; background: var(--red-600); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 4.3rem); line-height: 1.23; letter-spacing: -.035em; color: var(--blue-950); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 690px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; color: #445067; font-weight: 700; font-size: .93rem; }

.hero-card { background: rgba(255,255,255,.94); border: 1px solid #e4eaf4; border-radius: 28px; padding: 31px; box-shadow: var(--shadow); }
.hero-card-top { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.mini-badge { display: inline-block; color: var(--blue-800); background: var(--blue-100); font-weight: 800; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.hero-card h2 { font-size: 1.75rem; line-height: 1.4; margin-bottom: 8px; color: var(--blue-950); }
.hero-card p { color: var(--muted); margin-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 24px 0; }
.metric { background: var(--soft); border-radius: 16px; padding: 14px 10px; text-align: center; }
.metric strong { display: block; color: var(--red-700); font-size: 1.35rem; }
.metric span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.card-link { color: var(--blue-800); font-weight: 800; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-items { min-height: 84px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; color: #566178; font-weight: 700; }
.trust-items span { position: relative; }
.trust-items span:not(:last-child)::after { content: "•"; color: #b8c2d5; position: absolute; left: -20px; }

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2 { margin: 6px 0 12px; color: var(--blue-950); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.35; }
.section-heading p { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 27px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(12,43,97,.09); }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, var(--blue-100), #f7faff); color: var(--blue-800); display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; margin-bottom: 17px; }
.feature-card h3 { color: var(--blue-950); margin-bottom: 7px; font-size: 1.14rem; }
.feature-card p { color: var(--muted); margin-bottom: 0; font-size: .94rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 23px; }
.step > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--blue-800); border-radius: 13px; font-weight: 900; margin-bottom: 16px; }
.step h3 { color: var(--blue-950); margin-bottom: 5px; font-size: 1.05rem; }
.step p { color: var(--muted); margin-bottom: 0; font-size: .9rem; }

.form-section { background: linear-gradient(180deg, #fff, #f8faff); }
.form-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 42px; align-items: start; }
.form-intro { position: sticky; top: 112px; }
.form-intro h2 { color: var(--blue-950); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.35; margin: 6px 0 14px; }
.form-intro > p { color: var(--muted); }
.contact-card { margin-top: 27px; background: var(--blue-950); color: #fff; border-radius: 20px; padding: 23px; display: grid; gap: 16px; }
.contact-card div { display: grid; }
.contact-card small { color: #cbd9f5; }
.contact-card strong { overflow-wrap: anywhere; }
.privacy-note { margin-top: 16px; color: #5c6779; background: #fff; border: 1px dashed #cbd5e5; padding: 13px 15px; border-radius: 14px; font-size: .88rem; }

.agent-form { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #364157; font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d8dfeb; background: #fbfcfe; color: var(--ink);
  border-radius: 13px; padding: 12px 14px; outline: none; transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input, .field select { min-height: 51px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-700); background: #fff; box-shadow: 0 0 0 4px rgba(36,90,177,.1); }
.field [aria-invalid="true"] { border-color: var(--red-600); background: #fff8f9; }
.consent { margin: 20px 0 16px; display: flex; align-items: flex-start; gap: 10px; color: #485469; font-size: .9rem; }
.consent input { margin-top: 7px; width: 17px; height: 17px; accent-color: var(--red-600); }
.submit-button { width: 100%; min-height: 56px; }
.submit-hint { text-align: center; color: var(--muted); margin: 11px 0 0; font-size: .82rem; }
.form-status { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; font-weight: 700; }
.form-status.show { display: block; }
.form-status.error { color: #8d1723; background: #fff0f2; border: 1px solid #ffd0d5; }
.form-status.success { color: #155e3c; background: #ecfbf4; border: 1px solid #bcebd4; }
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* السماح بلف البريد والروابط الطويلة بدل عمل Scroll أفقي */
.contact-card strong, .footer-contact a, .field input, .field textarea {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.faq-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 56px; }
.faq-heading { text-align: right; margin: 0; }
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 17px 19px; }
summary { cursor: pointer; font-weight: 800; color: var(--blue-950); }
details p { margin: 11px 0 0; color: var(--muted); }

.final-cta { padding: 55px 0; background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: #fff; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.final-cta span { color: #cbd9f5; }
.final-cta h2 { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }

.site-footer { padding: 34px 0; background: #071a3d; color: #d8e1f3; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }
.footer-inner > div:first-child { display: grid; }
.footer-inner strong { color: #fff; font-size: 1.3rem; }
.footer-inner span, .footer-inner small { color: #9eacc7; }
.footer-contact { display: grid; gap: 2px; }
.footer-contact a:hover { color: #fff; }

.floating-whatsapp { position: fixed; left: 20px; bottom: 20px; z-index: 35; background: #20a765; color: #fff; border-radius: 999px; padding: 11px 17px; display: flex; align-items: center; gap: 7px; box-shadow: 0 12px 28px rgba(18,112,65,.28); font-size: .9rem; }
.floating-whatsapp span { font-size: 1.2rem; }

@media (max-width: 980px) {
  .hero-grid, .form-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-card { max-width: 680px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-intro { position: static; }
  .faq-heading { text-align: center; margin: 0 auto 26px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner small { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1160px); }
  .header-inner { min-height: 92px; }
  .header-actions .text-link { display: none; }
  .logo-window { width: 86px; height: 80px; }
  .hero { padding: 46px 0 53px; }
  h1 { font-size: 2.25rem; }
  .hero-cta .button { width: 100%; }
  .hero-notes { display: grid; gap: 6px; }
  .hero-card { padding: 22px; }
  .metric-grid { grid-template-columns: 1fr; }
  .trust-items { padding: 17px 0; gap: 8px 18px; font-size: .85rem; }
  .trust-items span:not(:last-child)::after { display: none; }
  .section { padding: 68px 0; }
  .cards-grid, .steps, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .agent-form { padding: 20px 16px; border-radius: 21px; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .final-cta .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner small { grid-column: auto; }
  .floating-whatsapp { left: 12px; bottom: 12px; padding: 10px 13px; }
}

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