/* Inner page styles */

/* ===== SERVICE HERO (Pass 21, matched to homepage hero Pass 24) =====
   Same recipe as the homepage's .hero: full-bleed photo, dark scrim,
   white content on top, sitting under the fixed glass header (see
   body.has-hero handling below). Services with no hero photo yet (the
   six thin ones) get .svc-hero--photo omitted and fall back to a plain
   light surface with dark ink text -- there's no photo to scrim. */

.svc-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 420px;
  background: var(--color-surface-soft);
}
.svc-hero--photo {
  min-height: 560px;
}

.svc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Same scrim recipe as .hero__scrim -- heavier on the left where the
   copy sits. */
.svc-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 38%,
    rgba(0,0,0,0.15) 68%,
    rgba(0,0,0,0.05) 100%
  );
}

.svc-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
  padding-bottom: var(--space-8);
}
.svc-hero--photo .svc-hero__inner {
  padding-top: calc(var(--header-height) + var(--space-6));
}
/* CORRECTION: a previous pass dropped this to 0 at mobile to hit a flat
   80px gap to the next section. That's the same mistake almost made on
   the homepage hero -- this padding is what keeps the trust list clear
   of the photo's bottom edge (.hero__inner has the identical fix, for
   the identical reason). Trimmed one step to --space-5 (40px) -- still
   clearly more than the 0px that caused the original problem, just
   tighter than the 48px that felt like dead air below the trust list. */
@media (max-width: 767px) {
  .svc-hero__inner {
    padding-bottom: var(--space-5);
  }
  /* This hero carries a breadcrumb the homepage hero doesn't have, plus
     a longer subtext and a 5th trust item -- genuinely more content, so
     it needs every bit of spare vertical room it can get on a phone.
     Trimmed the extra photo-hero buffer one step (48px -> 32px, still
     clearly more than the 0px that originally let the eyebrow touch the
     header) and the gap between stacked items (24px -> 16px, x5 gaps). */
  .svc-hero--photo .svc-hero__inner {
    padding-top: calc(var(--header-height) + var(--space-4));
  }
}

.svc-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  max-width: 620px;
}
/* Must come after the base rule above -- same selector/specificity, an
   earlier position in the file would lose to source order regardless of
   the media query (this bit me twice already earlier in this project). */
@media (max-width: 767px) {
  .svc-hero__content {
    gap: var(--gap-md);
  }
}

.svc-hero__crumb {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.75);
}
.svc-hero__crumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.svc-hero__crumb a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.svc-hero__crumb [aria-current="page"] {
  color: #FFFFFF;
}
/* No photo -- dark text on the light fallback surface instead. */
.svc-hero:not(.svc-hero--photo) .svc-hero__crumb,
.svc-hero:not(.svc-hero--photo) .svc-hero__crumb a {
  color: var(--color-muted);
}
.svc-hero:not(.svc-hero--photo) .svc-hero__crumb a:hover {
  color: var(--color-brand);
}
.svc-hero:not(.svc-hero--photo) .svc-hero__crumb [aria-current="page"] {
  color: var(--color-body);
}

/* No mobile rules existed for this whole hero at all -- min-height stayed
   560px at every width, which against a 1920x1080 source forces roughly
   a 62% horizontal crop on a narrow phone (container ratio ~0.67:1 vs the
   photo's 1.78:1), cutting subjects out almost regardless of where they
   sit. The 7 service photos have subjects in different spots (some
   right-heavy, one has no person at all), so there's no single
   object-position that's correct for all of them -- reducing the crop
   itself is the safer fix, plus a moderate rightward bias since most
   lean that way. */
@media (max-width: 767px) {
  .svc-hero--photo {
    min-height: 420px;
  }
  .svc-hero__media img {
    object-position: 68% center;
  }
  .svc-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.60) 0%,
      rgba(0,0,0,0.55) 55%,
      rgba(0,0,0,0.45) 100%
    );
  }
}

.svc-hero__eyebrow {
  color: var(--color-accent);
}

.svc-hero__title {
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}
.svc-hero--photo .svc-hero__title {
  color: #FFFFFF;
}

.svc-hero__subtext {
  margin: 0;
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  max-width: 42ch;
}
.svc-hero--photo .svc-hero__subtext {
  color: rgba(255,255,255,0.90);
}
.svc-hero:not(.svc-hero--photo) .svc-hero__subtext {
  color: var(--color-body);
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
/* Matches .hero__actions .btn's mobile rule -- this hero was missing the
   equivalent, so its two buttons wrapped to their own natural content
   width instead of stretching full-width like the homepage's. */
@media (max-width: 767px) {
  .svc-hero__actions .btn {
    width: 100%;
  }
}

/* On a photo, the secondary button's default (transparent + blue border/
   text) is low-contrast -- same on-dark override as .hero__call. */
.svc-hero--photo .svc-hero__call.btn-secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.svc-hero--photo .svc-hero__call.btn-secondary:hover {
  background: #FFFFFF;
  color: var(--color-ink);
}

/* Reverted to match .hero__badges exactly (flex-wrap, not grid) -- an
   earlier pass "fixed" this to a rigid 2-column grid assuming the
   flex-wrap's uneven 2/1/1 pattern was a bug, but that's exactly how the
   homepage's own badge list wraps too (same component, same recipe) and
   is the confirmed-correct look. */
.svc-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-lg);
  list-style: none;
  padding: 0;
  /* .svc-hero__content's flex gap already spaces every stacked item
     evenly; this list needs a touch more clearance from the buttons
     above it than that shared gap gives it, so nudge it down slightly
     on its own rather than widening every gap in the stack. */
  margin: 4px 0 0;
}
.svc-hero__trust li {
  position: relative;
  padding-left: var(--gap-lg);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}
