/* ==========================================================================
   BC Tax 2026 — main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Buttons  6. Header and nav
   7. Mobile menu  8. Footer  9. Mobile CTA bar  10. Content  11. Utilities
   ========================================================================== */

/* 1. Fonts — self-hosted Montserrat (variable, latin). To change typefaces,
   replace these files and edit --font-heading / --font-body below. */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* 2. Design tokens */
:root {
	/* Brand */
	--navy: #062a5e;          /* 14.0:1 on white */
	--navy-800: #0b3a7a;
	--teal: #41b6c8;          /* accents and text on navy only (2.4:1 on white) */
	--teal-text: #157482;     /* teal for text/links on white, 5.5:1 */
	--teal-tint: #e6f5f8;

	/* Neutrals */
	--ink: #1d2733;           /* body text, 15.1:1 */
	--ink-muted: #4a5868;     /* secondary text, 7.3:1 */
	--line: #dce3ea;
	--surface: #ffffff;
	--surface-alt: #f4f7fa;

	/* Type */
	--font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-body: 1.0625rem;     /* 17px */
	--fs-small: 0.9375rem;    /* 15px */
        --fs-xs: 0.8125rem;       /* 12px */
	--fs-xxs: 0.625rem;       /* 10px */
	--fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
	--fs-h2: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
	--fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--lh-body: 1.7;
	--lh-heading: 1.2;

	/* Space and shape */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--section-y: clamp(3rem, 2rem + 4vw, 6rem);
	--container: 75rem;       /* 1200px */
	--gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
	--measure: 42rem;         /* comfortable reading width for short intros */
	--reading: 48rem;         /* centered editorial column (pages and articles) */
	--radius: 8px;
	--radius-lg: 14px;
	--focus: 0 0 0 3px #fff, 0 0 0 5px var(--navy);

	/* Header */
	--header-h: 76px;
	--mobile-cta-h: 64px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: var(--lh-heading); margin: 0 0 var(--space-4); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }
p, ul, ol { margin: 0 0 var(--space-4); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
strong { font-weight: 600; }
address { font-style: normal; }
.site-main:focus { outline: none; }

/* 4. Layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: #bfe8ef; }
.prose { max-width: var(--measure); }

/* 5. Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 48px; padding: 0.75rem 1.375rem;
	border-radius: var(--radius); border: 2px solid transparent;
	font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* Very narrow screens (320px = 400% zoom): long button labels wrap instead of scrolling sideways. */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--teal); }
