/* Baccari Professional Corporation.
   The idea: a ledger. Pale green columnar paper, bottle-green ink, and the oxblood of the
   firm's old logo used the way a ledger uses red: the margin rule and the double line under a total. */

:root {
  --paper: #e9f0e6;      /* ledger paper */
  --sheet: #fbfcf9;      /* a clean page laid on it */
  --ink: #10302a;        /* bottle-green ink */
  --ink-soft: #40584f;
  --rule: #b7cbb8;       /* printed column rules */
  --ox: #8a2a39;         /* oxblood: margin rule, totals, actions */
  --ox-deep: #6d1f2c;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--text);
  font-optical-sizing: auto;
}
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ox); }
:focus-visible { outline: 3px solid var(--ox); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3, .logo-name, .btn, .chip, .nav, .lang, .row, .sheet-title, dt {
  font-family: var(--head);
}
h2 {
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.06; letter-spacing: -0.018em;
}
h3 { font-weight: 700; font-stretch: 106%; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.logo:hover { color: var(--ink); }
.logo-name {
  font-weight: 800; font-stretch: 125%; font-size: 1.55rem; letter-spacing: -0.02em;
  padding-bottom: 5px;
  /* the double line an accountant draws under a final total */
  border-bottom: 5px double var(--ox);
}
.logo-line { font: 500 0.72rem/1 var(--head); font-stretch: 100%; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 0.98rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ox); }
.top-side { display: flex; align-items: center; gap: 18px; }
.lang { font-weight: 600; font-size: 0.95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none;
  padding: 13px 20px; border-radius: 3px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn-call { font-variant-numeric: tabular-nums; white-space: nowrap; gap: 0.35em; }
.btn-main { background: var(--ox); border-color: var(--ox); color: #fff; }
.btn-main:hover { background: var(--ox-deep); border-color: var(--ox-deep); color: #fff; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
h1 {
  font-weight: 750; font-stretch: 114%;
  font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1; letter-spacing: -0.03em;
}
h1 span { display: block; text-wrap: balance; }
h1 span + span { margin-top: 0.14em; }
.lede { margin-top: clamp(22px, 3vw, 34px); max-width: 34em; font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem); line-height: 1.55; }
.hero-note { margin-top: 20px; color: var(--ink-soft); font-style: italic; }
.hero-note a { font-style: normal; font-family: var(--head); font-weight: 650; color: var(--ink); white-space: nowrap; }

/* ---------- the sheet ---------- */
.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.6vw, 30px) clamp(22px, 3vw, 30px) clamp(40px, 5vw, 58px);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -28px rgba(16, 48, 42, .55);
}
/* the red margin rule of ledger paper */
.sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(22px, 3vw, 34px);
  width: 4px; border-left: 1px solid var(--ox); border-right: 1px solid var(--ox); opacity: .7;
}
.sheet-title { font-weight: 700; font-stretch: 110%; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; }
.sheet-help { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.presets { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.presets legend { font: 500 0.86rem/1.3 var(--head); color: var(--ink-soft); margin-bottom: 9px; padding: 0; }
.chip {
  font-weight: 550; font-size: 0.9rem; line-height: 1.15; color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 13px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

.ledger { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--rule);
  font-weight: 550; font-size: 1rem; line-height: 1.25; cursor: pointer;
}
.row-head { cursor: default; padding-block: 7px; font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
.row-when { font-weight: 450; font-size: 0.86rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick {
  width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff;
  display: grid; place-items: center;
}
.tick::after {
  content: ""; width: 13px; height: 7px; border-left: 3px solid var(--ox); border-bottom: 3px solid var(--ox);
  transform: translateY(-2px) rotate(-48deg) scale(0); transform-origin: center; transition: transform .14s ease-out;
}
.row input:checked + .tick::after { transform: translateY(-2px) rotate(-48deg) scale(1); }
.row input:focus-visible + .tick { outline: 3px solid var(--ox); outline-offset: 2px; }
.row:hover .row-name { color: var(--ox); }
.row:has(input:checked) { background: linear-gradient(90deg, rgba(183, 203, 184, .28), rgba(183, 203, 184, 0)); }
.row-total { cursor: default; border-bottom: 0; padding-top: 14px; font-weight: 700; }
.row-total:hover span { color: inherit; }
.total {
  font: 750 1.5rem/1 var(--head); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right;
  padding-bottom: 4px; border-bottom: 5px double var(--ox);
}
.sheet-empty { margin-top: 12px; font-size: 0.98rem; color: var(--ox-deep); font-weight: 600; }
.sheet-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.sheet-call { font-size: 1rem; color: var(--ink-soft); }
.sheet-call a { font-family: var(--head); font-weight: 650; color: var(--ink); white-space: nowrap; }

/* ---------- sections ---------- */
.sec-head { max-width: 40em; }
.sec-head p { margin-top: 12px; color: var(--ink-soft); }

.services { background: var(--sheet); border-block: 1px solid var(--rule); padding-block: clamp(52px, 7vw, 96px); }
.svc-list { margin-top: clamp(26px, 4vw, 44px); border-top: 1.5px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 12px clamp(20px, 3.4vw, 48px); align-items: start;
  padding-block: clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--rule);
}
.svc h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.svc p { font-size: 1.06rem; }
.svc ul { font: 450 0.98rem/1.4 var(--head); color: var(--ink-soft); }
.svc li { padding: 5px 0 5px 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 9px; height: 1.5px; background: var(--ox); }

.who { background: var(--ink); color: #e6efe6; padding-block: clamp(52px, 7vw, 96px); }
.who a:hover { color: #fff; }
.who .sec-head p { color: #a9c0b2; }
.who-list { margin-top: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); border-top: 1px solid #3c5a52; }
.who-list > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 6px 22px; padding-block: 18px; border-bottom: 1px solid #3c5a52; align-items: baseline; }
.who-list dt { font-weight: 700; font-stretch: 106%; font-size: 1.1rem; line-height: 1.25; color: #fff; }
.who-list dd { font-size: 1.02rem; line-height: 1.5; color: #c2d4c8; }

.how { padding-block: clamp(52px, 7vw, 96px); }
.how-list { margin-top: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.how-list li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.how-list li::before {
  content: counter(step); display: block; margin-bottom: 14px;
  font: 800 2.6rem/0.9 var(--head); font-stretch: 125%; color: var(--ox); font-variant-numeric: lining-nums;
}
.how-list p { margin-top: 8px; font-size: 1.04rem; line-height: 1.5; color: var(--ink-soft); }

.both { background: var(--ox); color: #fff; padding-block: clamp(44px, 6vw, 80px); }
.both-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(22px, 4vw, 64px); align-items: end; }
.both h2 { font-size: clamp(2rem, 1rem + 3.8vw, 3.75rem); line-height: 1; font-stretch: 118%; letter-spacing: -0.028em; }
.both p { color: #f5e2e4; }
.both-link { display: inline-block; margin-top: 14px; font: 650 1rem/1.2 var(--head); color: #fff; }
.both-link:hover { color: #fff; text-decoration-thickness: 2px; }

.contact { background: var(--sheet); padding-block: clamp(52px, 7vw, 96px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.contact-list { border-top: 1.5px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact-list dt { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); }
.contact-list dd { font: 650 clamp(1.15rem, 1rem + 0.8vw, 1.6rem)/1.3 var(--head); font-stretch: 106%; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.small-link { display: inline-block; margin-top: 6px; font: 500 0.95rem/1.3 var(--head); text-decoration: underline !important; color: var(--ink-soft); }

.foot { border-top: 1px solid var(--rule); padding-block: 22px 28px; font: 450 0.9rem/1.5 var(--head); color: var(--ink-soft); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; }
.foot-by { margin-left: 18px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-side { margin-left: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .sheet { max-width: 620px; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .svc h3 { grid-column: 1 / -1; }
  .how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .top-in { min-height: 62px; gap: 12px; }
  .logo-name { font-size: 1.3rem; }
  .logo-line { display: none; }
  .top-side { gap: 12px; }
  .btn-call { padding: 10px 12px; font-size: 0.94rem; }
  .btn-call-word { display: none; }
  .svc, .both-in, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .who-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .how-list { grid-template-columns: minmax(0, 1fr); }
  .how-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px; }
  .how-list li::before { grid-row: 1 / span 2; margin: 0; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .row { font-size: 0.98rem; }
  .row-when { font-size: 0.8rem; }
  .sheet-actions .btn { width: 100%; }
  .foot-by { margin-left: 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
