/* =========================================================
   Beyond Balanced Books — styles.css
   ========================================================= */

:root {
  --bg: #0C1523;
  --bg-alt: #0F1A2B;
  --bg-card: #131F30;
  --text: #E8E3DA;
  --text-muted: #7A8EA6;
  --ember: #C85F2A;
  --ember-light: #E07340;
  --border: #1E2E42;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

p {
  max-width: 65ch;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* ---------- Layout utilities ---------- */
.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 60px;
}

@media (max-width: 680px) {
  .container {
    padding-inline: 24px;
  }
}

section {
  padding-block: 88px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}

@media (max-width: 780px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  padding: 15px 34px;
  border-radius: 3px;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--ember-light);
  transform: translateY(-1px);
}

.nav-cta {
  color: var(--ember);
  border: 1px solid var(--ember);
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--ember);
  color: #fff;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 21, 35, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  min-height: 56px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
}

.nav-logo .letter {
  display: inline-block;
  overflow: hidden;
  white-space: pre;
}

.nav-logo .initial {
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-top: 108px;
  padding-bottom: 96px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 480px at calc(100% + 120px) -120px, rgba(200, 95, 42, 0.07), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero .btn-primary {
  margin-top: 36px;
}

/* ---------- Symptoms ---------- */
.symptoms-section {
  background: var(--bg-alt);
}

.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 60px;
  margin-top: 48px;
}

@media (max-width: 680px) {
  .symptom-grid {
    grid-template-columns: 1fr;
  }
}

.symptom-card {
  border-left: 2px solid var(--ember);
  padding-left: 20px;
}

.symptom-card p {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  color: var(--text);
  line-height: 1.5;
  max-width: none;
}

/* ---------- What BBB Does ---------- */
.what-we-do {
  background: var(--bg);
}

.what-we-do p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 60ch;
}

.what-we-do p strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Audit ---------- */
.audit-section {
  background: var(--bg-alt);
}

.audit-intro {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 680px) {
  .audit-grid {
    grid-template-columns: 1fr;
  }
}

.audit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
}

.audit-icon {
  color: var(--ember);
  margin-bottom: 14px;
}

.audit-card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

.audit-card p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: none;
}

.audit-card--wide {
  grid-column: 1 / -1;
  max-width: 480px;
}

.audit-close {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: 4px;
  padding: 24px 28px;
  max-width: 780px;
  margin-top: 32px;
}

.audit-close p {
  color: var(--text-muted);
  max-width: none;
}

/* ---------- Why BBB ---------- */
.why-bbb {
  background: var(--bg);
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.credential-cell {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}

.credential-cell:last-child {
  border-right: none;
}

.credential-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 8px;
}

.credential-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.why-bbb .body-copy {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 60ch;
}

.why-bbb .body-copy strong {
  color: var(--text);
  font-weight: 600;
}

.founder-photo {
  margin-top: 32px;
  max-width: 320px;
  border-radius: 8px;
}

@media (max-width: 780px) {
  .credentials-strip {
    grid-template-columns: 1fr;
  }
  .credential-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .credential-cell:last-child {
    border-bottom: none;
  }
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg-alt);
  padding-block: 100px;
}

.cta-section p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 56ch;
}

.cta-section--centered {
  text-align: center;
}

.cta-section--centered p {
  margin-inline: auto;
}

.cta-fallback {
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-muted);
}

.footer-brand .accent {
  color: var(--ember);
}

.footer-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}