.svc-hero--photo .svc-hero__trust li {
  color: #FFFFFF;
}
.svc-hero:not(.svc-hero--photo) .svc-hero__trust li {
  color: var(--color-body);
}
/* Same inline checkmark mask as .hero__badges li::before -- no icon
   dependency. */
.svc-hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: var(--color-accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Hero sits on a dark photo -- the global blue focus ring is low-contrast
   there. White ring, same fix as .hero a:focus-visible. */
.svc-hero--photo a:focus-visible {
  outline: 2px solid var(--focus-ring-dark);
  outline-offset: 3px;
}

/* ===== SERVICE BURDEN (Pass 21, matched to homepage notebook Pass 24) =====
   .notebook, .notebook__list and .notebook__footer/__punch are all
   global (see global.css) and used HERE VERBATIM, unchanged -- the
   burden section is just the homepage notebook with different copy and
   a phone number in place of "Sound familiar?". No custom list/check/
   strikethrough classes anymore; only the section-level padding hook
   and the punch-line phone-link color live here. */

/* Top padding only, no bottom -- same site-wide rhythm rule as every
   other section (see the rhythm note on .ip-section in global.css).
   Without this override, the bare .ip-section/.ip-section--soft classes
   fall back to their 128px-top-AND-bottom default, which doubles every
   seam between these stacked sections. */
.svc-burden {
  padding-top: var(--space-10);
  padding-bottom: 0;
}
/* .svc-hero__inner keeps a justified --space-6 (48px) bottom padding at
   mobile to clear its trust list from the photo's edge -- matches that
   so the combined gap still lands on the canonical 80px (48+32) instead
   of stacking to 128px (48+80). Same approach as .todo on the homepage,
   which compensates for .hero__inner's identical fix the same way. */
@media (max-width: 767px) {
  .svc-burden {
    padding-top: var(--space-4);
  }
}

/* .notebook__punch is plain ink text on the homepage (no link inside).
   Here it ends in a tappable phone number, so it needs a color/underline
   treatment -- scoped to .svc-burden so the homepage's own use is
   untouched. */
.svc-burden .notebook__punch a {
  color: var(--color-brand);
  text-decoration: underline;
}
.svc-burden .notebook__punch a:hover {
  color: var(--color-brand-hover);
}

/* ===== SERVICE HANDLE (Pass 22, card grid Pass 23) =====
   Same card chrome as the homepage's .service-card (border, shadow-2,
   translateY(-4px) + shadow-3 + translucent accent border on hover) --
   reused here rather than invented fresh, since .service-card lives in
   homepage.css and doesn't load on inner pages. 4 items -> 2x2, no
   tablet override (2 columns already fits comfortably at that width). */

/* Same rhythm override as .svc-burden above -- see that comment. */
.svc-handle {
  padding-top: var(--space-10);
  padding-bottom: 0;
}

.svc-handle__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}
@media (max-width: 767px) {
  .svc-handle__grid {
    grid-template-columns: 1fr;
  }
}

/* Frosted glass, same recipe as the site header's glass tokens (see
   --glass-* in tokens.css) -- translucent + blurred rather than solid
   white. Hover is shadow-only now: no lift, no border-color shift (the
   client asked the cards to stop "jumping" and changing color). */
.svc-handle__item {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.svc-handle__item:hover {
  transform: translateY(-4px);
  /* Translucent, not solid -- see the identical note on .service-card:hover
     in homepage.css. */
  border-color: rgba(245, 180, 26, 0.5);
  box-shadow: var(--shadow-3);
}
/* Card padding stayed at the desktop/multi-column value (48px) even once
   the grid collapsed to 1 column at near-full container width -- on a
   375px phone that left barely 250px of usable text width. Must come
   after the base rule above: same selector/specificity, so an earlier
   position in the file would just lose to source order. */
@media (max-width: 767px) {
  .svc-handle__item {
    padding: var(--space-4);
  }
}

.svc-handle__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-brand-wash);
  color: var(--color-brand);
}
.svc-handle__icon svg {
  width: 24px;
  height: 24px;
}

.svc-handle__title {
  margin: var(--space-3) 0 0;
  font-size: var(--text-h4);
  color: var(--color-ink);
}
.svc-handle__body {
  flex: 1;
  margin: var(--gap-xs) 0 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  max-width: none;
}

