/* Bridge Lending Advisors — self-contained styles. No external fonts or trackers. */
:root {
  --ink: #13242b;
  --ink-soft: #3d4f56;
  --navy: #0b242c;
  --lake: #163c48;
  --teal: #2a6270;
  --teal-mid: #3d7a88;
  --mist: #e6eef0;
  --sand: #f3efe6;
  --paper: #fbf9f5;
  --cream: #f7f3ea;
  --gold: #b8923f;
  --gold-deep: #9a762c;
  --gold-soft: #d4bc7a;
  --line: rgba(19, 36, 43, 0.12);
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(11, 36, 44, 0.08);
  --radius: 14px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}
h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.15rem, 4.4vw, 3.4rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 0.7em; }
h3 { font-size: 1.25rem; margin: 0 0 0.45em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 36, 44, 0.96);
  color: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 188, 122, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  min-width: min(100%, 16rem);
}
.brand:hover { color: var(--gold-soft); }
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: inherit;
  margin: 0;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.15rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(184, 146, 63, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; box-shadow: none; }
.header-call { white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0b242c 0%, #123844 42%, #1b5460 70%, #2a6a74 100%);
  color: var(--cream);
  overflow: hidden;
  min-height: 28rem;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-art img, .hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.25rem 0 8.5rem;
  max-width: 40rem;
}
.hero h1 { color: var(--cream); margin-bottom: 0.55em; }
.hero .lede {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.9);
  margin-bottom: 1.6rem;
}
.page-hero {
  background: linear-gradient(180deg, #0b242c 0%, #163c48 100%);
  color: var(--cream);
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--cream); margin-bottom: 0.35em; }
.page-hero .lede {
  max-width: 38rem;
  color: rgba(247, 243, 234, 0.88);
  font-size: 1.12rem;
  margin: 0;
}
.page-hero .hero-art { opacity: 0.35; }

/* Sections */
.section { padding: 4.25rem 0; }
.section-muted { background: var(--sand); }
.section-intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
  color: var(--ink-soft);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.55rem 1.7rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  color: var(--lake);
}
.card h3 { color: var(--navy); }
.card p { color: var(--ink-soft); }

/* Prose */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.15em; font-size: 1.08rem; }
.prose a { font-weight: 600; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.contact-details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}
.contact-details dl { margin: 0; }
.contact-details dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 1.15rem 0 0.25rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0; font-size: 1.05rem; }
.contact-details address { font-style: normal; }

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 0.35em; }
.form-note { color: var(--ink-soft); margin-bottom: 1.25rem; font-size: 0.98rem; }
form { display: grid; gap: 0.95rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
input, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
input:hover, textarea:hover { border-color: #b7c4c8; }
textarea { min-height: 9rem; resize: vertical; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions { margin-top: 0.25rem; }
.form-actions .btn { min-width: 10rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(247, 243, 234, 0.82);
  padding: 2.6rem 0 5.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .wordmark { color: var(--cream); font-size: 1.15rem; }
.site-footer .wordmark span { color: var(--gold-soft); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.footer-brand:hover { color: var(--gold-soft); }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-legal {
  border-top: 1px solid rgba(247, 243, 234, 0.12);
  padding-top: 1.15rem;
  color: rgba(247, 243, 234, 0.62);
  font-size: 0.86rem;
}
.footer-legal p { margin: 0 0 0.45rem; }
.copyright { color: rgba(247, 243, 234, 0.8); }

/* Utility / status pages */
.narrow { max-width: 38rem; }
.status-page { padding: 4.5rem 0 5.5rem; min-height: 50vh; }
.status-page h1 { margin-bottom: 0.45em; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

/* Mobile call bar */
.callbar {
  display: none;
}

@media (max-width: 860px) {
  .cards,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 3.5rem 0 7.25rem; }
  .section { padding: 3.25rem 0; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand call"
      "nav nav";
    align-items: center;
    gap: 0.55rem 0.8rem;
  }
  .brand { grid-area: brand; min-width: 0; }
  .brand .wordmark { max-width: 8.6rem; font-size: 1.05rem; line-height: 1.15; }
  .site-nav { grid-area: nav; width: 100%; padding-bottom: 0.1rem; }
  .header-call { grid-area: call; display: inline-flex; white-space: nowrap; }
  .site-footer { padding-bottom: 2.6rem; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 1.6rem)); }
  .wordmark { font-size: 1.02rem; }
  .site-nav a { font-size: 0.9rem; }
  .hero { min-height: 0; }
}

@media (min-width: 861px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-header, .callbar, .hero-art { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}
