/* Shared Heyward CPA brand styles for byobookkeeper.net.
   Tokens follow the Heyward CPA Brand Guide V1 (BrandBay update). */
:root {
  --gold: #D4C75F;
  --gold-600: #C0B451;
  --gold-700: #A9944F;
  --charcoal: #48484C;
  --body: #605C51;
  --ink: #302E29;
  --paper: #FAF9F6;
  --paper-alt: #F3F1EC;
  --line: #E7E4DC;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(72,72,76,0.06), 0 8px 24px rgba(72,72,76,0.08);
  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --reading: 760px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-700); }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; max-width: 760px; }
.section-lead { font-size: 18px; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  font-family: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-600); color: var(--ink); }
.btn-primary:active { background: var(--gold-700); }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.btn-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-on-dark:hover { border-color: var(--white); color: var(--white); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 3px; }

/* Icon chip: gold rounded square holding a charcoal glyph */
.chip {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-byob { width: auto; height: 54px; }
.brand-by {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--body);
  padding-left: 16px; border-left: 1px solid var(--line);
  white-space: nowrap;
}
.brand-by img { width: 110px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1120px) { .nav-links { gap: 20px; } }
.nav-links a:hover { color: var(--gold-700); }
.nav-links .btn { padding: 12px 16px; font-size: 15px; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--charcoal); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; width: 100%; }
}
@media (max-width: 420px) {
  .brand-by { display: none; }
}

/* Stripe motif: gold–charcoal–gold bands, once per page */
.stripe { height: 16px; background: linear-gradient(var(--gold) 0 4px, var(--charcoal) 4px 12px, var(--gold) 12px 16px); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-byob { width: 120px; height: auto; margin-bottom: 16px; }
.footer-by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.footer-by img { width: 130px; height: auto; }
.site-footer h4 { color: var(--white); font-family: 'Fira Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.55); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Workshop pages: show copy for the current mode (see assets/workshop.js) */
.only-registration { display: none !important; }
[data-workshop="registration"] .only-registration { display: revert !important; }
[data-workshop="registration"] .only-waitlist { display: none !important; }

/* Gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(4px); transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