/* padding-block + the reduced margin-top keep the same 24px visual gap
   above the link (16px margin + 8px padding) while giving it an actual
   tappable box instead of just its text/arrow glyph line-height -- it's
   the only way to act on this card besides the whole-card bundle links. */
.svc-handle__link {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  margin-top: calc(var(--space-3) - var(--gap-xs));
  padding-block: var(--gap-xs);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.svc-handle__link:hover {
  text-decoration: none;
  color: var(--color-brand-hover);
}
.svc-handle__link .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.svc-handle__link:hover .arrow {
  transform: translateX(4px);
}
.svc-handle__link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ===== SERVICE APPROACH (Pass 24, restored + refined Pass 24c) =====
   Back to the alternating icon timeline after a detour through a
   two-column list layout (client preferred the original, asked for a
   clearer connecting spine -- "tree branches" -- on top of it, closer to
   a client-supplied reference). NO cards, no row borders/backgrounds/
   shadows -- this is a read-down story, not a grid. Icons sit in a soft
   tinted panel; a small "Step 0N" pill (echoing the reference) replaces
   the earlier plain bold numeral. */

/* Same rhythm override as .svc-burden above -- see that comment. */
/* Full-bleed version of the light-gradient wash used in the contained
   .cta__block/.svc-why__block/.svc-signs__block (same blue/gold pair,
   see those for the source colors) -- no rounded corners or inset
   margins here, just a vertical fade back to white at both edges so it
   blends into the plain-white sections above/below instead of reading
   as a hard-edged strip. Also makes the frosted-glass icon badges above
   actually read as glass, which they barely did on plain white. */
.svc-approach {
  padding-top: var(--space-10);
  /* Every other section on this page is top-padding-only (see the shared
     rhythm note), which normally works because the next section's own
     top padding supplies the gap. This section is the exception: its
     rows end in a 176px glass-badge circle with its own shadow/blur, a
     lot more visual weight than the plain text/links other sections end
     with, so the standard 80px combined gap read as the badge crowding
     whatever comes next. Explicit bottom padding brings the total back
     up to the site's "full" 128px (--space-16) rhythm instead of relying
     on the next section alone. */
  padding-bottom: var(--space-6);
  /* White midpoint between the blue and amber stops -- blending them
     directly reads as a muddy gray band (near-complementary hues), so an
     explicit white keeps both tints clean top-to-bottom. */
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    #CCDBEF 18%,
    #FFFFFF 50%,
    #FDF0D1 82%,
    var(--color-surface) 100%
  );
}
/* Desktop keeps the full 48px bottom (the 176px icon badges genuinely
   need it there) -- but on mobile the icon shrinks to 140px and the
   next section's own 80px top padding is already the canonical mobile
   section gap on its own, so this was stacking to 128-176px instead of
   the uniform 80px every other seam on the site now uses. */
@media (max-width: 767px) {
  .svc-approach {
    padding-bottom: 0;
  }
}
/* Contact page only: .cta and this "what happens next" reuse of
   .svc-approach sit directly adjacent with nothing between them, both
   independently correct at 80px top/bottom -- but stacked, that's 160px,
   double the canonical gap. On every service page .svc-approach follows
   .svc-handle instead, so this adjacent-sibling selector only ever
   matches the contact-page case. */
.cta + .svc-approach {
  padding-top: 0;
}

.svc-approach__timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 960px;
  margin-inline: auto;
}

.svc-approach__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
/* Alternate: even rows put the media on the right instead of the left
   (odd rows are the default source order -- media first, text second). */
.svc-approach__row:nth-child(even) .svc-approach__media {
  order: 2;
}

/* A compact frosted-glass badge, not a full-width panel -- a 4:3 box
   around a single 72px icon was mostly empty space. Fixed size, centered
   in its grid column, same glass recipe as the card grids above. */
.svc-approach__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
}
.svc-approach__icon {
  color: var(--color-brand);
}
.svc-approach__icon svg {
  width: 64px;
  height: 64px;
}

.svc-approach__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
/* Small pill badge, not a giant numeral -- matches the "Step N" label
   style in the reference more closely than the earlier bold digit did. */
.svc-approach__step {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--gap-2xs) var(--gap-sm);
  border-radius: var(--radius-full);
  background: var(--color-brand-wash);
  color: var(--color-brand);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.svc-approach__text h3 {
  margin: 0;
  font-size: var(--text-h3);
  color: var(--color-ink);
}
.svc-approach__text p {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  max-width: 46ch;
}

/* The connecting spine: a vertical line linking the rows, with a node
   dot where each row meets it -- this is what makes it read as a
   process timeline rather than stacked pairs (the "tree branches" ask).
   Desktop only (see the mobile override below for why). */
@media (min-width: 1024px) {
  .svc-approach__timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-border-soft);
    transform: translateX(-50%);
    z-index: 0;
  }
  .svc-approach__row {
    position: relative;
    z-index: 1;
  }
  .svc-approach__row::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--color-brand);
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-2);
    transform: translate(-50%, -50%);
    z-index: 2;
  }
}

/* Mobile: no alternation, no spine. Image on top, text below, every
   row -- the diagonal spine reads as noise once rows stack full-width. */
