/* =========================================================================
   Qarfina — dark Gulf-gold fintech identity (geo-adapted profile)
   RTL-first: logical properties everywhere. One theme, one accent, one scale.
   ========================================================================= */

:root {
  --bg: #0e1320;
  --surface: #161d2e;
  --surface-2: #1d2639;
  --border: #2a3550;
  --border-soft: #232d45;
  --text: #e9edf5;
  --muted: #9aa7bd;
  --accent: #e0a93e;
  --accent-hover: #f0be5c;
  --accent-tint: rgba(224, 169, 62, 0.13);
  --accent-line: rgba(224, 169, 62, 0.38);
  --pos: #4cc38a;
  --pos-tint: rgba(76, 195, 138, 0.14);
  --neg: #e0636e;
  --neg-tint: rgba(224, 99, 110, 0.14);
  --ink-on-accent: #1c1503;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(8, 12, 24, 0.5), 0 2px 6px rgba(8, 12, 24, 0.35);
  --shadow-md: 0 1px 3px rgba(8, 12, 24, 0.55), 0 10px 28px rgba(8, 12, 24, 0.45);
  --shadow-lg: 0 2px 6px rgba(8, 12, 24, 0.6), 0 24px 56px rgba(8, 12, 24, 0.55);

  --font-sans: "Segoe UI", Tahoma, "Dubai", "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.3vw + 0.75rem, 0.9rem);
  --step-0: clamp(0.98rem, 0.35vw + 0.9rem, 1.06rem);
  --step-1: clamp(1.14rem, 0.5vw + 1.03rem, 1.3rem);
  --step-2: clamp(1.35rem, 0.8vw + 1.17rem, 1.65rem);
  --step-3: clamp(1.6rem, 1.2vw + 1.32rem, 2.1rem);
  --step-4: clamp(1.95rem, 1.9vw + 1.5rem, 2.75rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(224, 169, 62, 0.07), transparent 62%),
    radial-gradient(900px 460px at 8% 12%, rgba(46, 74, 128, 0.16), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
li { margin-bottom: 0.45em; }
img, svg, iframe, video, canvas { max-width: 100%; }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.2em 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: var(--ink-on-accent);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { inset-inline-start: 8px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.section { padding-block: clamp(44px, 6vw, 84px); position: relative; }
.section--tint { background: linear-gradient(180deg, rgba(29, 38, 57, 0.55), rgba(29, 38, 57, 0.2)); }
.section--deep { background: linear-gradient(180deg, rgba(14, 19, 32, 0.2), rgba(10, 14, 25, 0.85)); }

.section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .lead { color: var(--muted); font-size: var(--step-1); margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 700; color: var(--accent);
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- icons ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

.icon-badge {
  width: 52px; height: 52px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  border-radius: 13px; color: var(--accent);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--round { border-radius: 50%; }
.icon-badge--pos { background: var(--pos-tint); border-color: rgba(76, 195, 138, 0.4); color: var(--pos); }
.icon-badge--neg { background: var(--neg-tint); border-color: rgba(224, 99, 110, 0.4); color: var(--neg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
  min-height: 48px; padding: 10px 26px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--ink-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink-on-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: var(--step--1); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 19, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { background: rgba(12, 16, 28, 0.97); box-shadow: var(--shadow-md); }

.header-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-size: 1.35rem; letter-spacing: 0.01em; }

.main-nav { margin-inline-start: auto; margin-inline-end: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 18px); list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; color: var(--text);
  background: none; border: 0; cursor: pointer; padding: 10px 8px; border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-trigger:hover { color: var(--accent); }
.nav-trigger[aria-expanded="true"] { color: var(--accent); }
.nav-trigger .icon-xs { transition: transform 0.16s ease; }
.nav-trigger[aria-expanded="true"] .icon-xs { transform: rotate(180deg); }

.nav-item a, .main-nav--trimmed .nav-list a {
  display: inline-block; padding: 10px 12px; font-weight: 600; color: var(--text); border-radius: 8px;
}
.main-nav--trimmed .nav-list a:hover { color: var(--accent); background: var(--accent-tint); }

.dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0;
  min-width: 260px; max-width: 320px; max-height: 70vh; overflow-y: auto;
  background: #131a2b; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 110;
}
.dropdown::before {
  content: ""; position: absolute; top: -5px; inset-inline-start: 22px;
  width: 10px; height: 10px; background: #131a2b;
  border-inline-start: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg); /* caret notch (mirrored fine in RTL) */
}
.nav-group { position: relative; }
.nav-group.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); font-weight: 500; line-height: 1.5;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--accent-tint); color: var(--accent); }

/* ticker row injected by beacon sits under the header */
.tv-ticker-wrapper { padding-top: 0px !important; height: 58px !important; background: #101627; border-bottom: 1px solid var(--border-soft); }

/* ---------- mobile nav ---------- */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); cursor: pointer;
}
.nav-burger[aria-expanded="true"] .burger-open { display: none; }
.nav-burger .burger-close { display: none; }
.nav-burger[aria-expanded="true"] .burger-close { display: inline-flex; }

