/* Magic UI effects, ported by hand to plain CSS for the ad landing pages (no React/Tailwind on this site).
   Source: https://github.com/magicuidesign/magicui (MIT License, Copyright (c) 2023 Magic UI).
   Ported: blur-fade (hero text entrance), shimmer/border-beam (call buttons), shine-border (price line),
   pulsating-button (floating phone button). Effects decorate the existing <a href="tel:"> links; they never
   replace them, so the inline phone_click tracking is untouched. All motion stops for prefers-reduced-motion. */

@property --mu-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---- blur-fade: hero text arrives once on page load ---- */
@keyframes mu-blur-fade {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
.hero .hero-content > h1,
.hero > .container > h1 { animation: mu-blur-fade 0.5s ease-out both; }
.hero .hero-content > .tagline,
.hero > .container > .subheading,
.hero > .container > .tagline { animation: mu-blur-fade 0.5s ease-out 0.08s both; }
.hero .hero-content > .cta-buttons,
.hero > .container > .hero-actions,
.hero .hero-price { animation: mu-blur-fade 0.5s ease-out 0.16s both; }

/* ---- shimmer edge: a light that travels around the call button's border ---- */
@keyframes mu-spin { to { --mu-angle: 360deg; } }
.hero a.btn-primary[href^="tel:"],
.hero a.cta-btn-primary[href^="tel:"],
.cta-section a.btn-primary[href^="tel:"] {
  position: relative;
  isolation: isolate;
}
.hero a.btn-primary[href^="tel:"]::before,
.hero a.cta-btn-primary[href^="tel:"]::before,
.cta-section a.btn-primary[href^="tel:"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--mu-angle), transparent 0 70%, rgba(255, 255, 255, 0.95) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  animation: mu-spin 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}
/* inset highlight from the shimmer button, so it reads as pressable */
.hero a.btn-primary[href^="tel:"],
.hero a.cta-btn-primary[href^="tel:"],
.cta-section a.btn-primary[href^="tel:"] { box-shadow: inset 0 -6px 10px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.25); }

/* ---- shine-border: soft moving glint around the price line ---- */
@keyframes mu-shine {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.hero .hero-price {
  position: relative;
  display: inline-block;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 34rem;
}
.hero .hero-price::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background-image: radial-gradient(transparent, transparent, #facc15, #f59e0b, #fff, transparent, transparent);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  animation: mu-shine 8s linear infinite;
  pointer-events: none;
}

/* ---- pulsating-button: the floating phone button on phones gives off a slow pulse ---- */
@keyframes mu-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
@media (max-width: 768px) {
  a.sticky-call[href]::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: mu-pulse 2.4s ease-out 1.2s infinite;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-content > *, .hero > .container > *, .hero .hero-price,
  .hero a[href^="tel:"]::before, .cta-section a[href^="tel:"]::before,
  .hero .hero-price::after, a.sticky-call[href]::after { animation: none !important; }
}
