/* Utilities: last layer, small single-purpose helpers. */

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: var(--line-hair);
    height: var(--line-hair);
    padding: 0;
    margin: calc(-1 * var(--line-hair));
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .center-text { text-align: center; margin-inline: auto; }
  .text-muted { color: var(--color-text-muted); }
  .text-center { text-align: center; }
  .tabular { font-variant-numeric: tabular-nums; }
  .nowrap { white-space: nowrap; }
  .mx-auto { margin-inline: auto; }
  .mt-24 { margin-block-start: var(--space-24); }
  .mt-48 { margin-block-start: var(--space-48); }

  /* Button labels: "Call 909-664-4108" on wider screens, "Call" on phones (PRODUCT_REQUIREMENTS). */
  @media (max-width: 47.99em) { .wide-only { display: none; } }

  /* Reviews flag. Flip data-has-reviews="true" on the reviews section in index.html once
     real, attributed reviews exist (docs/KNOWN_ISSUES.md #1). */
  [data-has-reviews="false"] { display: none !important; }

  /* Reveal-on-scroll. Only active once main.js adds .js-reveal to <html>, so content is
     always visible with JS off. Reduced motion: cross-fade only. */
  .js-reveal [data-reveal] {
    opacity: 0;
    /* translate (not transform) so card hover transforms still work after the reveal */
    translate: 0 var(--rise);
    transition:
      opacity var(--dur-entrance) var(--ease-signature) var(--reveal-delay, 0ms),
      translate var(--dur-entrance) var(--ease-signature) var(--reveal-delay, 0ms);
  }
  .js-reveal [data-reveal].is-visible { opacity: 1; translate: none; }
  @media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] { translate: none; transition: opacity var(--dur-transition) linear; }
  }
}
