/* ============================================================
   RASTRICK — Street Interactions & Color Enhancement Layer
   Layer on top of styles.css — modular, non-breaking
   ============================================================ */

/* ---- Boosted vibrant color variables ---- */
:root {
  --neon-red:    #FF0A22;
  --neon-yellow: #FFD000;
  --neon-pink:   #FF0099;
  --glow-red-sm:   0 0 12px rgba(232, 19, 42, 0.6),  0 0 24px rgba(232, 19, 42, 0.3);
  --glow-red-lg:   0 0 24px rgba(232, 19, 42, 0.7),  0 0 60px rgba(232, 19, 42, 0.35), 0 0 100px rgba(232, 19, 42, 0.15);
  --glow-yellow-sm:0 0 12px rgba(247, 199, 0, 0.6),  0 0 24px rgba(247, 199, 0, 0.3);
  --glow-yellow-lg:0 0 24px rgba(247, 199, 0, 0.7),  0 0 60px rgba(247, 199, 0, 0.35), 0 0 100px rgba(247, 199, 0, 0.15);
  --glow-pink-sm:  0 0 12px rgba(255, 26, 140, 0.6), 0 0 24px rgba(255, 26, 140, 0.3);
  --glow-pink-lg:  0 0 24px rgba(255, 26, 140, 0.7), 0 0 60px rgba(255, 26, 140, 0.35),0 0 100px rgba(255, 26, 140, 0.15);
}

/* ================================================================
   GLOW UTILITIES
   ================================================================ */

.glow-red   { box-shadow: var(--glow-red-sm); }
.glow-yellow{ box-shadow: var(--glow-yellow-sm); }
.glow-pink  { box-shadow: var(--glow-pink-sm); }

.glow-red-lg   { box-shadow: var(--glow-red-lg); }
.glow-yellow-lg{ box-shadow: var(--glow-yellow-lg); }
.glow-pink-lg  { box-shadow: var(--glow-pink-lg); }

.text-glow-red    { text-shadow: var(--glow-red-sm); }
.text-glow-yellow { text-shadow: var(--glow-yellow-sm); }
.text-glow-pink   { text-shadow: var(--glow-pink-sm); }

/* ================================================================
   NEON TEXT TREATMENTS
   ================================================================ */

.text-neon-red {
  color: var(--neon-red);
  text-shadow:
    0 0 6px rgba(255, 10, 34, 0.9),
    0 0 14px rgba(255, 10, 34, 0.7),
    0 0 30px rgba(255, 10, 34, 0.45),
    0 0 60px rgba(255, 10, 34, 0.2);
}

.text-neon-yellow {
  color: var(--neon-yellow);
  text-shadow:
    0 0 6px rgba(255, 208, 0, 0.9),
    0 0 14px rgba(255, 208, 0, 0.7),
    0 0 30px rgba(255, 208, 0, 0.45),
    0 0 60px rgba(255, 208, 0, 0.2);
}

.text-neon-pink {
  color: var(--neon-pink);
  text-shadow:
    0 0 6px rgba(255, 0, 153, 0.9),
    0 0 14px rgba(255, 0, 153, 0.7),
    0 0 30px rgba(255, 0, 153, 0.45),
    0 0 60px rgba(255, 0, 153, 0.2);
}

/* ================================================================
   SPRAY PAINT REVEAL HOVER — .cta-spray
   Layered paint reveal on hover via ::before pseudo-element
   ================================================================ */

.cta-spray {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  backface-visibility: hidden;
}

.cta-spray::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 120% at 50% 50%,
    rgba(247, 199, 0, 0.18) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.cta-spray:hover::before {
  opacity: 1;
}

.cta-spray > * {
  position: relative;
  z-index: 1;
}

/* ================================================================
   GLITCH BUTTON EFFECT — .btn-glitch
   ================================================================ */

@keyframes glitch-shift-1 {
  0%   { clip-path: inset(10% 0 80% 0); transform: translateX(-3px); }
  25%  { clip-path: inset(50% 0 30% 0); transform: translateX(3px); }
  50%  { clip-path: inset(20% 0 60% 0); transform: translateX(-2px); }
  75%  { clip-path: inset(70% 0 10% 0); transform: translateX(2px); }
  100% { clip-path: inset(10% 0 80% 0); transform: translateX(-3px); }
}

@keyframes glitch-shift-2 {
  0%   { clip-path: inset(60% 0 20% 0); transform: translateX(2px); }
  25%  { clip-path: inset(15% 0 65% 0); transform: translateX(-2px); }
  50%  { clip-path: inset(80% 0 5%  0); transform: translateX(3px); }
  75%  { clip-path: inset(35% 0 45% 0); transform: translateX(-3px); }
  100% { clip-path: inset(60% 0 20% 0); transform: translateX(2px); }
}

.btn-glitch {
  position: relative;
  isolation: isolate;
  will-change: transform;
  backface-visibility: hidden;
}

.btn-glitch::before,
.btn-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  font: inherit;
}

.btn-glitch::before {
  color: var(--accent);
  left: -2px;
}

.btn-glitch::after {
  color: var(--accent-2);
  left: 2px;
}

.btn-glitch:hover::before {
  opacity: 0.75;
  animation: glitch-shift-1 0.35s steps(1) infinite;
}

.btn-glitch:hover::after {
  opacity: 0.75;
  animation: glitch-shift-2 0.35s steps(1) infinite;
}

/* ================================================================
   ENHANCED CARD HOVER
   Automatic border glow + shadow lift for .card elements
   ================================================================ */

