/* =============================================================================
   TOKENS
   ============================================================================= */

/* ============================================================
   DESIGN TOKENS — kylenortoncpa.com
   Import this file first on every page.
   Never hardcode hex values or font names outside this file.
   ============================================================ */

:root {

  /* ── Colors ── */
  --color-primary:       #4C7474;   /* Dark teal — headings, nav links, icons */
  --color-primary-dark:  #3d6060;   /* Darker teal — hover accents */
  /* Button tokens — kept stable across color schemes so white text always passes WCAG AA */
  --color-btn-bg:        #4C7474;   /* = light-mode --color-primary */
  --color-btn-bg-hover:  #3d6060;   /* = light-mode --color-primary-dark */
  --color-accent:        #64A4A4;   /* Medium teal — hover states, highlights */
  --color-bg:            #ffffff;
  --color-bg-subtle:     #f7fafa;   /* Light teal-tinted background */
  --color-bg-hover:      #fafafa;   /* Row hover background */
  --color-bg-table:      #f5f5f3;   /* Pricing table section row background */
  --color-white:         #ffffff;   /* Always white — text on teal backgrounds */
  --color-text:          #2c2c2c;
  --color-text-light:    #666666;
  --color-text-muted:    #bbbbbb;   /* lightest text — pricing dashes, disclaimers, fine print */
  --color-border:        #e0e0e0;
  --color-border-table:  #ebebeb;   /* Pricing table row dividers */

  /* ── Typography ── */
  --font-heading: 'Josefin Sans', 'Josefin Sans Fallback', sans-serif;
  --font-body:    'Raleway', 'Raleway Fallback', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ── Layout ── */
  --container-max:     1100px;
  --container-padding: 1.5rem;
  --radius:            4px;
  --radius-lg:         8px;

  /* ── Components ── */
  --nav-height:   72px;
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.10);
  --transition:   150ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #1a1a1a;
    --color-bg-subtle:    #222222;
    --color-bg-hover:     #2a2a2a;
    --color-bg-table:     #2a2a2a;
    --color-border-table: #3a3a3a;
    --color-text:         #e8e8e8;
    --color-text-light:   #aaaaaa;
    --color-text-muted:   #888888;   /* slightly lighter than --color-text-light in dark mode */
    --color-border:       #333333;
    --color-primary:      #64A4A4;   /* accent becomes primary in dark mode for contrast */
    --color-primary-dark: #4C7474;
    /* Button tokens remap to light teal in dark mode — dark text (#1a1a1a) on these backgrounds
       achieves 6.12:1 (default) and 8.38:1 (hover), both WCAG AA. */
    --color-btn-bg:       #64A4A4;
    --color-btn-bg-hover: #7fbfbf;
    --color-accent:       #7fbfbf;
    /* --color-white is intentionally omitted — it never changes */
  }
}

/* =============================================================================
   GLOBAL
   ============================================================================= */

/* ── Self-hosted fonts ── */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/josefin-sans-v34-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/josefin-sans-v34-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/josefin-sans-v34-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/raleway-v37-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/raleway-v37-latin-600.woff2') format('woff2');
}

/* ── Fallback font metric overrides (CLS reduction) ──
   Extracted from woff2 files: UPM=1000, sTypoAscender/sTypoDescender/sTypoLineGap from OS/2.
   size-adjust derived from sxHeight / UPM / 0.519 (Arial x-height ratio).
   Josefin Sans: sxHeight=378 → 378/1000/0.519 = 72.83%
   Raleway:      sxHeight=519 → 519/1000/0.519 = 100.00% (identical x-height ratio to Arial) */
@font-face {
  font-family: 'Josefin Sans Fallback';
  src: local('Arial');
  ascent-override: 75.00%;
  descent-override: 25.00%;
  line-gap-override: 0.00%;
  size-adjust: 72.83%;
}

@font-face {
  font-family: 'Raleway Fallback';
  src: local('Arial');
  ascent-override: 94.00%;
  descent-override: 23.40%;
  line-gap-override: 0.00%;
  size-adjust: 100.00%;
}

/* ============================================================
   GLOBAL STYLES — reset, base elements, typography, utilities
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
ul, ol {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ── Section spacing ── */
.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background: var(--color-bg-subtle);
}

/* ── Section heading ── */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ── Focus styles (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =============================================================================
   NAV
   ============================================================================= */

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-8);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  min-height: 44px;
  width: auto;
}

/* ── Primary links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a:not(.btn) {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links > li > a:not(.btn):hover,
.nav-links > li > a:not(.btn).active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* ── CTAs ── */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── Mobile CTAs (inside nav-links list — desktop: hidden) ── */
.mobile-nav-cta {
  display: none;
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  margin-left: auto;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-bg-subtle);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .nav-ctas .btn-outline {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-ctas {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) 0 0;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li > a:not(.btn) {
    display: block;
    padding: var(--space-3) var(--space-6);
    border-bottom: none;
    font-size: var(--text-base);
  }

  .nav-links > li > a:not(.btn):hover {
    background: var(--color-bg-subtle);
    border-bottom: none;
  }

  /* Mobile CTA — pinned to bottom of full-screen menu */
  .mobile-nav-cta {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .mobile-nav-cta .btn {
    text-align: center;
  }
}

/* =============================================================================
   FOOTER
   ============================================================================= */

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* ── Main footer body ── */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo img {
  height: 44px;
  min-height: 44px;
  width: auto;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-aicpa {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

/* ── Links column ── */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-contact a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--color-primary);
}

/* ── Bottom bar ── */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .footer-legal {
    gap: var(--space-3);
  }
}