.mobile-menu { border-bottom: 1px solid var(--border-soft); background: #101627; padding-block: 14px 22px; }
.mobile-menu__list { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-menu__list a { display: block; padding: 10px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-soft); }

.mobile-accordion__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  font: inherit; font-weight: 700; color: var(--text);
  background: none; border: 0; border-bottom: 1px solid var(--border-soft);
  padding: 14px 4px; cursor: pointer;
}
.mobile-accordion__trigger .icon-xs { transition: transform 0.16s ease; }
.mobile-accordion__trigger[aria-expanded="true"] .icon-xs { transform: rotate(180deg); }
.mobile-accordion__panel ul { list-style: none; margin: 0; padding: 4px 12px 12px; }
.mobile-accordion__panel a { display: block; padding: 8px 4px; color: var(--muted); }
.mobile-accordion__panel a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(90px, 11vw, 150px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: 0.5;
  background-image:
    linear-gradient(rgba(224, 169, 62, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 169, 62, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__chart { position: absolute; inset-inline: 0; bottom: 0; z-index: -1; }
.hero__chart svg { display: block; width: 100%; height: auto; }

.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy h1 { margin-bottom: 0.5em; }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 34em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }

.hero__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: var(--step--1); }
.flag-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.flag-svg { width: 26px; height: 18px; border-radius: 3px; display: block; box-shadow: var(--shadow-sm); }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text); font-weight: 600; font-size: var(--step--1);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.trust-link:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-md); color: var(--text); }
.trust-link .icon { color: var(--accent); }

/* hero candlestick motif (GSAP target) */
.hero-motif { position: absolute; inset-block-start: 12%; inset-inline-end: 4%; width: min(340px, 34vw); z-index: -1; opacity: 0.95; }
.hero-motif--mobile { display: none; }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 5.5vw, 72px);
  background:
    radial-gradient(760px 380px at 88% 10%, rgba(224, 169, 62, 0.09), transparent 60%),
    radial-gradient(560px 340px at 6% 95%, rgba(52, 84, 148, 0.18), transparent 62%),
    linear-gradient(180deg, #111829, #0e1320);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(224, 169, 62, 0.045) 1px, transparent 1px);
  background-size: 100% 46px;
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.page-hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 52px); align-items: center; position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.45em; }
.page-hero .lead { color: var(--muted); font-size: var(--step-1); margin: 0; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--border-soft); background: rgba(16, 22, 39, 0.5); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 12px 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "‹"; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.form-card__title { font-size: var(--step-1); margin-bottom: 4px; }
.form-block__intro { color: var(--muted); margin-bottom: 12px; }
.form-legal { font-size: var(--step--1); color: var(--muted); margin: 12px 0 0; }
.manager-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); font-size: var(--step--1); font-weight: 600; color: var(--text);
}
.manager-note .icon { color: var(--accent); }

/* beacon formFactory wrapper styling */
.form-block [class*="bf-"], .form-block form { max-width: 100%; }
.form-block { scroll-margin-top: 96px; }

/* ---------- cards & grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cards-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .icon-badge { margin-bottom: 14px; }

/* asymmetric feature layout: first card spans */
.cards-grid--stagger .card:first-child { grid-column: span 2; }
@media (max-width: 620px) { .cards-grid--stagger .card:first-child { grid-column: span 1; } }

