/* BizzBoost base.css. Function only. It sets no colors, fonts, spacing scale or look.
   Load it before the site's own style.css. Every site styles on top of this.
   Keep it small. Design choices belong in style.css, guided by the frontend-design skill. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; overflow-wrap: break-word; }

/* screen-reader-only text, and the skip link that shows on focus */
.visually-hidden:not(:focus):not(:active) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 1000; }
.skip-link:focus { top: 0.5rem; }

/* a visible keyboard focus everywhere. Restyle it per site, never remove it */
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* touch targets: 44px for the main actions, never under 24px (WCAG 2.2) */
button, [role="button"], input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

/* scroll reveal: content is visible without JavaScript and with reduced motion */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { opacity: 1; }

/* quote wizard: layout minimum only */
.wz { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem; }
.wz__backdrop { position: absolute; inset: 0; }
.wz__dialog { position: relative; width: min(100%, 36rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.wz__close { position: absolute; top: 0.5rem; right: 0.5rem; min-width: 44px; min-height: 44px; }
.wz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz__input { width: 100%; min-height: 44px; }
.wz__btn { min-height: 44px; }
.wz__option label { display: block; min-height: 44px; }
.wz__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* consent banner: layout minimum only. It must not cover the page (Google Ads policy) */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; max-height: 40vh; overflow-y: auto; }
.cc__btn { min-height: 44px; min-width: 44px; }

/* motion off for people who ask for that */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; }
}
