/* Homepage mobile refinements — v0.3.04 */

/* Success Stories heading: smaller on tablet and mobile-desktop widths. */
@media (min-width: 681px) and (max-width: 1080px) {
  .sds-home-success-preview .sds-home-section-header h2 {
    font-size: clamp(28px, 3.4vw, 34px);
    line-height: 1.14;
  }
}

/* True mobile only. */
@media (max-width: 680px) {
  /* Keep all three trust items in one horizontal row. */
  .sds-home-trust-strip__inner {
    width: min(100% - 20px, 1220px);
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .sds-home-trust-item,
  .sds-home-trust-item:first-child,
  .sds-home-trust-item:nth-child(4) {
    min-width: 0;
    min-height: 112px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 7px;
    padding: 11px 5px;
    border-right: 1px solid #dce7ef;
    border-bottom: 0;
    text-align: center;
  }

  .sds-home-trust-item:last-child {
    border-right: 0;
  }

  .sds-home-trust-item__icon,
  .sds-home-trust-item:nth-child(even) .sds-home-trust-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .sds-home-trust-item__icon svg {
    width: 16px;
    height: 16px;
  }

  .sds-home-trust-item > span:last-child {
    min-width: 0;
  }

  .sds-home-trust-item strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .sds-home-trust-item small {
    margin-top: 3px;
    font-size: 8.5px;
    line-height: 1.28;
  }

  /* Make both hero booking fields equal full width. */
  .sds-hero-booking__fields,
  .sds-hero-booking__fields--compact {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .sds-hero-booking__fields label,
  .sds-hero-booking__fields label:first-child {
    width: 100% !important;
    grid-column: auto !important;
  }

  .sds-hero-booking input,
  .sds-hero-booking select {
    width: 100% !important;
  }

  /* Move rating and reassurance points above the hero buttons. */
  .sds-hero__content-inner {
    display: flex;
    flex-direction: column;
  }

  .sds-hero__eyebrow {
    order: 1;
  }

  .sds-hero__title {
    order: 2;
  }

  .sds-hero__description {
    order: 3;
  }

  .sds-hero__review-sources {
    order: 4;
    margin-top: 20px !important;
  }

  .sds-hero__reassurance {
    order: 5;
    margin-top: 14px !important;
  }

  .sds-hero__actions {
    order: 6;
    margin-top: 20px !important;
  }

  /* Success Stories heading: compact on true mobile. */
  .sds-home-success-preview .sds-home-section-header h2 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.16;
    letter-spacing: -.025em;
  }
}
