:root {
  --bg: #f9f8f6;
  --ink: #1a1a1a;
  --muted: #6b6a63;
  --gold: #b8860b;
  --gold-bright: #c9a227;
  --border: #e5e2d9;
  --navy: #0b1f3a;
  --ok-bg: #eef6ef;
  --ok: #1f7a4d;
  --err-bg: #fbeae9;
  --err: #a4262c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
em { font-style: italic; }

p { margin: 0 0 16px; }
a { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-bright); display: inline-block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.alt { background: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(249,248,246,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: 38px; border-radius: 50%; }
.brand .word { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand .word small { display: block; font-family: "Inter", sans-serif; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; font-size: 0.86rem; color: var(--ink); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .phone { font-size: 0.86rem; text-decoration: none; white-space: nowrap; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 6px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.mobile-nav a:last-child { border-bottom: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer;
}
.btn-dark { background: var(--ink); color: var(--gold-bright); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { background: #b8931f; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.hero-image { margin-top: 8px; }
.hero-image img { width: 100%; height: auto; border-radius: 18px; display: block; object-fit: cover; max-height: 520px; }

.services-banner { margin-top: 32px; }
.services-banner img { width: 100%; height: auto; border-radius: 18px; display: block; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px;
}
.service-card .num { font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card a.quote-link { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.feature-list li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; height: auto; border-radius: 16px; display: block; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: "Fraunces", serif; font-size: 1.02rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .idx { color: var(--gold); font-weight: 600; margin-right: 10px; }
.faq-q .chev { transition: transform 0.2s ease; color: var(--muted); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--muted); font-size: 0.95rem; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding-bottom: 20px; }

.testimonial { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.trust-bar { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.cta-final { text-align: center; }
.cta-final .btn { margin-top: 6px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
label .req { color: var(--gold); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--muted); }
.form-msg { display: none; padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; margin-top: 14px; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.err { background: var(--err-bg); color: var(--err); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,10,10,0.55); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); border-radius: 18px; padding: 40px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ink);
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-brand .brand .word, .footer-brand .brand .word small { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 280px; margin-top: 14px; }
.footer-contact { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.88rem; display: grid; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; }
.site-footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; }

/* Tabs (Personal Tax: Individual / Business / Self-Employed) */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.tab-btn.active { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Checklist (2-col on desktop) */
.checklist { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.checklist li { break-inside: avoid; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; margin-bottom: 14px; }
.checklist li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
@media (max-width: 700px) { .checklist { columns: 1; } }

/* Split reversed (image right on desktop reads left on mobile via source order) */
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* Reviews / trust badges */
.badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; color: var(--ink);
}

/* Long-form prose (Privacy Policy) */
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }

/* Mobile sticky bar */
.mobile-bar { display: none; }

@media (max-width: 1100px) {
  /* Nav switches to the hamburger a bit earlier than the rest of the layout
     collapses, since the added GST/HST + Bookkeeping links no longer fit
     the desktop bar below ~1100px. */
  .main-nav, .header-actions .phone { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  }
  .mobile-bar a, .mobile-bar button {
    flex: 1; text-align: center; padding: 16px; font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; border: none; cursor: pointer;
  }
  .mobile-bar .call { background: var(--ink); color: #fff; }
  .mobile-bar .quote { background: var(--gold-bright); color: var(--navy); }
  body { padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
