/* =========================================================
   Procash — formal financial-services style (RTL)
   ========================================================= */
:root {
  --red: #D0021B;
  --red-2: #A80016;
  --red-soft: #FDECEE;
  --ink: #111418;
  --text: #4A4F57;
  --muted: #7A808A;
  --bg: #F6F6F7;
  --surface: #FFFFFF;
  --line: #E6E7EA;
  --line-2: #D4D6DB;
  --danger: #D0021B;
  --danger-soft: #FDECEE;
  --ok: #157347;
  --ok-soft: #E7F4EC;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(17,20,24,.06), 0 10px 30px -12px rgba(17,20,24,.12);
  --body: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --head: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --w: 1200px;
  /* legacy names used below */
  --navy: var(--ink); --navy-2: var(--ink); --navy-3: var(--red); --gold: var(--red); --gold-2: var(--red); --gold-soft: var(--red-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; font-family: var(--body); font-size: 16.5px; line-height: 1.75; color: var(--text); background: var(--surface); }
img, svg { max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.4; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: 0; }
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 24px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--navy); 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: 700; font-size: 16px; line-height: 1.2;
  padding: 13px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-2); color: #fff; }
.btn--gold, .btn--light { background: #fff; color: var(--red); }
.btn--gold:hover, .btn--light:hover { background: #F3F3F3; color: var(--red-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ghost-dark { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--ghost-dark:hover { border-color: var(--navy); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility bar + header */
.utility { background: var(--navy); color: #AFC0D6; font-size: 13.5px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utility__links { display: flex; gap: 20px; }
.utility a { color: #D7E1EE; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-family: var(--head); font-size: 22px; color: var(--navy); }
.brand__text small { font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.brand--light .brand__text b { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: #fff; color: var(--text); padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--red); margin: 0 0 16px; }
.hero h1 { color: var(--ink); font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero__lead { font-size: 18px; color: var(--text); max-width: 560px; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--ink); font-weight: 700; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23D0021B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Form */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form { padding: 30px 28px 22px; color: var(--text); border-top: 4px solid var(--red); }
.hero__form { scroll-margin-top: 100px; }
.form__head { margin-bottom: 18px; }
.form__head h2 { font-size: 23px; margin-bottom: 4px; }
.form__head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.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; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field label b { color: var(--danger); font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.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: #fff; border: 1px 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: 84px; 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='%235B6A7E' 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); background: #fff; box-shadow: 0 0 0 3px rgba(17,20,24,.08); }
.field input::placeholder, .field textarea::placeholder { color: #9AA6B5; }
.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: 13.5px; margin: 6px 0 0; font-weight: 500; }
.field__meta { display: flex; justify-content: flex-end; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field--check { margin: 4px 0 18px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.6; color: var(--muted) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); 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; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Assurance strip */
.assure { padding: 40px 0 8px; }
.assure__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.assure__grid > div { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border: 0; border-inline-start: 3px solid var(--red); background: var(--bg); color: var(--red); }
.assure__grid span { display: flex; flex-direction: column; color: var(--muted); font-size: 14px; line-height: 1.5; }
.assure__grid b { color: var(--navy); font-size: 16px; }

/* Sections */
.section { padding: 84px 0; }
.section--tint { background: var(--bg); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(25px, 3vw, 34px); }
.kicker { color: var(--red); font-weight: 700; font-size: 14px; margin: 0 0 8px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.service::before { content: none; }
.service:hover { border-color: var(--red); }
.service__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.service h3 { font-size: 19px; }
.service p { color: var(--muted); font-size: 15.5px; flex: 1; }
.service a { font-weight: 700; text-decoration: none; color: var(--red); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps__n { display: block; font-family: var(--head); font-size: 32px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; 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: 700; font-size: 17px; 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 { background: var(--red); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 52px; }
.cta h2 { color: #fff; font-size: clamp(23px, 3vw, 30px); margin-bottom: 4px; }
.cta p { margin: 0; color: #FFE3E6; }

/* Footer */
.footer { background: var(--bg); color: var(--text); font-size: 14.5px; padding-top: 56px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer h3 { color: var(--ink); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer__about p { margin-top: 14px; line-height: 1.8; }
.footer__legal { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 30px; font-size: 13px; color: var(--muted); }
.footer__legal p { margin-bottom: 8px; }

.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; }
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline-start: auto; background: var(--ink); color: #E8E8E8; 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: 14px; }
.consent p { margin: 0; line-height: 1.6; }
.consent a { color: var(--gold); }
.consent__actions { display: flex; gap: 8px; flex: none; }

/* Inner pages */
.page-head { background: var(--bg); color: var(--text); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--ink); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.page-head p { margin: 0; }
.prose { max-width: 820px; padding: 52px 24px 84px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.note { background: var(--gold-soft); border: 1px solid #EADDB8; border-radius: var(--radius-sm); padding: 14px 18px; color: #4D3D1F; }

/* Thank-you */
.thanks { background: var(--bg); padding: 72px 0 96px; }
.thanks__card { max-width: 680px; margin: 0 auto; padding: 44px 40px; text-align: center; border-top: 4px solid var(--red); }
.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: 28px; }
.thanks__ref { font-size: 17px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px; display: inline-block; }
.thanks__ref strong { color: var(--navy); letter-spacing: .5px; }
.thanks .note { text-align: right; margin-bottom: 16px; }
.thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .assure__grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 80px; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: 0 12px 24px -12px rgba(10,35,66,.2); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .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); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 80px; }
  .hero__lead { font-size: 16.5px; }
  .form { padding: 24px 18px 18px; }
  .field-row, .services, .steps, .assure__grid, .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .thanks__card { padding: 32px 20px; }
  .consent { flex-direction: column; align-items: stretch; inset-inline: 10px; bottom: 10px; }
  .consent__actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* =========================================================
   v4 — UI polish
   ========================================================= */
::selection { background: var(--red); color: #fff; }
body { -webkit-font-smoothing: antialiased; }

/* Header: shadow appears on scroll */
.header { transition: box-shadow .25s ease; }
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(17,20,24,.18); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Hero: quiet decorative panel behind the form */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; background: var(--bg); pointer-events: none; }
.hero__grid { position: relative; }
.hero h1 { letter-spacing: -.3px; }

/* Buttons */
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(208,2,27,.55); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(-4px); }
.is-loading .btn__arrow { display: none; }

/* Form */
.card.form { box-shadow: 0 1px 2px rgba(17,20,24,.05), 0 24px 48px -24px rgba(17,20,24,.25); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea { height: auto; }
.field input:hover, .field textarea:hover { border-color: #B9BDC5; }

.chips { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.chips legend { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.chips legend b { color: var(--danger); }
.chips__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.45; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.chip span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #B9BDC5; background: #fff; transition: border .15s, box-shadow .15s; }
.chip:hover span { border-color: #B9BDC5; }
.chip input:checked + span { border-color: var(--red); background: var(--red-soft); }
.chip input:checked + span::before { border: 5px solid var(--red); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(208,2,27,.18); }
.chips.has-error .chip span { border-color: var(--danger); }

.affix { position: relative; }
.affix input { padding-right: 46px !important; }
.affix__tag { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }

/* Assurance strip */
.assure__grid > div { transition: background .2s; }
.assure__grid > div:hover { background: #EFEFF1; }

/* Services: red underline grows on hover */
.service { overflow: hidden; }
.service::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.service:hover::after { transform: scaleX(1); }
.service a { display: inline-flex; gap: 6px; transition: gap .2s; }
.service a:hover { gap: 10px; }

/* Steps: connecting line */
.steps { position: relative; }
.steps li { position: relative; z-index: 1; }
@media (min-width: 1025px) {
  .steps::before { content: ""; position: absolute; top: 46px; inset-inline: 40px; height: 2px; background: repeating-linear-gradient(to left, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
}
.steps__n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid var(--red); font-size: 18px; }

/* FAQ */
.faq__list details p { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq__list summary:hover { color: var(--red); }

/* Reveal on scroll (only when JS enabled it) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta { display: flex; align-items: center; justify-content: center; position: fixed; inset-inline: 16px; bottom: 14px; z-index: 55; height: 52px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(208,2,27,.6); transform: translateY(140%); transition: transform .3s ease; }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta:hover { color: #fff; }
  .hero::before { display: none; }
}
@media (max-width: 600px) {
  .chips__grid { grid-template-columns: 1fr; }
  .chip span { min-height: 48px; }
}
