/* HotFix Pro mobile/tablet sticky conversion bar — Part 9 */
:root {
  --sticky-cta-height: 84px;
  --sticky-cta-z-index: 950;
}

.sticky-cta {
  display: none;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .sticky-cta {
    position: fixed;
    z-index: var(--sticky-cta-z-index);
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid rgba(8, 43, 80, .12);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 30px rgba(8, 43, 80, .12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 115%, 0);
    transition: opacity .22s ease, transform .28s cubic-bezier(.2, .7, .2, 1), visibility .22s ease;
    will-change: transform;
  }

  .sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .sticky-cta__button {
    display: inline-flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(.86rem, 2.2vw, .98rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }

  .sticky-cta__button:hover {
    transform: translateY(-1px);
  }

  .sticky-cta__button:focus-visible {
    outline: 3px solid rgba(255, 101, 0, .48);
    outline-offset: 3px;
  }

  .sticky-cta__button--call {
    background: #ff6500;
    box-shadow: 0 5px 14px rgba(255, 101, 0, .2);
  }

  .sticky-cta__button--call:hover {
    background: #e85600;
  }

  .sticky-cta__button--quote {
    background: #082b50;
    box-shadow: 0 5px 14px rgba(8, 43, 80, .16);
  }

  .sticky-cta__button--quote:hover {
    background: #061c35;
  }

  .sticky-cta__icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }

  /* Reserve space only while the bar is visible, so page content and the footer
     can be reached without being obscured by the fixed controls. */
  body.sticky-cta-visible {
    padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom, 0px));
  }

  /* The mobile navigation drawer must remain above the bar. Hide the bar while
     the drawer is open so it never covers navigation items. */
  body.menu-open .sticky-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 115%, 0);
  }

  body.menu-open.sticky-cta-visible {
    padding-bottom: 0;
  }
}

@media (max-width: 380px) {
  .sticky-cta {
    gap: 8px;
    padding-inline: 10px;
  }
  .sticky-cta__button {
    min-height: 50px;
    gap: 7px;
    padding-inline: 8px;
    font-size: .84rem;
  }
  .sticky-cta__icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta__button {
    transition-duration: .01ms;
  }
}