@media (max-width: 1023px) {
  /* Between-step gap stayed at the desktop 96px even though the icon
     shrinks to 140px and the connecting spine (which visually tied rows
     together) disappears at this same breakpoint -- steps read as
     unrelated blocks rather than a sequence. */
  .svc-approach__timeline {
    gap: var(--space-8);
  }
  .svc-approach__row {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
  .svc-approach__row:nth-child(even) .svc-approach__media {
    order: 0;
  }
  .svc-approach__media {
    width: 140px;
    height: 140px;
  }
  .svc-approach__text p {
    max-width: none;
  }
}

/* ===== SERVICE PRICING (Pass 23) =====
   Tier cards + a factors sidebar. Same card chrome as .svc-handle__item
   (border/shadow/hover-lift, see that comment) so the whole page's card
   language stays consistent. The featured tier gets an accent BORDER and
   a small badge, not a different fill -- a solid accent background at
   this size would fail contrast against the white body copy underneath. */

.svc-pricing {
  padding-top: var(--space-10);
  padding-bottom: 0;
}

.svc-pricing__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 1023px) {
  .svc-pricing__grid {
    grid-template-columns: 1fr;
  }
}

.svc-pricing__tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}
@media (max-width: 767px) {
  .svc-pricing__tiers {
    grid-template-columns: 1fr;
  }
}

/* Same frosted-glass background as .svc-handle__item, but hover stays
   shadow-only here (no lift, no border-color shift) -- unlike Handle,
   which got its lift/border-hover restored back. */
.svc-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.svc-tier:hover {
  box-shadow: var(--shadow-3);
}
/* Static distinguishing border, unrelated to hover -- unchanged before
   and after interaction. */
.svc-tier--featured {
  border: 2px solid var(--color-accent);
}

/* Absolutely positioned (doesn't affect flow, so it can't misalign this
   card's content against the non-featured sibling) -- top pulled up to
   var(--gap-xs) so it clears the heading below with room to spare,
   instead of sitting almost flush against it. */
.svc-tier__badge {
  position: absolute;
  top: var(--gap-xs);
  right: var(--space-4);
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--gap-2xs) var(--gap-sm);
  border-radius: var(--radius-full);
}

.svc-tier__name {
  margin: 0;
  font-size: var(--text-h4);
  color: var(--color-ink);
}
.svc-tier__price {
  margin: var(--gap-xs) 0 0;
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
}
.svc-tier__blurb {
  margin: var(--gap-xs) 0 0;
  font-size: var(--text-body);
  line-height: var(--leading-snug);
  color: var(--color-body);
  max-width: none;
}

.svc-tier__features {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.svc-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  font-size: var(--text-small);
  color: var(--color-body);
}
.svc-tier__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-brand);
  margin-top: 2px;
}

.svc-tier .btn {
  margin-top: var(--space-5);
}

.svc-pricing__factors {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.svc-pricing__factors h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h4);
  color: var(--color-ink);
}

.svc-pricing__factor {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
  padding: var(--gap-md) 0;
  border-top: var(--border-hairline) solid var(--color-border-soft);
}
.svc-pricing__factor:first-of-type {
  border-top: none;
  padding-top: 0;
}
.svc-pricing__factor strong {
  font-size: var(--text-body);
  color: var(--color-ink);
}
.svc-pricing__factor span {
  font-size: var(--text-small);
  line-height: var(--leading-snug);
  color: var(--color-body);
}

.svc-pricing__note {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: var(--border-hairline) solid var(--color-border-soft);
  font-size: var(--text-small);
  color: var(--color-muted);
  max-width: none;
}

/* ===== SERVICE WHY (Pass 23, repurposed Pass 24b) =====
   Was a points+review design; now reuses the Signs section's checklist
   + tilted-photo layout instead (client preferred that look), moved
   here after Pricing, with "signs it's time" content replaced by real
   reasons to book. Still the same light-gradient contained-block recipe
   as .cta__block (see global.css) -- gradient stops, glow colors/
   positions/blur, inset/rounded/isolate treatment all unchanged. */

.svc-why {
  padding-top: var(--space-10);
  padding-bottom: 0;
  padding-inline: var(--space-3);
}
@media (max-width: 767px) {
  .svc-why {
    padding-inline: var(--space-2);
  }
}

.svc-why__block {
  position: relative;
  max-width: 1360px;
  margin-inline: auto;
  /* Blue straight into amber (near-complementary hues) reads as a muddy
     gray band where they meet -- an explicit white midpoint keeps both
     tints clean and gives the blend a natural third color instead. */
  background: linear-gradient(135deg, #CCDBEF 0%, #FFFFFF 50%, #FDF0D1 100%);
  border: var(--border-hairline) solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-8) var(--space-6);
}
@media (max-width: 767px) {
  .svc-why__block {
    padding: var(--space-6) var(--space-3);
  }
}

.svc-why__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.svc-why__glow--a {
  width: 500px;
  height: 500px;
  top: -140px;
  left: -100px;
  background: rgba(0, 74, 173, 0.30);
}
.svc-why__glow--b {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: rgba(245, 180, 26, 0.48);
}
@media (max-width: 767px) {
  .svc-why__glow--a {
    width: 320px;
    height: 320px;
  }
  .svc-why__glow--b {
    width: 260px;
    height: 260px;
  }
}

