/* Live mobile homepage presentation layer. Desktop/tablet keep the legacy homepage. */
.mobile-live-home{display:none}

@media (max-width:767px){
  :root{--m-blue:#123986;--m-royal:#1456d9;--m-green:#08a84e;--m-ink:#071c4b;--m-muted:#5d6b84;--m-line:#dce6f3;--m-soft:#f3f8fc}
  /* text-size-adjust stops mobile browsers auto-inflating text above the
     declared size, which was enlarging the hero copy on real devices. */
  html,body{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{background:#fff;color:var(--m-ink)}
  .legacy-home-main{display:none!important}
  .mobile-live-home{display:block;width:100%;overflow:hidden;background:#fff}

  body>.header{height:72px;padding:8px 16px;background:#fff;box-shadow:0 2px 12px rgba(24,61,113,.08)}
  body>.header .logo{width:142px;height:auto}
  body>.header .header-actions{gap:0}
  body>.header .phone-btn{display:none!important}
  body>.ht-float-btns .ht-float-btn.call{display:none!important}
  body>.header .customer-nav-btn{min-width:72px;min-height:38px;padding:8px 12px;font-size:10px}

  .mobile-live-home *{box-sizing:border-box}
  .mobile-live-home a{text-decoration:none;color:inherit}
  .mobile-live-home img{display:block;max-width:100%}
  .mobile-live-home .m-section-shell{padding-left:16px;padding-right:16px}
  .mobile-live-home .m-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

  .m-hero{position:relative;height:200px;min-height:200px;padding:0;background:linear-gradient(135deg,#f2f9fd 0%,#e4f3fa 58%,#f8fcfe 100%)}
  .m-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 76% 38%,rgba(136,211,235,.25),transparent 46%);filter:blur(12px)}
  .m-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(239,248,253,.55),rgba(239,248,253,.08) 68%),linear-gradient(0deg,rgba(13,44,118,.08),transparent 44%);pointer-events:none}
  .m-hero-image{position:absolute;z-index:1;top:4px;right:0;width:68%;height:196px;object-fit:contain;object-position:right center}
  /* Right edge stops short of the cleaner so the copy never sits over her. */
  .m-hero-copy{position:absolute;z-index:2;top:18px;left:16px;right:47%}
  .m-hero-copy h1{margin:0;font-size:clamp(16px,4.3vw,18px);line-height:1.2;font-weight:700;letter-spacing:-.2px;color:var(--m-blue)}
  .m-hero-copy h1 span{color:var(--m-green)}
  .m-hero-copy p{margin:6px 0 0;font-size:clamp(11px,3vw,12px);line-height:1.34;font-weight:500;color:var(--m-muted)}
  /* No transform here: keeps the field from being a scaled/transformed parent on iOS. */
  /* top:137px is the lowest the pill can sit without covering the apron logo,
     whose white mark ends at 136px inside the 200px hero. */
  .m-location-search{position:absolute;z-index:3;top:137px;left:6%;right:6%;width:auto;min-height:54px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:5px 6px 5px 14px;border:1px solid rgba(20,86,217,.12);border-radius:29px;background:#fff;box-shadow:0 9px 25px rgba(7,42,102,.2)}
  .m-location-search>i{font-size:19px;color:var(--m-royal)}
  /* 16px minimum stops iOS Safari from auto-zooming the page on focus. */
  .m-location-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--m-ink);font-size:16px}
  .m-location-search>button{width:42px;height:42px;border:0;border-radius:50%;color:#fff;background:var(--m-royal);font-size:18px;font-weight:900;cursor:pointer}
  .m-location-suggestions{position:absolute;top:58px;left:8px;right:8px;z-index:4;display:none;max-height:190px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--m-line);border-radius:12px;background:#fff;box-shadow:0 10px 25px rgba(7,42,102,.18)}
  .m-location-suggestions:not(:empty){display:block}
  .m-location-suggestions .suggestion-item{display:block;width:100%;padding:11px 13px;border:0;border-bottom:1px solid #edf2f7;background:#fff;text-align:left;color:var(--m-ink);font-size:13px;line-height:1.3;cursor:pointer}
  .m-location-suggestions .suggestion-item:last-child{border-bottom:0}
  .m-location-suggestions .suggestion-item:active{background:#eef6ff}

  .m-content-section{padding-top:26px;padding-bottom:26px}
  .m-hero+.m-content-section{padding-top:18px}
  .m-content-section+.m-content-section{padding-top:8px}
  .m-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:15px}
  .m-section-heading h2{margin:0;font-size:22px;line-height:1.12;letter-spacing:-.5px}
  .m-section-heading p{margin:4px 0 0;color:var(--m-muted);font-size:12px}
  .m-section-heading>a,.m-text-link{flex:0 0 auto;color:#0754d9;font-size:12px;font-weight:800}

  .m-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .m-service-card{min-width:0;min-height:127px;padding:7px 6px 9px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;border:1px solid var(--m-line);border-radius:14px;background:#fff;box-shadow:0 4px 13px rgba(28,73,129,.055)}
  .m-service-card img{width:100%;height:84px;object-fit:contain;border-radius:10px;background:var(--m-soft)}
  .m-service-card strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-align:center;font-size:11px;line-height:1.15}
  .m-wide-service{margin-top:9px;min-height:82px;padding:8px 12px;display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:12px;border:1px solid var(--m-line);border-radius:15px;background:#fff}
  .m-wide-service img{width:82px;height:66px;object-fit:contain;border-radius:10px;background:var(--m-soft)}
  .m-wide-service small{display:block;color:var(--m-muted);font-size:10px}.m-wide-service strong{display:block;margin-top:3px;font-size:14px}.m-wide-service b{color:var(--m-royal);font-size:20px}

  /* display:block so the whole promo card works as one link */
  .m-promo{display:block;position:relative;min-height:205px;margin:4px 16px 28px;padding:20px;overflow:hidden;border-radius:18px;background:linear-gradient(120deg,#e3f7ef,#f6fffb);box-shadow:0 9px 24px rgba(28,73,129,.09)}
  .m-promo>div{position:relative;z-index:2;width:58%}.m-promo .m-eyebrow{font-size:9px;font-weight:900;letter-spacing:.15em;color:var(--m-royal)}.m-promo h2{margin:7px 0;font-size:23px;line-height:1.08}.m-promo p{margin:0 0 15px;color:var(--m-muted);font-size:11px}.m-promo img{position:absolute;right:-12px;bottom:0;width:205px;height:205px;object-fit:contain}.m-primary-button{display:inline-block;padding:10px 15px;border-radius:999px;background:var(--m-green);color:#fff!important;font-size:11px;font-weight:850}

  /* Two portrait story tiles side by side, between the sofa promo and Most
     Booked Services. Both clips are 576 wide; the card ratio 576:971 matches
     the girl clip picture exactly, and the man clip (576x976) is cover-fitted
     so the half-percent height difference is trimmed rather than letterboxed. */
  .m-video-row{display:flex;gap:10px;margin:0 16px 22px}
  .m-video-card{position:relative;flex:1 1 0;min-width:0;border-radius:18px;overflow:hidden;background:#0b1d42;box-shadow:0 9px 24px rgba(28,73,129,.12);aspect-ratio:576/971}
  .m-video-card video{display:block;width:100%;height:100%;object-fit:cover}
  /* The girl clip has 35px black bars baked in top and bottom, so that one is
     sized by width and pulled up by 35/971 of the card height to hide them. */
  .m-video-card video.m-video-shift{position:absolute;left:0;top:-3.6045%;height:auto;max-width:none;object-fit:fill}

  .m-popular-carousel{display:flex;width:calc(100% + 16px);gap:10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 16px 10px 1px;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .m-popular-carousel::-webkit-scrollbar,.m-reviews-track::-webkit-scrollbar{display:none}
  /* Mini cards: the artwork is the whole card - no title/button chrome around it.
     Box is exactly 2/1 like the 1600x800 source art, so nothing stretches or clips. */
  .m-popular-card{flex:0 0 clamp(180px,54vw,225px);aspect-ratio:2/1;scroll-snap-align:start;display:block;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(28,73,129,.10)}
  .m-popular-card img{width:100%;height:100%;object-fit:contain}
  .m-popular-dots{min-height:11px;display:flex;align-items:center;justify-content:center;gap:4px;margin-top:1px}.m-popular-dot{width:5px;height:5px;border:0;border-radius:50%;background:#c7d5e8}.m-popular-dot.is-active{width:14px;border-radius:999px;background:var(--m-royal)}

  .m-offer-stack{display:grid;gap:11px}.m-offer-card{position:relative;min-height:172px;padding:18px;display:block;overflow:hidden;border-radius:17px;background:linear-gradient(120deg,#ddf8ed,#effff8);box-shadow:0 8px 20px rgba(28,73,129,.08)}.m-offer-card.pest{background:linear-gradient(120deg,#e5f3ff,#f5f9ff)}.m-offer-card div{position:relative;z-index:2;width:62%}.m-offer-card small{font-size:9px;font-weight:900;letter-spacing:.12em;color:var(--m-green)}.m-offer-card h3{margin:7px 0;font-size:20px;line-height:1.08}.m-offer-card p{margin:0 0 13px;color:var(--m-muted);font-size:11px}.m-offer-card span{display:inline-block;padding:8px 12px;border-radius:999px;background:var(--m-green);color:#fff;font-size:11px;font-weight:800}.m-offer-card img{position:absolute;right:-8px;bottom:1px;width:170px;height:170px;object-fit:contain}

  .m-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.m-step-grid>div,.m-why-grid>div{position:relative;min-width:0;padding:13px 8px;border:1px solid var(--m-line);border-radius:14px;background:#fff}.m-step-grid b{position:absolute;top:-9px;left:-3px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--m-royal);color:#fff;font-size:10px}.m-step-grid span{display:grid;place-items:center;width:45px;height:45px;margin:0 auto 9px;border-radius:50%;background:#e9f3ff;color:var(--m-royal);font-size:23px}.m-step-grid strong,.m-why-grid strong{display:block;text-align:center;font-size:11px;line-height:1.15}.m-step-grid p,.m-why-grid p{margin:5px 0 0;text-align:center;color:var(--m-muted);font-size:9.5px;line-height:1.3}
  .m-why-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.m-why-grid>div{min-height:115px}.m-why-grid span{display:grid;place-items:center;width:34px;height:34px;margin:0 auto 8px;border-radius:10px;background:#e9fbf1;color:var(--m-green);font-size:18px}

  .m-reviews-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 16px 10px 1px;scrollbar-width:none}.m-review-card{flex:0 0 88%;scroll-snap-align:start;padding:16px;border:1px solid var(--m-line);border-radius:16px;background:#fff;box-shadow:0 5px 15px rgba(28,73,129,.06)}.m-review-stars{color:#ffb400;letter-spacing:1px}.m-review-card blockquote{margin:10px 0 14px;color:#33435f;font-size:12px;line-height:1.5}.m-review-person{display:flex;align-items:center;gap:9px}.m-review-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e8f1ff;color:var(--m-blue);font-size:11px;font-weight:900}.m-review-person strong{display:block;font-size:11.5px}.m-review-person small{display:block;margin-top:2px;color:var(--m-muted);font-size:9.5px}
  .m-whatsapp{margin:8px 16px 22px;padding:17px;display:grid;grid-template-columns:42px 1fr;gap:11px;border-radius:17px;background:linear-gradient(120deg,#e8fbf2,#f7fffb)}.m-whatsapp>i{font-size:34px;color:var(--m-green)}.m-whatsapp h2{margin:0;font-size:16px}.m-whatsapp p{margin:4px 0 11px;color:var(--m-muted);font-size:10.5px}
  .m-area-chips{display:flex;flex-wrap:wrap;gap:8px}.m-area-chips a{padding:10px 12px;border-radius:999px;background:#f0f3f8;color:#253452;font-size:11px;font-weight:650}.m-text-link{display:inline-block;margin-top:15px}
  .m-faq-list{display:grid;gap:8px}.m-faq-list details{border:1px solid var(--m-line);border-radius:13px;background:#fff}.m-faq-list summary{padding:14px 15px;cursor:pointer;font-size:12px;font-weight:750;list-style:none}.m-faq-list summary::-webkit-details-marker{display:none}.m-faq-list summary::after{content:"+";float:right;color:#0e50c8;font-size:17px}.m-faq-list details[open] summary::after{content:"\2212"}.m-faq-list p{margin:0;padding:0 15px 14px;color:var(--m-muted);font-size:11px;line-height:1.45}

  body>.home-footer{margin-top:4px}

  /* Location gate popup (bottom sheet) */
  body.m-gate-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
  .m-gate{position:fixed;inset:0;z-index:99998;display:flex;align-items:flex-end;justify-content:center}
  .m-gate[hidden]{display:none!important}
  .m-gate-backdrop{position:absolute;inset:0;background:rgba(7,28,75,.55)}
  .m-gate-sheet{position:relative;z-index:1;width:100%;max-width:520px;max-height:88vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:22px 18px calc(18px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -12px 34px rgba(7,42,102,.28)}
  .m-gate-close{position:absolute;top:10px;right:10px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;background:#f0f4fa;color:#42536e;font-size:20px;line-height:1;cursor:pointer}
  .m-gate-pin{width:44px;height:44px;display:grid;place-items:center;margin-bottom:11px;border-radius:13px;background:#e9f3ff;color:var(--m-royal);font-size:20px}
  .m-gate-sheet h2{margin:0;font-size:19px;line-height:1.2;color:var(--m-ink)}
  .m-gate-sheet>p{margin:6px 0 15px;color:var(--m-muted);font-size:12.5px;line-height:1.4}
  .m-gate-field{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;min-height:50px;padding:0 14px;border:1px solid var(--m-line);border-radius:13px;background:#fff}
  .m-gate-field>i{font-size:17px;color:var(--m-royal)}
  /* 16px keeps iOS Safari from zooming the page on focus. */
  .m-gate-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--m-ink);font-size:16px}
  .m-gate-suggestions{display:none;max-height:184px;margin-top:8px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--m-line);border-radius:12px;background:#fff}
  .m-gate-suggestions:not(:empty){display:block}
  .m-gate-suggestions .suggestion-item{display:block;width:100%;padding:11px 13px;border:0;border-bottom:1px solid #edf2f7;background:#fff;text-align:left;color:var(--m-ink);font-size:13px;line-height:1.3;cursor:pointer}
  .m-gate-suggestions .suggestion-item:last-child{border-bottom:0}
  .m-gate-suggestions .suggestion-item:active{background:#eef6ff}
  .m-gate-continue{width:100%;min-height:48px;margin-top:14px;border:0;border-radius:13px;background:var(--m-green);color:#fff;font-size:14px;font-weight:800;cursor:pointer}
}

@media (max-width:340px){
  .m-service-grid{gap:7px}.m-service-card{min-height:120px}.m-service-card img{height:76px}.m-section-heading h2{font-size:20px}
}

@media (prefers-reduced-motion:reduce){.m-popular-dot{transition:none!important}.m-popular-carousel{scroll-behavior:auto}}

/* Keep guest mobile banner copy and artwork in separate columns. */
@media(max-width:767px){
 .mobile-live-home .m-promo,
 .mobile-live-home .m-offer-card.pest{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:center;padding:0}
 .mobile-live-home .m-promo>div,
 .mobile-live-home .m-offer-card.pest>div{width:auto;min-width:0;padding:18px 10px 18px 16px}
 .mobile-live-home .m-promo>img,
 .mobile-live-home .m-offer-card.pest>img{position:static;display:block;width:100%;height:auto;max-height:205px;object-fit:contain}
 .mobile-live-home .m-promo h2{font-size:clamp(18px,5.3vw,23px)}
}
