/* ─────────────────────────────────────────────────────────────────────────
   PizzelloCPA, PLLC — marketing site design system
   Same architecture as workpaperhq-website/css/site.css (8-pt grid, --sp-*,
   --container, .section/.btn/.nav/.footer hooks) so the two sites are
   navigable by the same person. Palette is deliberately unrelated: oxblood
   and warm ink, steering clear of bookkeepz green and workpaperHQ cyan.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand — authoritative source is the identity spec. Gradient ramp is
     G_LIGHT -> OX -> G_DEEP; all three are opaque by design (an alpha stop
     is what made the original concept mark vanish at small sizes). */
  --ox:             #8C1C2B;  /* oxblood — primary accent */
  --ox-light:       #B4485C;  /* ramp start */
  --ox-deep:        #62111C;  /* ramp end, and CTA hover */
  --ox-soft:        rgba(140, 28, 43, 0.08);
  --ox-line:        rgba(140, 28, 43, 0.18);

  /* Neutrals carry a warm bias toward the accent — a pure slate grey next to
     oxblood reads faintly blue. */
  --ink:            #1C1917;  /* body text — 16.4:1 on paper */
  --ink-muted:      #78716C;  /* secondary text — 4.9:1 on paper */
  --ink-faint:      #A8A29E;
  --paper:          #FFFFFF;
  --paper-soft:     #FAF9F8;
  --paper-warm:     #F5F3F1;  /* most-differentiated section */
  --paper-line:     #E7E3E0;

  --line:           rgba(28, 25, 23, 0.07);
  --line-strong:    rgba(28, 25, 23, 0.13);

  /* Spacing scale (8-pt grid) — names match workpaperHQ. */
  --sp-1: 8px;   --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-6: 48px;  --sp-8: 64px;  --sp-12: 96px; --sp-16: 128px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --container: 1140px;
  --measure: 68ch;

  --shadow-sm: 0 1px 2px rgba(28,25,23,.05), 0 1px 3px rgba(28,25,23,.04);
  --shadow-md: 0 2px 4px rgba(28,25,23,.04), 0 12px 28px -14px rgba(28,25,23,.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--paper-soft);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ox); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ox);
  outline-offset: 3px;
  border-radius: 3px;
}
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.021em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.05rem); font-weight: 700; letter-spacing: -0.031em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 660; letter-spacing: -0.025em; }
h3 { font-size: 1.16rem; font-weight: 640; }
h4 { font-size: 1rem;    font-weight: 640; }
p  { margin: 0; }
p, li { max-width: var(--measure); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ox); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }

.section { padding: var(--sp-12) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--paper { background: var(--paper); }
.section--warm  { background: var(--paper-warm); }
.section--ink   { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .lede, .section--ink p { color: rgba(255,255,255,.76); }
.section--ink a { color: #E8A0AC; }

.section-head { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.eyebrow {
  font-size: .74rem; font-weight: 620; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ox); margin: 0;
}
.section--ink .eyebrow { color: #E8A0AC; }
.lede { font-size: 1.14rem; color: var(--ink-muted); max-width: 62ch; }
.text-center { text-align: center; }
.text-center .lede, .text-center p { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 94px; }
.nav__brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav__brand:hover { text-decoration: none; }
.nav__brand svg, .nav__brand img { height: 54px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; flex-wrap: wrap; }
.nav__links a {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: var(--sp-1) 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover { text-decoration: none; border-bottom-color: var(--ox-line); }
.nav__links a[aria-current="page"] { color: var(--ox); border-bottom-color: var(--ox); }
.nav__cta { margin-left: var(--sp-1); }
@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2); min-height: 0; }
  .nav__brand svg, .nav__brand img { height: 42px; }
  .nav__links { width: 100%; margin-left: 0; gap: var(--sp-2) var(--sp-3); font-size: .9rem; }
  .nav__cta { margin-left: 0; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  padding: 13px var(--sp-3); border-radius: var(--radius-sm);
  font-size: .96rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ox); color: #fff; }
.btn--primary:hover { background: var(--ox-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ox); color: var(--ox); }
.btn--lg { padding: 16px var(--sp-4); font-size: 1.02rem; }
.section--ink .btn--ghost,
.cta-strip .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.38); }
.section--ink .btn--ghost:hover,
.cta-strip .btn--ghost:hover { border-color: var(--paper); color: var(--paper); background: rgba(255,255,255,.07); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--sp-12) 0 var(--sp-12); }
.hero__inner { display: grid; gap: var(--sp-3); max-width: 46rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ox); flex: 0 0 auto;
}

