/* ============================================
   SALISBURY BOOKKEEPING — GLOBAL STYLES
   GEO-First, Mobile-First, Conversion-Optimized
   Last Updated: April 2026
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --teal: #076678;
  --teal-dark: #054d5c;
  --teal-light: #e6f2f4;
  --gold: #F1D888;
  --gold-dark: #B98F42;
  --gold-light: #fdf6e3;
  --cream: #FAF9F5;
  --slate: #2E4057;

  /* Neutral Scale */
  --white: #FFFFFF;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #141413;

  /* Semantic Colors */
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  /* Typography */
  --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--teal-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
p { margin-bottom: 1rem; max-width: 75ch; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: clamp(1.1rem, 2vw, 1.25rem); }
.text-xl { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.lead { font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.6; color: var(--gray-600); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section {
  padding: var(--space-3xl) 0;
}
.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-4xl) 0; }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--cream { background: var(--cream); }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--slate); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.flex { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.flex-center { align-items: center; justify-content: center; }

/* === NAVIGATION === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
  transition: box-shadow var(--transition-base);
}
.header .container { position: relative; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.logo img { height: 44px; width: auto; }
/* Global logo constraint — catches all nav logo images regardless of wrapper */
img[alt="Salisbury Bookkeeping"],
img[alt="Salisbury Bookkeeping Logo"],
.logo-img,
nav img[src*="logo"],
header img[src*="logo"],
.nav img[src*="logo"],
.nav__logo img { max-height: 44px; width: auto; }
/* === NAVBAR (used on 20+ secondary pages) === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.navbar-brand a { display: flex; align-items: center; }
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--teal); }

/* Breadcrumb section (secondary pages) */
.breadcrumb-section { background: var(--gray-50); padding: var(--space-sm) 0; font-size: 0.85rem; }
.breadcrumb { display: flex; list-style: none; gap: var(--space-sm); align-items: center; margin: 0; padding: 0; }
.breadcrumb li a { color: var(--teal); text-decoration: none; }
.breadcrumb li a:hover { text-decoration: underline; }
.breadcrumb li span { color: var(--gray-500); }
.breadcrumb li + li::before { content: ">"; color: var(--gray-400); margin-right: var(--space-sm); }

/* === NAV-CONTAINER pattern (schedule-consultation, who-we-serve, tools, etc.) === */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.nav-logo a { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--teal); }
.nav-cta, .navbar .btn-primary, .navbar .cta-button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.nav-cta:hover, .navbar .btn-primary:hover, .navbar .cta-button:hover { background: var(--teal-dark); }

/* Dropdown menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  min-width: 200px;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}
.dropdown-menu a:hover { background: var(--teal-light); color: var(--teal); }

/* Hero variations for secondary pages */
.hero-about, .hero-page { padding: var(--space-3xl) 0 var(--space-2xl); }
.hero-title { font-size: 2.2rem; font-weight: 800; }

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  transition: all var(--transition-base);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
}
.nav-menu.open { display: block; }
.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}
.nav-link:hover { color: var(--teal); background: var(--teal-light); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  padding-left: var(--space-md);
  display: none;
}
.dropdown-menu.open { display: block; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-dark); color: var(--white) !important; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  min-height: 48px;
  min-width: 44px;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--gray-900);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover { background: var(--gray-100); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.card__title { margin-bottom: var(--space-sm); }
.card__text { color: var(--gray-600); font-size: 0.95rem; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--slate) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(241,216,136,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-md); }
.hero .lead { color: rgba(255,255,255,0.85); }
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }
.hero__quick-answer {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-lg) 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* === STATS BAR === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.stat {
  text-align: center;
  padding: var(--space-md);
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}
.section--teal .stat__label,
.section--dark .stat__label { color: rgba(255,255,255,0.7); }

/* === TESTIMONIALS === */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal-light);
  font-family: Georgia, serif;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.testimonial__text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
}
.testimonial__author { font-weight: 600; color: var(--gray-900); }
.testimonial__role { font-size: 0.85rem; color: var(--gray-500); }
.testimonial__result {
  display: inline-block;
  background: var(--success-light);
  color: var(--success);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* === TRUST BADGES === */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
}
.trust-bar img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  filter: grayscale(30%);
}
.trust-bar img:hover { opacity: 1; filter: none; }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-lg) 0;
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
}
.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  font-size: 1.2rem;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: none;
  overflow: visible;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  padding-top: var(--space-md);
}
.faq-item.open .faq-answer { max-height: none; padding-top: var(--space-md); }
.faq-answer p { color: var(--gray-600); line-height: 1.8; }

