/* ==========================================================================
   Bryson Bahrs CPA, PLLC — site stylesheet
   One stylesheet for every page. Mobile-first: base styles are for phones,
   and the few media queries below only ADD layout for wider screens.

   TO RE-THEME THE SITE: edit the :root block right below.
   Colors, fonts, type sizes, spacing and widths all live there.
   ========================================================================== */

:root {
  /* ---------- Brand colors ---------- */
  --color-purple:        #3c2759;  /* main headings, purple buttons, CPA/EA band */
  --color-purple-hover:  #4f2786;  /* purple button hover */
  --color-purple-dark:   #2e1d47;  /* footer background */
  --color-green:         #2f5927;  /* green headings, green buttons */
  --color-green-hover:   #276b26;  /* green button hover, icon circles */
  --color-green-dark:    #2c5712;  /* closing call-to-action button */
  --color-offwhite:      #f6f6f3;  /* alternating section backgrounds, cards, hero text */
  --color-olive:         #7a7a57;  /* breadcrumbs, small accents */
  --color-white:         #ffffff;

  /* ---------- Text colors ---------- */
  --color-text:          #3d3e3f;  /* body paragraphs */
  --color-text-muted:    #5c5c5c;  /* secondary paragraphs */
  --color-heading-gray:  #515151;  /* gray subheadings (H3s) */
  --color-nav:           #2b2b2b;  /* header menu links */
  --color-footer-text:   #cccccc;  /* text on the dark footer */

  /* ---------- Fonts ---------- */
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold: 600;
  --weight-bold:    600;  /* Bold text uses SemiBold (approved: no 700 file) */
  --weight-heading: 400;  /* subheadings (H3s, gray subtitles): Regular */
  --weight-section: 500;  /* page titles and section headings (H1, H2): Medium, slightly bolder */
  --weight-card:    600;  /* home page service card titles: SemiBold */

  /* ---------- Fluid type sizes ----------
     clamp(smallest, preferred, largest). Sizes grow smoothly from
     phone (390px) to desktop (1440px) with no jumps. */
  --text-small:   0.875rem;                                     /* 14px */
  --text-xsmall:  0.8125rem;                                    /* 13px */
  --text-body:    clamp(0.9375rem, 0.914rem + 0.095vw, 1rem);   /* 15 → 16px */
  --text-lead:    clamp(0.9375rem, 0.82rem + 0.476vw, 1.25rem); /* 15 → 20px */
  --text-large:   clamp(1.125rem, 1.08rem + 0.19vw, 1.25rem);   /* 18 → 20px */
  --text-xlarge:  clamp(1.25rem, 1.2rem + 0.19vw, 1.375rem);    /* 20 → 22px */
  --text-card:    clamp(1.0625rem, 1rem + 0.286vw, 1.25rem);    /* 17 → 20px */
  --text-h1:      clamp(1.625rem, 1.3rem + 1.333vw, 2.5rem);    /* 26 → 40px */
  --text-h2:      clamp(1.75rem, 1.63rem + 0.476vw, 2.1875rem); /* 28 → 35px */
  --text-h2-sm:   clamp(1.375rem, 1.19rem + 0.762vw, 1.875rem); /* 22 → 30px */
  --text-h3:      clamp(1.375rem, 1.33rem + 0.19vw, 1.5625rem); /* 22 → 25px */

  /* ---------- Layout ---------- */
  --max-width:      1150px;                         /* content width (matches current site) */
  --gutter:         clamp(0.9375rem, 0.8rem + 0.6vw, 1.25rem); /* side padding 15 → 20px */
  --space-section:  clamp(3rem, 2.07rem + 3.81vw, 5rem);       /* top/bottom of sections 48 → 80px */
  --space-block:    clamp(1.25rem, 1rem + 1vw, 2rem);          /* gap between blocks */
  --radius-card:    10px;
  --radius-pill:    30px;
  --logo-width:     clamp(210px, 180px + 8vw, 241px); /* header logo scales smoothly */
}