.btn--secondary:hover { background: var(--teal-tint); color: var(--navy); }
.btn--on-navy { background: var(--teal); color: var(--navy); }
.btn--on-navy:hover { background: #fff; color: var(--navy); }
.btn--ghost-on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-on-navy:hover { border-color: #fff; color: #fff; }
.btn__label-short { display: none; }

/* Business-hours CTA switching: <html data-office="open|closed"> is set in <head>. */
[data-office="open"] [data-when="closed"],
[data-office="closed"] [data-when="open"] { display: none !important; }

/* 6. Header and navigation */
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: var(--space-3) var(--space-4); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--space-4); color: #fff; }

.utility-bar { background: var(--navy); color: #fff; font-size: var(--fs-xs); }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 36px; }
.utility-bar p { margin: 0; }
.utility-bar__tagline { letter-spacing: 0.02em; }
.utility-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.utility-bar a:hover { color: var(--teal); text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.site-header__logo { flex: 0 0 auto; display: block; }
.site-header__logo img { width: 180px; height: auto; }
.site-header__cta { margin-left: auto; display: flex; }

.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav--desktop { margin-left: var(--space-5); }
.nav--desktop .nav__list { display: flex; align-items: center; gap: var(--space-1); }
.nav--desktop .nav__item { position: relative; display: flex; align-items: center; }
.nav__link, .nav__toggle--label {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 0.625rem 0.625rem; color: var(--navy); font-weight: 600; font-size: 0.9375rem;
	text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.3; border-radius: 6px;
}
.nav__toggle:not(.nav__toggle--label) { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; margin-left: -6px; padding: 0; background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: 6px; }
.nav__link, .nav__toggle--label { white-space: nowrap; }
.nav__link:hover, .nav__toggle--label:hover, .nav__toggle:hover { color: var(--teal-text); }
.nav__item.is-current-section > .nav__link, .nav__item.is-current-section > .nav__toggle--label { box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.nav__chev { transition: transform .15s ease; }
[aria-expanded="true"] > .nav__chev { transform: rotate(180deg); }

.nav--desktop .nav__sub {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: 0 12px 32px rgba(6, 42, 94, 0.12); padding: var(--space-2);
	display: none;
}
.nav--desktop .nav__sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.nav--desktop .nav__item.is-open > .nav__sub { display: block; }
@media (hover: hover) and (pointer: fine) {
	.nav--desktop .nav__item--has-sub:hover > .nav__sub { display: block; }
}
.nav__sublink { display: block; padding: 0.625rem 0.875rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { background: var(--teal-tint); color: var(--navy); }

.menu-toggle { display: none; align-items: center; gap: var(--space-2); margin-left: var(--space-2); padding: 0.5rem 0.625rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); font: 600 0.875rem/1 var(--font-body); cursor: pointer; min-height: 44px; }
.menu-toggle__icon { display: inline-grid; gap: 4px; width: 20px; }
.menu-toggle__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
	.nav__link, .nav__toggle--label { padding-inline: 0.5rem; font-size: 0.875rem; }
	.btn__label-long { display: none; }
	.btn__label-short { display: inline; }
	.site-header__logo img { width: 160px; }
}

/* 7. Mobile menu (below 1024px) */
@media (max-width: 1023px) {
	:root { --header-h: 64px; }
	.nav--desktop { display: none; }
	.menu-toggle { display: inline-flex; }
	.site-header__inner { gap: var(--space-3); }
	.site-header__logo img { width: 140px; }
	.site-header__cta .btn { min-height: 44px; padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
	.utility-bar__tagline { display: none; }
	.utility-bar__inner { justify-content: center; min-height: 32px; }
}
@media (max-width: 420px) {
	.site-header__cta { display: none; } /* the bottom bar carries the CTAs */
	.menu-toggle { margin-left: auto; }
}
.mobile-menu { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom)); }
.mobile-menu[hidden] { display: none; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.nav--mobile .nav__list { padding: var(--space-2) var(--gutter); }
.nav--mobile .nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.nav--mobile .nav__link, .nav--mobile .nav__toggle--label { flex: 1; min-height: 52px; font-size: 1.0625rem; padding-inline: 0; justify-content: space-between; }
.nav--mobile .nav__toggle:not(.nav__toggle--label) { width: 52px; height: 52px; margin: 0; }
.nav--mobile .nav__sub { flex-basis: 100%; display: none; padding: 0 0 var(--space-3) var(--space-3); }
.nav--mobile .nav__item.is-open > .nav__sub { display: block; }
.nav--mobile .nav__sublink { padding: 0.75rem 0.5rem; font-size: 1rem; }
.mobile-menu__contact { padding: var(--space-4) var(--gutter) var(--space-6); font-size: var(--fs-small); color: var(--ink-muted); }
.mobile-menu__contact p { margin: 0 0 var(--space-2); }
.mobile-menu__contact a { font-weight: 600; color: var(--navy); }

/* 8. Footer */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-muted); padding-top: var(--space-8); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal-text); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line); }
.footer__logo img { width: 170px; margin-bottom: var(--space-4); }
.footer__brand p { max-width: 22rem; }
.footer__address { font-size: var(--fs-xs); }
.footer__contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.footer__contact p { margin: 0 0 var(--space-2); }
.footer__heading { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin: 0 0 var(--space-3); line-height: 1.4; }
.footer__heading a { color: var(--navy) !important; }
a.footer__phone { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
a[href^="tel:"] { white-space: nowrap; }
.footer__columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding-block: var(--space-7); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: var(--space-2); line-height: 1.45; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.footer__bottom p { margin: 0; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1023px) {
	.footer__top { grid-template-columns: 1fr; gap: var(--space-6); }
	.footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.footer__contact { grid-template-columns: 1fr; }
	.footer__columns { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* 9. Mobile conversion bar */
.mobile-cta { display: none; }
@media (max-width: 1023px) {
	.mobile-cta {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
		padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(6, 42, 94, 0.08);
		transition: transform .2s ease;
	}
	body { padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom)); }
	/* Hidden while typing in a form so it never covers fields or the keyboard. */
	body.is-typing .mobile-cta, body.menu-open .mobile-cta { transform: translateY(110%); }
}
.mobile-cta__btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius); border: 2px solid var(--navy); color: var(--navy); background: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.mobile-cta__btn--primary { background: var(--navy); color: #fff; }
.mobile-cta__btn:hover { color: var(--navy); }
.mobile-cta__btn--primary:hover { color: #fff; }

/* 10. Content defaults (articles, simple pages) */
.page-header { padding-block: var(--space-7) var(--space-5); }
.entry-content { max-width: var(--reading); }
.reading .page-header, .reading .entry-content { max-width: var(--reading); margin-inline: auto; }
.reading { padding-bottom: var(--space-8); }
.entry-content h2 { margin-top: var(--space-7); }
.entry-content h3 { margin-top: var(--space-6); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 3px solid var(--teal); color: var(--ink-muted); }

/* 11. Utilities */
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==========================================================================
   12. Shared section pieces
   ========================================================================== */
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head p { color: var(--ink-muted); font-size: 1.125rem; margin: 0; }
.section--navy .section-head p { color: #d9e6f2; }
.section-link { margin: var(--space-5) 0 0; font-weight: 600; }
.section-link a { text-decoration: none; }
.section-link a:hover { text-decoration: underline; }
.cta-pair { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.preview-flag { font-size: var(--fs-xs); background: #fff4d6; color: #5c4400; border: 1px dashed #c99a1c; border-radius: 6px; padding: var(--space-2) var(--space-3); margin-bottom: var(--space-4); }

/* ==========================================================================
   13. Homepage
   ========================================================================== */

/* 1. Hero */
.home-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.home-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.625rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: var(--space-5); }
.home-hero__lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-muted); max-width: 34rem; margin-bottom: var(--space-6); }
.home-hero__media { position: relative; }
.home-hero__img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 40%; border-radius: var(--radius-lg); }
.home-hero__media::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 55%; border-radius: var(--radius-lg); background: var(--teal-tint); z-index: -1; }
.trust-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: var(--space-6) 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.trust-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.trust-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

/* 2. Callback form */
.home-form { padding-bottom: var(--space-4); }
.home-form:focus { outline: none; }
.home-form__card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--space-6); align-items: center; background: var(--surface-alt); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.home-form__intro h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); margin-bottom: var(--space-2); }
.home-form__intro p { margin: 0; color: var(--ink-muted); }
.callback-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; }
.field { margin: 0; display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.field input { width: 100%; min-height: 48px; padding: 0.625rem 0.875rem; border: 1px solid #b8c3cf; border-radius: var(--radius); font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(65, 182, 200, 0.45); }
.callback-form__consent { font-size: var(--fs-xs); color: var(--ink-muted); margin: var(--space-3) 0 0; }
.callback-form__dev-note { font-size: var(--fs-xs); color: #5c4400; margin: var(--space-1) 0 0; }

/* 3. Tax problems */
.problem-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.problem-card { position: relative; display: flex; flex-direction: column; padding: var(--space-6) var(--space-5) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.problem-card:hover { border-color: var(--teal); box-shadow: 0 10px 28px rgba(6, 42, 94, 0.08); }
.problem-card__title { font-size: 1.25rem; margin-bottom: var(--space-3); }
.problem-card__title a { color: var(--navy); text-decoration: none; }
.problem-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); } /* whole card clickable */
.problem-card__title a:focus-visible { box-shadow: none; }
.problem-card:focus-within { box-shadow: var(--focus); }
.problem-card p { color: var(--ink-muted); flex: 1; }
.problem-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-small); color: var(--teal-text); }
.problem-links { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); }
.problem-links li { padding: var(--space-4) 0 0; border-top: 1px solid var(--line); }
.problem-links a { font-weight: 600; color: var(--navy); margin-right: var(--space-2); }
.problem-links span { color: var(--ink-muted); font-size: var(--fs-small); }