.svc-why__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 1023px) {
  .svc-why__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.svc-why__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* .section-header is global and centers itself (text-align:center,
   margin-inline:auto) -- this modifier flips it to left-aligned for the
   two-column Why layout without touching the shared global rule. */
.section-header--left {
  text-align: left;
  margin-inline: 0;
  align-items: flex-start;
  margin-bottom: 0;
}

.svc-why__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md) var(--space-6);
}
@media (max-width: 767px) {
  .svc-why__checklist {
    grid-template-columns: 1fr;
  }
}
.svc-why__checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  font-size: var(--text-body);
  color: var(--color-ink);
}

/* Small gold rounded-square check -- accent gold fill, ink-dark check
   mark (never body text, per the hard rule on this page: amber is
   background/accent only). */
.svc-why__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
}
.svc-why__check svg {
  width: 14px;
  height: 14px;
}

/* The tilted, white-bordered "photo" card -- a static tilt (no hover
   straighten): --ease-spring is reserved for the notebook's one
   signature moment (see tokens.css) and shouldn't be reused here. */
.svc-why__frame {
  background: var(--color-surface);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-4);
  transform: rotate(3deg);
}

.svc-why__frame img,
.svc-why__placeholder {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.svc-why__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  background: var(--color-surface-soft);
  border: var(--border-hairline) dashed var(--color-border);
  color: var(--color-muted);
}
.svc-why__placeholder svg {
  width: 48px;
  height: 48px;
}
.svc-why__placeholder span {
  font-size: var(--text-small);
  text-align: center;
  padding: 0 var(--space-4);
}

/* ===== SERVICE FAQ (Pass 23) =====
   Native <details>/<summary> -- works with zero JS. Styled so it doesn't
   look like a raw browser default: custom chevron that rotates open,
   hairline dividers, generous padding. */

.svc-faq {
  padding-top: var(--space-10);
  padding-bottom: 0;
}

.svc-faq__list {
  max-width: var(--measure-max);
  margin-inline: auto;
}

.svc-faq__item {
  border-top: var(--border-hairline) solid var(--color-border-soft);
}
.svc-faq__item:last-child {
  border-bottom: var(--border-hairline) solid var(--color-border-soft);
}

.svc-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: var(--space-4) 0;
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}
/* Remove the native marker across browsers (default triangle in Chrome/
   Firefox, ::-webkit-details-marker in Safari/Chrome) -- the custom
   chevron SVG replaces it. */
.svc-faq__item summary::-webkit-details-marker {
  display: none;
}
.svc-faq__item summary::marker {
  content: "";
}

.svc-faq__q {
  flex: 1;
}

.svc-faq__chevron {
  flex-shrink: 0;
  color: var(--color-brand);
  transition: transform var(--dur-base) var(--ease-out);
}
.svc-faq__item[open] .svc-faq__chevron {
  transform: rotate(180deg);
}

.svc-faq__answer {
  padding: 0 0 var(--space-4);
  max-width: var(--measure-max);
}
.svc-faq__answer p {
  margin: 0 0 var(--gap-md);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  max-width: none;
}
.svc-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ===== SERVICE BUNDLE (Pass 23) =====
   .service-card lives only in homepage.css (front-page only), so it's
   not reachable here -- this is a simple LOCAL card built for this
   section rather than a duplicate of that component. Same frosted-glass
   background as .svc-handle__item, but hover stays shadow-only (no
   lift, no border-color shift) -- see the note on .svc-tier. */

.svc-bundle {
  padding-top: var(--space-10);
  padding-bottom: 0;
}

.svc-bundle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}
@media (max-width: 1023px) {
  .svc-bundle__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .svc-bundle__grid {
    grid-template-columns: 1fr;
  }
}

/* Opaque white, not the frosted-glass recipe .svc-handle__item/.svc-tier
   use -- those only ever sit on a plain white .ip-section, but this
   section is .ip-section--soft (light gray). A translucent card blurring
   that gray through itself read as a dingy off-white next to every other
   card on the site, which is solid white (.blog-card, .team-card). Same
   treatment as those instead. */
.svc-bundle__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-bundle__card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
  text-decoration: none;
}
/* Same fix as .svc-handle__item, and for the same reason must come after
   the base rule above -- equal-specificity selector, so an earlier
   position in the file loses to source order regardless of the media
   query. */
@media (max-width: 767px) {
  .svc-bundle__card {
    padding: var(--space-4);
  }
}

.svc-bundle__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-brand-wash);
  color: var(--color-brand);
}
.svc-bundle__icon svg {
  width: 22px;
  height: 22px;
}

.svc-bundle__title {
  margin: var(--space-3) 0 0;
  font-size: var(--text-h4);
  color: var(--color-ink);
}
.svc-bundle__tagline {
  margin: var(--gap-xs) 0 0;
  font-size: var(--text-small);
  line-height: var(--leading-snug);
  color: var(--color-body);
  max-width: none;
}

