/* =============================================================================
   Warkentin Tax (wbtax.ca) - blueprint recreation of finance/kruze (R9)
   All design decisions are per-prospect. Nothing here is shared with any other
   build.

   FONTS - documented choice:
     Display: "Archivo" (600/700/800). A sturdy, slightly-condensed grotesque
       with civic/ledger character: it reads institutional and dependable, which
       is the right register for a prairie tax office, and its heavy uppercase
       carries the Kruze-style two-tone H1 without feeling like a startup brand.
     Body: "Source Sans 3" (400/600/700). Adobe's workhorse UI sans: plain,
       warm, extremely legible at small sizes for dense service copy and forms.
       Deliberately unfancy; the firm's pitch is competence, not style.
     No Fraunces (operator rule). No serif: nothing on their real brand or site
       suggests one.

   PALETTE - from theme.json truth:
     Brand #29528e (their logo + real footer colour) = CTAs, links, H1 accent,
       closing band. Surfaces stay light/near-white per siteScheme (light mood,
       #f9f9fa bands); the dark blue is used the way their own site uses it, as
       the footer/closing anchor, never the page canvas.
     Accent teal #309ba6 (their secondary) = large numerals + decorative only
       (3.3:1 on white clears only the large-text floor); a darkened companion
       #23747c is used wherever a teal accent must be small text (4.5+).
     Junk hexes from theme.json secondaryCandidates (#1da1f2 Twitter, #3b5998
       Facebook, #00c0ff / #1872e6 / #5a9aee link-chrome, #e8424e Instagram)
       are social/template chrome, NOT brand - unused everywhere.
   ========================================================================== */

:root {
  --brand: #29528e;
  --brand-deep: #1b3560;
  --teal: #309ba6;
  --teal-deep: #23747c;
  --ink: #1d2a3e;
  --body-c: #35435a;
  --muted: #5a6b85;
  --paper: #ffffff;
  --pale: #e9f0fa;
  --pale-2: #f4f8fd;
  --tint: #f6f8fc;
  --line: #d8e1ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 42, 62, 0.10);

  --step-h1: clamp(1.55rem, 1.05rem + 2.3vw, 2.7rem);
  --step-h2: clamp(1.35rem, 1.05rem + 1.5vw, 2.05rem);
  --step-h3: 1.15rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --section-y: clamp(3rem, 6.5vw, 5.5rem);
}

html { background: var(--paper); }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--body-c);
  font-size: 1.0325rem;
  line-height: 1.6;
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, .btn, .nav-cta, .form-heading {
  font-family: "Archivo", "Source Sans 3", sans-serif;
  color: var(--ink);
}

.skip-link { background: var(--brand); color: #fff; padding: 0.6rem 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost, .btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover, .btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--brand-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.nav-logo img { height: 30px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-panel a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav-panel a:hover { color: var(--brand); }
.nav-phone {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem;
  white-space: nowrap;
}
.nav-phone:hover { border-color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important; border-radius: 999px;
  padding: 0.55rem 1.2rem; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-deep); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  width: 44px; height: 40px; position: relative; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--pale-2) 0%, var(--pale) 100%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(4rem, 7vw, 5.5rem);
  align-items: start;
}
.hero h1 {
  font-size: var(--step-h1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.14;
  margin: 0 0 1.1rem;
}
.h1-brand { color: var(--brand); }
.hero-lead { font-size: 1.16rem; font-weight: 600; color: var(--ink); margin: 0 0 0.85rem; }
.hero-p { margin: 0 0 0.85rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-side { display: grid; gap: 1.25rem; }
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- lead card (form) ---------- */
.lead-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.form-heading { font-size: 1.22rem; font-weight: 700; margin: 0 0 0.25rem; }
.form-lead { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.field { margin-bottom: 0.85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 0.3rem; }
.field-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 0.6rem 0.75rem; background: #fff; font-size: 0.98rem; color: var(--ink);
}
.field-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(41, 82, 142, 0.15); }
select.field-input { appearance: auto; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.35rem; }
.call-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.form-note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0.9rem 0 0; }
.form-note a { color: var(--brand); }
.step-hint { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0.6rem 0 0; }
.btn-back {
  background: none; border: none; color: var(--muted); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.4rem;
}
.btn-back:hover { color: var(--ink); }

/* ---------- proof card ---------- */
.proof { background: var(--paper); padding-bottom: calc(var(--section-y) * 0.6); }
.proof-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-top: -2.75rem; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 280px; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  align-items: center;
}
.proof-main h2 { font-size: var(--step-h2); text-transform: uppercase; line-height: 1.15; margin: 0 0 0.75rem; }
.proof-accent { color: var(--brand); }
.nowrap { white-space: nowrap; }
.proof-main > p { max-width: 62ch; margin: 0 0 1.1rem; }
.rating-chart { max-width: 460px; margin-bottom: 1rem; }
.rating-scale { background: var(--pale); border-radius: 999px; height: 16px; overflow: hidden; }
.rating-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--teal)); border-radius: 999px; }
.rating-marks { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.proof-link-line { margin: 0 0 1.2rem; }
.proof-stats {
  list-style: none; margin: 0; padding: 0.9rem 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem;
}
.proof-stats li { font-size: 0.95rem; color: var(--muted); }
.proof-stats strong {
  display: block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.55rem; color: var(--teal); line-height: 1.2;
}
.proof-face { text-align: center; }
.proof-face img { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-inline: auto; }
.proof-face figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.55rem; }

