/* ============================================================
   FinancialBrokers.co.uk — Design System
   Minimal, institutional, discreet. Pure HTML/CSS.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --bg-dark: #0a0a0c; /* Premium deep black/dark charcoal */
  --bg-dark-secondary: #141417; /* Elevated dark grey for cards/containers */
  --text-warm: #e7e3db; /* Warm off-white text */
  --text-secondary: #9aa0a6; /* Muted cool grey */
  --accent-gold: #967a42; /* Premium gold accent */
  --off-white: #e7e3db;
  --off-white-bg: #141417;
  --ink: #ffffff; /* Crisp white for primary headers */
  --line-dark: rgba(231, 227, 219, 0.08); /* Translucent light lines */
  --line-light: rgba(231, 227, 219, 0.15);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Outfit", "Helvetica Neue", Helvetica, system-ui, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 680px;
  --section-padding-y: clamp(4rem, 10vw, 7rem);
  --section-padding-x: clamp(1.5rem, 4vw, 2.5rem);
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Safari / iOS: prevent rubber-band and fix 100vh */
  min-height: 100%;
  min-height: -webkit-fill-available;
  -webkit-text-size-adjust: 100%;
}

body.home-page {
  --bg-dark: #121214; /* Premium lighter charcoal black for index.html */
}

body.beige-page {
  background-color: #f5f4f0 !important;
}

body.beige-page .site-header {
  background-color: #0a0a0c !important;
}

/* Ensure outer sections on a beige page are cream (excluding hero and global-positioning) */
body.beige-page main section:not(.hero):not(.global-positioning) {
  background-color: #f5f4f0 !important;
}

/* Styled central card containers as dark cards */
body.beige-page main section:not(.hero):not(.global-positioning) .section-inner {
  background: radial-gradient(circle at top, #141417, #0a0a0c) !important;
  border-radius: 10px;
  border: 1px solid rgba(191, 164, 111, 0.4) !important;
  box-shadow: var(--shadow) !important;
  padding: 4rem 3rem !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.beige-page main section:not(.hero):not(.global-positioning) .section-inner {
    padding: 2.5rem 1.5rem !important;
  }
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-warm);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* iPhone notch / safe area (viewport-fit=cover in meta viewport) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

main {
  width: 100%;
  min-width: 0;
}

/* RTL (Arabic) */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .intro-body,
html[dir="rtl"] .content-body { text-align: right; }
html[dir="rtl"] .content-list { padding-right: 1.2rem; padding-left: 0; }
html[dir="rtl"] .content-header,
html[dir="rtl"] .content-body { border-left: none; border-right: 1px solid rgba(191, 164, 111, 0.5); padding-right: 1.1rem; padding-left: 0; }
html[dir="rtl"] .content-body { border-right-color: rgba(26, 29, 36, 0.08); }
html[dir="rtl"] .footer-line,
html[dir="rtl"] .footer-legal p { text-align: right; }
html[dir="rtl"] .content-list li { padding-right: 1.4rem; padding-left: 0; }
html[dir="rtl"] .content-list li::before { right: 0; left: auto; }
html[dir="rtl"] .why-list li { padding-right: 1.25rem; padding-left: 0; }
html[dir="rtl"] .why-list li::before { right: 0; left: auto; }
html[dir="rtl"] .legal-body li { padding-right: 1.25rem; padding-left: 0; }
html[dir="rtl"] .legal-body li::before { right: 0; left: auto; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  min-height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0);
  background-color: var(--bg-dark);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-dark), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-warm);
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-warm);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-bottom-color: var(--accent-gold);
  color: var(--text-warm);
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.lang-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.lang-link:hover,
.lang-link.is-active {
  color: var(--text-warm);
}

.lang-sep {
  opacity: 0.6;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-warm);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-y) var(--section-padding-x);
  padding-bottom: calc(var(--section-padding-y) + env(safe-area-inset-bottom, 0));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-dark);
  /* Subtle grid texture */
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  /* Hardware acceleration to prevent repaint lag during scrolling */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
}

/* Lazy-load hero text animation: runs when hero enters viewport */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-warm);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  width: 100%;
}

.hero-title-dynamic {
  display: inline-block;
  min-width: 20ch; /* Reserve space so title doesn't shift during type/backspace */
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  vertical-align: bottom;
  margin-left: 0.15em;
  position: relative;
}

.hero-title-dynamic::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background-color: var(--accent-gold);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  from, to { background-color: transparent; }
  50% { background-color: var(--accent-gold); }
}

