/* ==========================================================================
   TELESCOPE MAPPING - MODERN FSE THEME STYLES
   Component-Based Architecture, Light Base with Dark Accent Bands
   ========================================================================== */

/* Google Fonts are enqueued in functions.php (telescope_agency_assets) as a
   proper wp_enqueue_style, not @import'd here - @import blocks the render
   and this was a leftover duplicate of the old Space Grotesk/Plus Jakarta
   Sans/Fraunces load. */

/* Component stylesheets are enqueued individually in functions.php
   (telescope_component_styles) so they download in parallel. Add a new
   component there, not here - and in add_editor_style if the editor needs it. */

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

* {
  box-sizing: border-box;
}

/* Explicit rather than relying on WordPress's auto-generated
   global-styles-inline-css (which normally zeroes out the browser's
   default UA margin) - that stylesheet has been intermittently missing on
   staging (see header.css), leaving the default 8px body margin visible
   as a gap around the fixed header and page edges. */
html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 2rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--color-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

/* Subtle grain texture for a tactile, less "flat" feel across the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Constellation dot accent - reuses the hero's starfield language for a
   brand-tied decorative layer on plainer light sections */
.constellation-accent {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(
      circle,
      rgba(var(--color-accent-orange-rgb), 0.35) 0%,
      rgba(var(--color-accent-orange-rgb), 0.35) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.1) 1.5px,
      transparent 1.5px
    ),
    radial-gradient(
      circle,
      rgba(var(--color-accent-yellow-rgb), 0.3) 0%,
      rgba(var(--color-accent-yellow-rgb), 0.3) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px
    );
  background-size:
    900px 900px,
    650px 650px,
    1100px 1100px,
    500px 500px,
    700px 700px;
  background-position:
    88% 12%,
    8% 78%,
    96% 88%,
    18% 20%,
    55% 45%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

/* Tighter tracking + leading on display-scale headings */
h1,
h2 {
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-display);
}

h3 {
  letter-spacing: var(--tracking-snug);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-text-hover);
}

/* ==========================================================================
   WORDPRESS-SPECIFIC OVERRIDES
   ========================================================================== */

/* Main Block Start Override */
main.site-main {
  margin-block-start: 0;
}
/* Section Spacing */
.wp-block-group[class*='section'] {
  padding: var(--space-3xl) var(--space-md);
}

/* Post Meta */
.wp-block-post-date,
.wp-block-post-author {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Featured Image */
.wp-block-post-featured-image {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Separator */
.wp-block-separator {
  border-color: var(--color-border);
  opacity: 0.3;
}

/* Post Terms */
.wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.wp-block-post-terms a {
  padding: 0.25rem 0.75rem;
  background: var(--color-surface);
  border-radius: 9999px;
  font-size: var(--font-size-xs);
  color: var(--color-accent-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wp-block-post-terms a:hover {
  background: var(--color-accent-orange);
  color: var(--color-on-accent);
}

/* Query Loop */
.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
}

.wp-block-post-template > li {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.3s ease;
}

.wp-block-post-template > li:hover {
  transform: translateY(-4px);
}

/* Pagination */
.wp-block-query-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.wp-block-query-pagination a,
.wp-block-query-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.wp-block-query-pagination a:hover {
  background: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  color: var(--color-on-accent);
}

.wp-block-query-pagination a:focus-visible {
  outline: 2px solid var(--color-accent-orange);
  outline-offset: 2px;
}

.wp-block-query-pagination-numbers span[aria-current='page'] {
  background: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  color: var(--color-on-accent);
}

/* ==========================================================================
   UTILITIES & HELPERS
   ========================================================================== */

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

.container-custom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
}

/* Section titles - solid ink, left-aligned by default, no gradient-clip and no
   decorative glyph. Premium headings are confident and high-contrast; the
   accent shows up in the eyebrow rule and (sparingly) a single emphasised
   word, not the whole heading. */
.section-title {
  text-align: left;
  font-size: var(--font-size-5xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-display);
  color: var(--color-text-primary);
  max-width: 22ch;
  margin: 0 0 var(--space-lg);
}

/* One emphasised word inside a title, set in the editorial serif */
.section-title em,
.section-title .accent-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent-display);
}

/* Opt back into centered layout for the few sections that want it */
.section-title.has-text-align-center,
.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Quiet small-caps label above a section title, led by a short accent rule
   instead of shouting in full orange */
