/* =========================================================
   شكاوي — Stylesheet (RTL)
   ========================================================= */
:root {
  --ink: #0E2235;
  --ink-2: #16314D;
  --ink-3: #21466B;
  --paper: #F6F3EC;
  --surface: #FFFFFF;
  --line: #E2DCCF;
  --line-2: #D3CBBB;
  --text: #1A2532;
  --muted: #5A6878;
  --gold: #B5862F;
  --gold-2: #9C7224;
  --gold-soft: #F4EBD8;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --ok: #17734A;
  --ok-soft: #E6F4EC;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 34, 53, .06), 0 12px 32px -12px rgba(14, 34, 53, .22);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--ink-3); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--lg { padding: 16px 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { display: inline-flex; }
.brand__text { font-size: 24px; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; }
.brand__text small { font-size: 12px; font-weight: 500; color: #B9C4D0; margin-top: 4px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #DCE3EA; text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(181,134,47,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #E6ECF2;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero__copy { padding-top: 28px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: #E3C27F; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(227,194,127,.35); border-radius: 999px; }
.eyebrow--dark { color: var(--gold-2); border-color: rgba(181,134,47,.35); background: var(--gold-soft); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; margin-bottom: 20px; }
.hero h1 span { color: #E3C27F; }
.hero__lead { font-size: 19px; color: #C9D3DD; max-width: 560px; margin-bottom: 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 36px; color: #E6ECF2; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(181,134,47,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23E3C27F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Form ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form { padding: 30px 28px 24px; color: var(--text); scroll-margin-top: 96px; }
.hero__form { scroll-margin-top: 90px; }
.form__head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form__head h2 { font-size: 24px; margin-bottom: 2px; }
.form__head p { margin: 0; color: var(--muted); font-size: 15px; }
.form__alert { background: var(--danger-soft); color: var(--danger); border: 1px solid #F5C2BC; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field label b { color: var(--danger); font-weight: 600; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: #FCFBF8; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235A6878' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-left: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-3); background: #fff; box-shadow: 0 0 0 4px rgba(33,70,107,.12); }
.field input::placeholder, .field textarea::placeholder { color: #98A3AF; }
.field input[dir=ltr]::placeholder { text-align: right; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFFBFA; }
.field__error { color: var(--danger); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.field__meta { display: flex; justify-content: flex-end; font-size: 13px; color: var(--muted); margin-top: 4px; }
.field--check { margin: 6px 0 18px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; line-height: 1.6; color: var(--muted) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Strip ---------- */
.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid > div { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-inline-start: 1px solid var(--line); }
.strip__grid > div:first-child { border-inline-start: 0; }
.strip strong { font-size: 20px; color: var(--ink); }
.strip span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #C9D3DD; padding: 64px 0; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(26px, 3vw, 36px); }
.section__head p { color: var(--muted); font-size: 18px; }

/* Types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type {
  display: flex; flex-direction: column; align-items: flex-start; text-align: right; gap: 6px;
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.type:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.type__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); margin-bottom: 8px; }
.type__title { font-weight: 700; font-size: 18px; color: var(--ink); }
.type__desc { color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1; }
.type__cta { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--gold-2); }
.types__other { margin: 28px 0 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps__n { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Prepare */
.prepare { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.prepare h2 { font-size: clamp(26px, 3vw, 36px); }
.prepare > div > p { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.prepare__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prepare__list li { padding: 22px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.prepare__list li:nth-child(odd) { border-inline-start: 0; }
.prepare__list li:nth-last-child(-n+2) { border-bottom: 0; }
.prepare__list strong { color: var(--ink); }
.prepare__list span { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Commitments */
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.commit__item { border-top: 2px solid var(--gold); padding-top: 20px; }
.commit h3 { color: #fff; font-size: 20px; }
.commit p { margin: 0; font-size: 16px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--gold-2); flex: none; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA */
.cta { background: var(--gold-soft); border-top: 1px solid #EADBB8; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 52px; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.cta p { margin: 0; color: #5D4A27; }

/* ---------- Footer ---------- */
.footer { background: #0A1928; color: #A9B6C3; font-size: 15px; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #C9D3DD; text-decoration: none; }
.footer a:hover { color: #E3C27F; }
.footer__about p { margin-top: 14px; line-height: 1.8; }
.brand--light .brand__text { font-size: 22px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; padding-bottom: 32px; font-size: 13.5px; color: #8796A5; }
.footer__legal p { margin-bottom: 8px; }
.footer__legal strong { color: #C9D3DD; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; background: #198F48; }

/* ---------- Consent banner ---------- */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline-start: auto; background: var(--ink); color: #DCE3EA; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.35); display: flex; gap: 16px; align-items: center; font-size: 14.5px; }
.consent p { margin: 0; line-height: 1.6; }
.consent a { color: #E3C27F; }
.consent__actions { display: flex; gap: 8px; flex: none; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--ink); color: #C9D3DD; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 8px; }
.page-head p { margin: 0; }
.prose { max-width: 820px; padding: 56px 20px 88px; }
.prose h2 { font-size: 24px; margin-top: 40px; padding-top: 8px; }
.prose h3 { font-size: 19px; margin-top: 24px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.prose .note { margin: 24px 0; }
.note { background: var(--gold-soft); border: 1px solid #EADBB8; border-radius: var(--radius-sm); padding: 14px 18px; color: #4D3D1F; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.contact-grid .card { padding: 22px; box-shadow: none; }
.contact-grid h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-grid p { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }

/* ---------- Thank-you ---------- */
.thanks { background: var(--paper); padding: 72px 0 96px; }
.thanks__card { max-width: 720px; margin: 0 auto; padding: 44px 40px; text-align: center; }
.thanks__icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.thanks h1 { font-size: 30px; }
.thanks__ref { font-size: 18px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px; display: inline-block; }
.thanks__ref strong { color: var(--ink); letter-spacing: .5px; }
.thanks .note { text-align: right; }
.thanks__next { text-align: right; background: #FCFBF8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0; }
.thanks__next h2 { font-size: 17px; }
.thanks__next ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { padding-top: 0; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prepare, .faq { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0; background: var(--ink); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid > div:nth-child(3) { border-inline-start: 0; }
  .strip__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .commit { grid-template-columns: 1fr; gap: 28px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 56px; }
  .hero__lead { font-size: 17px; }
  .hero__grid { gap: 28px; }
  .form { padding: 22px 18px 18px; }
  .section { padding: 64px 0; }
  .types, .steps, .prepare__list, .contact-grid { grid-template-columns: 1fr; }
  .prepare__list li { border-inline-start: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .prepare__list li:last-child { border-bottom: 0 !important; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .thanks__card { padding: 32px 20px; }
  .consent { flex-direction: column; align-items: stretch; inset-inline: 10px; bottom: 10px; }
  .consent__actions .btn { flex: 1; }
  .brand__text { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