/* TJ Robertson: Always-visible FAQ content for better crawlability */
.faq-content {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}
.faq-content p { color: var(--gray-600); line-height: 1.8; }
.faq-summary {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* === FAQ BEM Classes (used on /faq/ page) === */
.faq-section__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-xl);
}
.faq-accordion {
  max-width: 800px;
}
.faq-item__toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
  padding: var(--space-md) 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.faq-item__question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}
.faq-item__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform var(--transition-base);
}
.faq-item__icon::before { content: "+"; }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__content {
  padding: 0 0 var(--space-lg) 0;
}
.faq-item__content p {
  color: var(--gray-900);
  line-height: 1.8;
  font-size: 1rem;
}
.faq-item__content a.link-inline {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-item__content a.link-inline:hover {
  color: var(--teal-dark);
}

/* FAQ page hero */
.hero--faq { background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 100%); padding: var(--space-3xl) 0 var(--space-2xl); }
.hero--faq .hero__title { color: var(--slate); font-size: 2rem; max-width: 800px; }
.hero--faq .hero__subtitle { color: var(--gray-700); font-size: 1.1rem; line-height: 1.7; max-width: 700px; margin-top: var(--space-md); }

/* FAQ page nav BEM classes */
.nav--primary { background: var(--white); box-shadow: var(--shadow-sm); padding: var(--space-md) 0; position: sticky; top: 0; z-index: 100; }
.nav__container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav__logo { display: flex; align-items: center; }
.nav__menu { display: flex; list-style: none; gap: var(--space-lg); align-items: center; }
.nav__link { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color var(--transition-fast); }
.nav__link:hover, .nav__link--active { color: var(--teal); }
.nav__cta { font-size: 0.9rem; padding: var(--space-sm) var(--space-lg); white-space: nowrap; }

/* Breadcrumbs */
.breadcrumbs { background: var(--gray-50); padding: var(--space-sm) 0; font-size: 0.85rem; }
.breadcrumbs__list { display: flex; list-style: none; gap: var(--space-sm); align-items: center; }
.breadcrumbs__link { color: var(--teal); text-decoration: none; }
.breadcrumbs__link:hover { text-decoration: underline; }
.breadcrumbs__separator { color: var(--gray-400); }
.breadcrumbs__current { color: var(--gray-600); }

/* === FOOTER === */
.footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer h4 { color: var(--white); margin-bottom: var(--space-md); font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--gold); }
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.footer-column ul li { margin-bottom: var(--space-sm); }
.footer-column ul a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.footer-links span { color: rgba(255,255,255,0.3); }
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.social-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.social-links a:hover { background: var(--teal); color: var(--white); }
.footer-logo img { height: 36px; width: auto; margin-bottom: var(--space-md); }

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs span { color: var(--gray-400); margin: 0 6px; }
.breadcrumbs .current { color: var(--gray-700); }

/* === CAPACITY BANNER === */
.capacity-banner {
  background: var(--gold-light);
  text-align: center;
  padding: 10px var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gold);
}
.capacity-banner strong { color: var(--danger); }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--slate) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.8); margin: 0 auto var(--space-xl); max-width: 600px; }

/* === GUARANTEE BADGE === */
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.guarantee__icon {
  font-size: 3rem;
  flex-shrink: 0;
}
.guarantee__title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}
.guarantee__text { color: var(--gray-600); font-size: 0.95rem; }

/* === ANIMATION CLASSES === */
/* Hero sections & navbars should never be hidden by reveal */
.hero.reveal, section:first-of-type.reveal, nav.reveal, footer.reveal { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.6s ease-out; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.6s ease-out; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: all 0.5s ease-out; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* === COUNTER ANIMATION === */
.counter { display: inline-block; }

/* === BEFORE/AFTER SLIDER === */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}
.ba-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after { clip-path: inset(0 50% 0 0); }
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 10;
}
.ba-slider__handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 1.2rem;
  color: var(--teal);
}
.ba-slider__label {
  position: absolute;
  top: var(--space-md);
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 5;
}
.ba-slider__label--before { left: var(--space-md); }
.ba-slider__label--after { right: var(--space-md); }

