/* landing-b.css — Math, About, Contact, and responsive styles for the BridgeVest one-pager */

/* === THE MATH === */
.math-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.math-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.math-table th {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(42,124,140,0.06);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid rgba(42,124,140,0.2);
}

.math-table td {
  padding: 12px 14px;
  color: #5a5048;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  line-height: 1.4;
}

.math-table tr:last-child td { border-bottom: none; }

.math-val { font-weight: 500; color: var(--ink); }
.math-val--good { color: #2a8c4a; }
.math-val--highlight {
  font-family: 'Cormorant Garant', serif;
  font-size: 18px;
  color: var(--teal);
}

.math-note {
  font-size: 11px;
  color: #9a8e80;
  margin-top: 16px;
  line-height: 1.6;
  font-style: italic;
}

.math-callout { position: sticky; top: 32px; }

.math-callout-inner {
  background: var(--navy);
  border-radius: 4px;
  padding: 32px;
}

.math-callout-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 12px;
}

.math-callout-body {
  font-size: 14px;
  color: rgba(228,212,184,0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

.math-callout-body strong { color: var(--sand); }

.math-callout-stat {
  border-top: 1px solid rgba(228,212,184,0.1);
  padding-top: 20px;
}

.math-callout-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--teal-light);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.math-callout-desc {
  font-size: 12px;
  color: rgba(228,212,184,0.45);
  line-height: 1.5;
  display: block;
}

/* === ABOUT === */
.about-section {
  background: var(--navy);
  padding: var(--section-pad);
}

.about-section .section-label { color: var(--teal-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-headline {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--sand);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 15px;
  color: #9a8e80;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body--accent {
  font-family: 'Cormorant Garant', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--sand-dark) !important;
  border-top: 1px solid rgba(228,212,184,0.15);
  padding-top: 16px;
  margin-bottom: 0;
}

/* === CONTACT === */
.contact-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-headline {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-body {
  font-size: 15px;
  color: #7a7068;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-direct { margin-top: 40px; }

.contact-direct-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8e80;
  margin-bottom: 8px;
}

.contact-email {
  font-family: 'Cormorant Garant', serif;
  font-size: 22px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(42,124,140,0.3);
  transition: border-color 0.2s;
}

.contact-email:hover { border-color: var(--teal); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7068;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(13,27,42,0.15);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--teal);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-submit {
  align-self: flex-start;
  background: var(--navy);
  color: var(--sand);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--teal); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-feedback { font-size: 13px; line-height: 1.5; }
.form-feedback--ok { color: #2a8c4a; }
.form-feedback--err { color: #b94040; }

/* === SHARED BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #236a7a; }

.btn-secondary {
  display: inline-block;
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(42,124,140,0.3);
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--teal); }

/* === ASKING TERMS === */
.terms-section {
  background: var(--sand);
  padding: var(--section-pad);
}

.terms-intro {
  font-size: 15px;
  color: #7a6a5a;
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 36px;
  max-width: 700px;
}

.terms-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.terms-th {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(13,27,42,0.12);
}

.terms-th--label { color: #9a8e80; background: transparent; }
.terms-th--a { color: var(--teal); background: rgba(42,124,140,0.08); }
.terms-th--b { color: #2a5c8c; background: rgba(42,92,140,0.06); }

.terms-td {
  padding: 16px;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.terms-td--label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.terms-td--a { background: rgba(42,124,140,0.04); color: #2a4a3a; }
.terms-td--b { background: rgba(42,92,140,0.03); color: #2a3a4a; }

.terms-td strong { color: var(--ink); }

.terms-note {
  display: block;
  font-size: 11px;
  color: #9a8e80;
  margin-top: 4px;
  font-style: italic;
}

.terms-footnote {
  font-size: 12px;
  color: #9a8e80;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 28px;
  max-width: 700px;
}

.terms-ctas {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* === PROPERTY FACTS === */
.facts-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.facts-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: #5a5048;
  line-height: 1.55;
}

.facts-icon {
  color: var(--teal);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
}

.facts-stat-card {
  background: var(--navy);
  border-radius: 4px;
  overflow: hidden;
}

.facts-stat {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(228,212,184,0.08);
}

.facts-stat--last { border-bottom: none; }

.facts-stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(228,212,184,0.4);
  margin-bottom: 4px;
}

.facts-stat-value {
  font-family: 'Cormorant Garant', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--sand);
}

/* === GALLERY === */
.gallery-section {
  background: var(--ink);
  padding: 80px 0;
}

.gallery-section .section-label { color: var(--teal-light); }
.gallery-section .section-headline { color: var(--sand); margin-bottom: 40px; }

.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 32px;
  height: 280px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item--wide { grid-column: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,15,20,0.85), transparent);
  color: rgba(228,212,184,0.7);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* === RESPONSIVE (one-pager sections) === */
@media (max-width: 900px) {
  .hero-inner { padding: 60px 32px; }
  .opp-grid { grid-template-columns: 1fr; gap: 40px; }
  .deals-grid { grid-template-columns: 1fr; }
  .deal-cols { grid-template-columns: 1fr; }
  .math-grid { grid-template-columns: 1fr; }
  .math-callout { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .facts-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-item { height: 180px; }
  .gallery-item--wide { grid-column: span 2; }
  .terms-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 38px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .deal-card-lp { padding: 28px 20px; }
  .deal-metric-row { flex-direction: column; gap: 16px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-item { height: 200px; }
}