.section-eyebrow,
.steps-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-md);
}

.section-eyebrow::before,
.steps-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  flex: none;
  background: var(--color-accent-orange);
}

.section-eyebrow.has-text-align-center,
.steps-eyebrow.has-text-align-center {
  justify-content: center;
}

/* Two-column section header: title left, intro + optional link right. Gives
   section intros a rhythm other than "centered stack" every time. */
/* The catch-all `.wp-block-group[class*='section']` rule above also matches
   "section-head" and would add full section padding around every header, so
   the equal-specificity override below keeps headers tight and consistent. */
.wp-block-group.section-head {
  padding: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-head-intro {
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 782px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
  }
}

.contact-address {
  font-style: normal;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0;
}

.contact-address strong {
  color: var(--color-text-primary);
}

/* Generic accent arrow-link - "Learn more", "See the process", card CTAs.
   Reused anywhere a text link needs the site's link treatment without a
   full button. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition:
    gap var(--transition-base),
    color var(--transition-base);
}

.link-arrow::after {
  content: '\2192';
}

/* Compact text links get a 44px touch target on touch-sized viewports
   without changing the layout (padding offset by negative margin) */
@media (max-width: 1024px) {
  .link-arrow,
  .review-link a,
  .wp-block-post-terms a,
  .blog-post-card .post-excerpt a {
    padding-block: 11px;
    margin-block: -11px;
  }
}

.link-arrow:hover {
  gap: var(--space-sm);
  color: var(--color-accent-text-hover);
}

/* Simple responsive card grid - solution/audit listings, feature summaries.
   Distinct from .bento-grid (which is deliberately asymmetric): every card
   here is the same size. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.card-grid-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  /* Green at rest, orange on hover (see the shared hover rule below) */
  border: 1px solid var(--color-brand-green);
  background: var(--color-surface);
}

/* Optional photo slot at the top of a card - used by the [team_grid]
   shortcode (functions.php), which renders each team_member CPT post's
   featured image here. */
.card-grid-photo {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-md);
}

.card-grid-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.card-grid-item :is(h2, h3) {
  margin: 0 0 var(--space-sm);
  font-size: var(--font-size-xl);
}

.card-grid-item p {
  color: var(--color-text-secondary);
}

.card-grid-item .link-arrow {
  margin-top: var(--space-md);
}

/* Team cards: wpautop wraps the role label in its own <p>, so letting the
   paragraphs share the spare height keeps the bios starting at about the
   same height across a row when roles wrap to different line counts */
.card-grid-item:has(.card-grid-photo) p {
  flex-grow: 1;
}

.card-grid-eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-text);
  margin-bottom: var(--space-sm);
}

/* FAQ accordion - built on the native <details>/<summary> elements so it
   works with zero JS. Used on the FAQ page and any page-level FAQ section. */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  color: var(--color-text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent-display);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item > :not(summary),
.faq-item-answer {
  margin: 0;
  padding: 0 var(--space-xl) var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-item > :last-child {
  padding-bottom: var(--space-lg);
}

/* Items are Details blocks inside a Group: the group's flex gap spaces them,
   so cancel the block-gap margins WordPress adds between flow-layout children */
.faq-list > * {
  margin-block: 0;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   UNIFIED CARD INTERACTION
   One calm hover for every card surface on the page: a small lift, a soft
   diffuse shadow and a border that picks up a hint of the accent. Replaces
   the assortment of -4px/-6px lifts and orange glow shadows that made every
   section feel like the same bouncy component.
   ========================================================================== */

.bento-item,
.step-card,
.testimonial-card,
.blog-post-card,
.stack-card,
.logo-item,
.card-grid-item {
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.bento-item:hover,
.step-card:hover,
.testimonial-card:hover,
.blog-post-card:hover,
.logo-item:hover,
.card-grid-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--color-accent-orange-rgb), 0.35);
  box-shadow: var(--shadow-md);
}

.card-grid-item:hover {
  border-color: var(--color-accent-orange);
}

/* Sticky service cards move under scroll already - don't also translate them
   on hover, just shift the border/shadow */