/* ---------- Self-hosted fonts (Poppins, SIL Open Font License — see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; } /* page anchor links glide instead of jumping (turned off below for "reduce motion") */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: var(--weight-heading); line-height: 1.3; }
h1, h2 { font-weight: var(--weight-section); }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); color: var(--color-purple); }
h3 { font-size: var(--text-h3); color: var(--color-heading-gray); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--weight-bold); }

a { color: var(--color-purple); }
a:hover { color: var(--color-purple-hover); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--color-purple-hover);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--color-white); }

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-purple);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--color-white); }

/* The icon sprite holds icon shapes only; it never displays */
.sprite { display: none; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--offwhite { background: var(--color-offwhite); }
.section--purple { background: var(--color-purple); color: var(--color-white); }
.center { text-align: center; }

/* Two columns side by side once there's room; stacked on phones */
.split {
  display: grid;
  gap: var(--space-block) clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.6em 1.4em;             /* about 9.5px 22px at 16px (Option A, slimmer) */
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* Arrow on main action buttons (add class="btn--arrow"); it slides on hover */
.btn--arrow { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; }
.btn--arrow::after { content: "\2192"; display: inline-block; transition: transform 0.2s; }
.btn--arrow:hover::after { transform: translateX(3px); }
/* Hover lift: the button rises slightly with a soft shadow */
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(46, 29, 71, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
/* On touchscreens, add invisible space above and below each button so the
   tap area is at least 44px tall, even though the button looks slimmer. */
@media (pointer: coarse) {
  .btn { position: relative; }
  .btn::after { content: ""; position: absolute; inset: -4px 0; }
}
.btn--green  { background: var(--color-green);  color: var(--color-offwhite); }
.btn--green:hover  { background: var(--color-green-hover);  color: var(--color-white); }
.btn--green-dark { background: var(--color-green-dark); color: var(--color-white); }
.btn--green-dark:hover { background: var(--color-green-hover); color: var(--color-white); }
.btn--purple { background: var(--color-purple); color: var(--color-white); }
.btn--purple:hover { background: var(--color-purple-dark); color: var(--color-white); } /* darker purple (same as the footer) */
/* White outline button for use on photos (hero). The 30% dark backing
   keeps the text readable over bright parts of the photo. */
.btn--outline-light {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-offwhite);
  border-width: 1px;
  color: var(--color-offwhite);
}
.btn--outline-light:hover { background: rgba(0, 0, 0, 0.45); color: var(--color-white); }
/* Same white outline, but fully clear: for solid dark bands (e.g. the purple payroll callout) */
.btn--outline-clear { background: transparent; }
.btn--outline-clear:hover { background: rgba(255, 255, 255, 0.12); }
/* Green outline: a second, lighter-weight button next to a solid green one */
.btn--outline-green { background: transparent; border-color: var(--color-green); border-width: 1px; color: var(--color-green); }
.btn--outline-green:hover { background: var(--color-green); color: var(--color-white); }

/* Extra space above a button that follows a paragraph */
.btn--spaced { margin-top: 1.25rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.75rem;
}
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header { background: var(--color-white); position: relative; z-index: 50; transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 0 10px rgba(198, 201, 201, 0.9); } /* shadow appears once the page is scrolled */
/* Inner pages: the header stays at the top of the screen while scrolling (like the old site),
   on screens wider than 768px. The home page header scrolls away normally. */
@media (min-width: 48.0625rem) {
  .site-header--sticky { position: sticky; top: 0; }
  html:has(.site-header--sticky) [id] { scroll-margin-top: calc(95px + 1.5rem); }
  html:has(.site-header--sticky) #introductory-calls { scroll-margin-top: 95px; } /* purple band lines up right under the header */
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 95px;
  padding-block: 0.5rem;
}
.site-logo img { width: var(--logo-width); height: auto; }

/* Hamburger button (phones and tablets) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-purple);
  font-size: 28px;
  cursor: pointer;
}

/* Slide-in menu panel (phones and tablets) */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(80vw, 22rem);
  padding: 4.5rem 1.5rem 2rem;
  background: var(--color-white);
  box-shadow: -8px 0 24px rgba(46, 29, 71, 0.18);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 100;
}
.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease;
}
.nav-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--color-heading-gray);
  font-size: 24px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(46, 29, 71, 0.35);
  z-index: 90;
}
.nav-backdrop[hidden] { display: none; }