.hero-inner.is-visible .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtext {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--text-warm);
  max-width: 920px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out 0.15s, transform 0.6s ease-out 0.15s;
}

.hero-inner.is-visible .hero-subtext {
  opacity: 0.95;
  transform: translateY(0);
}

.hero-inner .btn-hero {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-inner.is-visible .btn-hero {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-warm);
  background: transparent;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.25s ease;
}

.btn:hover {
  box-shadow: 0 0 20px rgba(191, 164, 111, 0.25);
  border-color: var(--accent-gold);
}

.btn-hero:hover {
  border-color: #d4b87a;
  box-shadow: 0 0 24px rgba(212, 184, 122, 0.35);
}

/* ---------- Section shared ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 60px auto 10px;
  padding: var(--section-padding-y) var(--section-padding-x);
  box-sizing: border-box;
}

.section-inner--narrow {
  max-width: var(--max-width-narrow);
}

.section-inner.section-inner--narrow {
  margin-top: 18px;
  margin-bottom: 0;
  padding-top: 64px;
  padding-bottom: 64px;
}

/* ---------- Intro Advisory ---------- */
.intro-advisory {
  background-color: var(--bg-dark);
  color: var(--text-warm);
}

#intro {
  padding-top: 0;
  margin-bottom: 0;
}

.intro-advisory .section-inner {
  text-align: center;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  overflow: visible;
  border: none;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text-warm);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.intro-body {
  text-align: center;
  max-width: 36em;
  margin: 0 auto;
}

.intro-body p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- How we work (pillars) ---------- */
.how-we-work {
  background-color: var(--bg-dark-secondary);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.how-we-work .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.section-head {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: var(--text-warm);
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillar {
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.pillar:hover {
  border-color: rgba(191, 164, 111, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.pillar-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-warm);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.pillar-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- By the numbers ---------- */
.by-the-numbers {
  background-color: var(--bg-dark);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.by-the-numbers .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.stat {
  padding: 2rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.02);
}

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--text-warm);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Why institutional ---------- */
.why-institutional {
  background-color: var(--bg-dark-secondary);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.why-institutional .section-inner {
  padding: 0;
}

.why-institutional .section-head {
  margin-bottom: 1.5rem;
}

.why-lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  text-align: center;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.why-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-warm);
  padding-left: 1.25rem;
  position: relative;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* ---------- Content sections (Strategic / Global Debt / RWA / About / Contact) ---------- */
.content-section {
  background-color: var(--bg-dark);
  color: var(--text-warm);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Strategic & Defence Capital / RWA Bridge — elevated treatment */
#strategic-capital,
#rwa-bridge {
  position: relative;
  overflow: hidden;
}

#strategic-capital::before,
#rwa-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(191, 164, 111, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

#strategic-capital .section-inner,
#rwa-bridge .section-inner {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  border: 1px solid rgba(191, 164, 111, 0.4);
  background: radial-gradient(circle at top, var(--bg-dark-secondary), var(--bg-dark));
  box-shadow: var(--shadow);
}

#strategic-capital .content-header,
#rwa-bridge .content-header {
  border-left-color: rgba(191, 164, 111, 0.85);
  padding-left: 1.3rem;
}

#strategic-capital .content-title,
#rwa-bridge .content-title {
  letter-spacing: 0.12em;
}

#strategic-capital .content-lead,
#rwa-bridge .content-lead {
  letter-spacing: 0.12em;
}

#strategic-capital .content-body,
#rwa-bridge .content-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-left: none;
  padding-left: 0;
}

#strategic-capital .content-body p:first-child,
#rwa-bridge .content-body p:first-child {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

#strategic-capital .content-list,
#rwa-bridge .content-list {
  margin-bottom: 0.75rem;
}

.content-group {
  padding: 1.75rem 2rem;
  background: var(--bg-dark-secondary);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 29, 34, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-group:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 30px rgba(26, 29, 34, 0.1), 0 0 15px rgba(150, 125, 66, 0.15);
  background: var(--bg-dark-secondary);
}

.content-group--full {
  grid-column: 1 / -1;
}

.content-block-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-warm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.content-block-title::before {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: var(--accent-gold);
}

.content-block-title--spaced {
  margin-top: 1.1rem;
}

.content-group-intro {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  #strategic-capital .content-body,
  #rwa-bridge .content-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.content-section--striped {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 55%),
              var(--bg-dark-secondary);
}

/* Global Debt & Equity — premium treatment */
#global-debt-equity {
  position: relative;
  overflow: hidden;
}

#global-debt-equity::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, rgba(191, 164, 111, 0.18), transparent 55%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.55), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