/* Same fallback as .site-header/.mobile-nav in global.css: browsers with
   no backdrop-filter support get a solid-enough background instead of a
   washed-out translucent card. */
@supports not (backdrop-filter: blur(1px)) {
  .svc-handle__item,
  .svc-tier,
  .svc-approach__media {
    background: var(--glass-bg-strong);
  }
}

/* =====================================================================
   BLOG SYSTEM (Pass 25)
   Ported from a prior project's blog: listing (index.php), archives
   (archive.php), search (search.php), and single post (single.php) with
   its reading-progress bar + auto-generated table of contents. Same
   structure, markup, and behavior throughout -- only colors/spacing were
   translated to this theme's own tokens (mapped by PIXEL VALUE, not by
   token name, since the two projects' scales don't line up 1:1) and the
   placeholder "Independent Spirit" marketing-agency copy was swapped for
   real Home Settings content. The reference's --lh-h3 bug (referenced,
   never defined) isn't carried forward -- blog-card titles use the
   already-correctly-defined --leading-snug instead.
   ===================================================================== */

/* ===== PAGE HERO (blog index / archive / search) =====
   Not given in the source dump beyond a couple of mobile overrides --
   built fresh here to match this site's existing centered section-header
   look (reused, not reinvented) rather than inventing a new visual
   language for one component. */

.page-hero {
  position: relative;
  padding: var(--space-12) 0 0;
  text-align: center;
  overflow: hidden;
  /* Same full-bleed blue/gold wash as .svc-approach (see that comment) --
     reused so the blog hero doesn't read as plain white under the glass
     header. White midpoint between the blue and amber stops avoids the
     muddy gray band a direct blend of those two hues would produce. */
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    #CCDBEF 18%,
    #FFFFFF 50%,
    #FDF0D1 82%,
    var(--color-surface) 100%
  );
}
.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: var(--measure-max);
}
.page-hero--compact {
  padding: var(--space-10) 0 0;
}
/* Bottom padding dropped to 0 for both variants at every width, not just
   mobile -- this hero is a plain centered text block (no photo/badge near
   the edge the way .hero or .svc-hero has), so there's no in-hero reason
   for it to hold its own bottom padding. The section that follows
   (.blog-posts, .cta, .story, etc.) already correctly contributes its own
   80px top padding, so relying on that alone lands every one of these
   seams -- blog index, archive, search, gallery, contact, about -- on the
   same canonical 80px gap instead of doubling up to 144-160px on desktop
   (and instead of --glow and --compact disagreeing with each other, 80px
   vs 64px). */
@media (max-width: 767px) {
  .page-hero {
    padding: var(--space-10) 0 0;
  }
  .page-hero--compact {
    padding: var(--space-6) 0 0;
  }
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}
.page-hero__title {
  margin: 0 0 var(--space-3);
  line-height: var(--leading-tight);
}
.page-hero__lead {
  margin: 0 auto;
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  color: var(--color-muted);
  max-width: 56ch;
}
@media (max-width: 767px) {
  .page-hero__title {
    font-size: var(--text-h1);
  }
  .page-hero__lead {
    font-size: var(--text-body);
  }
}

/* Decorative blurred glow -- same recipe as .cta__glow/.svc-why__glow
   (see global.css), reused rather than inventing a new one. Index-page
   hero only. */
.page-hero--glow::before,
.page-hero--glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.page-hero--glow::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: rgba(0, 74, 173, 0.14);
}
.page-hero--glow::after {
  width: 460px;
  height: 460px;
  top: -180px;
  right: -140px;
  background: rgba(245, 180, 26, 0.14);
}

/* Blog listing/archive/search's only content section -- top+bottom
   padding since it's the last section on the page (no CTA on blog
   pages, matching the reference; see the rhythm note on .ip-section in
   global.css for why this needs an explicit override at all). Same
   situation on the full gallery page (.gallery-page-grid), so it shares
   the rule rather than repeating it. */
.blog-posts,
.gallery-page-grid {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}
@media (max-width: 767px) {
  .blog-posts,
  .gallery-page-grid {
    padding-top: var(--space-6);
  }
}

/* ===== BLOG CARD (shared: listing, archives, search, related posts) ===== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.blog-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
}

.blog-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-brand-wash);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.blog-card__meta {
  font-size: var(--text-small);
  color: var(--color-muted);
}

.blog-card__title {
  margin: 0;
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  line-height: var(--leading-snug);
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.blog-card__title a:hover {
  color: var(--color-brand);
}

.blog-card__excerpt {
  font-size: var(--text-small);
  color: var(--color-body);
  line-height: var(--leading-body);
  flex: 1;
}
.blog-card__excerpt p {
  margin: 0;
  max-width: none;
}

.blog-card__link {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  margin-top: auto;
}
.blog-card__link:hover {
  gap: 8px;
  color: var(--color-brand-hover);
  text-decoration: none;
}

.blog-no-posts {
  text-align: center;
  padding: var(--space-10) 0;
  grid-column: 1 / -1;
}
.blog-no-posts h2 {
  margin: 0;
}
.blog-no-posts p {
  color: var(--color-body);
  margin-top: var(--space-3);
}

/* ===== SEARCH FORM ===== */

