/* ============================================================
   Happy Home Rehab - Global responsive & UX safeguards
   Loaded on every page (after per-page inline styles are fine,
   these are low-specificity safety rules).
   ============================================================ */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Never let media overflow its container on mobile */
img, iframe, video, svg { max-width: 100%; }
img { height: auto; }

/* Accessible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 3px solid rgba(58, 193, 242, 0.6);
    outline-offset: 2px;
}

/* Comfortable tap targets on touch devices */
@media (max-width: 768px) {
    .call-now-btn, .btn, .btn-submit, .submit-btn, .p-btn,
    .nav-menu li a { min-height: 44px; }
    .nav-menu li a { display: flex; align-items: center; }
}

/* Reusable floating WhatsApp button (added site-wide) */
.hh-whatsapp-float {
    position: fixed; left: 20px; bottom: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; text-decoration: none; z-index: 9997;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s;
}
.hh-whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
