/* =============================================================================
   First Element — homepage Testimonials spacing (phone only).
   STAGED 28 Nov 2026, Australia/Melbourne. PREVIEW / STAGE ONLY.

   The theme inits `.js-slider-testimonial` with Slick and leaves
   adaptiveHeight off (the default). Slick then locks `.slick-list` to the
   tallest testimonial's height (Georgina B, 383px at a 390-wide viewport)
   for every slide, so a swipe does not collapse the container. There is
   no extra min-height and none of the 12 slides has an image; the dark
   gap under shorter quotes is empty equalised space, plus a fixed 75px
   reserved under the track for the 1/12 counter and arrows:

     .custom-paging, .custom-arrows { position: absolute; bottom: -75px; }

   This CSS, with fe-testimonials-mobile.js, is the staged fix:
     1. JS turns adaptiveHeight on, so the list height follows the active
        slide (a swipe or arrow changes the container height).
     2. The list height eases over 0.35s so the counter and arrows do not
        jump harshly.
     3. The reserved strip is tightened (75px → 44px) so that, on the
        tallest testimonial, the counter sits about 44–48px below Enquire.

   Enqueue on the homepage only, after the theme bundle CSS and JS.
   Do not add this to Customizer Additional CSS / post 1989.
   Desktop and tablet are unchanged.
   ============================================================================= */

@media (max-width: 767px), screen and (max-width: 812px) and (orientation: landscape) {
  /* adaptiveHeight sets an explicit height on .slick-list, but the theme
     uses overflow: visible, so the (still-tall) .slick-track keeps
     stretching .slide__testimonial — and the absolutely positioned 1/12
     counter stays at the bottom of that tall box. Hide the overflow so
     the box, and the counter, follow the active slide. */
  .slide__testimonial .slick-list {
    overflow: hidden;
    -webkit-transition: height 0.35s ease;
    -o-transition: height 0.35s ease;
    transition: height 0.35s ease;
  }

  /* 75px → 44px. On the tallest slide the measured Enquire→counter gap
     drops from 78px to ~47px. */
  .slide__testimonial .custom-paging,
  .slide__testimonial .custom-arrows {
    bottom: -44px;
  }

  /* The 50px row margin was sized to clear the 75px offset. With a 44px
     offset, a tighter margin plus a slightly smaller section padding
     keeps the counter clear of the next section. */
  section.section-testimonial .shell > .row {
    margin-bottom: 28px;
  }

  .section-testimonial.is-dark {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide__testimonial .slick-list {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}