/* 4. Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 3.25rem; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.step__title { font-size: 1.1875rem; margin-bottom: var(--space-2); }
.step p { color: var(--ink-muted); margin: 0; }

/* 5. Why BC Tax (navy) */
.home-why__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.home-why__cols h3 { color: var(--teal); font-size: 1.1875rem; }
.home-why__cols p { color: #e3ecf5; }

/* 6. Tax preparation */
.home-prep__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.home-prep__copy p { max-width: 36rem; }
.check-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.check-list li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1rem; height: 0.55rem; border-left: 2.5px solid var(--teal-text); border-bottom: 2.5px solid var(--teal-text); transform: rotate(-45deg); }
.home-prep__partner { margin: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.home-prep__partner img { width: 220px; }
.home-prep__partner figcaption { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--ink-muted); }

/* 7. Reviews and story */
.home-proof__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.review { margin: 0 0 var(--space-4); padding: var(--space-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.review__text { margin: 0; color: var(--ink); }
.review__text p:last-child { margin-bottom: 0; }
.review__by { margin-top: var(--space-3); font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.story-card { padding: var(--space-6); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius-lg); }
.story-card__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); margin-bottom: var(--space-2); }
.story-card__title { font-size: 1.3125rem; }
.story-card__title a { color: var(--navy); text-decoration: none; }
.story-card__title a:hover { text-decoration: underline; }
.story-card__disclaimer { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-muted); }

