:root {
  --navy: #0B2545; --navy-2: #13315C; --navy-3: #1E4170; --sand: #E9D8B4; --sand-2: #F6EFE0; --ivory: #FBF8F1;
  --amber: #F2A900; --amber-ink: #1A1300; --amber-soft: #FFF4D6; --amber-deep: #A87300;
  --ink: #FFFFFF; --ink-soft: rgba(255,255,255,.78); --text-ink: #0B2545; --muted: #52627A; --hair: #E4DCCB;
  --glass: rgba(11,37,69,.55); --line: rgba(233,216,180,.22); --ok: #1F8A5B; --bad: #C2412D;
  --display: "Readex Pro", system-ui, sans-serif; --text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px); --radius: 20px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--ivory); color: var(--text-ink); font-family: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { --display: "Readex Pro", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 40px; padding: 22px var(--gutter); color: var(--ink); }
.nav.solid { background: var(--navy); }
.brand { font: 700 26px var(--display); display: flex; align-items: center; gap: 10px; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--amber); display: inline-grid; place-items: center; }
.brand i::after { content: ""; width: 10px; height: 10px; border: 2px solid var(--navy); border-radius: 50%; }
.menu { display: flex; gap: 28px; font-size: 15px; color: var(--ink-soft); }
.menu a { position: relative; padding-block: 4px; }
.menu a:hover, .menu a[aria-current] { color: var(--ink); }
.menu a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--amber); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.lang { color: var(--ink-soft); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--sand); }
.burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font: 600 15px var(--text); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 22px -10px rgba(242,169,0,.8); }
.btn-amber:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; isolation: isolate; color: var(--ink); background: var(--navy); overflow: hidden; }
.phero .bg { position: absolute; inset: 0; background: center/cover no-repeat; z-index: -2; transform: scale(1.04); transition: transform 1.2s ease-out; }
.phero .bg.in { transform: scale(1); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,37,69,.7) 0, rgba(11,37,69,0) 120px), linear-gradient(270deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.7) 40%, rgba(11,37,69,.08) 72%), linear-gradient(0deg, rgba(11,37,69,.7) 0%, rgba(11,37,69,0) 35%); }
html[dir="ltr"] .phero::after { background: linear-gradient(180deg, rgba(11,37,69,.7) 0, rgba(11,37,69,0) 120px), linear-gradient(90deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.7) 40%, rgba(11,37,69,.08) 72%), linear-gradient(0deg, rgba(11,37,69,.7) 0%, rgba(11,37,69,0) 35%); }
.phero .inner { padding: clamp(40px, 9vh, 110px) var(--gutter) clamp(56px, 11vh, 130px); max-width: 760px; }
.phero h1 { font: 700 clamp(32px, 3.6vw, 52px)/1.25 var(--display); margin: 16px 0 12px; }
.phero h1 em { font-style: normal; color: var(--amber); }
.phero p.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); max-width: 560px; }
.phero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.phero .cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sand); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,37,69,.35); }
.kicker b { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,169,0,.18); }
.crumbs { font-size: 14px; color: var(--ink-soft); }
.crumbs a:hover { color: #fff; }

/* ---------- sections ---------- */
section.block { padding: clamp(56px, 9vw, 112px) 0; }
section.block.sand { background: var(--sand-2); }
section.block.dark { background: var(--navy); color: var(--ink); }
.eyebrow { font: 600 14px var(--text); color: var(--amber-deep); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }
.dark .eyebrow { color: var(--amber); }
h2.title { font: 700 clamp(26px, 2.6vw, 38px)/1.3 var(--display); margin: 10px 0 12px; max-width: 720px; }
.sub { color: var(--muted); max-width: 620px; font-size: 17px; }
.dark .sub { color: var(--ink-soft); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(11,37,69,.45); border-color: #D8CBAE; }
.card h3 { font: 600 19px/1.4 var(--display); margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.dark .card { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.dark .card p { color: var(--ink-soft); }

/* packages */
.pkg { display: flex; flex-direction: column; position: relative; padding: 30px; }
.pkg .tag { font-size: 13.5px; color: var(--amber-deep); font-weight: 600; }
.pkg h3 { font-size: 26px; margin: 6px 0 18px; }
.pkg ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.pkg li { display: flex; gap: 10px; align-items: start; font-size: 15px; }
.pkg li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A87300' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.pkg.featured { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-10px); box-shadow: 0 34px 60px -34px rgba(11,37,69,.8); }
.pkg.featured:hover { transform: translateY(-14px); }
.pkg.featured .tag { color: var(--amber); }
.pkg.featured li::before { background-color: rgba(242,169,0,.18); }
.pkg .ribbon { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 12.5px; font-weight: 600; background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 3px 12px; }

/* posts */
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post .cover { aspect-ratio: 16/10; background: var(--navy) center/cover; position: relative; }
.post .cover span { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.94); color: var(--navy); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 12px; }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post h3 { margin: 0 0 8px; }
.post time { font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 14px; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { counter-increment: s; position: relative; padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--hair); }
.step::before { content: counter(s); font: 700 15px var(--display); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--amber); }
.step h3 { font: 600 18px var(--display); margin: 14px 0 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- forms ---------- */
.form { background: #fff; border: 1px solid var(--hair); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -44px rgba(11,37,69,.6); }
.form h3 { font: 600 22px var(--display); margin-bottom: 4px; }
.form .note { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; background: var(--ivory); border: 1.5px solid var(--hair); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; transition: border-color .2s, box-shadow .2s, background .2s; }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px rgba(242,169,0,.16); }
.f .err { display: none; color: var(--bad); font-size: 13.5px; margin-top: 4px; }
.f.bad input, .f.bad select, .f.bad textarea, .f.bad .drop { border-color: var(--bad); }
.f.bad .err { display: block; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; }
.seg span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--hair); border-radius: 999px; background: var(--ivory); font-size: 14.5px; transition: all .2s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242,169,0,.5); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.form .actions-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form .legal { font-size: 13.5px; color: var(--muted); }
.drop { position: relative; display: block; border: 1.5px dashed #CDBF9F; border-radius: 14px; padding: 22px; text-align: center; background: var(--ivory); cursor: pointer; transition: all .2s; }
.drop.over { border-color: var(--amber); background: var(--amber-soft); }
.drop strong { color: var(--amber-deep); }
.drop .file { margin-top: 8px; font-size: 14px; color: var(--navy); font-weight: 600; }
.success { display: none; text-align: center; padding: 30px 10px; }
.success.on { display: block; animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
.success .tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #E3F4EC; color: var(--ok); display: grid; place-items: center; }
.success h3 { font: 600 22px var(--display); }
.success p { color: var(--muted); }
.success code { font: 600 16px var(--display); background: var(--sand-2); border-radius: 8px; padding: 2px 10px; color: var(--navy); direction: ltr; display: inline-block; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6,18,36,.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .form { width: min(620px, 100%); max-height: calc(100svh - 32px); overflow: auto; transform: translateY(16px); transition: transform .3s cubic-bezier(.2,.7,.2,1); position: relative; }
.modal.on .form { transform: none; }
.modal .x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sand-2); cursor: pointer; font-size: 20px; line-height: 1; }
.chosen { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-soft); color: var(--amber-deep); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 4px 14px; margin-bottom: 16px; }

/* ---------- CTA band + footer ---------- */
.band { background: var(--navy) radial-gradient(ellipse at 15% 120%, rgba(242,169,0,.28), transparent 55%); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { font: 700 clamp(24px, 2.4vw, 34px)/1.3 var(--display); max-width: 560px; }
.band p { color: var(--ink-soft); margin-top: 6px; }
footer.foot { background: #071A33; color: var(--ink-soft); padding: 64px 0 28px; margin-top: clamp(56px, 8vw, 96px); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font: 600 15px var(--display); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: #fff; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translate(50%, 30px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); opacity: 0; transition: all .3s; z-index: 60; font-size: 15px; }
html[dir="ltr"] .toast { transform: translate(-50%, 30px); }
.toast.on { opacity: 1; transform: translate(50%, 0); }
html[dir="ltr"] .toast.on { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 100%; inset-inline: 12px; flex-direction: column; gap: 4px; background: var(--navy); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
  .menu.open { display: flex; }
  .menu a { padding: 10px 12px; border-radius: 10px; }
  .menu a[aria-current] { background: rgba(255,255,255,.06); }
  .menu a[aria-current]::after { display: none; }
  .burger { display: block; }
  .nav { gap: 14px; }
  .nav-end .btn { display: none; }
  .g3, .steps { grid-template-columns: 1fr; }
  .pkg.featured { transform: none; }
  .fields { grid-template-columns: 1fr; }
  .phero::after, html[dir="ltr"] .phero::after { background: linear-gradient(0deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.72) 60%, rgba(11,37,69,.4) 100%); }
}
@media (max-width: 560px) {
  .g4, .foot .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