.nav-list, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-list { text-align: center; }
.nav-list > li { margin-block: 0.25rem; }
.nav-link, .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.625rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-nav);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover, .nav-parent:hover, .nav-parent[aria-expanded="true"] { color: var(--color-purple); }
.nav-item { display: inline-flex; align-items: center; }
.nav-item .nav-link { padding-right: 0.25rem; }
.nav-parent { padding: 0.6rem 0.5rem; width: 2rem; justify-content: center; }
.nav-parent .icon { font-size: 0.75em; transition: transform 0.2s; }
.nav-item:hover .nav-link,
.nav-item:has(.nav-parent[aria-expanded="true"]) .nav-link { color: var(--color-purple); }
.nav-parent[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-sub { padding-block: 0.25rem; }
.nav-sub[hidden] { display: none; }
.nav-sub a {
  display: block;
  padding: 0.45rem 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-sub a:hover { color: var(--color-purple); }
.nav-list > .nav-cta { margin-top: 0.75rem; }
.nav-phone { display: block; }

/* WHY THIS MEDIA QUERY: the full menu plus logo needs about 1000px of width.
   Below that, the menu lives in the slide-in panel above. */
@media (min-width: 62.5rem) {
  .nav-toggle, .nav-close, .nav-backdrop, .nav-phone { display: none !important; }
  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav-list { display: flex; align-items: center; gap: 0.25rem; text-align: left; }
  .nav-list > li { position: relative; margin: 0; }
  .nav-list > .nav-cta { margin: 0 0 0 1.5rem; } /* space between Client Portal and the Contact button */
  .nav-cta .btn { font-size: 1rem; }
  /* Dropdown panels */
  .nav-sub {
    position: absolute;
    top: 100%; left: 0;
    min-width: 100%;
    width: max-content;
    padding: 0;
    background: rgba(60, 39, 89, 0.89);
  }
  .nav-sub a { padding: 10px 20px; font-size: 1rem; color: var(--color-white); }
  .nav-sub a:hover, .nav-sub a:focus-visible { color: var(--color-white); background: rgba(255, 255, 255, 0.1); }
  .nav-sub :focus-visible { outline-color: var(--color-white); outline-offset: -3px; }
}

/* ==========================================================================
   Hero (home page)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;                              /* text block centered top to bottom */
  min-height: calc(clamp(18rem, 13rem + 15vw, 27rem) + 0.5rem);   /* 296 → 440px tall */
  padding-block: clamp(2.8rem, 2rem + 2.2vw, 4rem) calc(clamp(2.8rem, 2rem + 2.2vw, 4rem) + 0.5rem); /* +8px below the buttons */
  color: var(--color-offwhite);
  background: #1f3315;               /* shows while the photo loads */
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark diagonal overlay, copied from the current site: darker on the
   left behind the text, fading out toward the right. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #000 35%, rgba(7, 8, 7, 0.98) 35%, rgba(3, 3, 3, 0.11) 60%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__content { max-width: 44rem; }
/* Desktops: keep the two hero buttons side by side. On large monitors (17px text)
   they are slightly wider than the text block, so don't let them wrap (Approved Changes #118). */
@media (min-width: 56.25rem) {
  .hero .btn-row { flex-wrap: nowrap; }
  .hero .btn-row > .btn { flex-shrink: 0; }
}
/* Desktops: hero 10px taller, 5px more above and below the text (Approved Changes #117) */
@media (min-width: 56.25rem) {
  .hero {
    min-height: calc(clamp(18rem, 13rem + 15vw, 27rem) + 0.5rem + 10px);
    padding-block: calc(clamp(2.8rem, 2rem + 2.2vw, 4rem) + 5px) calc(clamp(2.8rem, 2rem + 2.2vw, 4rem) + 0.5rem + 5px);
  }
}
.hero h1 { color: var(--color-offwhite); margin-bottom: 0.4em; }
.hero__lead {
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Intro + service cards (home page)
   ========================================================================== */
.intro h3 { margin-top: 1.6em; }
.intro__text p { color: var(--color-text); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  gap: 0.6rem;
  padding: 1.5rem 1.25rem 1.5rem 0.9rem;
  background: var(--color-offwhite);
  border-radius: var(--radius-card);
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 14px rgba(46, 29, 71, 0.12); color: var(--color-text); }
.service-card .icon { font-size: 25px; color: var(--color-purple); margin-top: 0.1em; }
.service-card h3 {
  margin: 0 0 0.6rem;
  font-size: var(--text-card);
  font-weight: var(--weight-card);
  color: var(--color-purple);
}
.service-card p { margin: 0; }

.cards-cta { margin-top: 1.25rem; text-align: center; }
.cards-cta__prompt {
  margin: 0 0 1rem;
  font-size: var(--text-xlarge);
  line-height: 1.3;
  color: var(--color-purple);
}

/* ==========================================================================
   Meet April (home page)
   ========================================================================== */
.meet h2 { color: var(--color-green); }
.subtitle {
  font-size: var(--text-h3);
  font-weight: var(--weight-heading);
  color: var(--color-heading-gray);
  line-height: 1.3;
  margin-bottom: 0.8em;
}
.meet__signature { width: clamp(200px, 150px + 13vw, 300px); margin-top: 1.5rem; }
.meet__name { margin: 0.25rem 0 1.25rem; }
.credential-list { list-style: none; margin: 0 0 1.5rem; padding: 0; color: var(--color-text-muted); }
.credential-list li::before { content: "• "; }
.meet__photo img { width: 100%; max-width: 413px; margin-inline: auto; }

/* ==========================================================================
   CPA and EA Advantage band
   ========================================================================== */
.advantage h2 { color: var(--color-white); }
.advantage p { font-size: var(--text-xlarge); line-height: 1.3; margin: 0; }

/* ==========================================================================
   Location (home page)
   ========================================================================== */
.location { background: var(--color-offwhite); padding-block: 10px; margin-top: var(--space-section); }
.location .split { align-items: center; }
.location h2 { font-size: var(--text-h2-sm); font-weight: var(--weight-section); color: var(--color-green); }
.location__text { padding-block: 1.5rem; font-size: var(--text-large); line-height: 1.5; color: var(--color-text-muted); }
.location__text p { margin-bottom: 1.2em; }

/* ==========================================================================
   Why choose (icon row)
   ========================================================================== */
.why h2 { font-weight: var(--weight-section); color: var(--color-green); }
.why__intro { max-width: 56rem; margin: 0 auto 1.5rem; }
.why-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
/* WHY THESE MEDIA QUERIES: four items should sit 1, 2 or 4 across, never
   3 + 1 with one left alone on a second row. */
@media (min-width: 30rem) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56.25rem) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { text-align: center; }
.why-grid .icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--color-green-hover);
  color: var(--color-white);
  font-size: 30px;
  margin-bottom: 1.25rem;
}
.why-grid h3 {
  font-size: var(--text-large);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* ==========================================================================
   Closing call-to-action band (every page)
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-offwhite);
  padding-block: clamp(3rem, 2rem + 3vw, 4.7rem);
  text-align: center;
}
.cta-band__bg {
  position: absolute; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.cta-band h2 { font-weight: var(--weight-section); color: var(--color-green); }
.cta-band p { font-size: var(--text-large); color: var(--color-heading-gray); margin-bottom: 1.6rem; }
/* Closing button: standard size and green, like the other buttons */

/* ==========================================================================
   Footer (every page)
   ========================================================================== */
.site-footer {
  background: var(--color-purple-dark);
  color: var(--color-footer-text);
  font-size: var(--text-small);
  line-height: 1.6;
  padding-top: 50px;
}
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem 3rem;
}
.footer-logo img { width: 250px; margin-bottom: 2.75rem; }
.footer-heading {
  margin: 0 0 0.6rem;
  font-size: var(--text-large);
  font-weight: var(--weight-medium);
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-footer-text);
}
.footer-list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.footer-contact li { display: flex; gap: 0.9rem; margin-bottom: 1.75rem; line-height: 1.35; }
.footer-contact .icon { margin-top: 0.15em; color: var(--color-footer-text); }
.footer-contact small { display: block; margin-top: 0.35rem; font-size: var(--text-xsmall); opacity: 0.85; }
.footer-col p { margin-bottom: 1rem; text-wrap: pretty; } /* evens out line lengths; no lone last word */
.footer-bottom {
  margin-top: 1.5rem;
  padding-block: 20px 30px;
  font-size: var(--text-xsmall);
}
.footer-bottom a { text-decoration: underline; }
.link-button {
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: var(--color-white); }

