/* IFBC America LLC — Treasury & Settlement Operations
   styles-v1.css */

:root {
  --navy: #0a1628;
  --navy-deep: #050b18;
  --navy-mid: #0f2138;
  --gold: #c8a35f;
  --gold-soft: rgba(200, 163, 95, 0.7);
  --text: #e8ecf2;
  --text-mute: rgba(232, 236, 242, 0.72);
  --text-faint: rgba(232, 236, 242, 0.5);
  --line: rgba(200, 163, 95, 0.18);
  --container: 1180px;
  --pad-x: 24px;
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(200, 163, 95, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(40, 90, 160, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: #d6b478; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(5, 11, 24, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(15, 33, 56, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}
.lang-switcher.open .lang-list { display: block; }
.lang-list li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mute);
  transition: all 0.15s;
}
.lang-list li:hover {
  background: rgba(200, 163, 95, 0.1);
  color: var(--text);
}
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .brand-name { display: none; }
}

/* === HERO === */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 11, 24, 0) 0%,
    rgba(5, 11, 24, 0) 70%,
    rgba(5, 11, 24, 0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.85), 0 4px 24px rgba(0,0,0,0.7);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 900px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.85), 0 8px 48px rgba(0,0,0,0.7);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.75);
}

/* === SECTION === */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 100%;
}

.section-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-mute);
  margin-bottom: 48px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  max-width: 100%;
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-bottom: 20px;
  max-width: 100%;
}

.prose p:last-child { margin-bottom: 0; }

/* === Info Table (Company Information) === */
.info-card {
  background: rgba(15, 33, 56, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 100%;
}
.info-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200, 163, 95, 0.1);
  align-items: baseline;
}
.info-row:last-child { border-bottom: none; }
.info-row:first-child { padding-top: 0; }
.info-key {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  text-transform: uppercase;
}
.info-value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .info-card { padding: 24px 22px; }
}

/* === Function list === */
.functions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 100%;
}
.function-card {
  background: rgba(15, 33, 56, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* === Standard block === */
.standard-block {
  background: rgba(200, 163, 95, 0.04);
  border-left: 2px solid var(--gold);
  padding: 28px 32px;
  border-radius: 0 12px 12px 0;
  max-width: 100%;
}
.standard-block p {
  margin-bottom: 16px;
}
.standard-block p:last-child { margin-bottom: 0; }
.standard-emphasis {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
}

/* === Compliance notice === */
.notice {
  background: rgba(180, 60, 60, 0.06);
  border: 1px solid rgba(180, 60, 60, 0.2);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 100%;
}
.notice p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.notice p:last-child { margin-bottom: 0; }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 100%;
}
.contact-block h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mute);
}
.contact-block a { font-weight: 500; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* === Footer === */
.footer {
  padding: 48px 0 64px;
  background: var(--navy-deep);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 20px;
  opacity: 0.85;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-link {
  font-size: 12px;
  color: var(--text-faint);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.footer-link:hover { color: var(--gold); }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: rgba(15, 33, 56, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  max-width: 720px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
}
.modal-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  float: right;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 12px;
}
.modal-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}
.modal-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 8px;
  color: var(--gold);
}
.modal-card p, .modal-card li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.modal-card ul { padding-left: 20px; margin-bottom: 16px; }

/* RTL */
html[dir="rtl"] .section-lede {
  padding-left: 0;
  padding-right: 24px;
  border-left: none;
  border-right: 2px solid var(--gold);
}
html[dir="rtl"] .standard-block {
  border-left: none;
  border-right: 2px solid var(--gold);
  border-radius: 12px 0 0 12px;
}
