/* ============================================
   BILDWELL FUNDING — A+ Redesign
   Design direction: ChatGPT QB, 2026-06-29
   ============================================ */

:root {
  --charcoal: #2B2B2B;
  --charcoal-deep: #1F1F1F;
  --slate: #5A5A5A;
  --stone: #8B8477;
  --brass: #B89B5E;
  --ivory: #F7F4EF;
  --neutral: #F5F5F5;
  --white: #FFFFFF;
  --line-dark: rgba(255,255,255,0.10);
  --line-light: rgba(43,43,43,0.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--charcoal-deep);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(31,31,31,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247,244,239,0.6); transition: color 0.2s;
}
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(184,155,94,0.5); color: var(--brass);
  padding: 0.55rem 1.25rem; transition: all 0.2s;
}
.nav-cta:hover { background: var(--brass); color: var(--charcoal-deep); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--ivory); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 3rem 5rem;
  background: var(--charcoal-deep);
  position: relative; overflow: hidden;
}

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.4;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 2rem; height: 1px; background: var(--brass);
}
.hero-title {
  font-size: clamp(4.25rem, 10vw, 9.5rem);
  line-height: 0.9; letter-spacing: -0.075em; font-weight: 300;
  max-width: 1050px; color: var(--ivory); margin-bottom: 2.5rem;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.5; font-weight: 300;
  max-width: 600px; color: rgba(247,244,239,0.7); margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--brass); color: var(--charcoal-deep);
  padding: 0.85rem 2rem; transition: all 0.2s; font-weight: 500;
}
.btn-primary:hover { background: #cdb06a; }
.btn-ghost {
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-dark); color: rgba(247,244,239,0.6);
  padding: 0.85rem 2rem; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--ivory); color: var(--ivory); }

/* ── STATS BAND ── */
.stats-band {
  background: var(--charcoal); border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.5rem 3rem; border-right: 1px solid var(--line-dark);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300;
  letter-spacing: -0.05em; color: var(--ivory); line-height: 1;
}
.stat-number span { color: var(--brass); }
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,244,239,0.45); margin-top: 0.5rem;
}

/* ── STAGE RAIL (What We Fund) ── */
.section-dark { background: var(--charcoal-deep); padding: 6rem 3rem; }
.section-light { background: var(--ivory); color: var(--charcoal-deep); padding: 6rem 3rem; }
.section-mid { background: var(--charcoal); padding: 6rem 3rem; }

.section-header { margin-bottom: 4rem; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content:''; width:1.5rem; height:1px; background:var(--brass); display:block; }
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1.05; max-width: 700px;
}
.section-intro {
  font-size: 1.05rem; line-height: 1.6; max-width: 640px;
  color: rgba(247,244,239,0.65); margin-top: 1.25rem;
}
.section-light .section-intro { color: var(--slate); }

.stage-rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.stage-panel {
  min-height: 380px; padding: 2.5rem 2rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.2s;
}
.stage-panel:hover { background: rgba(255,255,255,0.03); }
.stage-code {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.85; letter-spacing: -0.08em; font-weight: 300; color: var(--brass);
}
.stage-name {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(247,244,239,0.4); margin-top: 0.4rem;
}
.stage-body h3 {
  font-size: 1.25rem; letter-spacing: -0.03em; font-weight: 400;
  margin-bottom: 0.75rem; color: var(--ivory);
}
.stage-body p { font-size: 0.9rem; line-height: 1.6; color: rgba(247,244,239,0.55); }

/* ── WHY BILD WELL (asymmetric grid) ── */
.why-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: start;
  max-width: 1200px; margin: 0 auto;
}
.why-body { font-size: 1.05rem; line-height: 1.7; color: var(--slate); }
.why-body p + p { margin-top: 1.25rem; }
.why-body strong { color: var(--charcoal-deep); font-weight: 500; }

/* ── PROCESS STEPS ── */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--line-dark); }
.step-code {
  font-size: 1.75rem; font-weight: 300; letter-spacing: -0.05em;
  color: var(--brass); line-height: 1;
}
.step-content h3 {
  font-size: 1.1rem; font-weight: 400; letter-spacing: -0.02em;
  color: var(--ivory); margin-bottom: 0.5rem;
}
.step-content p { font-size: 0.9rem; line-height: 1.6; color: rgba(247,244,239,0.55); }

