/* =========================================================
   BROOKLYN BORN FINANCIAL — brand system (authoritative)
   Tokens, type, and devices from the official brand kit.
   Navy leads, gold punctuates: one gold moment per surface.
   Unlayered, so it wins over Quanta's @layer base.
   ========================================================= */
:root {
  /* Brand colors */
  --navy:       #17385B;  /* Bridge Navy — primary surface/headers/buttons */
  --gold:       #AB8249;  /* Cable Gold — rules, numerals, eyebrows (<=10%) */
  --gold-deep:  #8A6832;  /* small gold text on paper */
  --gold-light: #C9A05C;  /* gold text/eyebrows on navy */
  --ink:        #0E2238;  /* body + headlines on light; darkest field */
  --paper:      #FAF8F3;  /* default warm off-white background */
  --mist:       #E8EDF3;  /* panels, stripes, secondary cards */
  --slate:      #4C5B6A;  /* captions, secondary text */

  --line:        rgba(14, 34, 56, 0.12);
  --line-soft:   rgba(14, 34, 56, 0.08);
  --line-navy:   rgba(250, 248, 243, 0.16);

  --shadow-card: 0 10px 26px rgba(14, 34, 56, 0.12);
  --shadow-lg:   0 24px 60px rgba(14, 34, 56, 0.20);

  --font-sans:  'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --content: 1180px;
  --content-narrow: 900px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Base ============ */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background-color: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
body {
  min-height: 100dvh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
}
img, picture, svg, canvas { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.12; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-deep); }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(23, 56, 91, 0.20); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ Layout ============ */
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: clamp(22px, 5vw, 56px); }
.wrap-narrow { max-width: var(--content-narrow); margin-inline: auto; padding-inline: clamp(22px, 5vw, 56px); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--mist { background: var(--mist); }

/* ============ Signature devices ============ */
/* Em-dashed gold eyebrow — Archivo caps, wide tracking. */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section--navy .eyebrow,
.eyebrow--on-navy { color: var(--gold-light); }

/* Section header: 2px ink top rule, gold index, Archivo 800 caps title, eyebrow. */
.sec-head {
  display: grid;
  gap: 18px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section--navy .sec-head { border-top-color: var(--paper); }
.sec-head-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-index {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 15px; letter-spacing: 0.1em; color: var(--gold);
}
.sec-title {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(28px, 4vw, 46px); letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--ink); line-height: 1.05;
}
.section--navy .sec-title { color: var(--paper); }
.sec-head-row .eyebrow { margin-left: auto; }
.sec-lede {
  font-family: var(--font-serif); font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75; color: var(--slate); max-width: 62ch;
}
.section--navy .sec-lede { color: rgba(250, 248, 243, 0.82); }

.gold-rule { width: 60px; height: 2px; background: var(--gold); border: 0; }
.diamond { color: var(--gold); font-size: 0.72em; line-height: 1; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 8px; border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }
/* On navy fields */
.on-navy .btn-primary, .btn-gold { background: var(--gold); color: var(--ink); }
.on-navy .btn-primary:hover, .btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.on-navy .btn-outline { color: var(--paper); border-color: rgba(250,248,243,0.5); }
.on-navy .btn-outline:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.link-arrow {
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow .arw { transition: transform .2s var(--ease); }
.link-arrow:hover .arw { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--gold-light); }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 34px; width: auto; }
.brand-word { font-family: var(--font-sans); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; color: var(--navy); text-transform: uppercase; line-height: 1; }
.brand-word small { display: block; font-weight: 600; font-size: 9.5px; letter-spacing: 0.22em; color: var(--slate); margin-top: 4px; }
.nav { display: none; gap: 30px; }
.nav a { font-family: var(--font-sans); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }
.nav a:hover { color: var(--gold-deep); }
.header-cta { display: none; }
@media (min-width: 940px) { .nav { display: flex; } .header-cta { display: inline-flex; } }
.header-spacer { height: 62px; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.12fr 0.88fr; } }
.hero h1 {
  font-family: var(--font-sans); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 78px); letter-spacing: 0.005em;
  line-height: 1.02; color: var(--ink); margin: 22px 0 0;
}
.hero h1 .gold { color: var(--gold); }
.hero .lede {
  font-family: var(--font-serif); font-size: clamp(18px, 1.7vw, 22px);
  font-style: italic; line-height: 1.55; color: var(--slate);
  max-width: 52ch; margin: 24px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 34px 0 0; }

.hero-panel {
  background: var(--navy); color: var(--paper); border-radius: 16px;
  padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,160,92,0.16), transparent 70%); pointer-events: none;
}
.hero-panel .panel-mark { height: 30px; width: auto; margin-bottom: 20px; }
.hero-panel .quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--paper); margin: 14px 0 24px; }
.hero-panel ul { list-style: none; display: grid; gap: 14px; }
.hero-panel li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: rgba(250,248,243,0.9); }
.hero-panel li .diamond { color: var(--gold-light); margin-top: 5px; }
.hero-panel li b { font-weight: 700; color: var(--paper); }

