/* widgets.css: WhatsApp float, accessibility menu, cookie notice, a11y modes */
.wa-float {
  position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

.a11y { position: fixed; bottom: 1.2rem; inset-inline-start: 1.2rem; z-index: 60; }
.a11y__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--plum); color: var(--white); box-shadow: var(--shadow);
}
.a11y__btn svg { width: 26px; height: 26px; }
.a11y__panel {
  position: absolute; bottom: 58px; inset-inline-start: 0; width: 230px;
  display: grid; gap: .35rem; padding: .8rem; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.a11y__panel[hidden] { display: none; }
/* phones/tablets: stack the a11y button above WhatsApp (the free side), so it never covers the hero buttons */
@media (max-width: 900px) {
  .a11y { inset-inline-start: auto; inset-inline-end: calc(1.2rem + 5px); bottom: calc(1.2rem + 58px + .7rem); }
  .a11y__panel { inset-inline-start: auto; inset-inline-end: 0; }
}
.a11y__panel button, .a11y__panel a {
  text-align: start; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 .95rem/1.2 var(--font-body); cursor: pointer; text-decoration: none;
}
.a11y__panel [aria-pressed="true"] { background: var(--plum); color: var(--white); border-color: var(--plum); }

.cookie {
  position: fixed; inset-inline: 1rem; bottom: 5.5rem; z-index: 70; margin-inline: auto; max-width: 640px;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); font-size: .9rem;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--plum); }
.cookie .btn { min-height: 42px; padding: .5em 1.3em; flex: none; }

/* accessibility modes (classes on <html>) */
html.a11y-big-text { font-size: 118%; }
html.a11y-contrast body { --ink: #000; --soft: #2a1a38; --plum: #1d0f33; --bg: #fff; --lilac: #f1ecf6; }
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: .2em; outline: 1px dashed currentColor; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