/* 8. Final CTA */
.home-final__inner { text-align: center; max-width: 44rem; }
.home-final h2 { margin-bottom: var(--space-3); }
.home-final p { color: #e3ecf5; font-size: 1.125rem; margin-bottom: var(--space-6); }
.home-final .cta-pair { justify-content: center; }

/* Homepage responsive */
@media (max-width: 1023px) {
	.home-hero__inner { grid-template-columns: 1fr; }
	.home-hero__img { aspect-ratio: 16 / 9; }
	.home-hero__media::before { display: none; }
	.home-form__card { grid-template-columns: 1fr; }
	.problem-cards { grid-template-columns: 1fr; gap: var(--space-4); }
	.home-prep__inner, .home-proof__grid, .home-why__cols { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 760px) {
	.callback-form__grid { grid-template-columns: 1fr; }
	.field--submit .btn { width: 100%; }
	.steps { grid-template-columns: 1fr; gap: var(--space-5); }
	.problem-links { grid-template-columns: 1fr; }
	.cta-pair .btn { flex: 1 1 100%; }
	.check-list { grid-template-columns: 1fr; }
}

/* Hero style: navy with mountain-ridge pattern (no photo) */
.home-hero--navy {
	position: relative; overflow: hidden; color: #fff;
	background:
		url("../img/hero-ridges.svg") bottom center / 100% auto no-repeat,
		radial-gradient(ellipse 60% 70% at 85% 15%, rgba(65, 182, 200, 0.14), transparent 70%),
		var(--navy);
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(5rem, 4rem + 4vw, 7.5rem);
}
.home-hero--navy h1 { color: #fff; }
.home-hero--navy .home-hero__lead { color: #d9e6f2; }
.home-hero--navy .trust-facts { color: #fff; }
.home-hero--navy .home-hero__inner { align-items: center; }
.home-hero__panel {
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	backdrop-filter: blur(2px);
}
.home-hero__panel-heading { color: #fff; font-size: 1.1875rem; margin-bottom: var(--space-4); }
.home-hero__panel-list { list-style: none; margin: 0; padding: 0; }
.home-hero__panel-list li { position: relative; padding: var(--space-3) 0 var(--space-3) 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #e3ecf5; line-height: 1.45; }
.home-hero__panel-list li:first-child { border-top: 0; padding-top: 0; }
.home-hero__panel-list li::before { content: ""; position: absolute; left: 2px; top: calc(var(--space-3) + 0.3em); width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.home-hero__panel-list li:first-child::before { top: 0.3em; }
/* The callback card overlaps the navy hero slightly, so it reads as part of the first screen. */
.home-hero--navy + .home-form .home-form__card { position: relative; margin-top: clamp(-4rem, -3rem - 1vw, -3rem); background: #fff; box-shadow: 0 18px 40px rgba(6, 42, 94, 0.14); }
@media (max-width: 1023px) {
	.home-hero--navy { background-size: 220% auto, auto, auto; }
	.home-hero__panel { display: none; } /* keeps the callback form close; section 3 lists the same topics */
}

/* ==========================================================================
   14. Interior pages: compact hero, editorial column, modules
   ========================================================================== */
.page-hero {
	color: #fff;
	background:
		url("../img/hero-ridges.svg") center bottom -160px / max(1600px, 100%) auto no-repeat, /* lower ridges only: subtler than the homepage */
		var(--navy);
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.page-hero .container > * { max-width: var(--reading); margin-inline: auto; }
.page-hero h1 { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); margin-bottom: var(--space-4); }
.page-hero__lead { color: #d9e6f2; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); margin-bottom: var(--space-5); }

.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--fs-xs); }
.breadcrumbs { overflow: hidden; } /* clips the "/" of an item that starts a new line */
.breadcrumbs ol { list-style: none; margin: 0 0 0 -1rem; padding: 0; display: flex; flex-wrap: wrap; row-gap: 4px; }
.breadcrumbs li { position: relative; display: inline-flex; align-items: center; padding-left: 1rem; color: #c5d6e8; }
.breadcrumbs li::before { content: "/"; position: absolute; left: 0.3rem; color: #7f9cc0; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.editorial { padding-block: var(--space-7) var(--space-8); }
.editorial > * { max-width: var(--reading); margin-inline: auto; } /* centered column; header content aligns to it */
.editorial > .tp-block, .editorial > .mid-cta, .editorial > .trust-note { margin-bottom: var(--space-7); }
.tp-block > h2:first-child, .entry-content > h2:first-child { margin-top: 0; }
.tp-block__intro { font-size: 1.125rem; color: var(--ink-muted); }

.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.situations li { padding-left: var(--space-4); border-left: 3px solid var(--teal); color: var(--ink-muted); }
.situations strong { display: block; color: var(--navy); margin-bottom: 2px; }

.help-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; }
.help-step { counter-increment: hs; position: relative; padding: 0 0 var(--space-5) 3.5rem; }
.help-step::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center; }
.help-step:not(:last-child)::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.6rem; bottom: 0.4rem; width: 2px; background: var(--line); }
.help-step__title { font-size: 1.125rem; margin: 0.35rem 0 var(--space-2); }
.help-step p { margin: 0; color: var(--ink-muted); }

/* Process variant (How It Works): larger numbered timeline, step labels and bullet points. */
.help-steps--process .help-step { padding: 0 0 var(--space-7) 4.25rem; }
.help-steps--process .help-step:last-child { padding-bottom: 0; }
.help-steps--process .help-step::before { width: 2.875rem; height: 2.875rem; font-size: 1.125rem; box-shadow: 0 0 0 5px var(--teal-tint); }
.help-steps--process .help-step:not(:last-child)::after { left: calc(1.4375rem - 1px); top: 3.5rem; bottom: 0.75rem; background: linear-gradient(var(--teal), var(--line)); }
.help-steps--process .help-step__label { margin: 0.1rem 0 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.help-steps--process .help-step__title { font-size: var(--fs-h3); margin: 0.15rem 0 var(--space-2); }
.help-steps--process .help-step p:not(.help-step__label) { color: var(--ink); }
.help-step__points { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.help-step__points li { position: relative; padding-left: 1.5rem; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.55; }
.help-step__points li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--teal); }
@media (max-width: 520px) {
	.help-steps--process .help-step { padding-left: 3.5rem; }
	.help-steps--process .help-step::before { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
	.help-steps--process .help-step:not(:last-child)::after { left: calc(1.125rem - 1px); top: 2.9rem; }
}

/* Option cards (Service template): linked programs in a two-column grid inside the reading column. */
.option-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.option-card { position: relative; padding: var(--space-5); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.option-card:has(a):hover { border-color: #b8c3cf; border-top-color: var(--navy); box-shadow: 0 6px 18px rgba(6, 42, 94, 0.08); }
.option-card__title { font-size: 1.0625rem; margin: 0 0 var(--space-2); }
.option-card__title a { color: var(--navy); text-decoration: none; }
.option-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable; the link text stays the accessible name */
.option-card__title a:focus-visible { outline: none; }
.option-card:has(a:focus-visible) { box-shadow: var(--focus); }
.option-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease; }
.option-card:hover .option-card__title a { background-size: 100% 1px; }
.option-card p { margin: 0; font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 640px) { .option-cards { grid-template-columns: 1fr; } }

.mid-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-5) var(--space-5); background: var(--teal-tint); border-radius: var(--radius-lg); }
.mid-cta p { margin: 0; color: var(--navy); font-weight: 500; }
.mid-cta__actions { font-weight: 600; } /* wraps at 320px (WCAG reflow); the phone number itself stays on one line */
.mid-cta__actions a { color: var(--navy); }

.trust-note { padding: var(--space-5) var(--space-6); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface-alt); }
.trust-note h2 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.trust-note p { margin: 0; color: var(--ink-muted); }
.trust-note .trust-note__link { margin-top: var(--space-3); font-weight: 600; }

.related-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.related-links li { padding-top: var(--space-3); border-top: 2px solid var(--teal); }
.related-links a { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--space-1); }
.related-links span { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; display: block; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; font-weight: 600; color: var(--navy); font-size: 1.0625rem; line-height: 1.4; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--teal-text); border-bottom: 2px solid var(--teal-text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s ease; }
.faq__item[open] > .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__q:hover { color: var(--teal-text); }
.faq__a { padding: 0 0 var(--space-4); color: var(--ink-muted); }
.faq__a p:last-child { margin-bottom: 0; }

.reading-list { margin: 0; padding-left: 1.25rem; }
.reading-list li { margin-bottom: var(--space-2); }

.cta-band__inner { text-align: center; max-width: 44rem; }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p { color: #e3ecf5; font-size: 1.125rem; margin-bottom: var(--space-5); }
.cta-band .cta-band__hours { font-size: var(--fs-small); color: #c5d6e8; }
.cta-band .cta-pair { justify-content: center; }

@media (max-width: 760px) {
	.page-hero { background-size: 1000px auto, auto; }
	.situations, .related-links { grid-template-columns: 1fr; }
	.mid-cta { flex-direction: column; align-items: flex-start; }
}

/* Overview hub pages */
.overview { padding-block: var(--space-7) var(--space-8); }
.overview__intro { max-width: var(--reading); margin: 0 auto var(--space-6); font-size: 1.125rem; }
.problem-cards--overview { max-width: 64rem; margin-inline: auto; }
.problem-cards--overview .problem-card__title { font-size: 1.25rem; }
.overview__note { max-width: var(--reading); margin: var(--space-6) auto 0; color: var(--ink-muted); text-align: center; }
/* Center an incomplete last row of overview cards (e.g. 3 + 2). */
@media (min-width: 1024px) {
	.problem-cards--overview { display: flex; flex-wrap: wrap; justify-content: center; }
	.problem-cards--overview > .problem-card { flex: 0 1 calc((100% - 2 * var(--space-5)) / 3); }
}

/* ==========================================================================
   15. Contact pages
   ========================================================================== */
.page-hero--compact { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.contact { padding-block: var(--space-7) var(--space-8); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; max-width: 68rem; margin-inline: auto; }
.contact__form { display: block; background: #fff; }
.contact__form:focus { outline: none; }
.contact__form h2 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.contact__form-intro { color: var(--ink-muted); margin-bottom: var(--space-5); }
.contact__form .callback-form__grid { grid-template-columns: 1fr; }
.contact__form .field--submit .btn { width: 100%; }
.contact-card { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-alt); }
.contact-card p { margin-bottom: var(--space-3); }
.contact-card__heading { font-size: 1.1875rem; margin-bottom: var(--space-2); }
a.contact-card__phone { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); font-weight: 700; color: var(--navy); text-decoration: none; }
a.contact-card__phone:hover { text-decoration: underline; }
.contact-card__hours { font-size: var(--fs-small); color: var(--ink-muted); }
.office-status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #1c6b3a; margin-bottom: var(--space-3); }
.office-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9d5a; box-shadow: 0 0 0 3px rgba(46, 157, 90, 0.2); }
.office-status--closed { color: var(--ink-muted); }
.office-status--closed .office-status__dot { background: #8a97a6; box-shadow: 0 0 0 3px rgba(138, 151, 166, 0.2); }
.contact-next { margin-top: var(--space-6); }
.contact-next__heading { font-size: 1.1875rem; margin-bottom: var(--space-4); }
.help-steps--compact .help-step { padding-bottom: var(--space-4); }
.help-steps--compact .help-step__title { font-size: 1rem; }
.help-steps--compact .help-step p { font-size: var(--fs-small); }
.contact__note { max-width: 68rem; margin: var(--space-6) auto 0; padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: var(--fs-small); }

.contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); max-width: 68rem; margin: 0 auto var(--space-7); }
.contact-info__block { padding: var(--space-5) var(--space-6); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius-lg); }
.contact-info__block p { margin-bottom: var(--space-2); }
.contact-info__heading { font-size: 1.0625rem; margin-bottom: var(--space-3); }
a.contact-info__phone { font-weight: 700; color: var(--navy); }
.routing, .tips { max-width: 68rem; margin: 0 auto var(--space-7); }
.routing__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routing__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.routing__row p { margin: 0; color: var(--ink-muted); }
.routing__title { font-size: 1.0625rem; margin-bottom: var(--space-1); }
.routing__action { font-weight: 700; white-space: nowrap; }
.routing__action a { color: var(--navy); }
.tips ul { padding-left: 1.25rem; color: var(--ink-muted); }
.tips li { margin-bottom: var(--space-2); }
@media (max-width: 1023px) {
	.contact__grid, .contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.routing__row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
/* Contact pages use a wider content area; align the header to it. */
.page-hero--compact .container > * { max-width: 68rem; }
.page-hero--compact .page-hero__lead, .page-hero--compact h1 { padding-right: max(0px, calc(100% - 46rem)); }

/* ==========================================================================
   16. Callback form (HubSpot new-editor embed + preview) and thank-you
   ========================================================================== */
.callback-form--hubspot { min-height: 330px; } /* reserve space so the page doesn't jump while the form loads */
.callback-form--hubspot.is-ready { min-height: 0; }
.callback-form__fallback { font-size: var(--fs-small); color: var(--ink-muted); }
.callback-form__grid--names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.callback-form__grid--names .field--submit { grid-column: 1 / -1; }
.home-form .callback-form__grid--names { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-form .callback-form__grid--names .field--submit { grid-column: auto / span 4; justify-self: start; }
.contact__form .callback-form__grid--names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.callback-thanks { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--teal-tint); }
.callback-thanks:focus { outline: none; }
.callback-thanks__heading { font-size: 1.25rem; margin-bottom: var(--space-3); }
.callback-thanks__list { padding-left: 1.25rem; margin-bottom: var(--space-3); }
.callback-thanks__list li { margin-bottom: var(--space-2); }
.callback-thanks__note { font-weight: 600; color: var(--navy); margin-bottom: var(--space-2); }
.callback-thanks__call { margin: 0; }
@media (max-width: 760px) {
	.callback-form__grid--names, .home-form .callback-form__grid--names, .contact__form .callback-form__grid--names { grid-template-columns: 1fr; }
	.home-form .callback-form__grid--names .field--submit { grid-column: auto; justify-self: stretch; }
}
.callback-form__recaptcha { margin: var(--space-2) 0 0; font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.5; }
.callback-form__recaptcha a { color: var(--ink-muted); }

/* Partner logo inside editorial content (e.g. Cornerstone on Tax Return Preparation). Logo unaltered, on white. */
.entry-content .partner-logo { display: flex; align-items: center; gap: var(--space-5); margin: var(--space-4) 0 var(--space-5); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.entry-content .partner-logo img { width: 220px; height: auto; flex: none; }
.entry-content .partner-logo figcaption { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 520px) { .entry-content .partner-logo { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   16. Company pages (About, History)
   ========================================================================== */
.company-photo, .timeline__photo { margin: 0; }
.editorial > .company-photo { margin: 0 auto var(--space-7); }
.company-photo img, .timeline__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-alt); }
.company-photo figcaption, .timeline__photo figcaption { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--ink-muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.5rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--teal), var(--line)); }
.timeline__item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 var(--space-6); padding-bottom: var(--space-7); position: relative; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: calc(4.5rem - 6px); top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px var(--teal-tint); }
.timeline__year { margin: 0; padding-right: var(--space-4); font-weight: 700; font-size: 1.125rem; color: var(--teal-text); text-align: right; line-height: 1.6; }
.timeline__title { font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.timeline__body > p { margin: 0 0 var(--space-4); color: var(--ink); }
.timeline__body > p:last-child { margin-bottom: 0; }

.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.leader { padding: var(--space-5); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface-alt); }
.leader__photo { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: var(--space-4); }
.leader__name { font-size: 1.1875rem; margin: 0; }
.leader__role { margin: 0 0 var(--space-3); font-size: var(--fs-small); font-weight: 600; color: var(--teal-text); }
.leader p:last-child { margin: 0; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.6; }
.company-link { font-weight: 600; }

@media (max-width: 640px) {
	.leaders { grid-template-columns: 1fr; }
	.timeline::before { left: 6px; }
	.timeline__item { grid-template-columns: 1fr; padding-left: var(--space-6); }
	.timeline__item::before { left: 0; }
	.timeline__year { text-align: left; padding: 0; line-height: 1.4; margin-bottom: var(--space-1); }
}

/* ==========================================================================
   17. Listings and system pages (search, archives, 404)
   ========================================================================== */
.listing { padding-block: var(--space-7) var(--space-8); }
.listing > * { max-width: var(--reading); margin-inline: auto; }
.search-form { margin-bottom: var(--space-7); }
.search-form__label { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--space-2); }
.search-form__row { display: flex; gap: var(--space-3); }
.search-form__input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #b8c3cf; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.search-form__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(65, 182, 200, .45); }
.search-form__button { flex: none; }
.results { list-style: none; margin: 0 auto; padding: 0; }
.result__title mark { background: var(--teal-tint); color: inherit; padding: 0 2px; border-radius: 2px; }
.result { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.result:first-child { border-top: 1px solid var(--line); }
.result__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-1); font-size: var(--fs-xs); color: var(--ink-muted); }
.result__type { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.result__title { font-size: 1.1875rem; margin: 0 0 var(--space-2); }
.result__title a { color: var(--navy); text-decoration: none; }
.result__title a:hover { text-decoration: underline; }
.result__summary { margin: 0; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.6; }
.listing .pagination, .listing .navigation.pagination { margin-top: var(--space-6); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); font-weight: 600; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--navy); }
.not-found__intro { font-size: 1.125rem; margin-bottom: var(--space-5); }
.not-found h2 { font-size: 1.375rem; margin-bottom: var(--space-4); }
.related-links--four { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--space-6); }
@media (max-width: 760px) { .related-links--four { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .search-form__row { flex-direction: column; } .search-form__button { width: 100%; } }

/* ==========================================================================
   18. Simple pages (default template: legal, phone numbers, unsubscribe)
   ========================================================================== */
.reading--page { padding-top: var(--space-7); }
.entry-content .indent-1 { margin-left: 1.25rem; }
.entry-content .indent-2 { margin-left: 2.5rem; }
.entry-content .legal-updated { color: var(--ink-muted); font-size: var(--fs-small); }
.entry-content h2 + h3 { margin-top: var(--space-3); }

/* FAQ page: topic jump links */
.faq-jump { margin-bottom: var(--space-7); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-alt); }
.faq-jump__label { margin: 0 0 var(--space-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.faq-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.faq-jump a { font-weight: 600; color: var(--navy); }
.editorial--faq .faq:focus { outline: none; }

/* ==========================================================================
   19. Blog: article, contents box, cards, listing
   ========================================================================== */
.page-hero--article { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero--article h1 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.625rem); }
.article__category { margin: 0 0 var(--space-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article__category a { color: var(--teal); text-decoration: none; }
/* Meta line: each item carries its own "·" in its left padding; the list is pulled
   left by that padding and clipped, so an item that starts a new line shows no "·". */
.article__meta { margin: 0; overflow: hidden; font-size: var(--fs-small); color: #c5d6e8; }
.article__meta-list { display: flex; flex-wrap: wrap; row-gap: var(--space-1); margin-left: -1.5rem; }
.article__meta-list > span { position: relative; padding-left: 1.5rem; }
.article__meta-list > span::before { content: "·"; position: absolute; left: 0.6rem; color: #7f9cc0; }
.article__body { padding-top: var(--space-7); }
.article-toc { max-width: var(--reading); margin: 0 auto var(--space-6); padding: var(--space-5); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface-alt); }
.article-toc__heading { margin: 0 0 var(--space-3); font-weight: 700; color: var(--navy); }
.article-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-1); font-size: var(--fs-small); }
.article-toc a { color: var(--navy); }
.article .entry-content h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }
.article .entry-content img { max-width: 100%; height: auto; }
.article .entry-content .aligncenter { display: block; margin: var(--space-5) auto; }
.article .entry-content .alignright { float: right; width: min(45%, 360px); margin: 0.35rem 0 var(--space-4) var(--space-5); }
.article .entry-content .alignleft { float: left; width: min(45%, 360px); margin: 0.35rem var(--space-5) var(--space-4) 0; }
.article .entry-content::after { content: ""; display: table; clear: both; }
.article .entry-content table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-small); }
.article .entry-content th, .article .entry-content td { border: 1px solid var(--line); padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }
.article .entry-content th { background: var(--surface-alt); color: var(--navy); }
/* Old-theme buttons inside article content. */
.entry-content a.btn-primary, .entry-content a.btn-secondary, .entry-content a.btn:not([class*="btn--"]) { display: inline-flex; align-items: center; min-height: 48px; padding: 0.75rem 1.375rem; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
.entry-content a.btn-primary:hover, .entry-content a.btn-secondary:hover, .entry-content a.btn:not([class*="btn--"]):hover { background: var(--navy-800); }
.article__cta { max-width: var(--reading); margin: var(--space-7) auto var(--space-5); }
.article__disclaimer { max-width: var(--reading); margin: 0 auto var(--space-6); font-size: var(--fs-xxs); color: var(--ink-muted); }
.author-box { max-width: var(--reading); margin: 0 auto; padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-muted); }
.author-box__name { margin: 0 0 var(--space-1); font-weight: 700; color: var(--navy); }
.author-box p:last-child { margin: 0; }
@media (max-width: 640px) { .article .entry-content .alignright, .article .entry-content .alignleft { float: none; width: auto; margin: var(--space-4) 0; } }