#global-debt-equity .section-inner {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  border: 1px solid rgba(191, 164, 111, 0.32);
  background: radial-gradient(circle at top, var(--bg-dark-secondary), var(--bg-dark));
  box-shadow: var(--shadow);
}

#global-debt-equity .content-header {
  border-left-color: rgba(191, 164, 111, 0.9);
  padding-left: 1.35rem;
}

#global-debt-equity .content-title {
  letter-spacing: 0.16em;
}

#global-debt-equity .content-lead {
  letter-spacing: 0.12em;
}

#global-debt-equity .content-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  border-left: none;
  padding-left: 0;
}

#global-debt-equity .content-body p:first-child {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}



@media (max-width: 768px) {
  #global-debt-equity .content-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.content-header {
  margin-bottom: 1.75rem;
  border-left: 1px solid rgba(191, 164, 111, 0.5);
  padding-left: 1.1rem;
}

.content-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.content-lead {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-body {
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 1px solid rgba(26, 29, 36, 0.08);
  padding-left: 1.1rem;
}

.content-body p {
  margin: 0 0 0.85rem;
}

.content-list {
  margin: 0 0 0.85rem 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.content-list li {
  margin: 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.content-list li:hover {
  color: var(--text-warm);
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(191, 164, 111, 0.6);
}

.content-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.6rem;
  list-style: none;
  padding-left: 0;
}

.content-list--inline li {
  padding: 0.35rem 0.85rem;
  background: rgba(191, 164, 111, 0.08);
  border: 1px solid rgba(191, 164, 111, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.content-list--inline li:hover {
  background: rgba(191, 164, 111, 0.15);
  border-color: rgba(191, 164, 111, 0.4);
  color: var(--text-warm);
  transform: translateY(-2px);
}

.content-list--inline li::before {
  display: none;
}

.content-subheading {
  font-weight: 400;
}

.contact-section {
  background-color: var(--bg-dark-secondary);
}

.contact-form {
  margin-top: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.3rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--text-warm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-gold);
}

.contact-btn {
  margin-top: 1.25rem;
}
/* ---------- Primary Focus — Doodle grid ---------- */
.primary-focus {
  background-color: var(--off-white-bg);
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

#primary-focus {
  height: 393px;
  padding-top: 1px;
  margin-top: 0px;
  display: flex;
  flex-wrap: wrap;
  box-sizing: content-box;
}

.primary-focus .section-inner {
  height: 300px;
  padding-top: 0px;
  margin-top: 1px;
  padding-bottom: 0px;
  margin-bottom: 0;
}

.focus-title {
  width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.focus-item {
  animation: fadeIn 0.6s ease-out backwards;
}

.focus-item:nth-child(1) { animation-delay: 0.05s; }
.focus-item:nth-child(2) { animation-delay: 0.1s; }
.focus-item:nth-child(3) { animation-delay: 0.15s; }
.focus-item:nth-child(4) { animation-delay: 0.2s; }

.focus-box {
  position: relative;
  height: 100%;
  min-height: 220px;
  background: var(--off-white-bg);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(26, 29, 34, 0.35);
}

.focus-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 29, 34, 0.08);
  border-color: var(--ink);
}

.focus-sketch {
  position: relative;
  flex: 1 1 auto;
  padding: 1.1rem;
  /* graph paper background inside the sketch frame */
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}

.focus-sketch::before,
.focus-sketch::after {
  content: \"\";
  position: absolute;
  inset: 0.4rem 0.4rem;
  border: 1px solid rgba(26, 29, 34, 0.55);
  pointer-events: none;
}

.focus-sketch::after {
  inset: 0.7rem 0.7rem;
  border-color: rgba(26, 29, 34, 0.35);
}

.focus-caption {
  padding: 0.65rem 0.9rem 0.9rem;
  border-top: 1px solid rgba(26, 29, 34, 0.25);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-doodle {
  position: absolute;
  inset: 0.9rem 0.9rem 0.7rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90% auto;
  opacity: 0.96;
  image-rendering: crisp-edges;
}

.focus-doodle--defence {
  background-image: url("assets/defence-dual-use.png");
}

.focus-doodle--debt {
  background-image: url("assets/private-debt-equity.png");
}

.focus-doodle--infra {
  background-image: url("assets/infrastructure-assets.png");
}

.focus-doodle--rwa {
  background-image: url("assets/rwa-fiat.png");
}

.focus-label {
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  line-height: 1.35;
}

.focus-image {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 6px 20px rgba(26, 29, 34, 0.18);
}

/* ---------- Global Positioning ---------- */
.global-positioning {
  position: relative;
  padding: 0; /* Remove outer padding to prevent double-padding overflow shift */
  background-color: #161619; /* Restore dark theme backdrop for immersive map */
  overflow: hidden;
  min-height: 380px; /* Reduced min-height */
}

/* World map image (MapChart: NA, Europe, Middle East highlighted) */
.global-map-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/global-map.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85; /* High visibility on desktop dark backdrop */
  /* Hardware acceleration to prevent repaint lag during scrolling */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.global-map-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 22, 25, 0.4) 0%, rgba(22, 22, 25, 0.6) 100%);
  pointer-events: none;
}