.search-form-wrap {
  max-width: 520px;
  margin: 0 auto var(--space-6);
}
.search-form {
  display: flex;
  gap: var(--gap-sm);
}
.search-form__field {
  flex: 1;
  padding: var(--gap-sm) var(--gap-md);
  font-size: var(--text-body);
  color: var(--color-ink);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.search-form__field:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-wash);
}
.search-form__field:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}
.blog-no-posts .search-form-wrap {
  margin-top: var(--space-5);
}

/* ===== PAGINATION ===== */

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}
.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-body);
  border: 1.5px solid var(--color-border);
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-surface);
  text-decoration: none;
}
.pagination-wrap .page-numbers.dots {
  border: none;
  pointer-events: none;
}

/* ===== SINGLE POST: PROGRESS BAR =====
   Tracks .post-layout specifically (content + TOC), not the whole
   document -- see the JS comment in single.php for the exact math. */

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}
.post-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 80ms linear;
}

/* ===== BREADCRUMBS (single post) ===== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  font-size: var(--text-small);
  color: var(--color-muted);
  padding: var(--space-5) 0 0;
}
/* Only used on single.php -- .inner-page-body's own top padding already
   provides the section's clearance (see that rule), so this doesn't
   need its own additional 40px stacked on top at mobile. */
@media (max-width: 767px) {
  .breadcrumbs {
    padding-top: 0;
  }
}
.breadcrumbs a {
  color: var(--color-body);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.breadcrumbs a:hover {
  color: var(--color-brand);
}
.breadcrumbs__sep {
  color: var(--color-border);
}
.breadcrumbs__current {
  color: var(--color-muted);
}

/* ===== POST HEADER ===== */

.post-header {
  padding: var(--space-4) 0 var(--space-6);
  max-width: var(--measure-max);
}
.post-header__eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--dur-base) var(--ease-out);
}
.post-header__eyebrow:hover {
  color: var(--color-brand-hover);
}
.post-header__title {
  margin: 0 0 var(--space-3);
  line-height: var(--leading-tight);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-small);
  color: var(--color-muted);
}
.post-meta__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-meta__author {
  color: var(--color-body);
  font-weight: var(--weight-bold);
}
.post-meta__sep {
  color: var(--color-border);
}

/* ===== FEATURED IMAGE ===== */

.post-featured {
  margin: 0 0 var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-featured img {
  width: 100%;
  height: auto;
  display: block;
}
.post-featured figcaption {
  font-size: var(--text-small);
  color: var(--color-muted);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-soft);
  text-align: center;
}
@media (min-width: 1024px) {
  .post-featured {
    max-width: 900px;
  }
}

/* ===== SHARE ROW ===== */

.post-share {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
  border-top: var(--border-hairline) solid var(--color-border-soft);
  border-bottom: var(--border-hairline) solid var(--color-border-soft);
  margin-bottom: var(--space-5);
}
@media (max-width: 767px) {
  .post-share {
    padding: var(--space-2) 0;
    margin-bottom: var(--space-2);
  }
}
.post-share__label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-muted);
  margin-right: var(--gap-xs);
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-body);
  text-decoration: none;
  background: var(--color-surface);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.post-share__btn:hover {
  border-color: var(--color-brand);
  color: var(--color-ink);
  background: var(--color-brand-wash);
  text-decoration: none;
}

/* ===== TWO-COLUMN LAYOUT (content + TOC) =====
   Breakpoint kept at the reference's own 1080px, not this theme's usual
   767/1023 -- matching the ported behavior exactly rather than forcing
   it onto this site's scale. */

.post-layout {
  display: block;
}
.post-toc {
  display: none;
}

.post-layout:not(.has-toc) .post-layout__main {
  max-width: var(--measure-max);
}

@media (min-width: 1080px) {
  .post-layout.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: var(--space-8);
    align-items: start;
  }
  .post-layout.has-toc .post-toc {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-2));
  }
}

.entry-content h2[id],
.entry-content h3[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-2));
}

/* ===== TABLE OF CONTENTS ===== */

.post-toc__title {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.post-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc__anchor {
  display: block;
  font-size: var(--text-small);
  color: var(--color-body);
  text-decoration: none;
  padding: var(--gap-xs) var(--gap-md);
  border-left: 2px solid var(--color-border-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.post-toc__anchor:hover,
.post-toc__anchor.is-active {
  color: var(--color-ink);
  border-left-color: var(--color-brand);
  background: var(--color-brand-wash);
  text-decoration: none;
}
.post-toc__anchor.is-active {
  font-weight: var(--weight-bold);
}
.post-toc__list li.is-h3 .post-toc__anchor {
  padding-left: var(--space-4);
  font-size: var(--text-micro);
}

/* ===== POST TAGS ===== */

.post-tags {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: var(--border-hairline) solid var(--color-border-soft);
  margin-top: var(--space-6);
}
.post-tags__label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-muted);
}
.post-tags__tag {
  display: inline-block;
  padding: var(--gap-2xs) var(--space-3);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-body);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.post-tags__tag:hover {
  border-color: var(--color-brand);
  color: var(--color-ink);
  text-decoration: none;
}

/* ===== AUTHOR BIO ===== */

.post-author {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-surface-soft);
  border-radius: var(--radius-lg);
  border: var(--border-hairline) solid var(--color-border-soft);
  margin-top: var(--space-5);
  max-width: var(--measure-max);
}
.post-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author__name {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  margin: 0 0 var(--gap-xs);
}
.post-author__bio {
  font-size: var(--text-small);
  color: var(--color-body);
  line-height: var(--leading-body);
  margin: 0;
}

