/* ==========================================================================
   SPCO — live responsive corrections
   --------------------------------------------------------------------------
   Measured on spco.ca (not the staging build) on 2026-11-20.
   Desktop (>= 1025px) is deliberately left untouched.

   Anything Elementor owns is fixed in Elementor itself, so the client can see
   and edit it there. This file carries only the faults that live in
   third-party markup with no Elementor setting behind them.

   NOTE: spco-responsive.css in this same folder is the OLD staging stylesheet.
   It is not enqueued by anything and does not load. Do not wire it up — it was
   measured against a different build of this site.
   ========================================================================== */

@media (max-width: 767px) {

  /* --- 1. Google Reviews (Trustindex) -------------------------------------
     The widget is built as "ti-col-3" and keeps 3 cards per view at every
     width, so a review card renders 117px wide on a 375px phone. Show one
     card per view below 768px; the carousel itself keeps working. --------- */
  .ti-widget-container.ti-col-3 .ti-review-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* --- 2. Contact form textarea -------------------------------------------
     The Gravity Forms textarea is 14px while the text/email/phone inputs
     beside it are 17px. Any field under 16px makes iOS Safari zoom the page
     in when it is tapped, and it does not zoom back out. ------------------ */
  .gform_wrapper textarea {
    font-size: 17px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  /* --- 3. Service cards: the odd one out ----------------------------------
     The three service cards are set to 50% at tablet, so they run 2 + 1. That
     left the third card hard against the left edge with a card-sized hole
     beside it. Centring the wrapped row fixes it; the first row is exactly
     full width, so justify-content has no free space to act on there and it
     stays put. ----------------------------------------------------------- */
  .elementor-element-fde7eec > .elementor-container {
    justify-content: center;
  }
}