.related-articles h2 { margin-bottom: var(--space-5); }
.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.post-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.post-card:hover { border-color: #b8c3cf; box-shadow: 0 6px 18px rgba(6, 42, 94, 0.08); }
.post-card:has(a:focus-visible) { box-shadow: var(--focus); }
.post-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-alt); }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-card:not(.post-card--image) .post-card__body { border-top: 3px solid var(--teal); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-2); font-size: var(--fs-xs); color: var(--ink-muted); }
.post-card__cat { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.post-card__title { font-size: 1.125rem; line-height: 1.35; margin: 0 0 var(--space-2); }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:focus-visible { outline: none; }
.post-card__excerpt { margin: 0; font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.55; }
.blog-listing { padding-block: var(--space-7) var(--space-8); }
.blog-cats { margin-bottom: var(--space-6); }
.blog-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.blog-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); text-decoration: none; }
.blog-cats a:hover { border-color: var(--navy); }
.blog-cats a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-listing .navigation.pagination { margin-top: var(--space-7); }
@media (max-width: 1023px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   20. Success Stories
   ========================================================================== */
.stories-listing__disclaimer { max-width: 48rem; margin: 0 0 var(--space-6); font-size: var(--fs-small); color: var(--ink-muted); }
.story-feature { max-width: 48rem; margin-bottom: var(--space-7); padding: var(--space-6); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius-lg); }
.story-feature__title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin-bottom: var(--space-3); }
.story-feature__title a { color: var(--navy); text-decoration: none; }
.story-feature__title a:hover { text-decoration: underline; }
.story-feature p:last-child { margin-bottom: 0; }
.stories-listing__heading { font-size: 1.375rem; margin-bottom: var(--space-5); }
.story__image { margin: 0 auto var(--space-6); max-width: var(--reading); }
.story__image img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.story__disclaimer { max-width: var(--reading); margin: var(--space-6) auto 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-muted); }

