/* Blue Heron Accounting — site styles */

:root {
  --ink: #10303A;
  --ink-soft: #3C5A64;
  --ink-muted: #4E6C76;
  --accent: #C2185B;
  --accent-light: #F4A6C6;
  --tint: #F2F7F8;
  --tint-strong: #E6F1F3;
  --line: #DCE6E8;
  --line-strong: #C9D9DD;
  --gray-bar: #8EA4AB;
  --alert: #A4461F;
  --white: #FFFFFF;
  --radius: 14px;
  --max: 1200px;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint-strong); color: var(--ink); }
.btn-ghost-light { color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); }
.main-nav a:hover { color: var(--accent); }
.main-nav .btn { padding: 10px 20px; color: var(--white); }
.main-nav .btn:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--white); }
.section-brand { background: var(--accent); color: var(--white); }

.eyebrow { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--accent-light); }
.section-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.01em; margin-bottom: 14px; max-width: 780px; }
.section-lede { font-size: 19px; color: var(--ink-soft); max-width: 760px; margin-bottom: 44px; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }

/* ---------- Hero ---------- */
.hero { background: var(--tint); padding: 88px 0 96px; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; }
.hero-sub { font-size: 20px; color: var(--ink-soft); max-width: 560px; margin-bottom: 36px; }
.hero-card {
  flex: 1 1 380px; min-width: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px; box-shadow: 0 18px 40px rgba(16,48,58,.08);
}
.card-kicker { font-size: 14px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.hero-card h2 { font-size: 24px; margin-bottom: 28px; }
.bar-row + .bar-row { margin-top: 22px; }
.bar-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.bar { height: 26px; border-radius: 6px; }
.bar-before { width: 100%; background: #B7C7CC; }
.bar-after { width: 58%; background: var(--accent); }
.hero-card-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.pain-card { background: var(--tint); border-radius: 12px; padding: 26px; }
.pain-card h3 { font-size: 19px; margin-bottom: 8px; }
.pain-card p { color: var(--ink-soft); }

.service-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.service-card h3 { font-size: 26px; }
.service-card > p { color: var(--ink-soft); }
.service-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.service-card .more { margin-top: auto; font-weight: 600; }

.result-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; background: var(--white);
}
a.result-card { transition: border-color .15s ease, box-shadow .15s ease; }
a.result-card:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(16,48,58,.08); color: var(--ink); }
.result-figure { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--accent); line-height: 1; }
.result-title { font-family: var(--display); font-weight: 600; font-size: 20px; }
.result-body { color: var(--ink-soft); }
.result-tag { font-size: 14px; color: var(--ink-muted); font-weight: 600; margin-top: auto; }

/* ---------- Report examples ---------- */
.report-card { background: var(--white); border-radius: 16px; padding: 30px; border: 1px solid var(--line); }
.report-card h3 { font-size: 20px; margin-bottom: 4px; }
.report-meta { color: var(--ink-muted); font-size: 15px; margin-bottom: 20px; }
.report-note { margin-top: 18px; color: var(--ink-soft); font-size: 16px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px 6px; text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead tr { border-bottom: 2px solid var(--ink); }
.data-table th { font-weight: 600; }
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr.total { background: var(--tint-strong); border-bottom: 0; font-weight: 600; }
.val-high { color: var(--accent); font-weight: 700; }
.val-low { color: var(--alert); font-weight: 700; }

.cash-chart { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1.5px solid var(--ink); }
.cash-chart .floor { position: absolute; left: 0; right: 0; bottom: 27px; border-top: 2px dashed var(--alert); }
.cash-chart .col { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; }
.cash-chart .col.start { background: var(--gray-bar); }
.cash-chart .col.dip { background: var(--alert); }
.chart-labels { display: flex; gap: 10px; font-size: 14px; color: var(--ink-muted); text-align: center; margin-top: 8px; }
.chart-labels span { flex: 1; }
.chart-labels .dip { color: var(--alert); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); margin-top: 8px; }
.legend .dash { width: 22px; border-top: 2px dashed var(--alert); }

/* ---------- Steps ---------- */
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700;
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-soft); }

/* ---------- Industries ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 20px; font-weight: 600; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 24px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; font-weight: 500; }
.testimonial .who { font-weight: 600; }
.testimonial .org { color: var(--ink-muted); }

/* ---------- Team ---------- */
.team-card { background: var(--white); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.team-photo {
  width: 72px; height: 72px; border-radius: 50%; background: var(--line-strong); object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-soft);
}
.team-card h3 { font-size: 20px; margin-top: 8px; }
.team-card p { color: var(--ink-soft); }

/* ---------- CTA + footer ---------- */
.cta-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta-inner > div:first-child { flex: 1 1 520px; min-width: 0; }
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; letter-spacing: -.01em; }
.cta-inner p { font-size: 19px; color: #FCE4EC; }

.site-footer { background: var(--ink); color: var(--line-strong); padding: 36px 0; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--line-strong); }
.site-footer a:hover { color: var(--white); }

/* ---------- Case study page ---------- */
.cs-hero { background: var(--tint); padding: 72px 0 64px; }
.cs-hero h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px; }
.cs-hero .lede { font-size: 21px; color: var(--ink-soft); margin-bottom: 36px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.fact .k { font-size: 14px; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fact .v { margin-top: 4px; font-weight: 600; }
.fact.highlight { background: var(--accent); border-color: var(--accent); color: var(--white); }
.fact.highlight .k { color: #FCE4EC; }
.fact.highlight .v { font-family: var(--display); font-size: 22px; font-weight: 700; }

.cs-body { padding: 72px 0; font-size: 18px; line-height: 1.6; }
.cs-body .stack { display: flex; flex-direction: column; gap: 56px; }
.cs-body h2 { font-size: 30px; margin-bottom: 14px; }
.cs-body p + p { margin-top: 14px; }
.cs-steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.cs-steps li { display: flex; gap: 18px; align-items: flex-start; counter-increment: step; }
.cs-steps li::before {
  content: counter(step); flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint-strong); color: var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cs-steps li p { margin-top: 6px; }
.cs-results { margin: 0; padding-left: 22px; display: grid; gap: 10px; }

.timeline-card { background: var(--tint); border-radius: 16px; padding: 36px; }
.timeline-card h2 { font-size: 26px; margin-bottom: 6px; }
.timeline-row + .timeline-row { margin-top: 22px; }
.timeline-row p { font-weight: 600; margin-bottom: 8px; }
.days { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.days span { height: 34px; border-radius: 4px; background: var(--gray-bar); }
.days span.open { background: transparent; border: 2px dashed var(--gray-bar); }
.days.after span { background: var(--accent); }

.cs-quote { border-top: 1px solid var(--line); padding-top: 40px; margin: 0; }
.cs-quote blockquote { margin: 0 0 16px; font-family: var(--display); font-size: 26px; line-height: 1.35; font-weight: 500; }
.cs-quote figcaption { color: var(--ink-muted); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 36px; }
  .main-nav { gap: 6px 18px; font-size: 16px; }
  .main-nav .nav-phone { display: none; }
  .result-figure { font-size: 34px; }
  .service-card, .report-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