/* === QUIZ === */
.quiz {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.quiz__progress {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--transition-base);
}
.quiz__step { display: none; }
.quiz__step.active { display: block; }
.quiz__question {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--gray-900);
}
.quiz__options { display: grid; gap: var(--space-sm); }
.quiz__option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  font-size: 0.95rem;
}
.quiz__option:hover { border-color: var(--teal); background: var(--teal-light); }
.quiz__option.selected { border-color: var(--teal); background: var(--teal-light); }
.quiz__result {
  text-align: center;
}
.quiz__grade {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}
.quiz__grade.grade-a { color: var(--success); }
.quiz__grade.grade-b { color: #2563eb; }
.quiz__grade.grade-c { color: var(--warning); }
.quiz__grade.grade-d { color: #ea580c; }
.quiz__grade.grade-f { color: var(--danger); }

/* === PRICING TABLE === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-base);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card__name { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-xs); }
.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--teal);
  margin: var(--space-md) 0;
}
.pricing-card__price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.pricing-card__features { margin: var(--space-lg) 0; }
.pricing-card__features li {
  padding: var(--space-sm) 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.pricing-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* === VALUE STACK === */
.value-stack {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}
.value-stack__item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--gray-300);
  font-size: 0.95rem;
}
.value-stack__item:last-child { border-bottom: none; }
.value-stack__name { color: var(--gray-700); }
.value-stack__value { color: var(--gray-400); text-decoration: line-through; font-weight: 500; }
.value-stack__total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--gray-300);
  font-weight: 700;
  font-size: 1.1rem;
}
.value-stack__total .price { color: var(--teal); font-size: 1.5rem; }

/* === COMPARISON TABLE === */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  background: var(--slate);
  color: var(--white);
  padding: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 60px;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.9rem;
}
.comparison-table td:first-child { text-align: left; font-weight: 500; }
.comparison-table tr:hover td { background: var(--gray-50); }
.check { color: var(--success); font-weight: 700; font-size: 1.2rem; }
.cross { color: var(--gray-300); }
.partial { color: var(--warning); }

/* === TIMELINE === */
.timeline { position: relative; padding-left: var(--space-xl); }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-xl) + 1px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline__date {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline__title { font-weight: 600; margin-bottom: 4px; }
.timeline__text { color: var(--gray-600); font-size: 0.95rem; }

/* === FRESHNESS SIGNAL === */
.freshness {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: var(--space-xs);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold-dark); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ============================================
   HTML KEBAB-CASE ALIASES & MISSING SECTIONS
   Maps HTML class names to existing BEM styles
   ============================================ */

/* --- Hero Content --- */
.hero-content { position: relative; z-index: 1; }
.hero-quick-answer {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-lg) 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.hero-cta-group { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }

/* --- Stats Section (kebab aliases) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.stat-card {
  text-align: center;
  padding: var(--space-md);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}
.hero .stat-label { color: rgba(255,255,255,0.7); }

/* --- Section Wrappers --- */
.quiz-section,
.ba-slider-section,
.testimonials-section,
.trust-badges-section,
.value-stack-section,
.guarantee-section,
.buildercfo-section,
.faq-section,
.final-cta-section { padding: var(--space-3xl) 0; }

.quiz-section { background: var(--cream); }
.ba-slider-section { background: var(--white); }
.testimonials-section { background: var(--gray-50); }
.trust-badges-section { background: var(--white); padding: var(--space-2xl) 0; }
.value-stack-section { background: var(--cream); }
.guarantee-section { background: var(--white); }
.buildercfo-section { background: linear-gradient(135deg, var(--slate) 0%, var(--teal-dark) 100%); color: var(--white); }
.buildercfo-section h2 { color: var(--white); }
.buildercfo-section p { color: rgba(255,255,255,0.85); }
.faq-section { background: var(--white); }
.final-cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--slate) 100%);
  color: var(--white);
  text-align: center;
}
.final-cta-section h2 { color: var(--white); }
.final-cta-section p { color: rgba(255,255,255,0.85); }

/* --- Trust Badges Grid --- */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  margin-top: var(--space-lg);
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.badge img {
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: all var(--transition-fast);
}
.badge img:hover { opacity: 1; filter: none; }