/* numbered steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink-on-accent);
  font-weight: 800; font-size: 0.95rem; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.step-card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.step-card p { color: var(--muted); margin: 0; font-size: var(--step--1); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table-wrap thead th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: rgba(29, 38, 57, 0.35); }
.table-wrap td .muted { color: var(--muted); }

.tick-yes { color: var(--pos); font-weight: 800; }
.tick-no { color: var(--neg); font-weight: 800; }
.tick-yes .icon, .tick-no .icon { width: 20px; height: 20px; }

/* ---------- exchange logos ---------- */
.exchanges { padding-block: clamp(36px, 4.5vw, 60px); border-block: 1px solid var(--border-soft); background: rgba(16, 22, 39, 0.5); }
.exchanges h2 { font-size: var(--step-2); text-align: center; margin-bottom: 6px; }
.exchanges .exchanges-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 58px; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.chip img { height: 28px; width: auto; max-width: 82%; object-fit: contain; }
.chip--light { background: #ffffff; }
.chip--dark { background: #0f172a; }

/* ---------- calculator block ---------- */
.calc-section { position: relative; overflow: hidden; }
.calc-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(640px 320px at 14% 20%, rgba(224, 169, 62, 0.06), transparent 60%),
    radial-gradient(560px 300px at 88% 84%, rgba(52, 84, 148, 0.14), transparent 60%);
  pointer-events: none;
}
.calc-section .container { position: relative; z-index: 1; }
.calc-section .section-head, .calc-section .calc-widget { max-width: 760px; }
.calc-deco { margin-top: 34px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: rgba(16, 22, 39, 0.45); box-shadow: var(--shadow-sm); }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review-avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent-line); object-fit: cover; flex: none; }
.reviews-photo-note { color: var(--muted); font-size: var(--step--1); }
.review-card__name { font-weight: 700; margin: 0; }
.review-card__role { color: var(--muted); font-size: var(--step--1); margin: 0; }
.review-card__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 12px; font-size: var(--step--1); }
.review-card__stats span { color: var(--muted); }
.review-card__stats strong { color: var(--text); }
.review-card p.review-text { color: var(--text); margin: 0 0 10px; }
.reviews-note { font-size: var(--step--1); color: var(--muted); margin-top: 18px; }

/* ---------- company block (home) ---------- */
.company-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; }
.company-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-bottom: 10px; }
.company-facts .icon { color: var(--accent); margin-top: 4px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.company-link {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.company-link:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-md); color: var(--text); }
.company-link .icon-badge { width: 44px; height: 44px; }
.company-link .icon-badge .icon { width: 22px; height: 22px; }
.company-link span.arr { color: var(--accent); font-size: var(--step--1); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform 0.16s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--muted); }
.faq-item__body p { margin: 0; }

