/* ==========================================================================
   Mobile Trust Boxes - Figma: 359x129
   Responsive for all mobile screens including iPhone SE (320px)
   ========================================================================== */

/* Hidden by default - shown only on mobile via media query */
.mobile-trust {
  display: none;
}

@media (max-width: 480px) {
  /* Container: responsive width */
  .mobile-trust {
    display: block;
    width: 100%;
    max-width: 359px;
    height: auto;
    min-height: 129px;
    margin: 20px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Row containing Box 1 + Box 2 */
  .mobile-trust__row {
    display: flex;
    gap: 2%;
    width: 100%;
  }

  /* ==========================================================================
     Box 1: Clients - flexible width
     ========================================================================== */
  .mobile-trust__clients {
    width: 49%;
    height: 51px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
  }

  /* Client logos */
  .mobile-trust__clients-logos {
    position: absolute;
    left: 4%;
    top: 16px;
    display: flex;
  }

  .mobile-trust__clients-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-left: -10px;
    object-fit: cover;
  }

  .mobile-trust__clients-logo:first-child {
    margin-left: 0;
  }

  /* Client info */
  .mobile-trust__clients-info {
    position: absolute;
    right: 8%;
    top: 9px;
  }

  /* "150+" */
  .mobile-trust__clients-count {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 4.5vw, 18px);
    font-weight: 600;
    line-height: 1;
    color: #4DAAA7;
  }

  /* "Trusted Clients" */
  .mobile-trust__clients-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(6px, 2vw, 8px);
    font-weight: 600;
    line-height: 2;
    color: #272727;
    white-space: nowrap;
  }

  /* ==========================================================================
     Box 2: Cities - flexible width
     ========================================================================== */
  .mobile-trust__cities {
    width: 49%;
    height: 51px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 6px;
  }

  /* Text */
  .mobile-trust__cities-text {
    width: 55%;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(6px, 2vw, 8px);
    font-weight: 500;
    line-height: 1.4;
    color: #272727;
    margin: 0;
  }

  /* Stat */
  .mobile-trust__cities-stat {
    width: 45%;
    text-align: right;
    padding-right: 4px;
  }

  /* "17+" */
  .mobile-trust__cities-count {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(15px, 4.5vw, 19px);
    font-weight: 600;
    line-height: 1.2;
    color: #4DAAA7;
  }

  /* "Cities Delivered" */
  .mobile-trust__cities-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5px, 1.8vw, 7px);
    font-weight: 500;
    line-height: 1.2;
    color: #272727;
    white-space: nowrap;
  }

  /* ==========================================================================
     Box 3: Rating - full width responsive
     ========================================================================== */
  .mobile-trust__rating {
    width: 100%;
    height: 69px;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
  }

  /* Arrow vector */
  .mobile-trust__rating-vector {
    position: absolute;
    left: 22%;
    top: 10px;
    width: 28%;
    max-width: 102px;
    height: auto;
    z-index: 0;
  }

  /* Text */
  .mobile-trust__rating-text {
    position: absolute;
    left: 3%;
    top: 16px;
    width: 38%;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(6px, 2vw, 8px);
    font-weight: 500;
    line-height: 1.5;
    color: #272727;
    margin: 0;
    z-index: 1;
  }

  /* "4.8" */
  .mobile-trust__rating-score {
    position: absolute;
    left: 50%;
    top: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 9vw, 39px);
    font-weight: 500;
    line-height: 1.5;
    color: #4DAAA7;
    z-index: 1;
  }

  /* "/5" */
  .mobile-trust__rating-max {
    position: absolute;
    left: 67%;
    top: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(16px, 5vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    color: #272727;
    z-index: 1;
  }

  /* Google section */
  .mobile-trust__rating-google {
    position: absolute;
    right: 3%;
    top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 1;
  }

  /* Stars */
  .mobile-trust__rating-stars {
    display: flex;
    gap: 0;
  }

  .mobile-trust__rating-stars svg {
    width: clamp(11px, 3.5vw, 15px);
    height: clamp(11px, 3.5vw, 15px);
  }

  /* Google logo */
  .mobile-trust__rating-google-logo {
    width: clamp(35px, 12vw, 49px);
    height: auto;
    object-fit: contain;
    margin-left: 8px;
  }
}

/* ==========================================================================
   Tablet Responsive - 481px to 1024px
   ========================================================================== */
@media (min-width: 481px) and (max-width: 1024px) {
  /* Container: scaled up for tablet, left-aligned */
  .mobile-trust {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 180px;
    margin: 24px 0 0 0;
    position: relative;
  }

  /* Row containing Box 1 + Box 2 */
  .mobile-trust__row {
    display: flex;
    gap: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  /* ==========================================================================
     Box 1: Clients - Tablet
     ========================================================================== */
  .mobile-trust__clients {
    width: 245px;
    height: 72px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .mobile-trust__clients-logos {
    position: absolute;
    left: 10px;
    top: 22px;
    display: flex;
  }

  .mobile-trust__clients-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -14px;
    object-fit: cover;
  }

  .mobile-trust__clients-logo:first-child {
    margin-left: 0;
  }

  .mobile-trust__clients-info {
    position: absolute;
    left: 155px;
    top: 14px;
  }

  .mobile-trust__clients-count {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #4DAAA7;
  }

  .mobile-trust__clients-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    color: #272727;
    white-space: nowrap;
  }

  /* ==========================================================================
     Box 2: Cities - Tablet
     ========================================================================== */
  .mobile-trust__cities {
    width: 245px;
    height: 72px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .mobile-trust__cities-text {
    position: absolute;
    left: 8px;
    top: 18px;
    width: 150px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: #272727;
    margin: 0;
  }

  .mobile-trust__cities-stat {
    position: absolute;
    left: 165px;
    top: 10px;
    text-align: center;
  }

  .mobile-trust__cities-count {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    color: #4DAAA7;
  }

  .mobile-trust__cities-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    color: #272727;
    white-space: nowrap;
  }

  /* ==========================================================================
     Box 3: Rating - Tablet
     ========================================================================== */
  .mobile-trust__rating {
    position: absolute;
    left: 0;
    top: 82px;
    width: 100%;
    height: 96px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .mobile-trust__rating-vector {
    position: absolute;
    left: 120px;
    top: 12px;
    width: 140px;
    height: 84px;
    z-index: 0;
  }

  .mobile-trust__rating-text {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 190px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: #272727;
    margin: 0;
    z-index: 1;
  }

  .mobile-trust__rating-score {
    position: absolute;
    left: 260px;
    top: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 500;
    line-height: 1.4;
    color: #4DAAA7;
    z-index: 1;
  }

  .mobile-trust__rating-max {
    position: absolute;
    left: 340px;
    top: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    color: #272727;
    z-index: 1;
  }

  .mobile-trust__rating-google {
    position: absolute;
    left: 390px;
    top: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 1;
  }

  .mobile-trust__rating-stars {
    display: flex;
    gap: 2px;
  }

  .mobile-trust__rating-stars svg {
    width: 18px;
    height: 18px;
  }

  .mobile-trust__rating-google-logo {
    width: 60px;
    height: 18px;
    object-fit: contain;
    margin-left: 10px;
  }
}