/* ==========================================================================
   21. Reviews
   ========================================================================== */
.reviews { padding-block: var(--space-7) var(--space-8); }
.reviews__block { max-width: 68rem; margin: 0 auto var(--space-8); }
.reviews__block h2 { margin-bottom: var(--space-3); }
.reviews__intro { color: var(--ink-muted); margin-bottom: var(--space-5); }
.review-sources { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.review-source { padding: var(--space-5); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: #fff; }
.review-source p { margin: 0 0 var(--space-2); }
.review-source p:last-child { margin: var(--space-3) 0 0; font-weight: 600; }
.review-source__name { font-weight: 700; color: var(--navy); font-size: 1.125rem; }
.review-source__rating { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.review-source__stars { color: #b7791f; }
.review-source__count { font-size: var(--fs-small); color: var(--ink-muted); }
/* BBB seal (official image from BBB; 250x52 file shown at 200x42 for sharper rendering). */
.bbb-seal { display: inline-block; line-height: 0; border-radius: 4px; }
.bbb-seal img { width: 200px; height: auto; max-width: 100%; }
.review-source .review-source__seal { margin: var(--space-3) 0 0; font-weight: 400; }
.home-proof__seal { margin: var(--space-5) 0 0; }
.footer__seal { margin-top: var(--space-4); }
.testimonials { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: var(--space-5); }
.testimonial { break-inside: avoid; margin: 0 0 var(--space-5); }
.testimonial figure { margin: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-alt); }
.testimonial blockquote { margin: 0 0 var(--space-3); padding: 0; border: 0; color: var(--ink); font-size: var(--fs-small); line-height: 1.65; }
.testimonial blockquote p { margin: 0 0 var(--space-2); }
.testimonial figcaption { font-weight: 700; color: var(--navy); font-size: var(--fs-small); }
.testimonial figcaption span { font-weight: 500; color: var(--ink-muted); }
.testimonial:target figure { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.testimonials-more { margin-top: var(--space-2); }
.testimonials-more > summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-5); border: 2px solid var(--navy); border-radius: var(--radius); font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; margin-bottom: var(--space-5); }
.testimonials-more > summary::-webkit-details-marker { display: none; }
.testimonials-more[open] > summary { display: none; }
.reviews__buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.reviews__disclaimer { max-width: 68rem; margin: 0 auto; font-size: var(--fs-xs); color: var(--ink-muted); }
@media (max-width: 760px) { .review-sources { grid-template-columns: 1fr; } }
.g-reviews { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.g-review article { height: 100%; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.g-review__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-1); font-size: var(--fs-small); }
.g-review__author { font-weight: 700; color: var(--navy); }
.g-review__head time { color: var(--ink-muted); font-size: var(--fs-xs); }
.g-review__stars { margin: 0 0 var(--space-3); color: #b7791f; letter-spacing: 2px; }
.g-review__text { font-size: var(--fs-small); line-height: 1.65; }
.g-review__text p { margin: 0 0 var(--space-2); }
.g-review__reply { margin-top: var(--space-3); padding: var(--space-3); border-left: 3px solid var(--teal); background: var(--surface-alt); font-size: var(--fs-small); }
.g-review__reply p { margin: 0 0 var(--space-2); }
.g-review__reply-label { font-weight: 700; color: var(--navy); }
.g-reviews__attribution { font-size: var(--fs-xs); color: var(--ink-muted); }
@media (max-width: 1023px) { .g-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-reviews { grid-template-columns: 1fr; } }

/* ==========================================================================
   Icons (inc/icons.php): line icons that mark each tax topic and the
   "known by name" points. Same topic, same icon, everywhere.
   ========================================================================== */
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal-tint); color: var(--teal-text); flex: none; }
.icon-badge .icon { width: 1.625rem; height: 1.625rem; }
.icon-badge--navy { background: var(--navy); color: #fff; }
.icon-badge--on-navy { background: rgba(65, 182, 200, 0.16); color: var(--teal); margin-bottom: var(--space-3); }
.problem-card .icon-badge { margin-bottom: var(--space-4); transition: background-color .15s ease, color .15s ease; }
.problem-card:hover .icon-badge { background: var(--teal-text); color: #fff; }
.icon--inline { width: 1.25rem; height: 1.25rem; color: var(--teal-text); vertical-align: -4px; margin-right: var(--space-2); }
.icon--related { display: block; width: 1.5rem; height: 1.5rem; color: var(--teal-text); margin-bottom: var(--space-2); }

/* Tax-problem pages: "You'll be known by name" box with the icon beside the text. */
.trust-note:has(> .icon-badge) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-5); align-items: start; }
.trust-note > .icon-badge { grid-row: 1 / span 3; }
.trust-note > :not(.icon-badge) { grid-column: 2; }

/* About: the four "known by name" points with icons instead of the teal rule. */
.situations--icons li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); padding-left: 0; border-left: 0; }
.situations--icons .icon-badge { grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; }
.situations--icons .icon-badge .icon { width: 1.5rem; height: 1.5rem; }