/* ===== RELATED POSTS ===== */

.related-posts {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}
.related-posts-heading {
  margin: 0 0 var(--space-6);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  text-align: center;
}

/* ===== RESPONSIVE: SINGLE POST ===== */

@media (max-width: 767px) {
  .post-header__title {
    font-size: var(--text-h1);
  }
  .post-author {
    flex-direction: column;
  }
}

/* =====================================================================
   ENTRY CONTENT TYPOGRAPHY (single posts) -- generic prose styles for
   whatever the block editor outputs inside .entry-content.
   ===================================================================== */

.inner-page-body {
  padding: var(--space-8) 0;
}
/* This page has no hero, so .site-main's own header-clearance padding
   (80px, unavoidable, every "no-hero" page needs it) is immediately
   followed by this section's OWN 64px top padding, THEN .breadcrumbs'
   own 40px top padding on top of that -- 184px of stacked clearance
   before any breadcrumb text, versus ~112px for the equivalent
   breadcrumb inside .svc-hero on service pages. Trimmed to match. */
@media (max-width: 767px) {
  .inner-page-body {
    padding-top: var(--space-4);
  }
}
.inner-page-body .entry-content {
  max-width: var(--measure-max);
}
.inner-page-body .entry-content h2,
.inner-page-body .entry-content h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.inner-page-body .entry-content p {
  margin-bottom: var(--space-3);
  line-height: var(--leading-body);
  color: var(--color-body);
}
.inner-page-body .entry-content ul,
.inner-page-body .entry-content ol {
  list-style: revert;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}
.inner-page-body .entry-content li {
  margin-bottom: var(--gap-xs);
  color: var(--color-body);
  line-height: var(--leading-body);
}
.inner-page-body .entry-content a:not(.btn):not(.btn-primary):not(.btn-secondary) {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inner-page-body .entry-content a:not(.btn):not(.btn-primary):not(.btn-secondary):hover {
  color: var(--color-brand-hover);
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.entry-content figcaption {
  font-size: var(--text-small);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--gap-xs);
}

/* Block-editor Table block has no borders of its own -- core only adds
   them when the editor's per-cell border controls are used, which this
   content doesn't. */
.entry-content .wp-block-table {
  margin-bottom: var(--space-4);
}
/* Containment lives on the table element itself, not just the
   .wp-block-table wrapper above -- a table pasted or generated as raw
   HTML (no Gutenberg wrapper) got none of that wrapper's overflow
   handling, so a wide table (many columns, longer cell text) overflowed
   .entry-content directly with nothing to catch it, which is what was
   dragging the whole page into horizontal scroll and clipping the
   header. display:block lets overflow-x work reliably on a table
   element across browsers; the row/cell layout inside is unaffected
   since thead/tr/td keep their own table-display values. This is the
   ONE place this rule needs to live for every current and future post. */
.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  padding: var(--gap-xs) var(--space-3);
  border: 1px solid var(--color-border);
  text-align: left;
  color: var(--color-body);
}
.entry-content th {
  font-weight: var(--weight-bold);
  background: var(--color-surface-soft);
}

/* ===== CONTACT PAGE MAP =====
   Everything else on page-contact.php reuses existing components
   (.page-hero, .cta, .svc-approach) -- this frame is the only genuinely
   new CSS the page needs. Same card chrome (radius/border/shadow) as
   everything else, just sized for an embedded iframe. */
.contact-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
}
.contact-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) {
  .contact-map__frame {
    aspect-ratio: 4 / 5;
  }
}

/* ===== ABOUT PAGE: TEAM =====
   Same 3/2/1 responsive breakpoints as .blog-grid/.gallery-grid -- 6
   members reads as 2 rows of 3 on desktop, matching what was asked. Card
   chrome matches .blog-card/.svc-tier (border/shadow/hover-lift); the
   circular photo is the only new shape on the page. */
/* Same rhythm override every other section gets (top padding only) --
   this one was missed, so it kept .ip-section's full top-AND-bottom
   128px/80px default, doubling the gap to the CTA form below it. */
.team-section {
  padding-bottom: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.team-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
}

.team-card__photo,
.team-card__photo-fallback {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card__photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-wash);
  color: var(--color-brand);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
}

.team-card__name {
  margin: var(--space-4) 0 0;
  font-size: var(--text-h4);
  color: var(--color-ink);
}
.team-card__role {
  margin: var(--gap-2xs) 0 0;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
}
