/* =========================================================
   Misbar | مسبار — Website stylesheet
   Flat, clean, RTL. No gradients, no shadows.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/NotoKufiArabic-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1B44;
  --navy-2: #13275C;
  --blue: #1580F0;
  --blue-dark: #0E6BD0;
  --sky: #03A9FC;
  --text: #1F2A44;
  --muted: #5E6A85;
  --soft: #F4F7FB;
  --soft-blue: #EAF3FE;
  --line: #E4E9F2;
  --white: #FFFFFF;
  --success: #12A150;
  --danger: #D93A3A;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Tajawal", system-ui, sans-serif; font-size: 17px; line-height: 1.75;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--soft-blue); color: var(--navy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.section-soft { background: var(--soft); }
.section-tight { padding-block: 72px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: var(--pill);
  background: var(--soft-blue); color: var(--blue); font-size: 15px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 16px; letter-spacing: -.3px; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.accent { color: var(--blue); }
.lead { font-size: 20px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: var(--pill); border: 1.5px solid transparent; font-size: 17px; font-weight: 700; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--soft-blue); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); } }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 22px; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 700; direction: ltr; text-align: right; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: var(--pill);
  font-weight: 500; font-size: 16.5px; color: var(--text); background: none; border: 0; transition: background-color .2s var(--ease), color .2s;
}
.nav > a:hover, .nav .dd-toggle:hover { background: var(--soft); color: var(--navy); }
.nav > a.active, .nav .dd.active > .dd-toggle { color: var(--blue); font-weight: 700; }
.dd { position: relative; }
.dd-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.dd.open .dd-toggle svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 300px; padding: 10px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; }
.dd-menu a:hover { background: var(--soft); }
.dd-menu .ic { width: 44px; height: 44px; border-radius: 12px; }
.dd-menu .ic svg { width: 22px; height: 22px; }
.dd-menu b { display: block; color: var(--navy); font-size: 16px; }
.dd-menu small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  align-items: center; justify-content: center; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
body.nav-open .menu-toggle .i-open { display: none; }
body.nav-open .menu-toggle .i-close { display: block; }
.nav-mobile-cta { display: none; }

/* ---------- Icon tiles ---------- */
.ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: var(--soft-blue); color: var(--blue); flex: none; }
.ic svg { width: 28px; height: 28px; }
.ic-navy { background: var(--navy); color: var(--white); }
.ic-white { background: var(--white); color: var(--blue); }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 72px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.22; letter-spacing: -1px; margin-top: 22px; }
.hero h1 .accent { display: block; }
.hero .lead { margin-top: 24px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--blue); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .blob { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--soft-blue); top: 8%; left: 6%; }
.hero-visual img.photo { position: relative; width: min(380px, 78%); height: auto; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 44px; height: 44px; border-radius: 12px; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card b { display: block; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.float-card small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.float-card.fc-1 { top: 14%; right: -2%; }
.float-card.fc-2 { bottom: 16%; left: -4%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* page hero (inner pages) */
.page-hero { padding-block: 72px 80px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--blue); }
.page-hero .crumbs svg { width: 14px; height: 14px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); margin-top: 18px; letter-spacing: -.6px; }
.page-hero .lead { margin-top: 18px; max-width: 760px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero-grid .visual { display: flex; justify-content: center; }
.page-hero-grid .visual img { width: min(300px, 80%); }
.page-hero-grid .visual img.rounded { width: min(340px, 90%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 28px 24px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .ic { width: 48px; height: 48px; border-radius: 14px; }
.trust-item .ic svg { width: 24px; height: 24px; }
.trust-item b { display: block; color: var(--navy); font-size: 17px; line-height: 1.35; }
.trust-item small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  position: relative; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: #C9D8EE; }
.card h3 { font-size: 23px; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.section-soft .card { border-color: transparent; }
.section-soft .card:hover { border-color: var(--line); }

.service-card { display: flex; flex-direction: column; padding: 36px; }
.service-card .num { position: absolute; top: 30px; left: 32px; font-size: 15px; font-weight: 800; color: #B7C5DD; letter-spacing: 1px; }
.service-card ul { margin-top: 20px; display: grid; gap: 10px; }
.service-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text); }
.service-card li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 4px; }
.service-card .link-arrow { margin-top: auto; padding-top: 28px; }
.service-card.featured { background: var(--navy); border-color: var(--navy); }
.service-card.featured h3, .service-card.featured li { color: var(--white); }
.service-card.featured p { color: #B8C4DD; }
.service-card.featured .ic { background: var(--navy-2); color: var(--sky); }
.service-card.featured li svg, .service-card.featured .link-arrow { color: var(--sky); }
.service-card.featured .num { color: #3B4E80; }

.feature { padding: 28px; }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-top: 18px; }
.feature p { font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 31px; right: 10%; left: 10%; border-top: 2px dashed #C9D8EE; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .dot {
  position: relative; z-index: 1; width: 64px; height: 64px; margin-inline: auto; border-radius: 50%; background: var(--white);
  border: 2px solid var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.section-soft .step .dot { background: var(--soft); }
.step:first-child .dot { background: var(--blue); color: var(--white); }
.step h3 { font-size: 19px; margin-top: 20px; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4::before { right: 12.5%; left: 12.5%; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { position: relative; display: flex; justify-content: center; }
.split-media .blob { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--soft-blue); top: 10%; }
.section-soft .split-media .blob { background: var(--white); }
.split-media img { position: relative; width: min(360px, 82%); }
.split-media .rounded { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.split-body h2 { font-size: clamp(30px, 3.2vw, 42px); margin-top: 16px; }
.split-body > p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.check-list { margin-top: 28px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--soft-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.check-list .tick svg { width: 16px; height: 16px; stroke-width: 2.4; }
.check-list b { display: block; color: var(--navy); font-size: 17.5px; }
.check-list span { display: block; color: var(--muted); font-size: 16px; }
.split-body .btn { margin-top: 34px; }

/* option tiles (residency types) */
.options { display: grid; gap: 14px; margin-top: 28px; }
.option { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.option .n { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex: none; }
.option b { display: block; color: var(--navy); font-size: 19px; }
.option span { display: block; color: var(--muted); font-size: 15.5px; }

/* ---------- Vision / mission ---------- */
.vm .card { text-align: center; padding: 40px 32px; }
.vm .card .ic { margin-inline: auto; width: 72px; height: 72px; border-radius: 50%; }
.vm .card .ic svg { width: 32px; height: 32px; }
.values-list { display: grid; gap: 10px; margin-top: 16px; text-align: start; }
.values-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--soft); color: var(--navy); font-weight: 500; font-size: 16px; }
.values-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- Service detail blocks ---------- */
.detail-row { display: grid; grid-template-columns: 380px 1fr; gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); }
.detail-row:first-child { border-top: 0; padding-top: 0; }
.detail-row .side .ic { width: 68px; height: 68px; border-radius: 20px; }
.detail-row .side .ic svg { width: 32px; height: 32px; }
.detail-row .side h2 { font-size: 32px; margin-top: 22px; }
.detail-row .side p { margin-top: 14px; color: var(--muted); }
.detail-row .side .link-arrow { margin-top: 22px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mini { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.mini .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--white); }
.mini .ic svg { width: 24px; height: 24px; }
.mini b { display: block; color: var(--navy); font-size: 17.5px; line-height: 1.4; }
.mini span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 4px; line-height: 1.6; }

/* ---------- Phases (investor journey) ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase { padding: 30px 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.phase .tag { display: inline-block; padding: 4px 12px; border-radius: var(--pill); background: var(--soft-blue); color: var(--blue); font-weight: 800; font-size: 14px; }
.phase h3 { font-size: 20px; margin-top: 18px; }
.phase p { font-size: 15.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.section-dark { background: var(--navy); color: #C6D0E6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p { color: #AEB9D3; }
.section-dark .eyebrow { background: var(--navy-2); color: var(--sky); }
.section-dark .eyebrow::before { background: var(--sky); }
.section-dark .phase { background: var(--navy-2); border-color: #22386F; }
.section-dark .phase p { color: #AEB9D3; }
.section-dark .phase .tag { background: #1C3473; color: var(--sky); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.faq details[open] { border-color: #C9D8EE; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-weight: 700; color: var(--navy); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .25s var(--ease), background-color .2s; }
.faq summary .pm svg { width: 18px; height: 18px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--soft-blue); color: var(--blue); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); font-size: 16.5px; }

/* ---------- CTA band ---------- */
.cta { padding-block: 0 104px; }
.cta-box { position: relative; overflow: hidden; border-radius: 36px; background: var(--navy); padding: 72px 64px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-box h2 { color: var(--white); font-size: clamp(30px, 3.4vw, 46px); }
.cta-box p { color: #B8C4DD; margin-top: 14px; font-size: 18.5px; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-box .ring { position: absolute; border-radius: 50%; border: 2px solid #1D3470; }
.cta-box .ring.r1 { width: 420px; height: 420px; left: -140px; top: -180px; }
.cta-box .ring.r2 { width: 260px; height: 260px; left: -60px; top: -100px; border-color: var(--blue); opacity: .55; }
.cta-box > *:not(.ring) { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--blue); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 16px; }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: 14.5px; }
.contact-card b { display: block; color: var(--navy); font-size: 18px; }
.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--blue); font-weight: 700; font-size: 15.5px; }
.map-link svg { width: 18px; height: 18px; }

.form-card { padding: 40px; border-radius: var(--radius-lg); background: var(--soft); }
.form-card h2 { font-size: 30px; }
.form-card > p { color: var(--muted); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.field label .req { color: var(--blue); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; font-size: 16.5px; color: var(--text); transition: border-color .2s var(--ease); appearance: none;
}
.textarea { padding: 14px 18px; min-height: 140px; resize: vertical; line-height: 1.7; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235E6A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: #C9D8EE; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 14px; }
.field.has-err .err { display: block; }
.form-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.alert { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: 15.5px; margin-top: 18px; }
.alert.show { display: flex; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.alert-success { background: #E8F7EE; color: #0D6B37; }
.alert-info { background: var(--soft-blue); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: #AEB9D3; margin-top: 60px; }
.footer-wave { position: absolute; left: 0; right: 0; top: -59px; height: 60px; width: 100%; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 48px; }
.footer-brand img { height: 92px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 15.5px; line-height: 1.85; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: 17px; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 15.5px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact div { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.footer-contact a:hover { color: var(--white); }
.footer-contact svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.footer-bottom { border-top: 1px solid #1D3166; padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14.5px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Login page ---------- */
.auth-body { background: var(--white); min-height: 100vh; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; background: var(--navy); color: #C6D0E6; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side .logo-w { height: 84px; width: auto; align-self: flex-start; }
.auth-side h2 { color: var(--white); font-size: clamp(30px, 3vw, 42px); margin-top: 0; }
.auth-side p { margin-top: 16px; font-size: 18px; color: #AEB9D3; max-width: 440px; }
.auth-side ul { margin-top: 30px; display: grid; gap: 14px; }
.auth-side li { display: flex; align-items: center; gap: 14px; color: var(--white); font-weight: 500; }
.auth-side li .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--navy-2); color: var(--sky); }
.auth-side li .ic svg { width: 22px; height: 22px; }
.auth-side .ring { position: absolute; border-radius: 50%; border: 2px solid #1D3470; pointer-events: none; }
.auth-side .ring.r1 { width: 520px; height: 520px; left: -220px; bottom: -220px; }
.auth-side .ring.r2 { width: 320px; height: 320px; left: -120px; bottom: -120px; border-color: var(--blue); opacity: .5; }
.auth-side small { position: relative; color: #7F8DB0; font-size: 14px; }
.auth-side > * { position: relative; }

.auth-main { display: flex; flex-direction: column; padding: 28px 32px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-top .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: var(--pill); }
.auth-top .back:hover { background: var(--soft); color: var(--navy); }
.auth-top .back svg { width: 18px; height: 18px; transform: scaleX(-1); }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding-block: 40px; text-align: center; }
.auth-logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: var(--soft-blue); display: flex; align-items: center; justify-content: center; }
.auth-logo img { height: 54px; width: auto; }
.auth-card h1 { font-size: 32px; margin-top: 24px; }
.auth-card .sub { color: var(--muted); margin-top: 8px; font-size: 17px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--soft); border-radius: var(--pill); margin-top: 30px; }
.seg button { border: 0; background: transparent; height: 44px; border-radius: var(--pill); color: var(--muted); font-weight: 700; font-size: 15.5px; transition: background-color .2s, color .2s; }
.seg button.on { background: var(--white); color: var(--navy); }
.auth-form { margin-top: 22px; text-align: start; display: grid; gap: 16px; }
.float { position: relative; }
.float .input { height: 58px; padding-top: 18px; }
.float label { position: absolute; right: 18px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none; transition: all .18s var(--ease); background: transparent; }
.float .input:focus + label, .float .input:not(:placeholder-shown) + label { top: 7px; font-size: 12.5px; color: var(--blue); font-weight: 700; }
.float .pw-toggle { position: absolute; left: 10px; top: 9px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.float .pw-toggle:hover { background: var(--soft); }
.float .pw-toggle svg { width: 20px; height: 20px; }
.float.with-toggle .input { padding-left: 54px; }
.phone-row { display: grid; grid-template-columns: 1fr 104px; gap: 10px; }
.phone-row .cc { height: 58px; border-radius: 14px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--navy); direction: ltr; background: var(--soft); }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.auth-row a { color: var(--blue); font-weight: 700; }
.auth-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.auth-foot a { color: var(--blue); font-weight: 700; }
.btn .spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: spin .8s linear infinite; display: none; }
.btn.loading .spin { display: inline-block; }
.btn.loading .lbl { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-legal { text-align: center; color: #98A3BC; font-size: 13.5px; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; text-align: center; }
.nf .code { font-family: "Noto Kufi Arabic", "Tajawal", sans-serif; font-size: clamp(90px, 16vw, 180px); color: var(--soft-blue); line-height: 1; font-weight: 900; }
.nf h1 { font-size: 36px; margin-top: 10px; }
.nf p { margin-top: 12px; color: var(--muted); }
.nf .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 28px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  body { font-size: 16.5px; }
  .section { padding-block: 80px; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-login { display: none; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--white); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px 20px 28px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; border-top: 1px solid var(--line);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav .dd-toggle { height: 56px; font-size: 18px; justify-content: space-between; width: 100%; border-radius: 16px; padding: 0 16px; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; padding: 0 8px 8px; min-width: 0; }
  .dd.open .dd-menu { display: block; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
  .hero { padding-block: 48px 72px; }
  .hero-grid, .split, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-visual img.photo { width: min(300px, 70%); }
  .page-hero-grid .visual { display: none; }
  .split { gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .steps-4 { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .steps::before { top: 32px; bottom: 32px; right: 31px; left: auto; border-top: 0; border-right: 2px dashed #C9D8EE; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; text-align: start; padding: 0 0 30px; }
  .step .dot { margin: 0; grid-row: span 2; }
  .step h3 { margin-top: 8px; }
  .step p { margin-top: 2px; }
  .cta-box { grid-template-columns: 1fr; padding: 52px 32px; text-align: center; }
  .cta-box .actions { justify-content: center; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-head p, .lead { font-size: 17.5px; }
  .grid-3, .grid-4, .grid-2, .grid-5, .mini-grid, .phases { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trust-item { padding: 20px 4px; }
  .hero h1 { letter-spacing: -.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { padding: 9px 12px 9px 10px; border-radius: 14px; }
  .float-card .ic { width: 36px; height: 36px; }
  .float-card b { font-size: 13.5px; } .float-card small { font-size: 12px; }
  .float-card.fc-1 { right: 0; } .float-card.fc-2 { left: 0; }
  .card, .service-card { padding: 28px 24px; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding-block: 0 72px; }
  .cta-box { border-radius: 28px; padding: 44px 22px; }
  .cta-box .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand-text small { display: none; }
  .auth-main { padding: 18px 20px; }
  .auth-card { padding-block: 28px; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq .ans { padding: 0 20px 20px; }
}

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