/* Royal Golden — Dubai Visa. Corporate, minimal: dark navy, white, limited gold, light grey (§18).
   Layout uses logical properties so Arabic and Persian render right-to-left and Turkish left-to-right from one sheet. */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --navy-3: #1d3a66;
  --gold: #b8902f;
  --gold-soft: #f5ecd6;
  --grey: #f3f4f6;
  --grey-2: #e5e7eb;
  --text: #1f2937;
  --muted: #5b6474;
  --white: #ffffff;
  --ok: #0f7a4a;
  --ok-bg: #e7f6ee;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --bad: #a3222b;
  --bad-bg: #fdecec;
  --info: #1d4f91;
  --info-bg: #e8f0fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 24px rgba(11, 31, 58, .06);
  --font: "Segoe UI", "Noto Sans Arabic", "Vazirmatn", Tahoma, system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; }
html[lang="fa"] body, html[lang="ar"] body { font-size: 16.5px; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.topbar { background: var(--navy); color: #d7deea; font-size: .85rem; }
.topbar .container { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.notice-gov { opacity: .9; }
.header { background: var(--white); border-bottom: 1px solid var(--grey-2); position: sticky; top: 0; z-index: 20; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; color: var(--gold); font-weight: 800; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--grey); color: var(--navy); }
.nav-toggle { display: none; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 4px 8px; border: 1px solid var(--grey-2); border-radius: 6px; text-decoration: none; color: var(--navy); font-size: .85rem; }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
}

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.btn-gold:hover { background: #a37f27; color: #1a1405; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--grey); color: var(--navy); }
.btn-danger { background: var(--white); color: var(--bad); border-color: var(--bad); }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.hint { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=number], select, textarea, input[type=file] {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd2dc; border-radius: 8px; font: inherit; background: #fff; color: var(--text); min-height: 44px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(184, 144, 47, .45); outline-offset: 2px; }
input.ltr, .ltr { direction: ltr; text-align: start; }
html[dir="rtl"] input.ltr { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.error { color: var(--bad); font-size: .88rem; margin-top: 4px; }
fieldset { border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
legend { padding-inline: 8px; font-weight: 700; color: var(--navy); }

/* Surfaces */
.section { padding: 56px 0; }
.section.alt { background: var(--grey); }
.card { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.alert { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #b9e5cd; }
.alert-bad { background: var(--bad-bg); color: var(--bad); border-color: #f3c2c5; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d9a4; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c5d8f3; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--bad-bg); color: var(--bad); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--grey); color: var(--muted); }
.test-banner { background: repeating-linear-gradient(45deg, #fff4dc, #fff4dc 12px, #ffe9b8 12px, #ffe9b8 24px); color: #5a3d00; text-align: center; padding: 6px 12px; font-weight: 600; font-size: .88rem; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--grey-2); text-align: start; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.gold-rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 18px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.hero-skyline { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 55%; opacity: .55; }
.hero .container { position: relative; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: #e3e8f1; }
.hero .quick { margin-top: 28px; background: rgba(255,255,255,.97); color: var(--text); border-radius: 12px; padding: 18px; max-width: 760px; }
.hero .quick label { color: var(--navy); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.credit { position: absolute; bottom: 6px; inset-inline-end: 12px; font-size: .7rem; color: #c8d0dc; }

/* Steps, timeline */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { position: relative; padding-top: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--grey-2); }
.timeline li { position: relative; padding: 0 0 14px; padding-inline-start: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-3); }
.timeline time { color: var(--muted); font-size: .85rem; }
details { border: 1px solid var(--grey-2); border-radius: 8px; padding: 12px 14px; background: #fff; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.legal-body { white-space: pre-line; }
.doc-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--grey-2); }
@media (max-width: 700px) { .doc-row { grid-template-columns: 1fr; } }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.portal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.portal-nav a { padding: 8px 12px; border-radius: 8px; background: var(--grey); text-decoration: none; color: var(--navy); }
.portal-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Footer */
.footer { background: var(--navy); color: #cfd7e4; padding: 40px 0 24px; margin-top: 48px; font-size: .92rem; }
.footer a { color: #fff; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer .legal-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: .82rem; color: #aeb9cb; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.missing { color: #f2c46d; font-style: italic; }
