/* ==========================================================================
   liquid-glass.css — Apple-style premium glass, used ONLY on:
   the floating header pill, language toggle container, "Book Appointment"
   CTA, floating WhatsApp/Call buttons and the booking summary card.

   Layers: backdrop blur+saturate · SVG displacement refraction (Chromium
   only, class .lg-ok set by app.js) · specular highlight that follows the
   pointer (--mx/--my) · bright rim · soft glow · liquid blob on hover ·
   spring press. Safari/Firefox fall back to plain glass with no distortion.
   ========================================================================== */
.liquid {
  --mx: 24%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),           /* bright rim */
    inset 0 2px 8px rgba(255, 255, 255, .7),            /* top highlight */
    inset 0 -10px 18px rgba(15, 61, 46, .08),           /* depth at the bottom edge */
    0 10px 34px rgba(31, 90, 69, .26);                  /* soft coloured glow */
}
.lg-ok .liquid { -webkit-backdrop-filter: url(#liquid-glass) blur(10px) saturate(170%); backdrop-filter: url(#liquid-glass) blur(10px) saturate(170%); }

/* specular highlight (moves with the pointer) */
.liquid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
              linear-gradient(135deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 38%); }

/* green tint variant for the primary CTA and the call button */
.liquid--green { background: rgba(15, 61, 46, .84); color: var(--cream); border-color: rgba(255, 255, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 2px 8px rgba(255, 255, 255, .3), inset 0 -10px 18px rgba(0, 0, 0, .18), 0 10px 30px rgba(15, 61, 46, .4), 0 0 24px rgba(201, 162, 75, .22); }
.liquid--green::before { background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%); }

/* the liquid blob that blooms under the pointer on hover */
.liquid-blob::after { content: ""; position: absolute; z-index: -1; left: var(--mx); top: var(--my); width: 170%; aspect-ratio: 1; translate: -50% -50%; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 75, .7), rgba(201, 162, 75, 0) 66%); transform: scale(0); transition: transform .7s var(--ease-spring); }
@media (hover: hover) { .liquid-blob:hover::after { transform: scale(1); animation: morph 6s ease-in-out infinite; } }
@keyframes morph { 50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; } }

/* spring press */
.liquid-press { transition: transform .45s var(--ease-spring), box-shadow .3s; }
.liquid-press:active { transform: scale(.93); }

/* CTA button */
.btn-liquid { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: var(--pill); font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; color: var(--cream); line-height: 1.2; }
.btn-liquid svg { width: 20px; height: 20px; }
.btn-liquid.sm { min-height: 42px; padding: 8px 20px; font-size: .9rem; }

/* header pill: condenses on scroll (class added by app.js) */
.site-header { transition: height .4s var(--ease-spring), max-width .4s var(--ease-spring), padding .3s; }
.site-header.scrolled { height: 54px; max-width: 1120px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.site-header.scrolled .brand img { width: 34px; height: 34px; }
.site-header .brand img { transition: width .3s, height .3s; }

/* language toggle container */
.lang-toggle { display: inline-flex; padding: 3px; border-radius: var(--pill); }

/* floating action buttons */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 12px; }
.float a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.float a svg { width: 28px; height: 28px; }
.float .f-wa { color: #145C3F; }
.float .f-call { color: var(--cream); }

/* booking summary card */
.liquid-card { border-radius: var(--r-tile); padding: clamp(20px, 3vw, 28px); background: rgba(255, 255, 255, .62); }

/* fallbacks */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid { background: rgba(255, 255, 255, .96); }
  .liquid--green { background: var(--green); }
}
@media (prefers-reduced-transparency: reduce) {
  .liquid, .site-header.scrolled { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .liquid--green { background: var(--green); }
  .liquid::before, .liquid-blob::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .liquid-blob::after { display: none; } }