/* ==========================================================================
   Cookie consent banner
   Small, non-blocking, at the bottom. On phones it's a compact bar; on wider
   screens a box in the lower-left corner. While it's showing, the script adds
   extra space to the bottom of the purple footer, so nothing is hidden behind it
   and there's no white gap.
   ========================================================================== */
.consent {
  position: fixed;
  left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  z-index: 200;
  max-width: 26rem;
  padding: 1rem 1.1rem;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid #d9d6e0;
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px rgba(46, 29, 71, 0.18);
  font-size: var(--text-small);
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: var(--weight-semibold); color: var(--color-purple); }
.consent p { margin: 0 0 0.85rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent .btn { font-size: var(--text-small); padding: 0.6em 1.4em; }
.btn--outline-dark { background: var(--color-white); border-color: var(--color-purple); color: var(--color-purple); }
.btn--outline-dark:hover { background: var(--color-offwhite); color: var(--color-purple); }

/* ==========================================================================
   Wide-screen layouts
   WHY THIS MEDIA QUERY: two-column sections (text beside cards or photos)
   need about 900px; below that they stack, which reads better on tablets
   and phones.
   ========================================================================== */
@media (min-width: 56.25rem) {
  .split--intro    { grid-template-columns: 1fr 1.1fr; }
  .split--meet     { grid-template-columns: 1fr minmax(18rem, 413px); gap: 4.375rem; }
  .split--location { grid-template-columns: 1.15fr 1fr; gap: 4.375rem; }
  .cards-cta { margin-top: 2.25rem; }
}

/* ==========================================================================
   Inner pages (shared building blocks)
   ========================================================================== */

/* Breadcrumb ("Home > About") */
.breadcrumb { font-size: var(--text-small); color: var(--color-olive); }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0.9rem 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem;
}
.breadcrumb li + li::before { content: ">"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--color-olive); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-purple); text-decoration: underline; }

