/*
 * Mobile fixes raised by paid media (Nov 2026). Loaded last so it wins over
 * the C5 theme sheets. Only applies below 992px, where the mobile header shows.
 */
@media only screen and (max-width: 991px) {
  /* Keep the logo, phone, text and menu icons on screen while scrolling, so
     visitors can always call. html/body have overflow-x: hidden (globals.css),
     which stops position: sticky working, so the bar is fixed and
     #responsive_header keeps its space in the page. */
  #responsive_header {
    height: 88px;
  }
  #responsive_header .responsive_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  #responsive_header .responsive_header .mid {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #responsive_header .responsive_header .m_logo img {
    max-height: 76px;
    width: auto;
  }

  /* The menu opens under the fixed bar wherever the visitor has scrolled to,
     and scrolls on its own if it's taller than the screen. */
  #sidebar.in,
  #sidebar.collapsing {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background-color: #fff;
    z-index: 1039;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  }

  /* Links to a section (e.g. #invisalign-aligners) stop below the fixed bar
     instead of under it. */
  html {
    scroll-padding-top: 100px;
  }

  /* "Request an appointment" sat behind sections that set their own z-index
     (hero watermark, sliders). Keep it above page content but below the
     cookie banner (99998+) and the Bonded booking widget. */
  .mobile_btn .btn {
    z-index: 1030;
  }

  /* Homepage hero: the intro text sits over the family photo on mobile and
     the dark text was hard to read. A soft white panel behind it fixes the
     contrast without changing the photo. */
  .home-hero .cnt .hero-caption .txt p {
    background-color: rgba(255, 255, 255, 0.86);
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
}