.global-section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box; /* Prevent padding from causing overflow and horizontal shift */
}

.global-content {
  text-align: center;
  max-width: 800px; /* Widen container to fit hubs text on one line without overflow */
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.global-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem); /* Reduced from clamp(1.75rem, 3vw, 2.25rem) */
  font-weight: 500;
  color: #e7e3db; /* Explicitly light text on desktop dark background */
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.global-divider {
  width: 50px; /* Reduced from 60px */
  height: 1px;
  background: rgba(231, 227, 219, 0.12); /* Explicitly light divider */
  margin: 0.65rem auto; /* Reduced from 0.75rem auto */
}

.global-copy {
  font-size: 0.85rem; /* Reduced from 0.9rem */
  font-weight: 300;
  color: #9aa0a6; /* Explicitly light secondary text */
  margin: 0 auto; /* Centered */
  max-width: 540px; /* Constrain description lines for readability */
  letter-spacing: 0.02em;
}

.global-copy--hubs {
  margin: 0.65rem auto;
  font-size: clamp(0.75rem, 2vw, 1rem) !important; /* Proper clamp size */
  white-space: nowrap !important;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: none !important; /* Prevent copy constraints from shrinking hubs */
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-dark-secondary);
  padding: var(--section-padding-y) 0;
  border-top: 1px solid var(--line-dark);
}

.site-footer .section-inner {
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding: 0 var(--section-padding-x) 1px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
}

.footer-left {
  flex: 1.1;
  min-width: 0;
}

.footer-right {
  flex: 1;
  min-width: 0;
}

.footer-about {
  margin-top: 1.75rem;
}

.site-footer .footer-about .content-header {
  margin-bottom: 1.25rem;
}

.site-footer .footer-about .content-body {
  border-left-color: var(--line-dark);
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-warm);
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.footer-hubs {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2.5rem;
}

