/* ======================================================================
   RESPONSIVE FINAL FIX V4
   Requested fixes:
   - Remove mobile right-side blank space / horizontal canvas mismatch.
   - Mobile: larger top phone number and larger logo with less white space.
   - Mobile: restore centered floating/sticky phone CTA.
   - Desktop: remove the floating bottom phone CTA completely.
   - Keep desktop layout otherwise unchanged.
   ====================================================================== */

/* The desktop header additions stay as designed; only the old lower-left
   floating phone pill is removed on desktop. */
@media (min-width: 768px) {
  .floating-call,
  a.floating-call {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  /* ------------------------------------------------------------
     MOBILE CANVAS / RIGHT-SPACE FIX
     Force every top-level page region to the real device viewport.
     ------------------------------------------------------------ */
  html {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  .site-header,
  #home,
  main,
  main > section,
  .hero-section,
  #heroSlider,
  #heroSlider .carousel-inner,
  .site-footer {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl,
  .site-header .container-xl,
  .site-footer .container-xl {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  img,
  picture,
  video,
  iframe {
    max-width: 100% !important;
  }

  /* Prevent wide flex/grid children from forcing the mobile page wider. */
  main *,
  .site-footer * {
    min-width: 0;
  }

  /* ------------------------------------------------------------
     MOBILE TOP PHONE STRIP
     Bigger and clearer while staying compact.
     ------------------------------------------------------------ */
  .mobile-call-strip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ef233c !important;
    overflow: hidden !important;
  }

  .mobile-call-strip a,
  .mobile-call-strip a.pn-call {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .mobile-call-strip a i,
  .mobile-call-strip i {
    color: #fff !important;
    font-size: 15px !important;
  }

  /* ------------------------------------------------------------
     MOBILE LOGO
     The mobile source is a tightly-cropped transparent WebP, so the
     visible logo can be larger without creating a tall white header.
     ------------------------------------------------------------ */
  .site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    min-height: 92px !important;
    height: 92px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow: hidden !important;
  }

  .site-header .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    height: 92px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .site-header .brand-picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 218px !important;
    max-width: 72vw !important;
    height: 88px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .site-header .brand-picture img,
  .site-header .brand img {
    display: block !important;
    width: 218px !important;
    max-width: 72vw !important;
    height: auto !important;
    max-height: 88px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }

  /* ------------------------------------------------------------
     MOBILE FLOATING / STICKY PHONE CTA
     Centered, compact, and only enabled on mobile. JavaScript adds
     .is-cta-overlap when it would cover the hero's own Call Now button.
     ------------------------------------------------------------ */
  .floating-call,
  a.floating-call {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    z-index: 9998 !important;
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: max-content !important;
    min-width: 252px !important;
    max-width: calc(100vw - 28px) !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 20px 0 7px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ef233c !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(239,35,60,.34) !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: opacity .2s ease, transform .2s ease !important;
    animation: pulse 2s infinite !important;
  }

  .floating-call .phone-circle {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
    font-size: 20px !important;
  }

  .floating-call.is-cta-overlap {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, 12px) !important;
  }

  /* Give the bottom of the dark footer a safe area behind the fixed pill. */
  .site-footer {
    padding-bottom: 80px !important;
  }

  /* The hero remains full width after the canvas correction. */
  #heroSlider .carousel-item.hero-slide,
  #heroSlider .hero-content,
  #heroSlider .hero-bg-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  .mobile-call-strip a,
  .mobile-call-strip a.pn-call {
    font-size: 16px !important;
  }

  .site-header .brand-picture,
  .site-header .brand-picture img,
  .site-header .brand img {
    width: 170px !important;
  }

  .floating-call,
  a.floating-call {
    min-width: 238px !important;
    max-width: calc(100vw - 22px) !important;
    font-size: 16px !important;
  }
}