/* Page title block */
.page-intro h1 { color: var(--color-purple); }
.h2--sub {                       /* an H2 styled like a gray subheading */
  font-size: var(--text-h3);
  font-weight: var(--weight-heading);
  color: var(--color-heading-gray);
}
.page-intro h1 + .h2--sub { margin-top: 0.4em; }

/* "Learn More" jump links */
.jump-links { margin-top: 1.75rem; }
.jump-links__title {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.35rem;
  font-size: var(--text-large);
  color: var(--color-heading-gray);
}
.jump-links__title .icon { color: var(--color-purple); }
.jump-links ul { list-style: none; margin: 0; padding: 0 0 0 1.85rem; }
.jump-links li { margin-bottom: 0.2rem; }
.jump-links a { color: var(--color-text); }
.jump-links a:hover { color: var(--color-purple); }

/* Icon + text list with dividers (e.g. About: firm facts) */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex; gap: 1.1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid #dcdcd6;
}
.feature-list li:first-child { padding-top: 0; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list .icon { font-size: 1.9rem; color: var(--color-green); margin-top: 0.1em; }
.feature-list__title {
  margin: 0 0 0.3rem;
  font-size: var(--text-large);
  font-weight: var(--weight-medium);
  color: var(--color-purple);
  line-height: 1.35;
}
.feature-list p { margin-bottom: 0; }
.feature-list__title + p { margin-top: 10px; }  /* space between title and description */

/* Photo column */
.photo img { width: 100%; max-width: 400px; margin-inline: auto; }
.photo--small img { max-width: 310px; }

/* Small callout with an icon title (e.g. "Dual Credentialed Professional") */
.callout { margin-top: 1.5rem; }
.callout__title {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-size: var(--text-large);
  font-weight: var(--weight-medium);
  color: var(--color-purple);
}
.callout .credential-list { margin-bottom: 0; }

/* Credentials lists */
.credentials h3 { margin-top: 1.4em; font-size: var(--text-xlarge); }
.credentials ul { list-style: none; margin: 0; padding: 0 0 0 0.3rem; }
.credentials li { margin-bottom: 1.05rem; line-height: 1.5; }

/* Advantage band: optional lead line between rules, plus body text */
.advantage .advantage__lead {
  max-width: 54rem;
  margin: 1.25rem auto 1.25rem;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(255, 255, 255, 0.35);
}
.advantage .advantage__body { max-width: 54rem; margin-inline: auto; font-size: var(--text-body); line-height: 1.6; }

/* Plain centered list and logo row (About: affiliations) */
.plain-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.plain-list li { margin-bottom: 0.85rem; }
.logo-row {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
  justify-items: center;
}
.logo-row img { width: auto; max-height: 60px; max-width: 100%; }

/* Green page title variant (Business Services and service pages) */
.page-intro--green h1 { color: var(--color-green); }
.page-intro .h2--sub + p { margin-top: 0; }
.page-intro p + .h2--sub, .page-intro ul + .h2--sub { margin-top: 1.4em; }

/* Underlined link lists (service lists) */
.link-list { margin: 0; padding-left: 1.25rem; }
.link-list li { margin-bottom: 0.3rem; }
.link-list a { color: var(--color-text); }
.link-list a:hover { color: var(--color-purple); }
.link-list--center { list-style: none; padding: 0; }
.link-list--center li { margin-bottom: 0.6rem; font-size: var(--text-large); }

/* Image + caption column beside the page intro */
.intro-aside img { width: 100%; margin-bottom: 1.1rem; }
.icon-note {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.4rem;
  font-weight: var(--weight-medium);
  color: var(--color-text);
  line-height: 1.4;
}
.icon-note .icon { font-size: 2rem; color: var(--color-green); }

/* Narrow centered text column */
.narrow { max-width: calc(58rem + 2 * var(--gutter)); }

/* Centered block with an icon above its heading */
.icon-block { margin: 1.75rem 0 2.25rem; }
/* When a link jumps to a section (e.g. #payroll-tax-problems), leave a little space above it */
[id] { scroll-margin-top: 1.5rem; }
.icon-block__icon { font-size: 2.1rem; color: var(--color-purple); margin: 0 auto 0.9rem; }
.icon-block h3 { color: var(--color-heading-gray); }
.h3--compact { margin-top: 1.4em; margin-bottom: 0.35em; }
/* Credential badge (e.g. QuickBooks ProAdvisor) */
.badge { width: 120px; margin: 1.25rem auto 0.5rem; }

/* Location band variant: text on the left, photo on the right, no extra top margin */
.location--tall { margin-top: 0; }
.location--tall .subtitle { margin-bottom: 0.7em; }
/* Photo bands on inner pages use the same heading and text style as the home page's
   "Located in the SouthPark Area" band (Approved Changes #92). */

/* Purple callout band with a button */
.advantage .advantage__text { max-width: 54rem; margin: 0 auto 1.75rem; }
.advantage .advantage__text:last-child { margin-bottom: 0; }
/* Home: "CPA and EA Advantage" paragraph. Capped width with balanced lines so the
   last words ("the IRS.") don't end up alone on a line (Approved Changes #112). */
.advantage .advantage__intro { max-width: 42em; margin-inline: auto; text-wrap: balance; }
.advantage p:not(.advantage__text) + .btn { margin-top: 1.75rem; } /* space above the band's button */

/* FAQ accordion (no script needed: uses <details>) */
.faq h2 { margin-bottom: 1.5rem; }
.faq__list { display: grid; gap: 0.75rem; max-width: 50rem; margin-inline: auto; }
.faq__item {
  background: var(--color-white);
  border: 1px solid #dcdcd6;
  border-radius: var(--radius-card);
  transition: box-shadow 0.2s;
}
.faq__item:hover, .faq__item[open] { box-shadow: 0 4px 14px rgba(46, 29, 71, 0.08); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into a minus when the answer is open */
.faq__item summary::after {
  content: "+";
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--color-offwhite);
  color: var(--color-purple);
  font-size: 1.35rem; font-weight: var(--weight-medium); line-height: 1;
  transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__q {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.24vw, 1.125rem);   /* 16 → 18px */
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-purple);
}
.faq__a { padding: 0 1.25rem 1.15rem; }
.faq__a p { margin-bottom: 0.8em; }
.faq__a p:last-child { margin-bottom: 0; }
.nowrap { white-space: nowrap; }  /* keeps a phrase like "more-than-2%" on one line */