@media (max-width: 640px) {
	.trust-note:has(> .icon-badge) { grid-template-columns: 1fr; }
	.trust-note > .icon-badge { grid-row: auto; margin-bottom: var(--space-3); width: 2.5rem; height: 2.5rem; }
	.trust-note > :not(.icon-badge) { grid-column: 1; }
}

/* ==========================================================================
   Trust facts as big numbers (bctax_fact_stats): home Why section, About.
   ========================================================================== */
.fact-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact-stats li { display: flex; flex-direction: column; gap: var(--space-1); padding-inline: var(--space-5); border-left: 1px solid var(--line); }
.fact-stats li:first-child { padding-left: 0; border-left: 0; }
.fact-stats__num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.fact-stats__label { font-size: var(--fs-small); font-weight: 600; color: var(--teal-text); }
.fact-stats--on-navy li { border-left-color: rgba(255,255,255,.18); }
.fact-stats--on-navy .fact-stats__num { color: #fff; }
.fact-stats--on-navy .fact-stats__label { color: var(--teal); }
.fact-stats.home-why__facts { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.18); }
.fact-stats.company-facts { margin: 0 auto var(--space-7); padding: var(--space-6) 0; border-block: 1px solid var(--line); }
.company-facts li { align-items: center; text-align: center; }
.company-facts li:first-child { padding-left: var(--space-5); }
@media (max-width: 520px) {
	.fact-stats li { padding-inline: var(--space-3); }
	.company-facts li:first-child { padding-left: var(--space-3); }
	.fact-stats__num { font-size: 1.5rem; }
	.fact-stats__label { font-size: var(--fs-xs); line-height: 1.35; }
}