.stack-card:hover {
  border-color: rgba(var(--color-accent-orange-rgb), 0.35);
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .bento-item:hover,
  .step-card:hover,
  .testimonial-card:hover,
  .blog-post-card:hover,
  .logo-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-lg,
  .bento-md,
  .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .stack-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-lg);
    padding: var(--space-xl);
  }

  /* Grid items default to min-width:auto, so a long ghost label ("CONTENT")
     used to stretch the single column past the viewport and drag the whole
     page (and the fixed header) wider than the screen on phones */
  .stack-card > * {
    min-width: 0;
  }

  .card-right {
    height: 150px;
    font-size: clamp(2rem, 11vw, 3rem);
    overflow: hidden;
  }

  .glassmorphic-nav {
    padding: var(--space-md) var(--space-lg);
  }
}

@media (max-width: 640px) {
  .footer-columns {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-section h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-item.bento-lg,
  .bento-item.bento-md,
  .bento-item.bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .stack-card {
    flex-direction: column;
    padding: var(--space-lg);
  }

  .stack-card .card-right {
    font-size: clamp(2rem, 11vw, 4rem);
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .wp-block-button {
    display: none;
  }
}

/* Audit sections on /auditing-services/ (jump-link targets) */
.tab-section {
  scroll-margin-top: calc(var(--navbar-height) + 2rem);
}

.audit-covers-title {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg, 1.25rem);
}

/* Short centered statement section under a page hero */
.intro-statement {
  text-align: center;
}

.intro-statement .section-head-intro {
  max-width: 48rem;
  margin-inline: auto;
}

.intro-statement .section-head-intro + .section-head-intro,
.intro-statement .section-head-intro + p {
  margin-top: var(--space-md);
}

/* Short bolded points beside a two-column intro */
.points-list {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.points-list li {
  padding: var(--space-lg);
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
}

.points-list strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

/* Whole card acts as the jump link */
.card-grid-item.is-jump {
  position: relative;
}

.card-grid-item.is-jump .link-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
}

.scale-footnote {
  margin-top: var(--space-xl);
  color: var(--color-text-secondary);
}

/* Flip cards: branding "where customers see you" and hosting "what's
   included". Hover, keyboard focus, or tap flips; reduced-motion users get
   an instant swap. Colors come from the surrounding band, so they work on
   light and dark sections alike. */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.flip-card {
  perspective: 1000px;
  min-height: 240px;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.flip-card:focus-visible {
  outline: 2px solid var(--color-accent-orange);
  outline-offset: 3px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-brand-green);
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  align-items: center;
  text-align: center;
}

.flip-card-front h3 {
  margin: 0;
  font-size: var(--font-size-xl);
}

.flip-grid > *,
.flip-card-inner > *,
.flip-card-face > * {
  margin-block: 0;
}

.flip-card-hint {
  margin-top: var(--space-sm);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-text);
}

.flip-card-back {
  transform: rotateY(180deg);
  border-color: var(--color-accent-orange);
  background: var(--color-surface-elevated, var(--color-surface));
}

.flip-card-back p {
  margin: 0;
  color: var(--color-text-secondary);
}

.flip-card-back ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.flip-card-back .flip-card-lede {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
}

/* Six feature cards in a 3x2 grid */
.grid-3x2 .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3x2 .card-grid {
    grid-template-columns: 1fr;
  }
}

.location-map {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
  color: var(--color-text-secondary);
}

.intro-statement .section-title {
  text-align: center;
}

/* Two- and three-up card grids that keep their column count on desktop */
.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

.card-grid-item ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
}

/* Lists with an orange check instead of a bullet */
.check-bullets {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  gap: var(--space-sm);
}

.check-bullets li {
  position: relative;
  padding-left: 1.6rem;
}

.check-bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-brand-green);
}

/* Audits stack inside one section, so the section supplies the outer
   padding; nothing extra is needed per audit */
.wp-block-group.tab-section:not(.container-custom) {
  padding-block: 0;
}

.tab-section + .tab-section {
  margin-top: var(--space-3xl);
}

/* ==========================================================================
   JUMP-TO SELECTOR (auditing page)
   A segmented control: a visible bordered track of anchor links, with an
   orange pill that slides behind the audit in view (positioned by
   section-tabs.js).
   ========================================================================== */

.tab-hint {
  margin: var(--space-xl) 0 var(--space-sm);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.section-tablist {
  display: flex;
  position: relative;
  flex-wrap: nowrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-xl);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.section-tablist::-webkit-scrollbar {
  display: none;
}

.section-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-secondary);
  background: none;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.section-tab:hover:not([aria-current='true']) {
  color: var(--color-text-primary);
  background: rgba(var(--color-accent-orange-rgb), 0.14);
}

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