/* --- Quiz Kebab Aliases --- */
.profit-leak-quiz {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.quiz-intro { text-align: center; margin-bottom: var(--space-lg); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-options { display: grid; gap: var(--space-sm); }
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--teal); background: var(--teal-light); }
.quiz-option.selected { border-color: var(--teal); background: var(--teal-light); }
.quiz-result { text-align: center; display: none; }
.quiz-result.active { display: block; }
.quiz-result-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
}
.quiz-grade {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}
.quiz-grade.grade-a { color: var(--success); }
.quiz-grade.grade-b { color: #2563eb; }
.quiz-grade.grade-c { color: var(--warning); }
.quiz-grade.grade-d { color: #ea580c; }
.quiz-grade.grade-f { color: var(--danger); }
.quiz-leak-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--danger);
  margin: var(--space-sm) 0;
}
.quiz-message { color: var(--gray-600); margin-bottom: var(--space-lg); }

/* --- Before/After Section (kebab aliases) --- */
.ba-slide { position: relative; overflow: hidden; }
.ba-before, .ba-after {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--gray-200);
}
.ba-slide-content { padding: var(--space-md) 0; }

/* --- Spreadsheet Mockup (Before state) --- */
.messy-spreadsheet {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}
.messy-spreadsheet .header-row {
  background: var(--gray-100);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  border-bottom: 2px solid var(--gray-300);
}
.spreadsheet-row {
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
}
.spreadsheet-note {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
}
.error-text { color: var(--danger); }
.success-text { color: var(--success); }

/* --- Dashboard Mockup (After state) --- */
.clean-dashboard {
  background: var(--white);
  border: 2px solid var(--teal-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dashboard-header {
  background: var(--teal);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-title { font-weight: 700; font-size: 1rem; }
.dashboard-date { font-size: 0.8rem; opacity: 0.8; }
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
}
.metric {
  background: var(--white);
  padding: var(--space-md);
  text-align: center;
}
.metric-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.metric-value { font-size: 1.25rem; font-weight: 700; color: var(--teal); font-family: var(--font-heading); }
.dashboard-note {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8rem;
}

/* --- Testimonials (kebab aliases) --- */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal-light);
  font-family: Georgia, serif;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.testimonial-quote {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
}
.testimonial-author { font-weight: 600; color: var(--gray-900); }
.testimonial-result {
  display: inline-block;
  background: var(--success-light);
  color: var(--success);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* --- Value Stack (kebab aliases) --- */
.value-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--gray-300);
  font-size: 0.95rem;
}
.value-item:last-child { border-bottom: none; }
.value-name { color: var(--gray-700); }
.value-price { color: var(--gray-400); text-decoration: line-through; font-weight: 500; }
.value-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--gray-300);
  font-weight: 700;
  font-size: 1.1rem;
}
.value-total .price { color: var(--teal); font-size: 1.5rem; }
.value-investment {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--teal-light);
  border-radius: var(--radius-md);
}

/* --- Guarantee (kebab aliases) --- */
.guarantee-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: 700px;
}
.guarantee-icon { font-size: 3rem; flex-shrink: 0; }

/* --- BuilderCFO Section --- */
.buildercfo-content { max-width: 700px; margin: 0 auto; text-align: center; }
.buildercfo-cta-group { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-xl); }

/* --- FAQ Grid --- */
.faq-grid { max-width: 800px; margin: 0 auto; }

/* --- Final CTA --- */
.final-cta-content { max-width: 700px; margin: 0 auto; }
.final-cta-group { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-xl); }

/* --- Button Aliases --- */
.btn-small { padding: 10px 20px; font-size: 0.875rem; }

/* --- Footer Updated --- */
.footer-updated { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

/* ========================================
   TABLET BREAKPOINT (768px+)
   ======================================== */
@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar, .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: var(--space-4xl) 0 var(--space-3xl); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-metrics { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   DESKTOP BREAKPOINT (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .container { padding: 0 var(--space-2xl); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }

  /* Desktop Navigation */
  .mobile-menu-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    align-items: center;
    gap: 4px;
  }
  .nav-link {
    padding: var(--space-sm) var(--space-md);
    white-space: nowrap;
  }
  .nav-dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    min-width: 240px;
    z-index: 100;
  }
}

/* ========================================
   LARGE DESKTOP (1280px+)
   ======================================== */
@media (min-width: 1280px) {
  .hero { padding: 100px 0 80px; }
}

/* === PAGE FRESHNESS INDICATOR === */
.page-freshness {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--gray-500, #6b7280);
    margin-top: 8px;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

/* === PRINT STYLES === */
@media print {
  .header, .footer, .btn, .quiz, .ba-slider, .capacity-banner { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