/* =============================================================================
   COMPONENTS
   ============================================================================= */

/* ============================================================
   COMPONENTS — buttons, cards, pricing tables, FAQ accordion
   ============================================================ */

/* ════════════════════════════════
   BUTTONS
   ════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem var(--space-6);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-btn-bg);
  color: var(--color-white);
  border-color: var(--color-btn-bg);
}

.btn-primary:hover {
  background: var(--color-btn-bg-hover);
  border-color: var(--color-btn-bg-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-btn-bg);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.875rem var(--space-8);
}

/* ════════════════════════════════
   HERO (Home)
   ════════════════════════════════ */

.hero {
  background: linear-gradient(160deg, var(--color-bg-subtle) 0%, var(--color-bg) 60%);
  padding: var(--space-16) 0;
  min-height: 620px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero-subhead {
  font-size: var(--text-xl);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  max-width: 400px;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-photo img {
    height: 400px;
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-12) 0;
  }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  .hero-subhead {
    font-size: var(--text-base);
  }

  .btn {
    white-space: normal;
    max-width: 100%;
  }
}

/* ════════════════════════════════
   SERVICE CARDS (Home)
   ════════════════════════════════ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.service-card a.learn-more {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition), color var(--transition);
}

.service-card a.learn-more:hover {
  color: var(--color-accent);
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 540px) and (max-width: 768px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* ════════════════════════════════
   NFP CALLOUT (Home)
   ════════════════════════════════ */

/* Full-width band version (home page section) */
.nfp-band {
  background: var(--color-bg-subtle);
}

.nfp-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}

.nfp-band-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.nfp-band-content p {
  color: var(--color-text-light);
  max-width: 640px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .nfp-band-inner {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════
   WHY KYLE PILLARS (Home + About)
   ════════════════════════════════ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.pillar h3 {
  font-size: var(--text-lg);
}

.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* ════════════════════════════════
   CTA STRIP
   ════════════════════════════════ */

.cta-strip {
  background: var(--color-primary);
  padding: var(--space-12) 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

/* ════════════════════════════════
   PAGE HERO (inner pages)
   ════════════════════════════════ */

.page-hero {
  background: var(--color-bg-subtle);
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.page-hero .page-hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: 0;
}

/* ════════════════════════════════
   FAQ ACCORDION
   ════════════════════════════════ */

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 var(--space-4);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.faq-answer.open {
  display: block;
}

/* ════════════════════════════════
   PRICING TABLE SHARED STYLES
   (used in services.html and not-for-profit.html)
   ════════════════════════════════ */

/* Font overrides — apply site fonts to all pricing components */
.pricing-wrap {
  font-family: var(--font-body);
}

/* Heading/label font within pricing components */
.pricing-wrap thead th,
.pricing-wrap .section-row td,
.pricing-wrap .card-tier,
.pricing-wrap .card-section,
.pricing-wrap .price,
.pricing-wrap .fee-cell,
.pricing-wrap .result-row-value,
.pricing-wrap .result-total-label,
.pricing-wrap .result-total-value,
.pricing-wrap .note-box-label,
.pricing-wrap .section-label,
.pricing-wrap .employee-count {
  font-family: var(--font-heading);
}

/* Body font for quoted/italic fees */
.pricing-wrap .fee-quoted,
.pricing-wrap .software-note,
.pricing-wrap .disclaimer {
  font-family: var(--font-body);
}

/* ════════════════════════════════
   THREE-STEP PROCESS
   ════════════════════════════════ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + var(--space-4));
  right: calc(16.67% + var(--space-4));
  height: 1px;
  background: var(--color-border);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    top: 24px;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

/* ════════════════════════════════
   INLINE CALLOUT / NOTE BOX
   ════════════════════════════════ */

.inline-callout {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: var(--space-6) 0;
}

.inline-callout strong {
  color: var(--color-primary);
}

.inline-callout a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ════════════════════════════════
   SERVICES SUB-NAV
   ════════════════════════════════ */

.services-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.services-subnav-links {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-subnav-links::-webkit-scrollbar {
  display: none;
}

.services-subnav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: var(--space-4) var(--space-6);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.services-subnav-links a:hover,
.services-subnav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 767px) {
  .services-subnav-links {
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    overflow-x: visible;
    align-items: stretch;
  }
  .services-subnav-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: var(--space-3) var(--space-2);
  }
}

/* Service section divider within a section */
.service-subsection {
  padding-top: var(--space-12);
  margin-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.service-subsection:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* ════════════════════════════════
   CREDENTIALS BAR (About)
   ════════════════════════════════ */

.credentials-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-subheading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

/* ════════════════════════════════
   ZOOM SCHEDULER EMBED (Schedule page)
   ════════════════════════════════ */

.scheduler-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.scheduler-wrap iframe {
  width: 100%;
  height: 620px;
  display: block;
  border: none;
}

@media (max-width: 600px) {
  .scheduler-wrap iframe {
    height: 780px;
  }
}

/* ════════════════════════════════
   DARK MODE OVERRIDES
   ════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  /* Fix 1: CTA strip — var(--color-primary) remaps to #64A4A4 in dark mode, failing
     WCAG AA for white text. Use the stable dark teal instead. */
  .cta-strip { background: #4C7474; }

  /* Fix 3: Step number circles — same token remap issue as the CTA strip. */
  .process-step-number { background: #4C7474; }

  /* Buttons — background is now light teal (#64A4A4 / #7fbfbf), so text must be dark. */
  .btn-primary,
  .btn-primary:hover { color: #1a1a1a; }

  .btn-outline:hover { color: #1a1a1a; }
}
