/* ========================================
   COOKIE NOTICE: show / hide states + halo
   The notice itself is the Webflow "Cookie Notice" component (inside the
   Footer component), styled by its Webflow classes (cookie-notice, ...).
   This file:
     - keeps it hidden until cookie-notice.js adds .is-visible (no flash
       for visitors who already closed it)
     - fades it in, then runs one lap of the gold halo ring (same ring and
       glow as the nav's click halo, nc1-halo in nav.js), then the ring fades
   Kept here (not in Webflow) so Style "Clean up" can't delete is-visible.
   ======================================== */

@property --cn-halo-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

[data-cookie-notice] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    visibility 500ms ease,
    transform 500ms cubic-bezier(.215, .61, .355, 1);
}

[data-cookie-notice].is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  animation: cn-glow 4.3s ease 300ms 1 both;
}

/* Gold halo ring: one lap, then fades */
[data-cookie-notice]::after {
  content: "";
  position: absolute;
  inset: -2px -1px -1px -1px; /* sits on the card's own border */
  z-index: 2;
  padding: 1.5px; /* ring thickness */
  border-radius: inherit;
  background: conic-gradient(
    from var(--cn-halo-a),
    rgba(197, 97, 41, 0.2) 0%,
    #c56129 20%,
    #f5ad59 35%,
    #c56129 50%,
    rgba(197, 97, 41, 0.2) 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

[data-cookie-notice].is-visible::after {
  animation:
    cn-halo-spin 3.5s linear 300ms 1 forwards,
    cn-ring-in 300ms ease 300ms 1 forwards,
    cn-ring-out 800ms ease 3.8s 1 forwards;
}

@keyframes cn-halo-spin {
  from { --cn-halo-a: 0deg; }
  to { --cn-halo-a: 360deg; }
}

@keyframes cn-ring-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cn-ring-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Gold glow while the ring runs, back to the card's own shadow after */
@keyframes cn-glow {
  0%, 80% {
    box-shadow:
      17px 20px 20px rgba(46, 57, 71, 0.12),
      0 0 24px rgba(245, 173, 89, 0.28),
      0 0 60px rgba(197, 97, 41, 0.16);
  }
  100% {
    box-shadow:
      17px 20px 20px rgba(46, 57, 71, 0.12),
      1px 1px 4px rgba(0, 0, 0, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-cookie-notice] {
    transform: none;
    transition: opacity 150ms linear, visibility 150ms linear;
  }
  [data-cookie-notice].is-visible,
  [data-cookie-notice].is-visible::after {
    animation: none;
  }
}

@media print {
  [data-cookie-notice] { display: none !important; }
}