/* ── Cards / grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: var(--radius-md); padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
.card--link:hover { border-color: var(--ox-line); box-shadow: var(--shadow-md); text-decoration: none; }
.card p { color: var(--ink-muted); font-size: .97rem; }
.card__more { margin-top: auto; font-weight: 600; font-size: .93rem; color: var(--ox); }

/* numbered steps — the number encodes real sequence, not decoration */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-3);
  align-items: start; padding: var(--sp-3) 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step__num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ox-soft); color: var(--ox);
  display: grid; place-items: center; font-weight: 680; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--ink-muted); font-size: .97rem; margin-top: 4px; }

/* ── Prose ───────────────────────────────────────────────────────────── */
.prose { display: flex; flex-direction: column; gap: var(--sp-3); }
.prose h2 { margin-top: var(--sp-4); }
.prose h3 { margin-top: var(--sp-2); }
.prose ul, .prose ol { margin: 0; padding-left: 1.35em; display: flex; flex-direction: column; gap: 10px; }
.prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 620; }

.callout {
  border-left: 3px solid var(--ox); background: var(--ox-soft);
  padding: var(--sp-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p { max-width: none; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.03rem; list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ox); font-weight: 400; font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p, .faq details > ul { margin-top: var(--sp-2); color: var(--ink-muted); }

/* ── Booking embed ───────────────────────────────────────────────────── */
.booking {
  background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: var(--radius-md); padding: var(--sp-3); min-height: 620px;
  box-shadow: var(--shadow-sm);
}
.booking iframe { width: 100%; min-height: 600px; border: 0; display: block; }

/* ── Contact details ─────────────────────────────────────────────────── */
.contact-list { display: flex; flex-direction: column; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.contact-list li { max-width: none; }
.contact-list dt, .contact-list .k {
  font-size: .74rem; font-weight: 620; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px;
}
.contact-list .v { font-size: 1.02rem; }
.contact-list .note { font-size: .88rem; color: var(--ink-muted); margin-top: 3px; }

/* ── CTA strip ───────────────────────────────────────────────────────── */
.cta-strip { background: var(--ink); color: var(--paper); padding: var(--sp-8) 0; }
.cta-strip h2 { color: var(--paper); }
.cta-strip p { color: rgba(255,255,255,.74); }
.cta-strip .hero__cta { justify-content: center; }
.cta-strip a:not(.btn) { color: #E8A0AC; }
.cta-strip .eyebrow { color: #E8A0AC; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: var(--sp-8) 0 var(--sp-4); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand svg, .footer__brand img { height: 40px; width: auto; margin-bottom: var(--sp-2); }
.footer__brand p { font-size: .9rem; color: var(--ink-muted); }
.footer__col h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--sp-2); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink); font-size: .93rem; }
.footer__col a:hover { color: var(--ox); }
.footer__bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  justify-content: space-between; font-size: .84rem; color: var(--ink-muted);
}
.footer__bottom p { max-width: none; }
.footer__legal { max-width: 72ch; font-size: .82rem; color: var(--ink-faint); margin-top: var(--sp-3); }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--paper-line); border-radius: var(--radius-md); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 13px var(--sp-3); border-bottom: 1px solid var(--line); }
th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 620; white-space: nowrap; }
td { color: var(--ink-muted); }
td:first-child { color: var(--ink); font-weight: 560; }
tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* visually hidden but available to screen readers (table captions, etc.) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
