/* Dandeli247 Phase 2 (v88) - CLASSIC HOMEPAGE ONLY.
   Keep desktop hero/form/grid unchanged. Mobile reorders the existing, single enquiry form
   above its two browse links. This file does not change any form handler, tracking, or booking CSS.
*/
body.d247-lite-home .d247-v88-call-mobile { display: none; }
body.d247-lite-home .d247-v88-office-address {
  color: inherit; font-size: inherit; line-height: 1.55; font-style: normal; margin-top: 8px;
}
body.d247-lite-home .contact-card .contact-item:last-child strong {
  font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  /* Preserve the original heading and description, but bring form before hero links. */
  body.d247-lite-home .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body.d247-lite-home .hero-content > .hero-copy { display: contents; }
  body.d247-lite-home .hero-content > .hero-copy > .eyebrow { order: 0; margin-bottom: 12px; }
  body.d247-lite-home .hero-content > .hero-copy > h1 { order: 0; margin-top: 0; margin-bottom: 12px; }
  body.d247-lite-home .hero-content > .hero-copy > .home-hero-lead { order: 0; margin-bottom: 18px; }
  body.d247-lite-home .hero-content > .d247-lite-formcard {
    order: 1; width: 100%; max-width: none; margin: 0 0 16px;
  }
  body.d247-lite-home .hero-content > .hero-copy > .d247-lite-heroactions {
    order: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 9px; margin: 0;
  }
  body.d247-lite-home .d247-lite-heroaction {
    min-width: 0; min-height: 48px; border-radius: 12px; padding: 10px 8px;
    font-size: .81rem; line-height: 1.2;
  }
  /* Update the EXISTING floating Call link, no additional button. Keep desktop unchanged. */
  body.d247-lite-home .floating-call-direct {
    display: inline-flex;
    right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    background: #e87916; color: #fff; border: 1px solid #ce6411;
    padding: 11px 15px; font-size: .84rem; line-height: 1.1; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0,0,0,.23);
    text-decoration: none;
  }
  body.d247-lite-home .floating-call-direct .d247-v88-call-desktop { display: none; }
  body.d247-lite-home .floating-call-direct .d247-v88-call-mobile { display: inline; }
  body.d247-lite-home .contact-card .contact-item:last-child strong { font-size: .83rem; }
  /* Keep the second, online-booking journey collapsed as in v84. */
}
@media (max-width: 390px) {
  body.d247-lite-home .d247-lite-heroaction { font-size: .76rem; padding: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body.d247-lite-home .floating-call-direct { transition: none; }
}

/* v88 mobile floating Call button fix */
@media (max-width: 700px) {
  body.d247-lite-home:has(button.d247-wa-float)
  a.floating-call-direct {
    display: inline-flex !important;
  }
}
