  /* ══════════════════════════════════════
     TRUEVENTS – FLOATING CONTACT WIDGET
     Prefix: --tev- (truevents widget)
     Loaded on every page with app/sections/site/widget/view.php.
  ══════════════════════════════════════ */
  :root {
    --tev-gold:        #c9a84c;   /* TruEvents gold */
    --tev-gold-light:  #e8c96a;
    --tev-gold-glow:   rgba(201,168,76,0.35);
    --tev-dark:        #0d0d0d;   /* near-black */
    --tev-dark2:       #1a1a1a;   /* panel bg   */
    --tev-dark3:       #242424;   /* row hover  */
    --tev-surface:     #ffffff;
    --tev-speed:       0.3s;
    --tev-radius:      16px;
  }

  /* ── WRAPPER – fixed bottom-right ── */
  .tev-wrap {
    position: fixed;
    bottom: 30px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    /* The wrapper is as tall as the (hidden) panel: let clicks pass through
       it to the page, and catch them only on the button and the open panel. */
    pointer-events: none;
  }

  .tev-fab {
    pointer-events: auto;
  }

  /* ── PANEL ── */
  .tev-panel {
    background: var(--tev-dark2);
    border-radius: var(--tev-radius);
    border: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 8px;
    min-width: 240px;
    transform-origin: bottom right;
    transform: scale(0.82) translateY(16px);
    opacity: 0;
    pointer-events: none;
    /* Closed: also hidden from the keyboard and screen readers, after the
       fade-out has played (visibility waits for it). */
    visibility: hidden;
    /* Never taller than the space above the button (short, sideways phones) */
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    transition:
      transform var(--tev-speed) cubic-bezier(.34,1.56,.64,1),
      opacity   var(--tev-speed) ease,
      visibility 0s linear var(--tev-speed);
  }

  .tev-wrap.tev-open .tev-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  /* Open: above the fixed site header (z-index 10000), so its top row is
     not hidden under it on short screens. */
  .tev-wrap.tev-open {
    z-index: 10002;
  }

  /* panel header */
  .tev-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    margin-bottom: 6px;
  }

  .tev-panel-head-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tev-gold);
    box-shadow: 0 0 8px var(--tev-gold-glow);
  }

  /* Blinks only while the panel is open */
  .tev-wrap.tev-open .tev-panel-head-dot {
    animation: tev-blink 2s ease infinite;
  }

  @keyframes tev-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
  }

  .tev-panel-head span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tev-gold);
  }

  /* ── CONTACT ROWS ── */
  .tev-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background var(--tev-speed);
    cursor: pointer;
  }

  .tev-item:hover { background: var(--tev-dark3); }

  .tev-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
    border: 1px solid rgba(201,168,76,0.15);
  }

  .tev-item:hover .tev-icon { transform: scale(1.12); }

  .tev-icon.tev-wa    { background: rgba(37,211,102,0.12);  color: #25d366; }
  .tev-icon.tev-mail  { background: rgba(201,168,76,0.12);  color: var(--tev-gold); }
  .tev-icon.tev-phone { background: rgba(100,160,255,0.12); color: #64a0ff; }
  .tev-icon.tev-map   { background: rgba(255,80,80,0.12);   color: #ff6060; }

  .tev-text { display: flex; flex-direction: column; line-height: 1.25; }

  .tev-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #f0e8d0;
  }

  .tev-text span {
    font-size: 11px;
    color: #a8946a; /* 5.8:1 on the panel; #7a6a4a was 3.3:1, too faint */
    margin-top: 2px;
  }

  .tev-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 3px 0;
  }

  /* ── FAB BUTTON ── */
  .tev-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tev-gold) 0%, #a07830 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px var(--tev-gold-glow), 0 2px 8px rgba(0,0,0,0.4);
    transition:
      transform 0.28s cubic-bezier(.34,1.56,.64,1),
      box-shadow 0.2s;
    position: relative;
    flex-shrink: 0;
  }

  .tev-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(201,168,76,0.55), 0 2px 8px rgba(0,0,0,0.5);
  }

  /* pulse rings */
  .tev-fab::before,
  .tev-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--tev-gold);
    animation: tev-ring 2.4s ease-out infinite;
  }

  .tev-fab::after { animation-delay: 1.2s; }

  @keyframes tev-ring {
    0%   { transform: scale(1);    opacity: 0.6; }
    80%  { transform: scale(1.55); opacity: 0;   }
    100% { transform: scale(1.55); opacity: 0;   }
  }

  .tev-wrap.tev-open .tev-fab::before,
  .tev-wrap.tev-open .tev-fab::after { animation: none; opacity: 0; }

  /* icon swap */
  .tev-fab-open,
  .tev-fab-close {
    position: absolute;
    transition: opacity 0.22s, transform 0.28s cubic-bezier(.34,1.56,.64,1);
    color: var(--tev-dark);
  }

  .tev-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }

  .tev-wrap.tev-open .tev-fab-open  { opacity: 0; transform: rotate(90deg) scale(0.5); }
  .tev-wrap.tev-open .tev-fab-close { opacity: 1; transform: rotate(0deg) scale(1); }

  /* tooltip */
  .tev-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--tev-dark2);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--tev-gold);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    letter-spacing: .04em;
    transition: opacity 0.2s;
  }

  .tev-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(201,168,76,0.25);
  }

  .tev-fab:hover .tev-tooltip,
  .tev-fab:focus-visible .tev-tooltip { opacity: 1; }
  .tev-wrap.tev-open .tev-tooltip     { opacity: 0 !important; }

  /* ── REDUCED MOTION: no pulsing rings or blinking dot ── */
  @media (prefers-reduced-motion: reduce) {
    .tev-fab::before,
    .tev-fab::after,
    .tev-wrap.tev-open .tev-panel-head-dot {
      animation: none;
    }
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 480px) {
    .tev-wrap  { bottom: 18px; right: 14px; }
    .tev-panel { min-width: 200px; }
    .tev-fab   { width: 52px; height: 52px; }
  }