/* ---------- section headings ---------- */
.section-h {
  font-size: var(--step-h2); text-transform: uppercase; line-height: 1.15;
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem); text-align: center;
}
.eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; font-size: 0.85rem; color: var(--teal-deep); margin: 0 0 0.5rem;
}

/* ---------- why ---------- */
.why { padding-block: var(--section-y); background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.why-num {
  display: block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.6rem; color: var(--teal); margin-bottom: 0.4rem;
}
.why-item h3 { font-size: var(--step-h3); line-height: 1.3; margin: 0 0 0.5rem; }
.why-item p { font-size: 0.96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--pale); }
.cta-inner { text-align: center; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.cta-inner h2 { font-size: var(--step-h2); text-transform: uppercase; margin: 0 0 0.7rem; }
.cta-inner p { max-width: 60ch; margin: 0 auto 1.4rem; }

/* ---------- services ---------- */
.services { padding-block: var(--section-y); background: var(--tint); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.service-tile {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(29, 42, 62, 0.07); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.service-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 28%; }
.service-body { padding: 1.1rem 1.2rem 1.3rem; }
.service-body h3 { font-size: 1.08rem; margin: 0 0 0.45rem; }
.service-body p { font-size: 0.92rem; margin: 0; }

/* ---------- reviews ---------- */
.reviews { padding-block: var(--section-y); background: var(--paper); }
.review-featured { max-width: 46rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.review-featured blockquote p {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem); line-height: 1.45;
  color: var(--ink); font-style: italic; margin: 0 0 0.9rem;
}
.review-featured figcaption, .review-card figcaption { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.stars { color: var(--teal); letter-spacing: 0.12em; margin-right: 0.4rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.review-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.review-card blockquote p { font-size: 0.96rem; margin: 0 0 0.8rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); background: var(--tint); }
.faq-wrap { max-width: 820px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 0.8rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: "Archivo", sans-serif; font-weight: 600; color: var(--ink);
  font-size: 1.02rem; padding: 1rem 3rem 1rem 1.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); font-weight: 600;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.1rem; font-size: 0.98rem; }

/* ---------- book band ---------- */
.book { background: var(--brand); }
.book-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4.5vw, 4rem);
  padding-block: var(--section-y); align-items: start;
}
.book-copy h2 {
  color: #fff; font-size: var(--step-h2); text-transform: uppercase;
  line-height: 1.18; margin: 0 0 0.9rem;
}
.book-copy > p { color: #dbe6f6; margin: 0 0 1.5rem; max-width: 52ch; }
.book-photo img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.book-photo figcaption { color: #b9cbe8; font-size: 0.88rem; margin-top: 0.6rem; }

/* ---------- footer ---------- */
.footer { background: var(--brand-deep); color: #cdd9ec; }
.footer a { color: #ffffff; }
.footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem); padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.footer h3 {
  color: #9fb6da; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 0 0 0.85rem;
}
.footer-logo { height: 26px; width: auto; margin-bottom: 0.9rem; }
.footer-about p { font-size: 0.95rem; margin: 0; max-width: 34ch; }
.footer address { font-style: normal; }
.footer address p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.hours-table { border-collapse: collapse; font-size: 0.93rem; width: 100%; max-width: 280px; }
.hours-table th { text-align: left; font-weight: 400; color: #9fb6da; padding: 0.14rem 1rem 0.14rem 0; }
.hours-table td { text-align: right; padding: 0.14rem 0; color: #e6edf8; }
.footer-map iframe { width: 100%; height: 220px; border: 0; border-radius: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; font-size: 0.85rem; color: #9fb6da;
}
.footer-bottom p { margin: 0; }

/* ---------- preview badge ---------- */
.preview-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: flex; gap: 8px; font-size: 0.8rem;
}
.preview-badge a {
  text-decoration: none; border-radius: 999px; padding: 0.45rem 0.9rem;
  box-shadow: 0 4px 14px rgba(29, 42, 62, 0.25); font-weight: 600;
}
.preview-badge-info { background: var(--ink); color: #fff; }
.preview-badge-cta { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 74em) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1rem; margin-left: 0;
    box-shadow: 0 12px 24px rgba(29, 42, 62, 0.10);
  }
  .nav-panel a { padding: 0.7rem 0.25rem; }
  .nav-phone, .nav-cta { text-align: center; margin-top: 0.5rem; }
  [data-tk-nav][data-tk-nav-open="false"] .nav-panel { display: none; }
}

@media (max-width: 64em) {
  .hero-grid { grid-template-columns: 1fr; }
  .proof-card { grid-template-columns: 1fr; }
  .proof-face img { max-width: 320px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40em) {
  .hero-p-3 { display: none; } /* keeps the real office photo inside the first phone viewport */
  .why-grid, .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; text-align: center; }
  .footer-bottom { justify-content: flex-start; }
  .preview-badge { font-size: 0.75rem; }
}
