/* Sticky action bar (Website Kit component, 2026-11-17). Phone-only bottom bar: Call / Quote / Services / Gallery
   with one sliding highlight pill. No libraries. Knobs = the CSS variables below (set them in the site's palette). */
.sab {
  --sab-bg: #0f1a24;          /* bar ground */
  --sab-fg: #e8eef3;          /* label colour */
  --sab-pill: rgba(255,255,255,.14); /* sliding highlight */
  --sab-call-bg: #1f7a4d;     /* Call button fill */
  --sab-call-fg: #ffffff;
  --sab-quote-bg: #f2b33d;    /* Quote button fill */
  --sab-quote-fg: #1b1206;
  --sab-h: 60px;              /* bar height without the iPhone home-bar inset */
  --sab-ease: cubic-bezier(.22,1,.36,1);
  display: none;
}
@media (max-width: 820px) {
  .sab {
    display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr; gap: 6px; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--sab-bg); color: var(--sab-fg);
    box-shadow: 0 -6px 24px rgba(0,0,0,.18);
    transform: translateZ(0); /* own layer: no jitter while iOS toolbars move */
  }
  html.sab-on body { padding-bottom: calc(var(--sab-h, 60px) + env(safe-area-inset-bottom, 0px)); }
  .sab__item {
    position: relative; z-index: 1; min-height: 48px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font: 600 12px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .01em;
    color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: transform 140ms var(--sab-ease), filter 140ms var(--sab-ease);
  }
  .sab__item svg { width: 20px; height: 20px; flex: none; }
  .sab__item:active { transform: scale(.96); }
  .sab__item:focus-visible { outline: 2px solid var(--sab-quote-bg); outline-offset: 2px; }
  .sab__item--call { background: var(--sab-call-bg); color: var(--sab-call-fg); flex-direction: row; gap: 6px; font-size: 14px; }
  .sab__item--quote { background: var(--sab-quote-bg); color: var(--sab-quote-fg); flex-direction: row; gap: 6px; font-size: 14px; }
  .sab__item[aria-current="true"] { filter: brightness(1.08); }
  .sab__pill {
    position: absolute; z-index: 0; top: 6px; left: 0; height: 48px; width: 0; border-radius: 12px;
    background: var(--sab-pill); opacity: 0; pointer-events: none;
    transform: translateX(var(--sab-x, 0px)); width: var(--sab-w, 0px);
    transition: transform 320ms var(--sab-ease), width 320ms var(--sab-ease), opacity 200ms linear;
  }
  .sab[data-pill="on"] .sab__pill { opacity: 1; }
  /* Over the form (or a focused field on screen): slide away; JS removes the class once you scroll off the form.
     (Was: display:none on any focused field, incl. a :has(input:focus) rule that kept it hidden after scrolling away.) */
  .sab { transition: transform 260ms var(--sab-ease), visibility 0s linear 0s; }
  .sab.sab--hidden { transform: translateY(calc(100% + 12px)); visibility: hidden; pointer-events: none;
    transition: transform 220ms var(--sab-ease), visibility 0s linear 220ms; }
}
@media (prefers-reduced-motion: reduce) {
  .sab, .sab.sab--hidden, .sab__pill, .sab__item { transition: none; }
}

/* AttiCali brand overrides (preview) */
.sab { --sab-bg:#1F3A5F; --sab-fg:#FAFAF7; --sab-pill:rgba(250,250,247,.16);
  --sab-call-bg:#F08A2B; --sab-call-fg:#1F3A5F; --sab-quote-bg:#1E7A46; --sab-quote-fg:#FAFAF7; }
@media (max-width:820px){ .sab__item:focus-visible{outline-color:#3BA9DA} }
@media (max-width:820px){ .sab{grid-template-columns:.8fr 1.55fr .85fr .85fr;gap:5px}
 .sab__item--call,.sab__item--quote{font-size:13px;gap:5px;white-space:nowrap}
 .sab__item{font-size:11.5px} }