/* ============ Trust strip ============ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (min-width: 820px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line-soft); }
.trust-item:last-child { border-right: 0; }
.trust-item .k { font-family: var(--font-sans); font-weight: 800; font-size: clamp(26px, 3vw, 38px); color: var(--navy); line-height: 1; }
.trust-item .l { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-top: 12px; }

/* ============ Services — editorial numbered list ============ */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 44px);
  align-items: baseline; padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.svc-num { font-family: var(--font-sans); font-weight: 800; font-size: 15px; color: var(--gold); letter-spacing: 0.06em; padding-top: 8px; }
.svc-body { display: grid; gap: 12px; }
.svc h3 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: 0.01em; color: var(--navy); transition: color .2s var(--ease); }
.svc p { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.7; color: var(--slate); max-width: 66ch; }
.svc .svc-arrow { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-deep); opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.svc:hover h3 { color: var(--gold-deep); }
.svc:hover .svc-arrow { opacity: 1; transform: none; }

/* ============ Will & Trust feature (navy) ============ */
.wt-grid { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .wt-grid { grid-template-columns: 1fr 1fr; } }
.wt h2 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0.01em; color: var(--paper); line-height: 1.08; margin: 20px 0 0; }
.wt .sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 1.5vw, 20px); color: rgba(250,248,243,0.82); margin: 16px 0 0; max-width: 46ch; }
.wt-docs {
  background: var(--paper); border-radius: 14px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.wt-docs .cap { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.wt-docs .grid { display: grid; grid-template-columns: 1fr; gap: 14px 32px; margin-top: 20px; }
@media (min-width: 520px) { .wt-docs .grid { grid-template-columns: 1fr 1fr; } }
.wt-docs .doc { display: flex; gap: 12px; align-items: baseline; font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ink); }

/* ============ Steps ============ */
.steps { display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step .n { counter-increment: step; font-family: var(--font-sans); font-weight: 800; font-size: 14px; color: var(--gold); letter-spacing: 0.08em; }
.step h4 { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; font-size: 19px; letter-spacing: 0.02em; color: var(--navy); margin: 14px 0 10px; }
.step p { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--slate); }

/* ============ About ============ */
.about-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }
.about-visual {
  aspect-ratio: 4 / 5; border-radius: 16px; background: var(--navy);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; padding: 40px;
}
.about-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(201,160,92,0.18), transparent 60%); }
.about-visual img { width: 74%; height: auto; position: relative; z-index: 1; }
.about-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); margin: 8px 0 22px; }
.about p { font-family: var(--font-serif); font-size: 17px; line-height: 1.75; color: var(--slate); margin: 0 0 18px; max-width: 60ch; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.creds span { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }

/* ============ Contact / form ============ */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 68px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.95fr 1.05fr; } }
.contact-copy h2 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 46px); color: var(--paper); line-height: 1.08; margin: 20px 0 0; }
.contact-copy .lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 1.6vw, 21px); color: rgba(250,248,243,0.85); margin: 18px 0 0; max-width: 46ch; }
.contact-copy ul { list-style: none; display: grid; gap: 14px; margin: 26px 0 0; }
.contact-copy li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: rgba(250,248,243,0.9); }
.contact-copy li .diamond { color: var(--gold-light); margin-top: 6px; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--font-sans); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; color: var(--gold-light); }
.contact-email:hover { color: var(--paper); }

.form-card { background: var(--paper); border-radius: 16px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: 0.01em; color: var(--navy); }
.form-card .sub { font-family: var(--font-serif); font-size: 15px; color: var(--slate); margin: 8px 0 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(171,130,73,0.22); }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-card .note { font-family: var(--font-sans); font-size: 11.5px; line-height: 1.55; color: var(--slate); margin-top: 16px; }
.form-success { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--ink); padding: 26px; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; }
.form-success strong { font-family: var(--font-sans); font-weight: 800; color: var(--navy); }
.form-error { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: #A34632; background: rgba(163,70,50,0.08); border: 1px solid rgba(163,70,50,0.3); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
/* Honeypot spam trap — kept off-screen, never shown to real users. */
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 80px) 32px; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 40px; border-bottom: 1px solid var(--line-navy); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { font-family: var(--font-serif); font-size: 15px; line-height: 1.7; color: rgba(250,248,243,0.7); margin-top: 18px; max-width: 42ch; }
.footer-col h5 { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: rgba(250,248,243,0.78); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 26px; }
.footer-bottom span { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.04em; color: rgba(250,248,243,0.5); }
.footer-tag { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,248,243,0.6); }

/* ============ On-load reveal (screenshot-safe: ends visible) ============ */
@keyframes bbf-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal { animation: bbf-fade-up 0.7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
}
