/* ═══════════════════════════════════════════════════════════════════
   GIDEONS RIVER — Design System
   Principal Investment & Advisory · US–Nigeria Corridor
   Typography: Playfair Display (display) · DM Sans (body/UI)
   ═══════════════════════════════════════════════════════════════════ */

/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page <head>
   (non-render-blocking). Do not re-add @import here — it would double-load and block paint. */

/* ── Design Tokens ── */
:root {
  /* Palette */
  --color-primary:        #1B3A4B;
  --color-primary-dark:   #0F2027;
  --color-secondary:      #2E5A6E;
  --color-accent:         #C9A84C;
  --color-accent-light:   #E8D9A8;
  --color-accent-ink:     #8A6B25; /* darker brass — for gold text on light bg (WCAG AA) */
  --color-surface:        #F4F6F8;
  --color-surface-warm:   #F8F4EC;
  --color-text:           #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-muted:     #999999;
  --color-success:        #2D8B61;
  --color-white:          #FFFFFF;

  /* Derived */
  --navy-glass:           rgba(15, 32, 39, 0.92);
  --line-on-dark:         rgba(232, 217, 168, 0.18);
  --line-on-light:        rgba(27, 58, 75, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', Calibri, system-ui, sans-serif;

  /* Layout */
  --max-width:   1200px;
  --max-narrow:  720px;
  --nav-height:  84px;
  --section-pad: clamp(80px, 9vw, 120px);
  --gutter:      clamp(20px, 5vw, 48px);

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --transition:  0.4s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Scale ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.display    { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; }
h1          { font-size: clamp(2.2rem, 4.2vw, 2.9rem); }
h2          { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 600; }
h3          { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
p           { color: var(--color-text-secondary); }
.lead       { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-text-secondary); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--color-secondary); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  color: var(--color-primary);
}
.pull-quote .accent { color: var(--color-accent-ink); }

/* ── Layout helpers ── */
.wrap { max-width: var(--max-width); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
section { padding-block: var(--section-pad); }
.section--surface { background: var(--color-surface); }
.section--warm    { background: var(--color-surface-warm); }
.section--navy    { background: var(--color-primary); color: var(--color-white); }
.section--deep    { background: var(--color-primary-dark); color: var(--color-white); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

/* Gold accent rule */
.rule-gold { width: 56px; height: 2px; background: var(--color-accent); border: 0; margin: 22px 0; }
.center .rule-gold, .rule-gold.center { margin-inline: auto; }

/* Textile / river background motifs */
.motif-textile {
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(46,90,110,0.04) 0 2px, transparent 2px 14px);
}
.wave-divider { display: block; width: 100%; height: 60px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 32px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition);
  border-radius: 0;
}
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }
.btn--primary:hover { background: #b8973f; border-color: #b8973f; transform: scale(1.02); }
.btn--secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--secondary:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--line-on-light); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Inline arrow link */
.link-arrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; color: var(--color-secondary);
  display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow .arrow { transition: transform var(--transition); }
.link-arrow:hover { color: var(--color-accent-ink); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-height);
  display: flex; align-items: center; z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { color: var(--color-white); transition: color var(--transition); }
.nav__logo svg { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative; font-size: 0.86rem; font-weight: 400; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72); transition: color var(--transition); padding: 6px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; height: 1.5px; width: 0;
  background: var(--color-accent); transform: translateX(-50%); transition: width var(--transition);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

/* Scrolled state */
.nav.is-scrolled {
  background: var(--navy-glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-on-dark);
  height: 72px;
}

/* Hamburger */
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative; z-index: 110;
}
.nav__toggle span {
  position: absolute; left: 0; height: 2px; width: 100%; background: var(--color-white);
  transition: var(--transition);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  position: fixed; inset: 0; background: var(--color-primary-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; z-index: 105; opacity: 0; visibility: hidden; transition: var(--transition);
}
body.menu-open .nav__overlay { opacity: 1; visibility: visible; }
.nav__overlay a {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--color-white);
  padding: 12px 0; transition: color var(--transition);
}
.nav__overlay a:hover, .nav__overlay a[aria-current="page"] { color: var(--color-accent); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(46,90,110,0.55) 0%, transparent 55%),
    linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-dark) 70%);
  color: var(--color-white); overflow: hidden;
}
.hero__bg-lines { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; padding-top: var(--nav-height); }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1, .hero .display { color: var(--color-white); margin-bottom: 22px; }
.hero__sub { font-family: var(--font-display); font-size: clamp(1.3rem,2.6vw,1.9rem); color: var(--color-accent); font-weight: 500; }
.hero__tagline { color: rgba(255,255,255,0.72); letter-spacing: 0.04em; margin-top: 14px; font-size: 1.05rem; }
.hero__cta { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero__scroll .dot { width: 1px; height: 38px; background: linear-gradient(var(--color-accent), transparent); }

/* ═══════════════ CARDS ═══════════════ */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.pillar-card {
  background: var(--color-white); border: 1px solid var(--line-on-light);
  padding: 40px 34px; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(15,32,39,0.28); border-color: transparent; }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card__num { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--color-accent); margin-bottom: 14px; }
.pillar-card__icon { color: var(--color-secondary); margin-bottom: 20px; }
.pillar-card__icon svg { width: 34px; height: 34px; stroke-width: 1.4; }
.pillar-card h3 { color: var(--color-primary); margin-bottom: 12px; }
.pillar-card p { font-size: 0.97rem; margin-bottom: 22px; flex: 1; }

/* Service line cards */
.service-card {
  border: 1px solid var(--line-on-light); padding: 28px 26px; background: var(--color-white);
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.service-card h4 { font-size: 1.08rem; color: var(--color-primary); margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; }

/* ═══════════════ METRICS BAR ═══════════════ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.metric { text-align: center; padding: 12px; }
.metric__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--color-accent); line-height: 1; }
.metric__label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 12px; letter-spacing: 0.03em; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.7); padding-block: 72px 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-on-dark); }
.footer__brand svg { height: 36px; margin-bottom: 20px; color: var(--color-white); }
.footer__brand p { font-size: 0.92rem; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; transition: color var(--transition); }
.footer__col a:hover { color: var(--color-accent); }
.footer__legal { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 820px; margin-bottom: 20px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__social a:hover { color: var(--color-accent); }

/* ═══════════════ PAGE HEADER (interior pages) ═══════════════ */
.page-header {
  padding-top: calc(var(--nav-height) + clamp(60px, 9vw, 110px));
  padding-bottom: clamp(50px, 7vw, 84px);
  background: linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-dark) 80%);
  color: var(--color-white); position: relative; overflow: hidden;
}
.page-header__inner { position: relative; z-index: 2; max-width: 760px; }
.page-header h1 { color: var(--color-white); margin: 18px 0; }
.page-header p { color: rgba(255,255,255,0.74); font-size: 1.1rem; }
.page-header .hero__bg-lines { opacity: 0.4; }

/* ═══════════════ REVEAL ANIMATION ═══════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* Utility */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.text-accent { color: var(--color-accent-ink); font-weight: 600; }
