/* NB Accounting Support — stylesheet
   Tokens and layout per design handoff (design_handoff_nb_accounting_site) */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@200;300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --ink: #16191E;
  --ink-90: #1D2127;
  --ink-85: #23272E;
  --ink-80: #33373E;
  --ink-70: #43474E;
  --ink-65: #4A4E56;
  --ink-45: #6B6B72;

  --paper: #F7F5F1;
  --paper-light: #FBFAF8;
  --paper-warm: #EFE9E3;
  --paper-mid-1: #ECE7E1;
  --paper-mid-2: #E4DED7;

  --cream: #F2EEE9;
  --cream-dim: #DCD8D3;

  --clay: #9A4A33;
  --clay-bright: #B4634C;
  --clay-light: #D79279;
  --clay-pale: #E9C9BE;
  --clay-pale-2: #E9A183;

  --warm-grey: #9C9792;
  --warm-grey-2: #B9B5B0;

  --navy: #1B3A63;
  --navy-light: #7E9CC4;

  --line-10: rgba(22,25,30,0.10);
  --line-12: rgba(22,25,30,0.12);
  --line-14: rgba(22,25,30,0.14);
  --line-16: rgba(22,25,30,0.16);
  --line-25: rgba(22,25,30,0.25);
  --line-dark-12: rgba(242,238,233,0.12);
  --line-dark-18: rgba(242,238,233,0.18);
  --line-dark-20: rgba(242,238,233,0.20);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--clay-pale); }

:focus-visible {
  outline: 2px solid var(--clay-bright);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  z-index: 100;
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 16px;
  color: var(--paper);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow--dark { color: var(--clay-light); }
.eyebrow--light-on-dark { color: var(--clay-pale-2); }
.eyebrow--light-on-dark:hover { color: var(--paper); }
.eyebrow-rule {
  width: 26px; height: 1px;
  background: var(--clay-bright);
  flex-shrink: 0;
}

.h-hero {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 15ch;
  text-wrap: pretty;
}
.h-hero em {
  font-style: italic;
  color: var(--clay);
}
.h-page {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
.h-section {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(27px, 4vw, 37px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}
.h-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 27px);
  letter-spacing: -0.01em;
  margin: 0;
}
.h-card {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-70);
  text-wrap: pretty;
}
.lede--section { font-size: 17px; }
.body-lg { font-size: 16.5px; line-height: 1.7; color: var(--ink-70); text-wrap: pretty; }
.body-md { font-size: 15.5px; line-height: 1.65; color: var(--ink-65); text-wrap: pretty; }
.small { font-size: 14.5px; }
.fine-print { font-size: 13px; color: var(--ink-45); }

.lockup-caps {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 15px;
  padding: 16px 28px;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--clay-bright); color: #FFF8F5; }