.footer-line {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.footer-line strong {
  color: var(--text-warm);
  font-weight: 400;
}

.footer-legal {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.footer-legal p {
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--text-warm);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.site-footer .contact-section {
  background-color: transparent;
  border-top: none;
}

.site-footer .contact-section .content-header {
  margin-bottom: 1.25rem;
}

.site-footer .contact-section .content-body {
  border-left-color: var(--line-dark);
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-warm);
}

.footer-sep {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ---------- Animations (subtle only) ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-list {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .lang-select {
    display: none;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Touch targets ≥44px for Safari / iPhone (Apple HIG) */
  .nav-link,
  .lang-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .btn {
    min-height: 44px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .section-inner {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    width: auto !important;
  }

  .site-header.is-menu-open .main-nav,
  .site-header.is-menu-open .lang-select {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--line-dark);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .lang-select {
    order: 3;
    width: 100%;
    padding-top: 0.5rem;
    font-size: 0.85rem;
  }

  .site-header.is-menu-open .header-inner {
    align-items: flex-start;
    padding-top: 1rem;
  }

  .site-header.is-menu-open {
    min-height: var(--header-height);
    height: auto;
    padding-bottom: 1rem;
  }

  .hero {
    height: auto;
  }

  .hero-bg {
    height: 100%;
  }

  .hero-title-dynamic {
    display: block;
    min-width: 0;
    margin-left: 0;
    text-align: center;
  }

  .hero-subtext {
    white-space: normal;
    max-width: 540px;
  }

  #primary-focus {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 2rem;
  }

  .primary-focus .section-inner {
    height: auto;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-item:nth-child(n) {
    animation-delay: 0s;
  }

  .pillar-list {
    grid-template-columns: 1fr;
  }

  .stat-list {
    grid-template-columns: 1fr;
  }

  .why-list {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-hubs {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent iOS Safari zoom on input focus (needs font-size >= 16px) */
  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  .footer-main {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .global-copy--hubs {
    white-space: normal !important;
  }

  /* Mobile: white background & high visibility map block below text */
  .global-positioning {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    background-color: #f5f4f0 !important; /* Cream background specifically on mobile */
  }

  .global-positioning .global-title {
    color: #1a1d22 !important; /* Dark text for cream background */
  }

  .global-positioning .global-divider {
    background: rgba(26, 29, 36, 0.12) !important; /* Dark divider line */
  }

  .global-positioning .global-copy {
    color: #555b63 !important; /* Muted dark copy text */
  }

  .global-section-inner {
    order: 1;
    flex: 0 0 auto;
  }

  /* Map as visible block below text on mobile */
  .global-map-bg {
    position: relative;
    inset: unset;
    order: 2;
    width: 100%;
    min-height: 280px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center center;
    opacity: 0.85 !important; /* Highly visible map details on mobile */
    border-radius: 0; /* Flush with screen edges */
    box-shadow: none; /* No shadow for full-bleed map */
    margin: 1.5rem 0 0; /* Remove left/right margin */
    max-width: 100%;
  }

  .global-map-bg::after {
    background: none !important; /* Disable dark gradient overlay on mobile */
  }

  .site-footer {
    height: auto;
    min-height: 0;
  }

  /* Intro: allow full height so nothing is clipped and next section doesn’t overlap */
  #intro {
    height: auto;
    min-height: 0;
  }

  .intro-advisory .section-inner {
    height: auto;
    overflow: visible;
  }

  /* Clear stacking so cards and sections don’t hide under the next */
  .primary-focus,
  .global-positioning,
  .site-footer {
    position: relative;
    z-index: 1;
  }

  .content-group {
    padding-bottom: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.3rem, 7vw, 1.85rem);
  }

  .intro-body p,
  .global-copy {
    font-size: 0.9rem;
  }

  .global-positioning {
    min-height: 320px;
  }
}

/* ============================================================
   Legal & Policy Pages (Privacy Policy, Terms of Use)
   ============================================================ */
.legal-section {
  position: relative;
  overflow: hidden;
}

.legal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(191, 164, 111, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.03), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.legal-section .section-inner {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  border: 1px solid rgba(191, 164, 111, 0.3);
  background: radial-gradient(circle at top, rgba(22, 22, 25, 0.92), rgba(22, 22, 25, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.legal-section .content-header {
  border-left-color: rgba(191, 164, 111, 0.85);
  padding-left: 1.3rem;
  margin-bottom: 2.5rem;
}

.legal-section .content-title {
  letter-spacing: 0.12em;
}

.legal-section .content-lead {
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.legal-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.legal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-warm);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.legal-body h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-warm);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.legal-body p {
  margin: 0 0 1.2rem;
}

.legal-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-body li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(191, 164, 111, 0.5);
}

.legal-body a {
  color: var(--text-warm);
  border-bottom: 1px dashed var(--accent-gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-body a:hover {
  color: var(--accent-gold);
  border-bottom-style: solid;
}

/* ---------- Brand & Layout Polish Updates ---------- */
.nowrap {
  white-space: nowrap;
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Custom Themed Confirmation Modal */
.fb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 29, 34, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fb-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.fb-modal-container {
  background-color: var(--bg-dark-secondary); /* Elevated dark container */
  border: 1px solid rgba(150, 122, 66, 0.3); /* Gold border matching --accent-gold */
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  padding: 40px 30px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}
.fb-modal-overlay.is-active .fb-modal-container {
  transform: translateY(0);
}
.fb-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary); /* Secondary text matching --text-secondary */
  line-height: 1;
  padding: 5px;
  transition: color 0.2s ease;
}
.fb-modal-close:hover {
  color: #967a42; /* Gold matching --accent-gold */
}
.fb-modal-icon {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(150, 122, 66, 0.08); /* Transparent gold accent bg */
  border-radius: 50%;
}
.fb-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--ink); /* Ink color */
  margin: 0 0 12px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.fb-modal-text {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  color: var(--text-warm);
  margin: 0 0 8px 0;
  font-weight: 400;
  line-height: 1.5;
}
.fb-modal-subtext {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.fb-modal-btn {
  font-family: "Outfit", sans-serif;
  min-width: 120px;
  padding: 10px 24px;
  background-color: #967a42; /* Gold matching --accent-gold */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.fb-modal-btn:hover {
  background-color: #836935;
}
.fb-modal-btn:active {
  transform: scale(0.98);
}

/* RTL Support */
.is-rtl .fb-modal-container {
  direction: rtl;
}
.is-rtl .fb-modal-close {
  right: auto;
  left: 15px;
}

