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

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --bg-dark: #0b0f14;
  --bg-dark-secondary: #10151c;
  --text-warm: #e7e3db;
  --text-secondary: #9aa0a6;
  --accent-gold: #bfa46f;
  --off-white: #e7e3db;
  --off-white-bg: #ebe8e0;
  --ink: #1a1d22;
  --line-dark: rgba(231, 227, 219, 0.12);
  --line-light: rgba(26, 29, 34, 0.15);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "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;
}

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

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

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-warm);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  /* 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;
  overflow-x: hidden;
}

/* 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(255, 255, 255, 0.06); }
html[dir="rtl"] .footer-line,
html[dir="rtl"] .footer-legal p { text-align: right; }

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-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  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: 743px;
  min-height: 85vh;
  min-height: 85dvh; /* Safari iOS: dynamic viewport when supported */
  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;
  height: 743px;
  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;
  box-sizing: content-box;
  margin-bottom: 20px;
}

.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;
}

.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: 520px;
  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.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-warm);
  background: transparent;
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s 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: content-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(--off-white-bg);
  color: var(--ink);
  /* Very subtle paper texture */
  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");
}

#intro {
  padding-top: 10px;
  height: 350px;
  margin-bottom: 0px;
}

.intro-advisory .section-inner {
  height: 300px;
  text-align: center;
  padding-top: 6px;
  padding-bottom: 0px;
  overflow: hidden;
  border: 1px solid #000000;
}

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

.intro-body {
  text-align: left;
}

.intro-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
}

/* ---------- 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, rgba(11, 15, 20, 0.9), rgba(11, 15, 20, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

#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 2.25rem;
  border-left-color: rgba(255, 255, 255, 0.12);
}

#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;
}

@media (max-width: 768px) {
  #strategic-capital .content-body,
  #rwa-bridge .content-body {
    display: block;
  }
}

.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, rgba(11, 15, 20, 0.96), rgba(7, 10, 15, 0.98));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

#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 2.4rem;
  border-left-color: rgba(255, 255, 255, 0.16);
}

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

#global-debt-equity .content-list {
  margin-bottom: 0.9rem;
}

#global-debt-equity .content-list li {
  position: relative;
  padding-left: 0.7rem;
}

#global-debt-equity .content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: linear-gradient(to right, rgba(191, 164, 111, 0.9), transparent);
}

@media (max-width: 768px) {
  #global-debt-equity .content-body {
    display: block;
  }
}

.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(255, 255, 255, 0.06);
  padding-left: 1.1rem;
}

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

.content-list {
  margin: 0 0 0.85rem 0;
  padding-left: 1.2rem;
}

.content-list li {
  margin: 0 0 0.25rem;
}

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

.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 rgba(231, 227, 219, 0.16);
  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: var(--section-padding-y) var(--section-padding-x);
  background-color: var(--bg-dark);
  overflow: hidden;
  min-height: 420px;
}

/* 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;
}

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

.global-section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.global-content {
  text-align: center;
  max-width: 560px;
  animation: fadeIn 0.8s ease-out;
}

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

.global-divider {
  width: 60px;
  height: 1px;
  background: var(--line-dark);
  margin: 0.75rem auto;
}

.global-copy {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-warm);
  margin: 0;
  letter-spacing: 0.02em;
}

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

.site-footer .section-inner {
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding-top: 0;
  padding-bottom: 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);
  }

  .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;
  }

  .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;
  }

  #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;
  }

  .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;
  }

  /* Mobile: text first, map as block below (not background) */
  .global-positioning {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .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: contain;
    background-position: center center;
  }

  .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;
  }
}

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

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

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