/* Floating WhatsApp enquiry: loaded on every page (see waWidget() in build.js).
   Self-contained: uses the site's colour tokens from styles.css and changes nothing outside .waw.
   The round button and panel badge use WhatsApp green (#25D366, owner 2026-11-17, D-110); the panel uses the navy showcase look. */

.waw { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font-body); }

/* Round button */
.waw-btn { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: #25D366; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast); }
.waw-btn svg { width: 28px; height: 28px; fill: currentColor; }
.waw-btn:hover { transform: translateY(-2px); background: #20BD5A; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 26px -6px rgba(37, 211, 102, 0.75); }
.waw-btn:focus-visible { outline: 2px solid var(--color-sky); outline-offset: 3px; }
.waw-btn[aria-expanded="true"] { transform: none; }

/* Panel */
.waw-panel { width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; border-radius: var(--radius-card); border: 1px solid var(--color-navy-line); background: linear-gradient(180deg, #0D2A4F, var(--color-navy-card) 40%, #08203D); color: var(--color-mist); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 50px -24px rgba(41, 151, 255, 0.6); transform-origin: bottom right; animation: waw-in 220ms var(--ease); }
.waw-panel[hidden] { display: none; }
@keyframes waw-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

.waw-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px 14px 16px; border-bottom: 1px solid var(--color-navy-line); }
.waw-badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: #25D366; }
.waw-badge svg { width: 20px; height: 20px; fill: currentColor; }
.waw-head > div { flex: 1; min-width: 0; }
.waw-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; color: #fff; }
.waw-sub { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--color-mist); }
.waw-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -2px 0 0; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9DB2D2; cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
.waw-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.waw-close:hover { color: #fff; border-color: var(--color-navy-line); background: rgba(255, 255, 255, 0.04); }
.waw-close:focus-visible, .waw-list a:focus-visible { outline: 2px solid var(--color-sky); outline-offset: 2px; }

.waw-list { margin: 0; padding: 10px; list-style: none; display: grid; gap: 6px; }
.waw-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--color-navy-line); background: rgba(6, 5, 13, 0.25); color: #fff; text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease); }
.waw-list a:hover { border-color: var(--color-sky); background: rgba(88, 182, 255, 0.08); transform: translateX(2px); }
.waw-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(77, 232, 255, 0.4); background: rgba(77, 232, 255, 0.08); }
.waw-ico svg { width: 17px; height: 17px; fill: none; stroke: #4DE8FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.waw-label { flex: 1; min-width: 0; }
.waw-go { flex: none; color: var(--color-gold-bright); transition: transform var(--dur-fast) var(--ease); }
.waw-list a:hover .waw-go { transform: translateX(2px); }
.waw-num { margin: 0; padding: 0 16px 14px; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.06em; text-transform: uppercase; color: #9DB2D2; }

/* Phones: the existing full-width WhatsApp bar (.wabar, below 640px) stays; the button sits just above it. */
@media (max-width: 639px) {
  .waw { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .waw-btn { width: 52px; height: 52px; }
  .waw-btn svg { width: 25px; height: 25px; }
  .waw-panel { max-height: calc(100vh - 190px); }
}

/* Hidden while the mobile menu is open, so it never covers the navigation. */
.menu-open .waw { display: none; }

@media (prefers-reduced-motion: reduce) {
  .waw-panel { animation: none; }
  .waw-btn, .waw-list a, .waw-go, .waw-close { transition: none; }
  .waw-btn:hover, .waw-list a:hover, .waw-list a:hover .waw-go { transform: none; }
}

@media print { .waw { display: none; } }