/* 404 page */
.notfound h1 { color: var(--color-purple); }
.notfound__code { margin: 0; font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); line-height: 1; font-weight: var(--weight-heading); color: var(--color-green); letter-spacing: 0.04em; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.notfound__lists { display: grid; gap: 2.5rem; }
.notfound__lists h2 { font-size: var(--text-h3); }
.notfound__more { margin-top: 2rem; }
@media (min-width: 56.25rem) { .notfound__lists { grid-template-columns: 1fr 1fr; } }

/* Privacy Policy (long legal text) */
.legal h1 { color: var(--color-purple); font-size: var(--text-h2); margin-bottom: 0.3em; }
.legal__updated { color: var(--color-text-muted); font-size: var(--text-small); margin-bottom: 2rem; }
.legal h2 { font-size: var(--text-h3); color: var(--color-heading-gray); margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--color-text); margin: 1.4rem 0 0.4rem; }
.legal .link-button { color: inherit; text-decoration: underline; }
.legal .link-button:hover { color: var(--color-purple); }

/* Contact page */
.location--contact { margin-top: 0; }
.location--contact .location__text { color: var(--color-text-muted); padding-block: 1.5rem; }
@media (min-width: 56.25rem) { .location--contact .location__text { padding-block: 2rem; } }
.contact-title { color: var(--color-purple); font-size: var(--text-h2); }
.contact-sub { font-size: var(--text-large); color: var(--color-heading-gray); margin-bottom: 0.5rem; }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0 0 0 0.6rem; }
.contact-list li { display: flex; gap: 1.25rem; margin-bottom: 1rem; }
.contact-list .icon { font-size: 1.5rem; color: var(--color-purple); margin-top: 0.15em; }
.contact-list p { margin: 0; line-height: 1.6; }
.contact-list__label { font-weight: var(--weight-medium); color: var(--color-nav); }
.contact-list a { color: var(--color-text); text-decoration: none; }
.contact-list a:hover { color: var(--color-purple); text-decoration: underline; }
.contact-list__note { margin-top: 0.3rem !important; font-style: italic; font-weight: var(--weight-medium); }