.btn-outline {
  border-color: var(--line-25);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent {
  background: var(--clay-bright);
  color: #FFF8F5;
}
.btn-accent:hover { background: var(--clay); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-cta-nav {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 2px;
  font-size: 13.5px;
}
.btn-cta-nav:hover { background: var(--clay-bright); color: var(--paper); }

.link-arrow {
  color: var(--clay);
  font-size: 14.5px;
}
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 13px 40px;
  border-bottom: 1px solid var(--line-10);
  position: sticky;
  top: 0;
  background: rgba(247,245,241,0.94);
  backdrop-filter: blur(10px);
  z-index: 30;
}
.logo-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-lockup:hover { color: inherit; }

.logo-mark {
  display: block;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.logo-mark--header { width: 72px; height: 72px; }
.logo-mark--footer { width: 124px; height: 124px; }
.logo-lockup:hover .logo-mark--header { transform: scale(1.04); }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14.5px;
}
.nav-link {
  color: var(--ink-65);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 2px;
}
.nav-link:hover { color: var(--ink); }
.nav-link .underline {
  height: 1px;
  background: transparent;
}
.nav-link[aria-current="page"] .underline {
  background: var(--clay-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 150ms ease, opacity 150ms ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout helpers ---------- */
.section { padding: 88px 56px; border-bottom: 1px solid var(--line-10); }
.section--compact { padding: 76px 56px; }
.section--cta { padding: 92px 56px; }
.section--no-border { border-bottom: none; }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark-header { padding: 64px 56px 58px; }
.section--dark-about { padding: 72px 56px; }
.section--panel { background: var(--paper-light); }

.wrap { max-width: 1360px; margin: 0 auto; }

.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

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

.split-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 600px; }
.split-solutions { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.split-other { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 64px; align-items: start; }
.split-focus { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0 56px; }
.split-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: stretch; }
.split-about-dark { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-svc-narrow { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.split-contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
.split-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 56px; }

.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--line-12);
  border: 1px solid var(--line-12);
}
.hairline-grid-2cols { grid-template-columns: repeat(2, 1fr); }
.hairline-grid-3cols { grid-template-columns: repeat(3, 1fr); }

/* ---------- Home hero ---------- */
.hero-copy {
  padding: 90px 56px 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.hero-buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.trust-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13.5px;
  color: var(--ink-45);
}

/* ---------- Image placeholders ---------- */
.placeholder {
  background: repeating-linear-gradient(135deg, var(--paper-mid-1) 0 12px, var(--paper-mid-2) 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  min-height: 260px;
}
.placeholder--bordered { border-left: 1px solid var(--line-10); }
.placeholder--dark {
  background: repeating-linear-gradient(135deg, var(--ink-85) 0 12px, var(--ink-90) 12px 24px);
}
.placeholder-caption {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #7A756E;
  background: var(--paper);
  padding: 8px 12px;
}
.placeholder--dark .placeholder-caption {
  color: #8C877F;
  background: var(--ink);
}
.placeholder--photo {
  background: none;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.placeholder--photo.hero-photo-inset { padding: 0 56px 0 0; }
.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Service cards (home) ---------- */
.service-card {
  background: var(--paper);
  padding: 36px 34px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { background: var(--paper-light); color: inherit; }
.service-card .num { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--clay); }
.service-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.service-card p { font-size: 15.5px; line-height: 1.65; color: var(--ink-65); text-wrap: pretty; }

/* ---------- Services index cards ---------- */
.index-card {
  background: var(--paper);
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  text-decoration: none;
  color: inherit;
}
.index-card:hover { background: var(--paper-light); color: inherit; }
.index-card .num { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--clay); }
.index-card h3 { font-size: 25px; }
.index-card p { font-size: 15px; line-height: 1.6; color: var(--ink-65); }
.index-card .read-more { margin-top: auto; font-size: 14px; color: var(--clay); }

/* ---------- Tier cards ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier-card {
  border: 1px solid var(--line-16);
  border-radius: 3px;
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper-light);
}
.tier-card--vip {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.tier-card h3 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.tier-card--vip h3 { color: var(--clay-pale); }
.tier-card .qualifier { font-family: 'DM Mono', monospace; font-size: 12.5px; color: var(--ink-45); }
.tier-card--vip .qualifier { color: var(--warm-grey); }
.tier-card ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-80); }
.tier-card--vip ul { color: var(--cream-dim); }
.tier-card .tier-link { margin-top: auto; padding-top: 18px; font-size: 14.5px; color: var(--clay); }
.tier-card--vip .tier-link { color: var(--clay-pale); }
.tier-card--vip .tier-link:hover { color: var(--paper); }

/* ---------- Simple list rows ---------- */
.rows-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.row-item {
  padding: 15px 0;
  border-top: 1px solid var(--line-12);
  font-size: 15.5px;
}
.row-item--last { border-bottom: 1px solid var(--line-12); }
.row-item--tall { padding: 14px 0; line-height: 1.55; }

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line-12);
  font-size: 15.5px;
}
.kv-row .k { color: var(--ink-45); }
.kv-row--last { border-bottom: 1px solid var(--line-12); }