.section-tab[aria-current='true'] {
  color: var(--color-on-accent);
}

/* Sliding pill - positioned by section-tabs.js */
.section-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  background: var(--color-accent-orange);
  border-radius: var(--radius-full);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .section-tab-indicator {
    transition: none;
  }
}

@media (max-width: 700px) {
  .section-tab {
    padding-inline: var(--space-md);
  }
}

/* Maintenance & Security: two list panels. Panels and items are plain Group
   blocks (editable/addable in the Site Editor); the old ul/li markup is gone. */
.feature-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-panel {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-brand-green);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.feature-panel:hover {
  border-color: var(--color-accent-orange);
  box-shadow: var(--shadow-md);
}

.feature-panel-label {
  margin: 0 0 var(--space-lg);
}

.feature-panels > *,
.feature-panel-items > * {
  margin-block: 0;
}

.feature-panel-items {
  display: grid;
  gap: var(--space-md);
}

.feature-panel-item {
  position: relative;
  padding-left: 1.75rem;
}

.feature-panel-item::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-brand-green);
}

.feature-panel h3 {
  margin: 0;
  font-size: var(--font-size-lg, 1.2rem);
}

.feature-panel p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

@media (max-width: 700px) {
  .feature-panels {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.price-card {
  position: relative;
}

.price-badge {
  position: absolute;
  top: -0.8rem;
  right: var(--space-lg);
  padding: 4px var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-accent);
  background: var(--color-accent-orange);
  border-radius: var(--radius-full);
}

.price-blurb {
  margin: 0 0 var(--space-md);
  font-style: italic;
}

.price {
  margin: 0 0 var(--space-md);
  color: var(--color-text-secondary);
}

.price strong {
  font-family: var(--font-accent);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-accent-display);
}

/* Data components: the editable logo sits in the grid as its own tile */
.card-grid-item.logo-tile {
  align-items: center;
  justify-content: center;
  background: transparent;
  border-style: dashed;
}

.logo-tile .wp-block-image {
  margin: 0;
  width: 100%;
  max-width: 160px;
}

.logo-tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Branding: palette swatches under the intro */
.swatch-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.swatch {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.swatch-orange { background: var(--color-accent-orange); }
.swatch-yellow { background: var(--color-accent-yellow); }
.swatch-green { background: var(--color-brand-green); }
.swatch-blue { background: var(--color-brand-blue); }
.swatch-ink { background: var(--wp--custom--color--dark-base); }

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Cards inside a centered statement section keep left-aligned text */
.intro-statement .card-grid {
  margin-top: var(--space-xl);
  text-align: left;
}

.price-card p {
  flex-grow: 0;
}

/* Branding: the dark "in the wild" band needs its own vertical rhythm */
.flip-section {
  padding: var(--section-padding) 0;
}

/* Card link rows stay pinned to the bottom edge without stretching */
.card-grid-item p:has(> .link-arrow) {
  flex-grow: 0;
  margin-top: auto;
  padding-top: var(--space-md);
}
.card-grid-item p:has(> .link-arrow) .link-arrow {
  margin-top: 0;
}

/* Stack-card copy: breathing room between the tagline and the "You get" detail */
.stack-card .card-left p + p {
  margin-top: var(--space-sm);
}

/* Green interaction details: text selection and form-field focus */
::selection {
  background: rgba(var(--color-brand-green-rgb), 0.28);
}

input:not([type='submit']):not([type='hidden']):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(var(--color-brand-green-rgb), 0.25);
}

/* Testimonial cards and short-point boxes: a thin green spine */
.testimonial-card,
.points-list li {
  border-left: 3px solid var(--color-brand-green);
}

/* Dark bands: a faint green glow to balance the orange */
.page-header.dark-band,
.hero-section.dark-band,
.proof-band.dark-band,
.flip-section.dark-band {
  background-image: radial-gradient(
    ellipse 60% 90% at 88% 0%,
    rgba(var(--color-brand-green-rgb), 0.28),
    transparent 70%
  );
}

/* Contact page: columns start at the same top edge (map left, form right) */
.contact-split .two-column-content {
  align-items: start;
}

/* Contact page: Google Maps locator embed, between the address line and the LinkedIn link */
.contact-map-frame {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 440px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