/* ---------- map ---------- */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 900px; aspect-ratio: 16 / 9; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- misc content ---------- */
.prose { max-width: 820px; }
.prose p, .prose li { color: var(--muted); }
.prose h2, .prose h3 { color: var(--text); }
.prose strong { color: var(--text); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.info-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.info-cell h3 { font-size: var(--step-0); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.info-cell h3 .icon { color: var(--accent); }
.info-cell p { margin: 0; color: var(--muted); }

.callout {
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  border-radius: var(--radius-md); padding: 16px 20px; color: var(--text); margin-block: 1.4em;
}
.callout--warn { background: var(--neg-tint); border-color: rgba(224, 99, 110, 0.4); }
.callout p:last-child { margin-bottom: 0; }

.next-pages { display: flex; flex-wrap: wrap; gap: 10px; }
.next-pages a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: var(--step--1); font-weight: 600;
}
.next-pages a:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- urgency strip (special-offer) ---------- */
.urgency-strip { background: linear-gradient(90deg, #8a1d28, #b0451f 55%, #8a5a13); color: #fff; font-size: var(--step--1); font-weight: 600; }
.urgency-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 8px; }
.urgency-stat { display: inline-flex; align-items: center; gap: 7px; }
.urgency-stat .icon-xs { opacity: 0.9; }

/* ---------- special offer ---------- */
.offer-hero__countdown { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.count-seg { background: #131a2b; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.06em; color: var(--text); min-width: 58px; text-align: center; }
.count-sep { color: var(--accent); font-weight: 800; }

.offer-cta-band { background: linear-gradient(180deg, #21196b00, rgba(224, 169, 62, 0.08)), linear-gradient(90deg, #2a1f33, #3a2c18); border-block: 1px solid var(--accent-line); text-align: center; }

/* exit-intent modal */
.exit-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.exit-modal.is-open { display: flex; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(7, 10, 18, 0.78); }
.exit-modal__card {
  position: relative; z-index: 1; width: min(520px, 100%);
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 34px); text-align: center;
}
.exit-modal__close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.exit-modal__close:hover { border-color: var(--accent-line); color: var(--accent); }
.exit-modal__art { margin: 0 auto 14px; width: 190px; }
.exit-modal__count { display: flex; justify-content: center; margin: 16px 0 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: #0b101c; margin-top: clamp(40px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 0.7fr); gap: clamp(18px, 3vw, 34px); padding-block: clamp(34px, 5vw, 56px); }
.footer-col h3 { font-size: var(--step-0); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: var(--muted); font-size: var(--step--1); display: inline-block; padding-block: 3px; }
.footer-col a:hover { color: var(--accent); }
.brand--footer { margin-bottom: 14px; }
.footer-brand__text { color: var(--muted); font-size: var(--step--1); }
.footer-contact { color: var(--muted); font-size: var(--step--1); display: flex; align-items: flex-start; gap: 8px; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.footer-disclaimer { border-top: 1px solid var(--border-soft); padding-block: 22px; }
.footer-disclaimer h3 { font-size: var(--step-0); }
.footer-disclaimer p { color: var(--muted); font-size: var(--step--1); margin: 0; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-block: 16px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-burger { display: inline-flex; margin-inline-start: auto; }
  .nav-cta { margin-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner, .page-hero__inner { grid-template-columns: 1fr; }
  .hero__chart, .hero-motif { display: none; }
  .hero-motif--mobile { display: block; position: static; width: 100%; max-width: 420px; margin-inline: auto; opacity: 0.85; }
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .chips-row { gap: 10px; }
  .chip { width: 148px; height: 52px; }
  .chip img { height: 24px; }
}


/* formFactory third-party input contrast on the dark theme (injected styles).
   Backgrounds must be opaque: Lighthouse contrast maths cannot composite rgba. */
.form-card input[type='text'],
.form-card input[type='tel'],
.form-card input[type='email'],
.form-card input[type='password'] { color: #f5f7fa !important; background: #232b37 !important; }
.form-card input::placeholder { color: rgba(245,247,250,.78) !important; }
.form-card .iti { background: #232b37 !important; }
/* legal line: link must differ 3:1 in luminance from surrounding text */
.form-card .form-legal { color: #8b95a6 !important; }
.form-card .form-legal a { color: #ffffff !important; font-weight: 600; text-decoration: underline; }

/* formFactory submit button: dark text on the gold accent (white was 2.11:1) */
.form-card button[type='submit'],
.form-card input[type='submit'],
.form-card button { color: #1a1f28 !important; }

.iti__selected-country { background-color: #f5f7fa !important; }

.iti__country-name {
  color: #000 !important;
}

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

@media (max-width: 1023px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Homepage layout and site header action */
.home-hero {
  isolation: isolate;
  padding-block: clamp(52px, 6vw, 94px);
  background: #0d1627;
}

.home-hero .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.home-hero .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 54%;
}
.home-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #0d1627fa 1%, #0d1627d9 42%, #0d16273b 88%);
}
.home-hero .hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 462px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "headline registration" "details registration";
  column-gap: clamp(34px, 5vw, 82px);
  row-gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding-block: 0;
}
.home-hero .hero-title {
  grid-area: headline;
  min-width: 0;
}
.home-hero .hero-title h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 4.15vw, 3.8rem);
  line-height: 1.32;
  text-wrap: balance;
}
.home-hero .hero-title h1 span { color: #efc875; }
.home-hero .hero-details {
  grid-area: details;
  min-width: 0;
  max-width: 60ch;
  margin: 0;
  display: grid;
  justify-items: start;
  gap: clamp(14px, 1.7vw, 22px);
}
.home-hero .hero-details > * { margin: 0; }
.home-hero .hero-details .hero-flags { flex-wrap: wrap; }
.home-hero .hero-details > .lead,
.home-hero .hero-details > .hero__sub { line-height: 1.6; }
.home-hero .hero-form-panel {
  grid-area: registration;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 32px);
  background: #142035;
  border: 1px solid #645036;
  border-block-start: 3px solid #efc875;
  border-radius: 12px 26px;
  box-shadow: 0 18px 48px #0b16202b;
}
.home-hero .hero-form-panel .form-block,
.home-hero .hero-form-panel > .form-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-cta {
  gap: 9px;
  min-height: 44px;
  padding-block: 6px;
  padding-inline: 13px;
  border: 1px solid #dfb96a;
  border-radius: 4px 16px;
  background: linear-gradient(155deg, #fae3a7, #c99137);
  color: #262014;
  box-shadow: 0 4px 12px #0b17152d;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.account-cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 2px 8px;
  background: #6b411d26;
}
.account-cta__icon svg { width: 16px; height: 16px; stroke-width: 2; }
.account-cta:hover {
  background: #f6d78b;
  color: #262014;
  text-decoration: none;
  box-shadow: 0 7px 18px #0b171542;
  transform: translateY(-1px);
}
.account-cta:focus-visible {
  outline: 2px solid #dfb96a;
  outline-offset: 3px;
}
.account-cta:active { transform: translateY(0); }

@media (max-width: 900px) {
  .home-hero { padding-block: clamp(26px, 6.5vw, 50px) 42px; }
  .home-hero .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "headline" "registration" "details";
    gap: clamp(18px, 4.5vw, 28px);
    max-width: 660px;
  }
  .home-hero .hero-title h1 { max-width: 24ch; font-size: clamp(1.85rem, 7.6vw, 3.2rem); }
  .home-hero .hero-media { inset-block-end: auto; height: clamp(460px, 120vw, 720px); }
  .home-hero .hero-media img { object-position: 50% 35%; }
  .home-hero .hero-media::after { background: linear-gradient(180deg, #0d1627cd, #0d162755 42%, #0d1627 100%); }
  .home-hero .hero-form-panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .account-cta { transition: none; }
}

/* Dubai gallery */
.home-hero .hero-title { border-block: 1px solid #a9804b; padding-block: 18px; }
.home-hero .hero-title h1 { line-height: 1.5; }
.home-advantages { background: radial-gradient(ellipse at 75% 0%,#302638,#121928 65%); }
.home-advantages .card { border: 1px solid #6c5138; border-radius: 3px 36px; background: #1d2133; }
.home-company .company-links { border-inline-start: 2px solid #ac8141; padding-inline-start: 20px; }
@media (min-width: 901px) {
  .home-hero .hero-layout { grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr); align-content: center; }
  .home-hero .hero-title { margin-block-start: 22px; }
  .home-advantages > .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); gap: 5%; }
  .home-advantages .cards-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-advantages .cards-grid > .card { grid-column: auto; }
}

/* Homepage reading rhythm and registration link */
:is(.home-markets,.home-company,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) { padding-block: clamp(36px, 6vw, 80px); }
.home-hero .hero-details p { max-inline-size: 65ch; }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head { margin-block: 0 clamp(18px, 2.3vw, 32px); }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head h2 { margin-block: 0; text-wrap: balance; }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head h2 + p { margin-block: 10px 0; }
.home-steps .steps-enquiry { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 46px; max-width: 100%; padding: 10px 22px; margin-block-start: 24px; border-radius: 12px 2px; background: #edc379; color: #172033; font-weight: 700; text-decoration: none; line-height: 1.35; }
.home-steps .steps-enquiry:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-steps .steps-enquiry:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
#homepage-enquiry { scroll-margin-block-start: 108px; }
@media (max-width: 600px) {
  .home-steps .steps-enquiry { width: 100%; }
}

/* Homepage registration panels */
.home-hero .enquiry-panel, .section .enquiry-panel {
  position: relative; min-width: 0; box-sizing: border-box; padding: clamp(18px,2.4vw,32px);
  border: 1px solid #846a45;
  border-radius: 34px 3px 34px 3px;
  background: #142035;
  box-shadow: inset 0 0 0 5px #142035,inset 0 0 0 6px #65543b;
}
.section .enquiry-panel .form-block { margin: 0; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.enquiry-panel .form-card__title { border-inline-start: 4px solid #e5bd70; padding-inline-start: 12px; text-align: start; }