/* ---------- Value / detail groups ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.value-card { display: flex; flex-direction: column; gap: 12px; }

.detail-group { display: flex; flex-direction: column; gap: 18px; }
.detail-item { display: flex; flex-direction: column; gap: 5px; }
.detail-item .label { font-size: 16px; font-weight: 500; }
.detail-item .desc { font-size: 15.5px; line-height: 1.65; color: var(--ink-65); }

/* ---------- Credential strip (about) ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cred-card {
  border: 1px solid var(--line-dark-18);
  border-radius: 3px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  align-items: center;
}
.cred-card .rule { width: 22px; height: 2px; background: var(--clay-light); margin-bottom: 6px; }
.cred-card .label { font-size: 13px; font-weight: 500; line-height: 1.35; }
.cred-card .caption { font-size: 11.5px; color: var(--warm-grey); line-height: 1.4; }

/* ---------- Contact cards ---------- */
.contact-card {
  background: var(--paper-light);
  border: 1px solid var(--line-14);
  border-radius: 3px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card h3 { font-size: 19px; font-weight: 500; }
.email-link {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(27px, 4.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--clay);
  align-self: flex-start;
  padding-bottom: 4px;
}
.email-link:hover { color: var(--clay); }

.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.diff-item { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-dark-20); }
.diff-item .num { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--clay-light); }
.diff-item h3 { font-size: 19px; font-weight: 500; }
.diff-item p { font-size: 15.5px; line-height: 1.7; color: var(--warm-grey-2); text-wrap: pretty; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A5A09B;
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.85fr 0.85fr 0.85fr 0.85fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-logo { display: flex; align-items: center; }
.footer-blurb { font-size: 14.5px; line-height: 1.65; max-width: 38ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.site-footer a { color: var(--clay-pale-2); }
.site-footer a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line-dark-12);
  padding-top: 20px;
  font-size: 12.5px;
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--clay-pale-2); }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--clay-bright); }

/* ---------- Gaps ---------- */
.gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; }
.gap-18 { gap: 18px; } .gap-20 { gap: 20px; } .gap-22 { gap: 22px; }
.gap-26 { gap: 26px; } .gap-28 { gap: 28px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1000px) {
  .section, .section--compact { padding: 64px 32px; }
  .section--cta { padding: 64px 32px; }
  .section--dark-header { padding: 48px 32px 44px; }
  .site-header { padding: 12px 24px; }
  .split-hero, .split-solutions, .split-other, .split-focus,
  .split-intro, .split-about-dark, .split-svc, .split-svc-narrow,
  .split-contact, .split-detail, .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-hero { min-height: 0; }
  .hero-copy { padding: 56px 32px; }
  .split-focus { padding: 0 32px; }
  .placeholder--photo.hero-photo-inset { padding: 0 32px; }
  .value-grid, .diff-grid { grid-template-columns: 1fr; gap: 32px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .hairline-grid-2cols, .hairline-grid-3cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .logo-mark--header { width: 62px; height: 62px; }
  .logo-mark--footer { width: 104px; height: 104px; }
}

@media (max-width: 700px) {
  .section, .section--compact, .section--cta { padding: 48px 20px; }
  .section--dark-header { padding: 40px 20px 36px; }
  .site-header { padding: 11px 20px; }
  .split-focus { padding: 0 20px; }
  .placeholder--photo.hero-photo-inset { padding: 0 20px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-10);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { flex-direction: row; padding: 10px 0; width: 100%; }
  .nav-link .underline { display: none; }
  .nav-link[aria-current="page"] { color: var(--clay-bright); }
  .btn-cta-nav { margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero-copy { padding: 44px 20px; }
  .rows-2col, .diff-grid, .cred-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .trust-row { gap: 14px; flex-direction: column; }
  .footer-bottom { display: flex; flex-direction: column; gap: 4px; }
  .footer-bottom-sep { display: none; }
  .back-to-top { width: 42px; height: 42px; right: 16px; bottom: 16px; font-size: 17px; }

  .logo-mark--header { width: 54px; height: 54px; }
  .logo-mark--footer { width: 88px; height: 88px; }
}
