/* Commercial Capital Connect - Section 179 year-end page
   Brand tokens from the builder brief. Do not use forest/brass,
   EmergeStack, or AI Marvels palettes. */
:root {
  --navy: #173f72;
  --navy-deep: #10284c;
  --green: #1f7a5b;
  --green-hover: #17634a;
  --green-wash: #e8f3ee;
  --bg: #f7f9fc;
  --ink: #1a1a1a;
  --muted: #243247;
  --muted-2: #5a6880;
  --line: #d5deeb;
  --white: #ffffff;
  --focus: #1f7a5b;
  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --measure: 40rem;
  --wrap: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-hover); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0.25rem;
}
.skip:focus { top: 1rem; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 48px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tel {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
}
.tel:hover { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-on-navy {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-on-navy:hover {
  background: #17634a;
  color: var(--white);
}
.btn-ghost-on-navy {
  background: transparent;
  color: var(--white);
  border-color: #9eb0cc;
}
.btn-ghost-on-navy:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* Hero */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 3rem;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--green-wash);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.lede, .section p, .faq-item p, .note p, li {
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.aside-card {
  background: var(--green-wash);
  border: 1px solid #cfe4d9;
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
}
.aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.aside-card strong { color: var(--navy); }

/* Notice / preview banner */
.preview-banner {
  background: var(--navy);
  color: #d5deeb;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  text-align: center;
}
.preview-banner strong { color: var(--white); font-weight: 650; }

/* Main sections */
main { display: block; }

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.section .inner {
  max-width: 46rem;
}
.section.wide .inner { max-width: none; }

.kicker {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 0.5rem;
  padding: 1.15rem 1.2rem;
}
.stat .figure {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--navy);
  font-weight: 650;
  line-height: 1.1;
  margin: 0 0 0.4rem;
}
.stat p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.source-row {
  font-size: 0.95rem;
  color: var(--muted-2);
  margin: 0 0 1rem;
}
.source-row a { color: var(--green); }

.callout {
  background: var(--white);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 0;
  border-radius: 0 0.4rem 0.4rem 0;
}
.callout p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--green), 0 0 0 2px var(--green-wash);
}

/* Calculator block */
.calc-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.35rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .calc-block {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.calc-block .label-pill {
  display: inline-block;
  background: var(--green-wash);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.calc-block p { margin: 0; color: var(--muted); }

/* FAQ */
.faq-list { margin: 1rem 0 0; display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--navy);
  padding: 0.9rem 1.1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus sign; not body copy */
.faq-item .answer {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Closing band */
.closing {
  background: var(--navy);
  color: #e6edf5;
  padding: 3rem 0;
  border-bottom: 0;
}
.closing h2, .closing h3 { color: var(--white); }
.closing p { color: #d5deeb; margin: 0 0 1rem; }
.closing .inner { max-width: 46rem; }

.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2c5080;
  font-size: 0.92rem;
  color: #b8c5d6;
  line-height: 1.55;
}
.disclaimer p { color: #b8c5d6; margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #9eb0cc;
  padding: 1.75rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.site-footer a { color: #d5deeb; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { margin: 0; }

/* Utility */
.muted { color: var(--muted-2); }
.small { font-size: 0.95rem; }

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .header-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.92rem; }
  .tel { font-size: 0.92rem; }
  .logo img { height: 40px; }
  .hero { padding: 1.75rem 0 2rem; }
  .section { padding: 2.15rem 0; }
  .btn { white-space: normal; text-align: center; }
}

@media print {
  .site-header, .preview-banner, .closing .cta-row { position: static; }
  .btn { border-color: #000; color: #000; background: transparent; }
}
