/* Datascape additions for physiowellnessclinic.co.za (2026-11-11).
   1. Social icons in their real brand colours (nav + footer).
   2. Floating WhatsApp button, bottom left.
   Loaded after the page's own stylesheet; overrides are scoped to the modifier classes below. */

/* 1. Brand-coloured social icons: coloured disc, white glyph, on every header state and in the footer */
.nav-social-link.dsc-ig, .footer-social-link.dsc-ig,
.site-header.scrolled .nav-social-link.dsc-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  color: #fff !important;
}
.nav-social-link.dsc-fb, .footer-social-link.dsc-fb,
.site-header.scrolled .nav-social-link.dsc-fb { background: #1877F2 !important; color: #fff !important; }
.nav-social-link.dsc-tt, .footer-social-link.dsc-tt,
.site-header.scrolled .nav-social-link.dsc-tt { background: #000 !important; color: #fff !important; }
.nav-social-link.dsc-wa, .footer-social-link.dsc-wa,
.site-header.scrolled .nav-social-link.dsc-wa { background: #25D366 !important; color: #fff !important; }
.nav-social-link[class*="dsc-"], .footer-social-link[class*="dsc-"] {
  border: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
}
.nav-social-link[class*="dsc-"]:hover, .footer-social-link[class*="dsc-"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

/* 2. Floating WhatsApp button, bottom left. Measured to the chat launcher pill (widget v1, 2026-11-11):
   desktop pill = 52px high, 24px from bottom and right; phone pill = 44px high, 24px from the edges.
   Same height and same bottom offset, so the two sit on one line. Re-measure if the widget changes. */
.dsc-wa-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  z-index: 2500; /* above the header, below the site's modals (3000+) */
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dsc-wa-float svg { width: 30px; height: 30px; fill: currentColor; display: block; }
.dsc-wa-float:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32); color: #fff; }
.dsc-wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .dsc-wa-float { width: 44px; height: 44px; left: 24px; bottom: 24px; }
  .dsc-wa-float svg { width: 26px; height: 26px; }
}

/* 3. Phone fix (2026-11-11): the home page is 6px wider than the screen (396 on a 390 phone), so phones zoom out a
   touch and the bottom 13px of anything fixed to the bottom edge falls off-screen. Clipping horizontal overflow on
   the root keeps the layout viewport at the screen width. `clip` does not make body a scroll container; `hidden`
   is the fallback for old browsers. Measured: home innerWidth 396 -> 390, innerHeight 857 -> 844. */
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }
