/* ════════════════════════════════════════════════
   FORJE CAPITAL — SHARED DESIGN SYSTEM
   Per brand brief: navy/gold institutional private credit
   ════════════════════════════════════════════════ */

:root {
  /* Brief-specified palette, exact */
  --navy:        #081A33;
  --navy-deep:   #050F1E;
  --navy-mid:    #0F2547;
  --gold:        #ECD06F;
  --gold-lt:     #F2DE94;
  --gold-dk:     #C9A84A;
  --brass:       #B8893C;
  --off-white:   #F4F1EA;
  --body-bg:     #FCFBF7;
  --ink:         #14213D;
  --ink-mid:     #4A5670;
  --ink-light:   #7C869C;
  --line:        #E2DDD0;
  --line-dark:   rgba(244,241,234,0.12);

  --dp: 'Cormorant Garamond', Georgia, serif;
  --bd: 'Inter', sans-serif;
  --ease: 0.22s ease;
  --r: 2px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bd);
  background: var(--body-bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── LEDGER-LINE SIGNATURE MOTIF ───
   Fine gold rule with tick marks — recurs as section dividers,
   evokes architectural blueprints / financial ledgers without being literal */
.ledger-rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.5;
}
.ledger-rule::before, .ledger-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--gold);
}
.ledger-rule::before { left: 15%; }
.ledger-rule::after { right: 15%; }

/* ─── UTILITY ─── */
.inner { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }
.inner-narrow { max-width: 860px; margin: 0 auto; padding: 0 6vw; }
section { padding: 6.5rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.eyebrow.on-dark, .bg-navy .eyebrow, .page-hero .eyebrow { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--dp); font-weight: 400; color: var(--navy); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brass); }
.on-dark h1, .on-dark h2, .on-dark h3,
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 { color: var(--off-white); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em,
.bg-navy h1 em, .bg-navy h2 em, .bg-navy h3 em,
.page-hero h1 em, .page-hero h2 em, .page-hero h3 em { color: var(--gold); }

h2.st {
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.16; letter-spacing: -.005em;
  margin-bottom: 1.1rem;
}
h3.st-sm { font-size: 1.4rem; line-height: 1.25; margin-bottom: .7rem; }

p.lead { font-size: 1.02rem; font-weight: 400; line-height: 1.85; color: var(--ink-mid); max-width: 640px; }
p.body { font-size: .92rem; font-weight: 400; line-height: 1.8; color: var(--ink-mid); }
.on-dark p.lead, .on-dark p.body,
.bg-navy p.lead, .bg-navy p.body, .page-hero p.lead, .page-hero p.body { color: rgba(244,241,234,0.86); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--bd); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r); cursor: pointer; border: none;
  transition: all var(--ease); white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); padding: .85rem 1.9rem; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); padding: .81rem 1.8rem; border: 1px solid rgba(8,26,51,0.22); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.on-dark .btn-outline, .bg-navy .btn-outline, .page-hero .btn-outline { color: var(--off-white); border-color: rgba(244,241,234,0.28); }
.on-dark .btn-outline:hover, .bg-navy .btn-outline:hover, .page-hero .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-text {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brass); text-decoration: none; background: none; border: none; cursor: pointer;
  transition: gap var(--ease);
}
.btn-text:hover { gap: .75rem; }
.btn-text::after { content: '→'; }
.on-dark .btn-text, .bg-navy .btn-text, .page-hero .btn-text { color: var(--gold); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(252,251,247,0.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8,26,51,0.08);
  transition: box-shadow var(--ease);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(8,26,51,0.08); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; transition: color var(--ease);
  display: flex; align-items: center; gap: .35rem;
}
.nav-links a:hover { color: var(--brass); }
.nav-links .cta {
  background: var(--navy); color: var(--off-white); padding: .65rem 1.4rem; border-radius: var(--r);
}
.nav-links .cta:hover { background: var(--navy-mid); color: var(--gold); }

/* Solutions dropdown */
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); border-radius: var(--r); padding: .85rem;
  min-width: 280px; box-shadow: 0 24px 50px rgba(8,26,51,0.22);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  margin-top: 1.1rem;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: .6rem .85rem; font-size: .74rem; font-weight: 500;
  letter-spacing: .02em; text-transform: none; color: rgba(244,241,234,0.82);
  border-radius: var(--r); transition: background var(--ease), color var(--ease);
}
.dropdown a:hover { background: rgba(236,208,111,0.1); color: var(--gold); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--navy); }

#mob {
  display: none; position: fixed; inset: 0; z-index: 990; background: var(--navy);
  flex-direction: column; padding: 6rem 8vw 3rem; overflow-y: auto;
}
#mob.open { display: flex; }
#mob .mob-x { position: absolute; top: 1.6rem; right: 6vw; background: none; border: none; color: var(--off-white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
#mob a { font-family: var(--dp); font-size: 1.5rem; color: var(--off-white); text-decoration: none; padding: .65rem 0; border-bottom: 1px solid rgba(244,241,234,0.08); }
#mob a.sub { font-size: 1.05rem; padding-left: 1.2rem; color: rgba(244,241,234,0.65); font-family: var(--bd); border-bottom: none; }
#mob .mob-cta { margin-top: 1.5rem; }

/* ─── HERO ─── */
.hero {
  background: var(--navy); color: var(--off-white); position: relative; overflow: hidden;
  padding: 11rem 0 6rem;
}
.hero::before {
  content: ''; position: absolute; top: -260px; right: -200px; width: 720px; height: 720px;
  border-radius: 50%; background: radial-gradient(circle, rgba(236,208,111,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.08; color: var(--off-white);
  margin-bottom: 1.4rem; max-width: 820px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { max-width: 620px; margin-bottom: 2.2rem; font-size: 1.02rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.trust-line {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  font-size: .72rem; letter-spacing: .04em; color: rgba(244,241,234,0.65);
}
.trust-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .6; }

/* page hero (solution pages, smaller) */
.page-hero {
  background: var(--navy); color: var(--off-white); padding: 9.5rem 0 4.5rem; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -220px; right: -180px; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(236,208,111,0.07) 0%, transparent 65%); pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 1; }
.breadcrumb { font-size: .7rem; color: rgba(244,241,234,0.45); margin-bottom: 1.6rem; letter-spacing: .03em; }
.breadcrumb a { color: rgba(244,241,234,0.65); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); max-width: 720px; margin-bottom: 1.1rem; }
.page-hero .lead { font-size: .98rem; max-width: 600px; }

/* ─── CARDS (solutions grid) ─── */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: transparent; }
.sol-card {
  background: var(--body-bg); padding: 2.1rem 1.9rem; position: relative;
  border: 1px solid var(--line); margin-left: -1px; margin-top: -1px;
  transition: background var(--ease);
  display: flex; flex-direction: column;
}
.sol-card:hover { background: #FFFFFF; z-index: 1; }
.sol-card .sc-label {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: .9rem; font-weight: 600;
}
.sol-card h3 { font-size: 1.18rem; margin-bottom: .65rem; line-height: 1.3; }
.sol-card p { font-size: .82rem; color: var(--ink-mid); line-height: 1.7; margin-bottom: 1.3rem; flex-grow: 1; }
.sol-card .btn-text { font-size: .7rem; }

/* ─── WHY FORJE PILLARS ─── */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); }
.pillar { background: var(--navy); padding: 2.2rem 1.8rem; }
.pillar-num { font-family: var(--dp); font-size: 1rem; color: var(--gold); opacity: .55; margin-bottom: 1rem; }
.pillar h3 { color: var(--off-white); font-size: 1.12rem; margin-bottom: .65rem; }
.pillar p { color: rgba(244,241,234,0.78); font-size: .82rem; line-height: 1.7; }

/* ─── HOW IT WORKS STEPS ─── */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-row::before {
  content: ''; position: absolute; top: 1.7rem; left: calc(12.5% + .6rem); right: calc(12.5% + .6rem);
  height: 1px; background: linear-gradient(90deg, var(--gold), var(--brass)); z-index: 0;
}
.step { padding: 0 1.2rem; position: relative; z-index: 1; }
.step-n {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--dp); font-size: 1.1rem; border: 1px solid var(--brass); color: var(--brass);
  background: var(--body-bg); margin-bottom: 1.3rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.step p { font-size: .8rem; color: var(--ink-mid); line-height: 1.7; }

/* ─── INDUSTRIES GRID ─── */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: transparent; }
.ind-item {
  background: var(--body-bg); padding: 1.7rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  border: 1px solid var(--line); margin-left: -1px; margin-top: -1px;
  transition: background var(--ease);
}
.ind-item:hover { background: #fff; z-index: 1; position: relative; }
.ind-item .ii { width: 30px; height: 30px; }
.ind-item span { font-size: .76rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }

/* ─── FUNDING EXAMPLES ─── */
.fund-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.fund-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem;
  background: #fff; transition: box-shadow var(--ease), transform var(--ease);
}
.fund-card:hover { box-shadow: 0 16px 36px rgba(8,26,51,0.07); transform: translateY(-2px); }
.fund-type { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .6rem; font-weight: 600; }
.fund-amt { font-family: var(--dp); font-size: 1.9rem; color: var(--navy); line-height: 1; margin-bottom: .4rem; }
.fund-meta { font-size: .72rem; color: var(--ink-light); margin-bottom: .8rem; }
.fund-desc { font-size: .8rem; color: var(--ink-mid); line-height: 1.7; }

