/* ================================================
   White Oak Bridge Capital — Main Stylesheet
   ================================================ */

/* 1.  Custom Properties
   2.  Reset & Base
   3.  Utility
   4.  Wordmark & Buttons
   5.  Utility Bar
   6.  Navigation
   7.  Hero (with visual texture layers)
   8.  Stat Band
   9.  What We Fund
   10. How We Work
   11. Bridge Basics
   12. Built for Brokers
   13. Who We Are
   14. Wholesale Pricing
   15. Work With Us
   16. Footer
   17. Scroll Animations
   18. Additional Pages
   19. Media Queries
================================================ */

/* ── 1. Custom Properties ────────────────────── */

:root {
  --green-1: #253232;
  --green-2: #788780;
  --green-3: #95A49E;
  --grey-1:  #222222;
  --grey-2:  #424242;
  --grey-3:  #969696;
  --grey-4:  #F1F2F2;
  --paper:   #FBFBFA;

  --section-pad:  clamp(4rem, 8vw, 7rem);
  --container:    1080px;
  --content-pad:  clamp(1.5rem, 5vw, 3rem);
}

/* ── 2. Reset & Base ─────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ── 3. Utility ──────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 1.875rem;
}

.section-headline {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 500;
  color: var(--green-1);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hairline {
  border: none;
  border-top: 1px solid var(--green-2);
}

/* ── 4. Wordmark & Buttons ───────────────────── */

.wordmark {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.15;
}

.wordmark--light { color: var(--green-1); }
.wordmark--dark  { color: white; }
.wordmark .cap   { color: var(--green-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.875rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--green-1);
  color: white;
  border-color: var(--green-1);
}
.btn--primary:hover { background: #1c2828; border-color: #1c2828; }

.btn--ghost {
  background: transparent;
  color: var(--green-1);
  border-color: var(--green-2);
}
.btn--ghost:hover { background: var(--green-1); color: white; border-color: var(--green-1); }

.btn--outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Underline-grow link */
.link-grow {
  position: relative;
  color: var(--green-1);
  font-weight: 600;
}
.link-grow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-2);
  transition: width 0.25s ease;
}
.link-grow:hover::after { width: 100%; }

/* ── 5. Utility Bar ──────────────────────────── */

.util-bar {
  background: var(--green-1);
  color: var(--green-3);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0.4375rem 0;
}

.util-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.util-bar__email { color: var(--green-3); transition: color 0.2s; }
.util-bar__email:hover { color: white; }

/* ── 6. Navigation ───────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: white;
  border-bottom: 1px solid var(--grey-4);
  transition: box-shadow 0.2s ease;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9375rem var(--content-pad);
  gap: 1.5rem;
}

.nav__wordmark { font-size: 1.0625rem; flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.375rem;
}

.nav__links a:not(.btn) {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--grey-2);
  position: relative;
  transition: color 0.2s;
}

.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-2);
  transition: width 0.25s ease;
}

.nav__links a:not(.btn):hover { color: var(--green-1); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__links .btn { font-size: 0.875rem; padding: 0.625rem 1.25rem; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--green-1);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--green-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-overlay a:not(.btn) {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  color: white;
  transition: color 0.2s;
}

.nav-overlay a:not(.btn):hover { color: var(--green-3); }
.nav-overlay .btn { margin-top: 0.75rem; font-size: 1rem; padding: 0.875rem 2rem; }

/* ── 7. Hero ─────────────────────────────────── */

.hero {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(37, 50, 50, 0.65) 0%,
      rgba(37, 50, 50, 0.78) 100%
    ),
    url('/assets/WOBCHero2.jpg') center top / cover no-repeat;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radial vignette — softens edges, adds depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 88% 78% at 50% 50%,
    transparent 22%,
    rgba(8, 15, 15, 0.45) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* All text content sits above the visual layers */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--content-pad) clamp(4rem, 8vw, 7rem);
  width: 100%;
}

/* Large, dominant wordmark */
.hero__wordmark {
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: white;
  line-height: 1.05;
  margin-bottom: clamp(1.125rem, 2vw, 1.75rem);
}

/* Italic Lora tagline — semantic h1 */
.hero__tagline {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--green-3);
  max-width: 30ch;
  margin: 0 auto 1.375rem;
  line-height: 1.35;
}

/* Inter 500 subline */
.hero__subline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  color: white;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}

.hero__rule {
  max-width: 480px;
  margin: 0 auto 2.25rem;
  border-color: var(--green-2);
  opacity: 0.5;
}

.hero__ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 8. Stat Band ────────────────────────────── */

.stat-band {
  background: var(--grey-4);
  border-top: 1px solid #e4e5e5;
  border-bottom: 1px solid #e4e5e5;
  padding: 1.125rem 0;
  overflow: hidden;
}

.stat-band__scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  white-space: nowrap;
  justify-content: center;
}

.stat-band__scroll::-webkit-scrollbar { display: none; }

.stat-band__item {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-1);
  padding: 0 0.875rem;
  flex-shrink: 0;
}