.card {
  position: relative;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(232, 19, 42, 0.35);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 19, 42, 0.12);
}

/* ================================================================
   SERVICE ITEM HOVER
   Left border reveal + background gradient
   ================================================================ */

.svc {
  position: relative;
  transition: background 0.3s ease, padding-left 0.3s ease;
  will-change: transform;
}

.svc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(232, 19, 42, 0.5);
}

.svc:hover::before {
  transform: scaleY(1);
}

.svc:hover {
  background: linear-gradient(90deg, rgba(232, 19, 42, 0.04) 0%, transparent 60%);
}

/* ================================================================
   NAV LINK UNDERLINE SPRAY
   Animated spray-paint underline via ::after
   ================================================================ */

.nav ul a {
  position: relative;
}

.nav ul a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(232, 19, 42, 0.6);
}

.nav ul a:hover::after,
.nav ul a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ================================================================
   PACKAGE CARD HOVER
   Top border reveal + shadow
   ================================================================ */

.pkg {
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  backface-visibility: hidden;
}

.pkg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 14px rgba(232, 19, 42, 0.5);
  z-index: 1;
}

.pkg:hover::before {
  transform: scaleX(1);
}

.pkg:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(232, 19, 42, 0.1);
  transform: translateY(-3px);
}

/* Featured package gets yellow gradient */
.pkg.feat::before {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(247, 199, 0, 0.5);
}

/* ================================================================
   FAQ ACCORDION ENHANCEMENTS
   ================================================================ */

.q {
  position: relative;
  transition: background 0.25s ease;
}

.q[open] {
  background: linear-gradient(90deg, rgba(232, 19, 42, 0.04) 0%, transparent 80%);
}

.q summary {
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  outline: none;
}

.q summary:hover {
  color: var(--ink);
}

.q summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateY(-50%);
  opacity: 0;
}

.q[open] > summary::before {
  width: 100%;
  opacity: 0.15;
}

/* ================================================================
   FORM INPUT GLOW ON FOCUS
   ================================================================ */

.book input:focus,
.book textarea:focus,
.book select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 19, 42, 0.12), 0 0 16px rgba(232, 19, 42, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ================================================================
   CHIP TOGGLE SPRAY EFFECT
   ================================================================ */

.chip {
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(232, 19, 42, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.chip:hover::before,
.chip.active::before {
  opacity: 1;
}

.chip.active {
  box-shadow: 0 0 16px rgba(232, 19, 42, 0.25);
}

/* ================================================================
   SUBMIT BUTTON HOVER REVEAL
   ================================================================ */

.book button[type="submit"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(247, 199, 0, 0.15) 0%,
    rgba(232, 19, 42, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.book button[type="submit"]:hover::before {
  opacity: 1;
}

.book button[type="submit"]:hover {
  box-shadow: 0 0 24px rgba(232, 19, 42, 0.3), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.book button[type="submit"] > * {
  position: relative;
  z-index: 1;
}

/* ================================================================
   TICKER STAR GLOW & PULSE
   ================================================================ */

.ticker .star,
.name-ticker .star {
  display: inline-block;
  color: var(--accent-2);
  filter: drop-shadow(0 0 6px rgba(247, 199, 0, 0.7));
  animation: star-pulse 3s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(247, 199, 0, 0.7)); opacity: 1; }
  50%       { filter: drop-shadow(0 0 14px rgba(247, 199, 0, 1));  opacity: 0.8; }
}

/* ================================================================
   SCROLL REVEAL UTILITIES
   Use with IntersectionObserver in JS or add .revealed class
   ================================================================ */

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.reveal-fade.revealed {
  opacity: 1;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   HARDWARE ACCELERATION HELPERS
   ================================================================ */

.gpu {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ================================================================
   LOGO HOVER ENHANCEMENT
   ================================================================ */

.nav .logo {
  transition: letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.nav .logo:hover {
  text-shadow: 0 0 20px rgba(232, 19, 42, 0.4);
  letter-spacing: 0.05em;
}

/* ================================================================
   HERO STICKER HOVER POP
   ================================================================ */

.sticker {
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease;
  will-change: transform;
}

.sticker:hover {
  transform: scale(1.06) rotate(var(--r, -2deg));
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ================================================================
   ABOUT STATS HOVER
   ================================================================ */

.stat {
  position: relative;
  transition: transform 0.25s ease;
  will-change: transform;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat .num {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.stat:hover .num {
  color: var(--accent-2);
  text-shadow: 0 0 20px rgba(247, 199, 0, 0.4);
}

/* ================================================================
   VISIT LINK ACCENT ON CARDS
   ================================================================ */

.card .visit {
  position: relative;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.card .visit:hover {
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

/* =============== MOBILE =============== */
@media (max-width: 720px) {
  /* Simplify animations for mobile performance */
  .btn-glitch::before,
  .btn-glitch::after {
    display: none;
  }

  .svc::before {
    transition: transform 0.2s ease;
  }

  .pkg:hover {
    transform: translateY(-1px);
  }

  .reveal-up,
  .reveal-left {
    opacity: 1;
    transform: none;
  }

  .star-pulse {
    animation-duration: 4s;
  }

  .nav ul a::after {
    height: 1px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn-glitch::before,
  .btn-glitch::after,
  .cta-spray::before,
  .reveal-up,
  .reveal-left,
  .reveal-fade {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .ticker .star,
  .name-ticker .star {
    animation: none;
  }
}
