/* ==========================================================================
   J Boyd Benefits Advisory — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --paper: #E7EFEB;
  --paper-dim: #D7E5DF;
  --ink: #16203A;
  --slate: #52607A;
  --forest: #1F5B44;
  --forest-dark: #163F30;
  --gold: #B8934A;
  --line: #C3D5CE;
  --white: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1rem 0; color: var(--ink); }
p.lede { font-size: 1.15rem; color: var(--slate); }

a { color: var(--forest); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / Nav ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark { color: var(--forest); display: flex; align-items: center; }

nav.primary {
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
nav.primary a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Force white text for the "Schedule a Call" button — otherwise the
   general nav link color rule above wins and makes it unreadable
   against the dark green background. */
nav.primary a.btn-primary,
nav.primary a.btn-primary:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 11px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle span::after { position: absolute; top: 6px; width: 18px; height: 2px; background: var(--ink); }

/* ---------- Ledger rule — signature element ---------- */
.ledger-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 1px;
  margin: 0 0 2.6rem 0;
}
.ledger-rule::before {
  content: "";
  flex: 1;
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
}

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row .label { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.ledger-row .leader {
  flex: 1;
  border-bottom: 1px dotted var(--slate);
  height: 1px;
  margin-bottom: 5px;
  opacity: 0.55;
}
.ledger-row .amount {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.hero-figure {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem 1.7rem;
  border-radius: 4px;
}
.hero-figure .cap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
  display: block;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat-strip .stat {
  padding: 1.6rem 1.6rem 1.6rem 0;
  border-right: 1px solid var(--line);
}
.stat-strip .stat:last-child { border-right: none; }
.stat .num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--forest);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat .cap { color: var(--slate); font-size: 0.92rem; }

/* ---------- Sections ---------- */
section { padding: 4.2rem 0; }
section.alt { background: var(--paper-dim); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem;
}
.card .step-no {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  display: block;
}

.pull {
  border-left: 3px solid var(--forest);
  padding-left: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 1rem 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'IBM Plex Mono', monospace;
  color: var(--forest);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 1.5rem 0; color: var(--slate); max-width: 720px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }

.contact-info {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 1.8rem;
}
.contact-info .row { margin-bottom: 1.1rem; }
.contact-info .row .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  display: block;
  margin-bottom: 3px;
}
.contact-info .row .v { font-size: 1.02rem; }
.contact-info .row a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-grid .fbrand { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; }
.footer-meta { color: var(--slate); font-size: 0.88rem; max-width: 460px; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { color: var(--slate); font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--forest); }
.disclosure {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); }
.cta-band .btn-primary { background: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover { background: #cba760; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .menu-toggle { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .cta-band { padding: 2rem; }
  body.nav-open nav.primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 1rem;
    gap: 1rem;
  }
}