.stat-band__dot {
  color: var(--green-2);
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── 9. What We Fund ─────────────────────────── */

.what-we-fund { background: var(--paper); }

.wwf-lead {
  margin-bottom: 3rem;
}

.wwf-lead p {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  line-height: 1.75;
}

.wwf-lead p + p { margin-top: 0.875rem; }

.fund-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.fund-card {
  background: white;
  border: 1px solid #e8e9e9;
  border-radius: 4px;
  padding: 1.625rem 1.75rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fund-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 50, 50, 0.09);
}

.fund-card__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.5rem;
}

.fund-card__value {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--green-1);
  line-height: 1.45;
}

/* ── 10. How We Work ─────────────────────────── */

.how-we-work { background: var(--grey-4); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.25rem;
}

.step__num {
  font-family: 'Lora', Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--green-3);
  line-height: 1;
  margin-bottom: 0.875rem;
}

.step__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--green-1);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.step__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--grey-2);
  line-height: 1.65;
}

/* ── 11. Bridge Basics ───────────────────────── */

.bridge-basics { background: var(--paper); }

.bb-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  line-height: 1.75;
}

.bb-text + .bb-text { margin-top: 2.5rem; }

.scenario-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.scenario-card {
  background: white;
  border: 1px solid #e8e9e9;
  border-radius: 4px;
  padding: 1.5rem 1.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 50, 50, 0.08);
}

.scenario-card__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--green-1);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.scenario-card__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--grey-2);
  line-height: 1.6;
}

/* ── 12. Built for Brokers ───────────────────── */

.brokers { background: var(--grey-4); }

.brokers__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* 3-column value props on desktop */
.value-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.value-col {
  border-top: 2px solid var(--green-2);
  padding-top: 1.5rem;
}

.value-col__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.1875rem;
  color: var(--green-1);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.value-col__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--grey-2);
  line-height: 1.65;
}

/* ── 13. Who We Are ──────────────────────────── */

.who-we-are { background: var(--paper); }

.who-we-are__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  line-height: 1.8;
}

.stat-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(120, 135, 128, 0.28);
}

.stat-item__number {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 2.875rem);
  font-weight: 500;
  color: var(--green-1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--grey-2);
  line-height: 1.5;
}

/* ── 14. Wholesale Pricing ───────────────────── */

.rate-sheet { background: var(--grey-4); }

.rate-sheet__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ── 15. Work With Us ────────────────────────── */

.work-with-us { background: var(--paper); }

.work-with-us h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--green-1);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.work-with-us__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--grey-2);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.cta-group {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── 16. Footer ──────────────────────────────── */

.footer {
  background: var(--green-1);
  color: white;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.25rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.footer__entity {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.75rem;
}

.footer__address {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--green-3);
  line-height: 1.8;
  margin-bottom: 1.125rem;
}

.footer__address a { color: var(--green-3); transition: color 0.2s; }
.footer__address a:hover { color: white; }

.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer__links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--green-3);
  transition: color 0.2s;
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-3);
  transition: width 0.25s ease;
}

.footer__links a:hover { color: white; }
.footer__links a:hover::after { width: 100%; }

.footer__rule {
  border-color: rgba(120, 135, 128, 0.28);
  margin: 2.25rem 0 1.875rem;
}

.footer__disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--green-3);
  line-height: 1.65;
  max-width: 80ch;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--grey-3);
}

/* ── 17. Scroll Animations ───────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.00s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
.stagger.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.48s; }

/* ── 18. Additional Pages ────────────────────── */

.page-hero {
  background: var(--green-1);
  padding: clamp(3rem, 6vw, 5rem) var(--content-pad);
  text-align: center;
}

.page-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 0.75rem;
}

.page-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--green-3);
  max-width: 48ch;
  margin: 0 auto;
}

.tally-section {
  background: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.tally-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.legal-page {
  background: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.legal-page__inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.legal-page h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-1);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-page .effective {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--grey-3);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--green-1);
  margin: 2.75rem 0 0.75rem;
}

.legal-page p {
  font-family: 'Inter', sans-serif;
  color: var(--grey-2);
  margin-bottom: 1rem;
  max-width: 70ch;
}

.legal-page ul { padding-left: 1.375rem; margin-bottom: 1rem; list-style: disc; }

.legal-page li {
  font-family: 'Inter', sans-serif;
  color: var(--grey-2);
  margin-bottom: 0.375rem;
}

.legal-page a {
  color: var(--green-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover { text-decoration-color: var(--green-2); }

/* ── 19. Media Queries ───────────────────────── */

/* Tablet: 2-col fund grid + scenario cards + stat strip */
@media (min-width: 580px) {
  .fund-grid        { grid-template-columns: repeat(2, 1fr); }
  .scenario-cards   { grid-template-columns: repeat(2, 1fr); }
  .stat-strip       { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop */
@media (min-width: 900px) {
  .nav__links   { display: flex; }
  .nav__hamburger { display: none; }

  .fund-grid        { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .steps            { grid-template-columns: repeat(3, 1fr); gap: 2.75rem 3.5rem; }
  .scenario-cards   { grid-template-columns: repeat(4, 1fr); }
  .value-cols       { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* Mobile */
@media (max-width: 899px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }
  .util-bar__email { display: none; }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero__ctas .btn { width: 100%; text-align: center; }

  .cta-group { flex-direction: column; align-items: flex-start; }
}

/* Small mobile */
@media (max-width: 420px) {
  .stat-band__scroll { justify-content: flex-start; }
}