/* Contact: introductory calls (purple band with two outlined boxes) */
.contact-calls { margin-block: var(--space-section); }
#introductory-calls { scroll-margin-top: 0; }
.contact-calls h2, .contact-calls p, .contact-calls li, .contact-calls a { color: var(--color-white); }
.contact-calls__intro { max-width: 46rem; margin-inline: auto; }
.contact-calls__intro p { font-size: var(--text-large); }
.contact-calls__boxes { margin-top: 1.5rem; align-items: stretch; }
.contact-box { border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-card); padding: 1.5rem 1.75rem; }
.contact-box__title { font-size: var(--text-xlarge); color: var(--color-white); margin: 0 0 0.6rem; }
.contact-box__title--gap { margin-top: 1.5rem; }
.contact-calls__cta { margin: 2.25rem 0 0; }  /* email button centered below the two boxes */
.bullet-list { margin: 0 0 1em; padding-left: 1.25rem; }
.bullet-list li { margin-bottom: 0.6rem; }

/* Contact: map with location card */
.contact-map { position: relative; margin-bottom: var(--space-section); }
.contact-map__link { display: block; position: relative; max-width: var(--max-width); margin-inline: auto; border-radius: var(--radius-card); overflow: hidden; }
@media (max-width: 75rem) { .contact-map__link { margin-inline: var(--gutter); } }
.contact-map img { width: 100%; height: auto; aspect-ratio: 640 / 600; object-fit: cover; }
@media (min-width: 37.5rem) { .contact-map img { aspect-ratio: 1200 / 520; } }
.contact-map__btn { position: absolute; right: 1rem; top: 1rem; background: var(--color-white); color: var(--color-purple); border: 1px solid var(--color-purple); border-radius: var(--radius-pill); padding: 0.45em 1.1em; font-size: var(--text-small); font-weight: var(--weight-medium); box-shadow: 0 2px 8px rgba(46, 29, 71, 0.15); }
.contact-map__overlay { padding-top: 1.25rem; }
.contact-map__card { background: var(--color-white); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: 0 6px 24px rgba(46, 29, 71, 0.15); }
.contact-map__title { font-size: var(--text-h2-sm); color: var(--color-purple); }
@media (min-width: 56.25rem) {
  .contact-map__overlay { position: absolute; inset: 0 auto 0 0; width: 100%; display: flex; align-items: center; background: none; padding: 0; pointer-events: none; }
  .contact-map__overlay .container { padding-inline: calc(var(--gutter) + 1.5rem); }
  .contact-map__card { max-width: 25rem; pointer-events: auto; }
}

