/*
 * espinozachiropractic.com pixel clone -- mobile responsive recovery
 *
 * SCOPE: linked ONLY on the three pages below. The other 36 pages in this
 * clone already carry their own Divi phone layer (verified: about-us/ and
 * reviews_testimonials/ each have 40+ genuine max-width:767/980/479 media
 * blocks) and must NOT get these rules layered on top -- that risks
 * regressing intentional tablet/desktop rows on pages that already render
 * correctly.
 *   - /
 *   - /chiropractor-in-north-austin/
 *   - /chiropractor-in-south-austin/
 *
 * ROOT CAUSE (verified 2026-09-27 via live Invoke-WebRequest + rendered
 * viewport measurement): these three pages were captured as fully-inlined
 * NitroPack variants -- unlike the working pages, they ship with ZERO
 * external stylesheet <link>s and ZERO max-width media queries, so only
 * desktop-only critical CSS loads and every viewport renders the Divi
 * desktop layout (fixed column percentages, always-visible
 * .et_pb_menu__menu, hamburger .et_mobile_nav_menu shipped display:none).
 * The rest of the site does have a phone layer -- an earlier claim that
 * the whole site had "zero max-width media queries anywhere" was false.
 *
 * RULES IN THE 980px BLOCK are HARVESTED VERBATIM from this site's own
 * working pages (about-us/, reviews_testimonials/ inline critical CSS).
 * They are Divi's own generic, class-based core rules (column stacking,
 * row width reset, nav collapse, logo-wrap sizing) -- not page-specific
 * per-module IDs -- so they are safe to reuse here and keep these three
 * pages consistent with how the rest of the site already behaves on phone,
 * instead of inventing new rules.
 *
 * RULES IN THE 767px BLOCK (overflow-x, img/iframe/video/table/svg safety,
 * heading clamps) have NO generic equivalent in the harvested CSS -- the
 * site's own image/heading rules there are all page- or widget-specific
 * (e.g. fixed-pixel review-avatar thumbnails), not a general safety net.
 * Kept as a minimal hand-written supplement for just this gap.
 *
 * A 2018 Divi v3.0.90 core stylesheet was recovered from the Wayback
 * Machine during triage but rejected: zero occurrences of the current
 * v4/v5 BEM nav markup (et_pb_menu__*), so it can't fix the nav.
 *
 * Load this AFTER the inlined NitroPack CSS so it wins the cascade.
 */

@media (max-width: 980px) {
  /* Harvested: Divi core column stacking + row width reset */
  .et_pb_column {
    width: 100%;
    margin-bottom: 30px;
  }

  .et_pb_row {
    padding: 0;
    width: 100%;
  }

  /* Harvested: Divi core nav collapse -- hide inline menu, reveal hamburger */
  .et_pb_menu .et_pb_menu__menu {
    display: none;
  }

  .et_mobile_nav_menu {
    display: block;
    margin-top: -1px;
  }

  .et_pb_menu .et_mobile_nav_menu {
    float: none;
    margin: 0 6px;
    display: flex;
    align-items: center;
  }

  .et_pb_menu__logo-wrap,
  .et_pb_menu_0_tb_header .et_pb_menu__logo-slot {
    max-width: 200px;
  }
}

@media (max-width: 767px) {
  /* Hand-authored supplement -- no generic equivalent found in harvested CSS */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  img,
  video,
  table,
  svg {
    max-width: 100% !important;
    height: auto;
  }

  iframe {
    max-width: 100% !important;
  }

  /* GHL reviews widget (and other Divi blurb-image waypoint icons) were
   * collapsing/staying invisible at phone widths because the generic
   * img/iframe height:auto rule above used to also match iframes,
   * clobbering their JS-managed height (e.g. the GHL reviews iframe
   * posts its real height via postMessage and relies on its own
   * inline height attribute, not CSS auto). Scoped iframe rule above
   * no longer forces height, and the et-waypoint scroll-in animation
   * is disabled here so it can't get stuck at opacity:0 on phone. */
  .et_pb_main_blurb_image img.et-waypoint {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 26px !important;
  }

  h3 {
    font-size: 22px !important;
  }

  /* Harvested: Divi core logo-wrap sizing at phone width */
  .et_pb_menu__logo-wrap,
  .et_pb_menu_0_tb_header .et_pb_menu__logo-slot {
    width: 150px;
    max-width: 150px;
  }
}