/* ── PIPELINE / CURRENT PROJECTS ── */
.pipeline-grid { display: flex; flex-direction: column; gap: 0; }
.pipeline-item {
  display: grid; grid-template-columns: 1fr 140px 140px;
  gap: 2rem; padding: 2rem 0; align-items: center;
  border-bottom: 1px solid var(--line-dark);
}
.pipeline-item:first-child { border-top: 1px solid var(--line-dark); }
.pipeline-name { font-size: 1.05rem; font-weight: 400; letter-spacing: -0.02em; }
.pipeline-type { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,239,0.45); }
.pipeline-stage {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--brass); color: var(--brass); padding: 0.3rem 0.75rem;
  text-align: center; width: fit-content;
}
.pipeline-status {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,244,239,0.5); text-align: right;
}

/* ── INVESTOR CTA BAND ── */
.cta-band {
  background: var(--charcoal); border-top: 1px solid var(--line-dark);
  padding: 6rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  flex-wrap: wrap;
}
.cta-band-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 300;
  letter-spacing: -0.04em; max-width: 560px; line-height: 1.1;
}
.cta-band-text p { color: rgba(247,244,239,0.5); margin-top: 0.75rem; font-size: 0.95rem; }

/* ── FOOTER ── */
.footer {
  background: var(--charcoal-deep); border-top: 1px solid var(--line-dark);
  padding: 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end;
}
.footer-logo img { height: 24px; opacity: 0.7; }
.footer-legal { font-size: 0.75rem; color: rgba(247,244,239,0.3); margin-top: 1rem; line-height: 1.6; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247,244,239,0.35); transition: color 0.2s;
}
.footer-links a:hover { color: rgba(247,244,239,0.7); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 10rem 3rem 5rem;
  background: var(--charcoal-deep);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero .hero-eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300;
  letter-spacing: -0.055em; line-height: 0.95; max-width: 800px;
}
.page-hero p {
  font-size: 1.1rem; color: rgba(247,244,239,0.6); max-width: 560px;
  line-height: 1.55; margin-top: 1.5rem;
}

/* ── INVESTOR PAGE ── */
.investor-disclaimer {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark);
  padding: 1.5rem 2rem; font-size: 0.8rem; line-height: 1.6;
  color: rgba(247,244,239,0.35); margin-top: 3rem;
}
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(247,244,239,0.45); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark); color: var(--ivory);
  padding: 0.85rem 1rem; font-size: 0.95rem; font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--brass);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── ABOUT PAGE ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; }
.team-card {
  padding: 2.5rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
}
.team-card h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; }
.team-card .team-title {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brass); margin: 0.4rem 0 1rem;
}
.team-card p { font-size: 0.9rem; line-height: 1.6; color: rgba(247,244,239,0.55); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stage-rail { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pipeline-item { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 0 1.5rem 4rem; }
  .section-dark, .section-light, .section-mid { padding: 4rem 1.5rem; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.75rem 1.5rem; border-right: none; border-bottom: 1px solid var(--line-dark); }
  .stage-rail { grid-template-columns: 1fr; }
  .stage-panel { min-height: auto; border-right: none; }
  .cta-band { padding: 4rem 1.5rem; flex-direction: column; }
  .footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }
  .pipeline-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .process-step { grid-template-columns: 60px 1fr; gap: 1rem; padding: 2rem 0; }
}

@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
}

/* ── UTILITY ── */
.max-w { max-width: 1280px; margin: 0 auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 0.3rem; cursor: default;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247,244,239,0.6); transition: color 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--ivory); }
.nav-caret { font-size: 0.55rem; opacity: 0.55; transition: transform 0.2s, opacity 0.2s; display: inline-block; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translateX(-50%);
  background: rgba(22,22,22,0.98); backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark); min-width: 230px;
  padding: 0.4rem 0; opacity: 0; visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1.25rem;
  font-size: 0.725rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(247,244,239,0.45); transition: color 0.15s, background 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
}
.nav-dropdown-menu a:hover {
  color: var(--ivory); background: rgba(255,255,255,0.04);
  border-left-color: var(--brass);
}
@media (max-width: 768px) {
  .nav-dropdown { display: contents; }
  .nav-caret { display: none; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    background: transparent; border: none; padding: 0;
    min-width: 0; backdrop-filter: none; transform: none;
  }
  .nav-dropdown-menu a {
    padding: 0; border-left: none !important;
    color: rgba(247,244,239,0.4); font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .nav-dropdown-menu a:hover { background: transparent; }
}
