/* v10 mobile refinements: retain the approved desktop theme, give phones/tablets readable service cards and controls. */
@media (max-width: 980px) {
  .ref-services .container { width: min(740px, calc(100% - 32px)); }
  .ref-services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
  .ref-service-card, .ref-service-card:nth-child(n+4) { grid-column: span 1 !important; }
  .ref-service-card:first-child { grid-column: span 2 !important; }
  .ref-service-photo, .ref-service-card:nth-child(n+4) .ref-service-photo { height: 175px; }
  .ref-service-card:first-child .ref-service-photo { height: 225px; }
  .ref-service-info { min-height: 94px; padding: 12px 14px; gap: 10px; }
  .ref-service-info strong { font-size: clamp(16px,2.25vw,19px); line-height: 1.2; }
  .ref-service-icon { width: 36px; height: 36px; font-size: 21px; }
  .ref-service-arrow { width: 31px; height: 31px; font-size: 25px; }
  .ref-benefits-inner strong { font-size: 15px; }
  .ref-benefits-inner small { font-size: 12px; }
  .ref-hero-slider { height: 650px; }
  .ref-slide-photo { top: 0; right: 0; width: 100%; height: 53%; object-position: center 39%; }
  .ref-photo-fade { background: linear-gradient(0deg, #f9f7f2 0%,#f9f7f2 44%,rgba(249,247,242,.94) 51%,rgba(249,247,242,.30) 71%,transparent 90%); }
  .ref-hero-copy { top: auto; bottom: 37px; transform: none; width: 100%; left: 0; max-width: none; padding: 0 28px; }
  .ref-hero-copy h1, .ref-hero-copy h2 { font-size: clamp(34px,4.8vw,46px); margin: 10px 0 10px; }
  .ref-hero-sub { font-size: 16px; max-width: 680px; margin-bottom: 12px; }
  .ref-hero-points { font-size: 14px; gap: 5px; margin: 11px 0 17px; }
  .ref-kicker { font-size: 12px; padding: 6px 13px; }
  .ref-hero-actions .btn { font-size: 14px; min-height: 45px; padding: 9px 16px; }
  .ref-hero-slider .slider-arrow { top: 25%; height: 39px; width: 39px; font-size: 30px; }
}
@media (max-width: 600px) {
  .reference-header .container { width: calc(100% - 24px); }
  .reference-upper { min-height: 86px; gap: 8px; padding: 6px 0; }
  .reference-logo { width: 41%; height: 75px; min-width: 0; }
  .reference-logo img { max-height: 73px; max-width: 100%; width: 100%; height: auto; object-fit: contain; }
  .review-links { gap: 0; min-width: 0; }
  .review-platform { padding: 5px 3px; min-width: 0; }
  .google-word { font-size: clamp(17px,4vw,22px); }
  .trust-word { font-size: clamp(14px,3.5vw,18px); }
  .trust-star { font-size: 21px; margin-right: 1px; }
  .review-link-caption { font-size: 10px; margin-top: 5px; }
  .reference-contact-inner { gap: 5px; min-height: 56px; }
  .reference-contact-inner .reference-contact-button, .reference-contact-inner .reference-partners {
    min-height: 40px; padding: 7px 8px; gap: 4px;
    font-size: clamp(11px,2.65vw,13px) !important; flex-shrink: 1;
  }
  .reference-contact-inner .reference-menu { font-size: 30px; min-width: 32px; margin-left: 1px; }
  .ref-hero-slider { height: 650px; }
  .ref-slide-photo { height: 46%; object-position: center 39%; }
  .ref-photo-fade { background: linear-gradient(0deg,#f9f7f2 0%,#f9f7f2 48%,rgba(249,247,242,.94) 55%,rgba(249,247,242,.28) 73%,transparent 91%); }
  .ref-hero-copy { bottom: 37px; padding: 0 20px; }
  .ref-hero-copy h1, .ref-hero-copy h2 { font-size: clamp(32px,8.7vw,38px); }
  .ref-hero-sub { font-size: 14px; line-height: 1.43; }
  .ref-hero-points { font-size: 13px; gap: 6px; margin: 12px 0 16px; }
  .ref-hero-actions .btn { font-size: 13px; min-height: 44px; padding: 9px 12px; }
  .ref-services { padding: 22px 0 16px; }
  .ref-services .container { width: calc(100% - 24px); }
  .ref-services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .ref-service-card { border-radius: 16px; }
  .ref-service-card:first-child { grid-column: span 2 !important; }
  .ref-service-card:first-child .ref-service-photo { height: 200px; }
  .ref-service-photo, .ref-service-card:nth-child(n+4) .ref-service-photo { height: 145px; }
  .ref-service-info { min-height: 101px; padding: 11px; gap: 6px; }
  .ref-service-info strong { font-size: 15px; line-height: 1.19; }
  .ref-service-card:first-child .ref-service-info strong { font-size: 18px; }
  .ref-service-icon { width: 28px; height: 28px; font-size: 17px; border-radius: 8px; }
  .ref-service-arrow { width: 26px; height: 26px; font-size: 22px; }
  .ref-benefits { padding: 20px 0; }
  .ref-benefits-inner { grid-template-columns: 1fr; gap: 5px; width: min(420px,calc(100% - 40px)); margin: auto; }
  .ref-benefits-inner>div { border: 0 !important; border-bottom: 1px solid #d8e6db !important; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; text-align: left; column-gap: 12px; padding: 8px 5px; }
  .ref-benefits-inner>div:last-child { border-bottom: 0 !important; }
  .ref-benefits-inner>div>span { grid-row: 1/3; align-self: center; font-size: 29px; }
  .ref-benefits-inner strong { font-size: 15px; }
  .ref-benefits-inner small { font-size: 12px; }
  .ref-final-inner { display: flex; flex-wrap: wrap; padding: 18px; gap: 9px; }
  .ref-final-inner .btn { width: 100%; min-height: 46px; margin-left: 0; font-size: 15px; }
  .ref-final-inner h2 { font-size: 24px; }
  .ref-final-inner p { font-size: 14px; }
  .ref-below-inner { gap: 22px; }
}
@media (max-width: 360px) {
  .reference-contact-inner .reference-contact-button, .reference-contact-inner .reference-partners { font-size: 10px !important; padding: 6px 5px; }
  .reference-contact-inner .reference-menu { font-size: 25px; min-width: 26px; }
  .ref-service-info strong { font-size: 14px; }
  .ref-service-info { padding: 9px; }
  .ref-service-icon { width: 25px; height: 25px; }
  .ref-service-photo, .ref-service-card:nth-child(n+4) .ref-service-photo { height: 132px; }
}
/* Keep the floating action usable without obscuring service descriptions on phones. */
@media (max-width: 600px) {
  .mlc-whatsapp-fab {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 10px;
    gap: 0;
    border-radius: 50%;
  }
  .mlc-whatsapp-fab svg { width: 27px; height: 27px; }
  .mlc-whatsapp-fab > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}
/* At narrow widths keep every header control large enough to tap, rather than squeezing four items onto one line. */
@media (max-width: 375px) {
  .reference-contact-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) 38px;
    grid-template-rows: auto auto;
    gap: 5px;
    padding: 7px 0;
  }
  .reference-contact-inner .reference-phone { grid-column: 1; grid-row: 1; margin: 0; }
  .reference-contact-inner .reference-partners { grid-column: 2; grid-row: 1; }
  .reference-contact-inner .reference-email { grid-column: 1 / 3; grid-row: 2; }
  .reference-contact-inner .reference-menu { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .reference-contact-inner .reference-contact-button,
  .reference-contact-inner .reference-partners { min-width: 0; font-size: 11px !important; }
}
