/* ==========================================================================
   TAQUDI · site-wide visual layer (follows the owner-approved homepage, 08/10).
   Loaded after styles.css on public pages that carry <body class="site-x">.
   App screens (dashboard / expert / admin / onboarding) are deliberately excluded.
   Brand lock: existing palette only — navy #0B1320 / #0a1526 / #16233b / #1e3350,
   teal #00B8A3 / #2fd4c4 / #009486, light #E6ECF1, grey #64748B.
   ========================================================================== */

.site-x { --sx-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif; background: #0B1320; }

/* ---------- Header: same treatment as the homepage, solid on inner pages ---------- */
.site-x .site-header { background: rgba(11, 19, 32, .96); border-bottom: 1px solid rgba(230, 236, 241, .08); }
.site-x .site-header .container { width: min(100% - 48px, 1320px); max-width: none; }
.site-x .site-header .nav { height: 80px; }
.site-x .site-header .brand-mark { width: 42px; height: 37px; }
.site-x .site-header .brand-text b { font-size: 20px; letter-spacing: .14em; }
.site-x .site-header .nav-links { gap: 30px; }
.site-x .site-header .nav-links a, .site-x .site-header .nav-dd-toggle { font-size: 15px; color: rgba(230, 236, 241, .78); }
.site-x .site-header .nav-links a:hover, .site-x .site-header .nav-links a.active { color: #fff; }
.site-x .site-header .nav-links a.active::after { bottom: -8px; height: 2px; border-radius: 0; background: #00B8A3; }
.site-x .site-header .lang-pill { border: 0; padding: 6px 4px; font-family: var(--mono); letter-spacing: .08em; }
.site-x .site-header .nav-cta { gap: 16px; }
.site-x .site-header .nav-cta .btn { border-radius: 4px; padding: 10px 18px; font-size: 14px; box-shadow: none; }
.site-x .site-header .nav-login-secondary { border: 0; padding-inline: 6px; background: transparent; }
@media (max-width: 1280px) {
  .site-x .site-header .nav-links { gap: 20px; }
  .site-x .site-header .nav-links a, .site-x .site-header .nav-dd-toggle { font-size: 14px; }
}
@media (max-width: 1100px) { .site-x .site-header .nav-links { gap: 16px; } }
@media (max-width: 640px) {
  .site-x .site-header .container { width: calc(100% - 32px); }
  .site-x .site-header .nav { height: 68px; }
  .site-x .site-header .nav-cta .btn-primary { display: none; }
  .site-x .nav-links.open { top: 62px; }
}

/* ---------- Typography: serif display for English, Plex Sans Arabic for Arabic ---------- */
body.lang-en.site-x .page-hero h1,
body.lang-en.site-x .section-head h2,
body.lang-en.site-x .cta-band h2 { font-family: var(--sx-serif); font-weight: 500; letter-spacing: -.01em; }
.site-x .eyebrow { letter-spacing: .22em; }
html[dir="rtl"] .site-x .eyebrow { letter-spacing: 0; font-family: var(--font); font-size: 14px; font-weight: 600; }

/* ---------- Page hero: the Riyadh photograph, heavily shaded (never mirrored) ---------- */
.site-x .page-hero {
  padding: clamp(84px, 9vw, 128px) 0 clamp(64px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(11,19,32,.96) 0%, rgba(11,19,32,.86) 46%, rgba(11,19,32,.5) 100%),
    linear-gradient(0deg, rgba(11,19,32,.9) 0%, rgba(11,19,32,0) 40%),
    url("hero-riyadh.jpg") 78% 62% / cover no-repeat, #0B1320;
  border-bottom: 1px solid rgba(230, 236, 241, .08);
}
html[dir="rtl"] .site-x .page-hero {
  background:
    linear-gradient(270deg, rgba(11,19,32,.96) 0%, rgba(11,19,32,.86) 46%, rgba(11,19,32,.55) 100%),
    linear-gradient(0deg, rgba(11,19,32,.9) 0%, rgba(11,19,32,0) 40%),
    url("hero-riyadh.jpg") 78% 62% / cover no-repeat, #0B1320;
}
.site-x .page-hero::before { display: none; }
.site-x .page-hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; color: #fff; max-width: 22ch; }
html[dir="rtl"] .site-x .page-hero h1 { line-height: 1.35; }
.site-x .page-hero p { color: #cdd8e4; }

/* ---------- Buttons ---------- */
.site-x .btn { border-radius: 3px; }
.site-x .btn-primary { box-shadow: none; }
.site-x .btn-primary:hover { box-shadow: none; }

/* ---------- Cards: flatter, institutional, one accent colour ---------- */
.site-x .card { border-radius: 6px; }
.site-x .card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11, 19, 32, .28); border-color: rgba(0, 184, 163, .4); }
.site-x .card-icon,
.site-x .card-icon.icon-blue,
.site-x .card-icon.icon-violet,
.site-x .card-icon.icon-amber,
.site-x .card-icon.icon-rose { border-radius: 6px; background: rgba(0, 184, 163, .1); color: #2fd4c4; border-color: rgba(0, 184, 163, .22); }
.site-x .card .num { border-radius: 4px; }
.site-x .info-card, .site-x .auth-card { border-radius: 8px; }

/* ---------- Light sections: re-map the tokens instead of rewriting components ---------- */
.site-x .section.alt {
  --ink: #0B1320; --text: #1e3350; --text-soft: #64748B;
  --card: #ffffff; --paper: #ffffff;
  --line: rgba(11, 19, 32, .12); --line-2: rgba(11, 19, 32, .08);
  --teal-400: #009486;
  background: linear-gradient(180deg, rgba(230, 236, 241, .7) 0%, rgba(230, 236, 241, .35) 100%), #ffffff;
  color: var(--text);
}
.site-x .section.alt .card { box-shadow: 0 1px 0 rgba(11, 19, 32, .04), 0 12px 30px rgba(11, 19, 32, .06); }
.site-x .section.alt .card:hover { box-shadow: 0 18px 40px rgba(11, 19, 32, .1); }
.site-x .section.alt .card-icon,
.site-x .section.alt .card-icon.icon-blue,
.site-x .section.alt .card-icon.icon-violet,
.site-x .section.alt .card-icon.icon-amber,
.site-x .section.alt .card-icon.icon-rose { color: #009486; background: rgba(0, 184, 163, .1); }
.site-x .section.alt .eyebrow { color: #64748B; }
.site-x .section.alt .eyebrow::before { background: #00B8A3; }
.site-x .section.alt .btn-ghost { background: transparent; color: #0B1320; border-color: rgba(11, 19, 32, .2); }
.site-x .section.alt .btn-ghost:hover { color: #009486; border-color: #009486; }
.site-x .section.alt .link-arrow { color: #009486; }

/* ---------- Closing CTA band: the photograph again, as on the homepage ---------- */
.site-x .cta-band {
  border-radius: 8px; border: 1px solid rgba(230, 236, 241, .1);
  background:
    linear-gradient(180deg, rgba(11,19,32,.82) 0%, rgba(11,19,32,.9) 100%),
    url("hero-riyadh.jpg") 78% 70% / cover no-repeat, #0B1320;
}

/* Legacy accent colours (blue / violet / amber / rose) fold into the brand teal on public pages */
.site-x .process .step-node.c-blue, .site-x .process .step-node.c-violet,
.site-x .process .step-node.c-amber, .site-x .process .step-node.c-rose { color: #2fd4c4; }

/* ---------- Market entry guides (guides/ · ar/guides/) — long-form reading on the light section ---------- */
.site-x .guide { max-width: 780px; margin-inline: auto; font-size: 17px; line-height: 1.8; }
.site-x .guide h2 { font-size: 26px; line-height: 1.3; margin: 44px 0 14px; color: var(--ink); }
.site-x .guide h3 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }
.site-x .guide p, .site-x .guide li { color: var(--text); }
.site-x .guide ul, .site-x .guide ol { padding-inline-start: 22px; margin: 0 0 18px; }
.site-x .guide li { margin-bottom: 8px; }
.site-x .guide a { color: #009486; text-decoration: underline; text-underline-offset: 3px; }
.site-x .guide table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; display: block; overflow-x: auto; }
.site-x .guide th, .site-x .guide td { border: 1px solid rgba(11, 19, 32, .12); padding: 10px 12px; text-align: start; vertical-align: top; }
.site-x .guide th { background: rgba(230, 236, 241, .8); color: var(--ink); }
.site-x .guide-faq { margin-top: 48px; border-top: 1px solid rgba(11, 19, 32, .12); padding-top: 8px; }
.site-x .guide-faq details { border-bottom: 1px solid rgba(11, 19, 32, .1); padding: 14px 0; }
.site-x .guide-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.site-x .guide-faq details p { margin: 10px 0 0; }
.site-x .guide-meta { font-size: 13.5px; color: var(--text-soft); margin-top: 36px; }
.site-x .guide-list { display: grid; gap: 18px; max-width: 900px; margin-inline: auto; }
.site-x .guide-list a.card { display: block; text-decoration: none; }
.site-x .guide-list h2 { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.site-x .guide-list p { margin: 0; color: var(--text); }
html[dir="rtl"] .site-x .guide, html[dir="rtl"] .site-x .guide-list { font-family: "IBM Plex Sans Arabic", Tajawal, sans-serif; }
.site-x .guide-list h2.guide-group { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #009486; margin: 18px 0 0; }
