/* ANS phone layout (<=750px). Wix's phone design hid the header and most homepage
   sections (via the --l_display variable, which inner elements inherit); these rules
   bring them back and fit them to a phone screen.
   PC and tablet are untouched: everything here sits inside the phone media query. */
@media screen and (max-width: 750px) {
  #comp-kbgakxea, #comp-mfm4drbk, #comp-mgh7g22m, #comp-mhcwswk5, #comp-mhcyn3ik { --l_display: unset !important; }
  #comp-kbgakxea { display: grid !important; }
  #comp-mfm4drbk, #comp-mhcwswk5 { display: flex !important; }
  #comp-mgh7g22m, #comp-mhcyn3ik { display: grid !important; }

  /* The hidden sections' rows were fixed at 0, so they all stacked at the top of the page. */
  .c1dmp-container { grid-template-rows: none !important; grid-auto-rows: auto !important; }
  #comp-mfm4drbk, #comp-mhcwswk5 { height: auto !important; }

  /* Wix's phone order put the footer above the contact section. */
  #comp-mhcyn3ik { grid-row: 6 !important; }
  #comp-mjqm2gva { grid-row: 7 !important; }

  /* Header: show the whole logo. */
  [id$="_comp-mfm7eog5"] { width: 150px !important; height: 56px !important; margin: 0 0 0 10px !important; align-self: center !important; }
  [id$="_comp-mfm7eog5"] * { width: 100% !important; height: 100% !important; }
  [id$="_comp-mfm7eog5"] img { object-fit: contain !important; object-position: left center !important; }

  /* Hero: text first, picture under it, readable sizes. */
  .comp-mfm4drbk-container { grid-template-rows: auto auto !important; padding-bottom: 24px !important; }
  #comp-mhigi5ev { width: calc(100% - 40px) !important; margin: 32px 20px 0 !important; height: auto !important; }
  #comp-mfm4drbn6 { width: 100% !important; height: auto !important; }
  #comp-mfm4drbp11 { width: 100% !important; height: auto !important; }
  #comp-mfm4drbp11 * { font-size: 15px !important; line-height: 1.45 !important; }
  #comp-mhcuxvlw, #comp-mhcv1pnm, #comp-mhcv1sdy { width: 100% !important; height: auto !important; min-height: 36px !important; }
  #comp-mhcuzhb8, #comp-mhcv1pnr, #comp-mhcv1se13 { width: auto !important; height: auto !important; padding: 0 12px !important; }
  #comp-mhcuzhb8 *, #comp-mhcv1pnr *, #comp-mhcv1se13 * { font-size: 13px !important; line-height: 1.4 !important; }
  #comp-mguc3po0 { grid-row: 2 !important; justify-self: center !important; align-self: start !important; width: 300px !important; height: 195px !important; margin: 16px 0 0 !important; }
  #comp-mguc3po0 img { width: 100% !important; height: 100% !important; object-fit: contain !important; }

  /* How We Work: stop the yellow labels covering the step text, drop the empty space below. */
  #comp-mgh7g22m { height: auto !important; min-height: 0 !important; }
  .comp-mgh7g22m-container { grid-template-rows: auto auto !important; }
  #comp-mgh7g23a { height: auto !important; }
  .comp-mgh7g23a-container { grid-template-rows: auto auto !important; }
  #comp-mgh7g23b5 { height: auto !important; }
  [id^="comp-mgh7g23g4__"], [id^="comp-mgh7g23i2__"] { height: auto !important; }
  [id^="comp-mhcv36dc__"] { margin: 0 0 10px !important; width: 100% !important; height: auto !important; min-height: 30px !important; }
  [id^="comp-mhcvsf09__"] { width: auto !important; height: auto !important; }
  [id^="comp-mhcvsf09__"] * { font-size: 12px !important; line-height: 1.3 !important; }
  [id^="comp-mgh7g23v6__"] { margin: 0 !important; height: auto !important; width: 100% !important; }
  #comp-mgh80nfk { grid-row: 2 !important; align-self: start !important; width: 100% !important; height: auto !important; margin: 8px 0 24px !important; }
  #comp-mgh80nfk * { color: #fff !important; font-size: 11px !important; line-height: 1.4 !important; }

  /* Job categories: two larger cards per row. */
  #comp-mhcwswk5 .comp-mhcwswk5-container { grid-template-rows: auto !important; }
  #comp-mhcxfb9y { width: calc(100% - 32px) !important; height: auto !important; margin: 24px 16px !important; justify-self: center !important; }
  .comp-mhcxfb9y-container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px 12px !important; width: 100% !important; }
  [id^="comp-mhcxfba8__"] { width: auto !important; height: auto !important; grid-template-rows: auto auto auto !important; }
  [id^="comp-mhcxsu4l__"] { grid-row: 1 !important; width: 100% !important; height: 110px !important; margin: 0 !important; }
  [id^="comp-mhcxsu4l__"] img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  [id^="comp-mhcxzss4__"] { grid-row: 2 !important; width: 100% !important; height: auto !important; margin: 6px 0 2px !important; }
  [id^="comp-mhcxzss4__"] * { font-size: 13px !important; line-height: 1.3 !important; }
  [id^="comp-mhcy8fng__"] { grid-row: 3 !important; width: 100% !important; height: auto !important; margin: 0 !important; }
  [id^="comp-mhcy8fng__"] * { font-size: 11px !important; line-height: 1.4 !important; }

  /* Shared footer on inner pages: centre the copyright instead of a narrow right column. */
  [id$="_comp-kd5pdf7t"] { justify-self: center !important; width: calc(100% - 32px) !important; height: auto !important; margin: 16px 0 !important; }
  [id$="_comp-kd5pdf7t"] * { text-align: center !important; }

  /* Blog cards: keep the title inside the card. */
  [data-hook="post-list-pro-gallery-container"] div { max-width: 100% !important; box-sizing: border-box !important; }
  [data-hook="post-list-item__title"], [data-hook="post-title"] { white-space: normal !important; }
  [data-hook="post-list-item__title"], [data-hook="post-list-item__title"] * { font-size: 20px !important; line-height: 1.3 !important; }

  /* Services page: readable sizes, note under the picture instead of on top of it. */
  #comp-mgioi8j8, #comp-mgioyip2, #comp-mgioi8jd, #comp-mgioyipc, #comp-mgioi8jb2, #comp-mgioyiph { height: auto !important; }
  .comp-mgioi8j8-container, .comp-mgioyip2-container, #comp-mgioi8jb2, #comp-mgioyiph, #comp-mgioi8jd, #comp-mgioyipc { grid-template-rows: auto auto !important; }
  #comp-mgioi8jd, #comp-mgioyipc { padding: 24px 20px 8px !important; }
  #comp-mgiok3ez, #comp-mgioyipd3 { grid-row: 1 !important; width: 100% !important; height: auto !important; margin: 0 !important; align-self: start !important; }
  #comp-mgiotaw1, #comp-mgioyipf5 { grid-row: 2 !important; width: 100% !important; height: auto !important; margin: 4px 0 0 !important; align-self: start !important; }
  #comp-mgiok3ez *, #comp-mgioyipd3 * { font-size: 20px !important; line-height: 1.3 !important; }
  #comp-mgiotaw1 *, #comp-mgioyipf5 * { font-size: 13px !important; line-height: 1.4 !important; }
  #comp-mgionwgf, #comp-mgioyipi { width: calc(100% - 40px) !important; height: auto !important; }
  #comp-mgionwgi2, #comp-mgioyipj6 { width: 100% !important; height: auto !important; }
  #comp-mgionwgi2 *, #comp-mgioyipj6 * { font-size: 14px !important; line-height: 1.5 !important; }
  #comp-mgionwgk5, #comp-mgioyipl8 { width: 100% !important; height: 220px !important; margin-top: 12px !important; }
  #comp-mgionwgk5 *, #comp-mgioyipl8 * { width: 100% !important; height: 100% !important; }
  #comp-mgionwgk5 img, #comp-mgioyipl8 img { object-fit: cover !important; }
  #comp-mgiuqrdx { grid-row: 2 !important; justify-self: center !important; align-self: start !important; width: calc(100% - 40px) !important; height: auto !important; margin: 12px 0 24px !important; }
  #comp-mgiuqrdx * { font-size: 12px !important; line-height: 1.4 !important; color: #333 !important; }
  #comp-mgixfgbs { width: 100% !important; height: auto !important; justify-self: center !important; }
  #comp-mgixfgbs * { font-size: 20px !important; line-height: 1.3 !important; text-align: center !important; }

  /* Team page: close the large empty boxes and make the commitment text readable. */
  #comp-mp505637, #comp-mp50563n, #comp-mp50564r { height: auto !important; min-height: 0 !important; }
  .comp-mp505637-container, .comp-mp50563n-container, .comp-mp50564r-container { grid-template-rows: auto !important; grid-auto-rows: auto !important; }
  #comp-mp50563o3 { align-self: start !important; height: auto !important; margin: 0 !important; }
  #comp-mp50564s7 { width: 100% !important; height: auto !important; margin: 0 !important; }
  #comp-mp50564s7 * { font-size: 14px !important; line-height: 1.5 !important; }

  /* Get in Touch: use the full width for the address. */
  #comp-mfqb5g2d4 { margin: 8px 0 12px !important; width: 100% !important; height: auto !important; align-self: center !important; }
}

/* Tablet (751-1000px): Wix showed two menu buttons and let the yellow step labels cover the text. */
@media screen and (min-width: 751px) and (max-width: 1000px) {
  [id$="_comp-mgu0ecaq"] { display: none !important; }
  [id^="comp-mgh7g23g4__"], [id^="comp-mgh7g23i2__"] { height: auto !important; }
  [id^="comp-mhcv36dc__"] { margin: 0 0 10px !important; }
  [id^="comp-mgh7g23v6__"] { margin: 0 !important; height: auto !important; }
}