@media (min-width: 56.25rem) {
  .split--even        { grid-template-columns: 1fr 1fr; gap: 4.375rem; }
  .split--location-rev { grid-template-columns: 1fr 1.15fr; gap: 4.375rem; }
  /* Photo band: text about 2/3 on the left, photo about 1/3 flush right (Approved Changes #113-114) */
  .split--text-wide   { grid-template-columns: 2fr 1fr; gap: 4.375rem; }
  .split--text-wide .location__text p { text-wrap: pretty; }
  .split--text-wide .location__text .subtitle { text-wrap: balance; }
  .split--advisor     { grid-template-columns: 1fr minmax(14rem, 310px); gap: 4.375rem; align-items: center; }
  .split--photo-left  { grid-template-columns: minmax(16rem, 400px) 1fr; gap: 4.375rem; }
  .split--photo-right { grid-template-columns: 1fr minmax(16rem, 400px); gap: 4.375rem; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .page-intro .feature-list { margin-top: 3.2rem; }  /* lines up with "Founder & Mission" */
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Large monitors only (1600px and wider): 17px text and a 1240px page width.
   Laptops, tablets and phones keep 16px text and the 1150px width. */
@media (min-width: 100rem) {
  :root { --text-body: 1.0625rem; --max-width: 1240px; }
}
/* Comfortable line length for paragraphs in centered sections (about 75-80 characters),
   with balanced line breaks so a paragraph doesn't end with one word alone. */
.center .narrow > p, .icon-block p { max-width: 52rem; margin-inline: auto; text-wrap: pretty; }

/* Page-top photo fills the full height of the text beside it (laptops and larger).
   Only where the photo column holds just the photo. The photo file is unchanged;
   edges that don't fit the box are trimmed from view. */
@media (min-width: 56.25rem) {
  .page-intro .split:has(> * > picture:only-child) { align-items: stretch; }
  .page-intro .split > :has(> picture:only-child) { position: relative; min-height: 18rem; }
  .page-intro .split > * > picture:only-child { position: absolute; inset: 0; display: block; }
  .page-intro .split > * > picture:only-child img { width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
}

/* Retirement band (Personal Tax Prep): photo about 450px wide on desktops (Approved Changes #116) */
@media (min-width: 75rem) {
  .split--photo-450 { grid-template-columns: 1fr 450px; }
}

/* Page-top intro band with a photo on the right (service pages, not About):
   10px above and below the beige band; the text column gets 40px top and bottom. */
.section.page-intro:has(picture) { padding-block: 10px; }
.page-intro:has(picture) .split > div:first-child { padding-block: 40px; }

/* Contact: top band matches the service-page intros: 10px band padding (from .location),
   40px above and below the text, and the photo fills the full height of its column. */
.location--contact .location__text { padding-block: 40px; }
@media (min-width: 56.25rem) {
  .location--contact .split { align-items: stretch; }
  .location--contact .split > picture { position: relative; display: block; min-height: 18rem; }
  .location--contact .split > picture img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
}

/* About: 50px above and below the top band; the firm-facts list is centered vertically. */
.section.page-intro:has(.feature-list) { padding-block: 50px; }
@media (min-width: 56.25rem) {
  .page-intro .split > .feature-list { align-self: center; margin-top: 0; }
}