/* ==========================================================================
   Mountain ridges below the hero: the logo's peak carried through the page.
   Navy sections get the hero's lower ridges; light-grey sections a faint
   silhouette (assets/img/ridge-line.svg). Decorative backgrounds only.
   ========================================================================== */
.section--navy {
	background:
		url("../img/hero-ridges.svg") center bottom -245px / max(1600px, 100%) auto no-repeat,
		var(--navy);
}
.home-why {
	background:
		url("../img/hero-ridges.svg") center bottom -225px / max(1600px, 100%) auto no-repeat,
		radial-gradient(ellipse 50% 60% at 90% 0%, rgba(65, 182, 200, 0.10), transparent 70%),
		var(--navy);
}
.section--alt {
	background:
		url("../img/ridge-line.svg") center bottom -95px / max(1600px, 100%) auto no-repeat,
		var(--surface-alt);
}

/* ==========================================================================
   Finishing touches
   ========================================================================== */
/* Reviews: one large decorative quote mark per review, instead of inline quote marks. */
.testimonial figure, .review { position: relative; padding-top: calc(var(--space-5) + 1.75rem); }
.testimonial figure::before, .review::before { content: "\201C"; position: absolute; top: var(--space-3); left: var(--space-5); font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; line-height: 1; color: var(--teal); }
.testimonial figure::before, .review::before { content: "\201C" / ""; } /* decorative: hidden from screen readers where supported */

/* Home "Getting started": a dashed line joins the 1-2-3 circles (down the left on phones). */
.step:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.25rem; right: calc(-1 * var(--space-6) + 0.75rem); border-top: 2px dashed rgba(65, 182, 200, 0.55); }
@media (max-width: 760px) {
	.step:not(:last-child)::after { top: 3.25rem; bottom: calc(-1 * var(--space-5) + 0.5rem); left: calc(1.25rem - 1px); right: auto; border-top: 0; border-left: 2px dashed rgba(65, 182, 200, 0.55); }
	.step { padding-top: 0; padding-left: 3.5rem; min-height: 2.5rem; }
}

/* Tax-problem and service pages: "How BC Tax helps" sits on a full-width light band. */
.editorial > .tp-block--band { position: relative; padding-block: var(--space-7); background: var(--surface-alt); box-shadow: 0 0 0 100vmax var(--surface-alt); clip-path: inset(0 -100vmax); }