/* ─── FOUNDER ─── */
.founder-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2.8rem; align-items: center; }
.founder-photo {
  width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold);
  box-shadow: 0 16px 36px rgba(8,26,51,0.14);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-size: 1.5rem; margin-bottom: .3rem; }
.founder-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 1.1rem; }

/* ─── FAQ ─── */
/* ─── BEST-FOR LIST ─── */
.best-for-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.best-for-list li {
  position: relative; padding-left: 1.4rem; font-size: .88rem; color: var(--ink-mid); line-height: 1.6;
}
.best-for-list li::before {
  content: ''; position: absolute; left: 0; top: .5rem; width: 8px; height: 8px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-q { font-family: var(--dp); font-size: 1.1rem; color: var(--navy); margin-bottom: .6rem; }
.faq-a { font-size: .86rem; color: var(--ink-mid); line-height: 1.8; }

/* ─── FORM ─── */
.app-form { background: var(--navy); border-radius: var(--r); padding: 2.4rem; color: var(--off-white); }
.fg { display: flex; flex-direction: column; gap: .32rem; margin-bottom: .9rem; }
.fg label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,234,0.5); }
.fg input, .fg select, .fg textarea {
  background: rgba(244,241,234,0.06); border: 1px solid rgba(244,241,234,0.14); border-radius: var(--r);
  padding: .72rem .95rem; font-family: var(--bd); font-size: .87rem; color: var(--off-white);
  outline: none; transition: border-color var(--ease); width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(244,241,234,0.28); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); }
.fg select option { background: var(--navy); }
.fg textarea { resize: vertical; min-height: 90px; }
.fg input[type="file"] {
  padding: .6rem .8rem; cursor: pointer; font-size: .8rem;
}
.fg input[type="file"]::file-selector-button {
  background: var(--gold); color: var(--navy); border: none; border-radius: var(--r);
  padding: .5rem 1rem; font-family: var(--bd); font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; cursor: pointer; margin-right: .9rem;
  transition: background var(--ease);
}
.fg input[type="file"]::file-selector-button:hover { background: var(--gold-lt); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fg-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }
.form-submit {
  width: 100%; background: var(--gold); color: var(--navy); border: none; padding: .95rem;
  font-family: var(--bd); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r); cursor: pointer; transition: background var(--ease); margin-top: .3rem;
}
.form-submit:hover { background: var(--gold-lt); }
.form-submit:disabled { background: rgba(244,241,234,0.3); cursor: default; }
.consent-text { font-size: .68rem; color: rgba(244,241,234,0.42); line-height: 1.6; margin-top: 1rem; }
.file-upload-note { font-size: .68rem; color: rgba(244,241,234,0.42); margin-top: .3rem; }

/* ─── FOOTER ─── */
footer { background: var(--navy-deep); padding: 3.2rem 0 1.8rem; color: rgba(244,241,234,0.45); }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(244,241,234,0.07); margin-bottom: 1.5rem; }
.f-logo { display: block; margin-bottom: .9rem; }
.f-logo svg { height: 34px; width: auto; }
.f-brand p { font-size: .78rem; line-height: 1.75; color: rgba(244,241,234,0.38); max-width: 260px; }
.f-col h4 { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,241,234,0.55); margin-bottom: .9rem; font-weight: 600; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.f-col a { font-size: .78rem; color: rgba(244,241,234,0.38); text-decoration: none; transition: color var(--ease); }
.f-col a:hover { color: var(--gold); }
.f-disc { font-size: .65rem; color: rgba(244,241,234,0.25); line-height: 1.7; margin-bottom: 1.1rem; max-width: 980px; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; color: rgba(244,241,234,0.3); flex-wrap: wrap; gap: .6rem; }
.f-bottom a { color: rgba(244,241,234,0.4); text-decoration: none; }
.f-bottom a:hover { color: var(--gold); }
.f-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.on { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ha { opacity: 0; animation: fadeUp .85s forwards; }
.ha:nth-child(1) { animation-delay: .1s; }
.ha:nth-child(2) { animation-delay: .25s; }
.ha:nth-child(3) { animation-delay: .4s; }

/* ─── SECTION BACKGROUNDS ─── */
.bg-navy { background: var(--navy); color: var(--off-white); }
.bg-off { background: var(--off-white); }
.bg-white { background: #FFFFFF; }
.bg-body { background: var(--body-bg); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  section { padding: 4.5rem 0; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-row::before { display: none; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .fund-grid { grid-template-columns: 1fr 1fr; }
  .founder-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .sol-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .fund-grid { grid-template-columns: 1fr; }
  .fg-row, .fg-row-3 { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}
