/* ============================================================
   CRIMSON ECHO - Interactive enhancement layer
   Calm boutique motion with reduced-motion support
   ============================================================ */

/* ---- keep section content above decorative layers ---- */
.hero .wrap,
.cta .wrap,
.band .wrap { position: relative; z-index: 2; }
.hero, .cta, .band { position: relative; }

/* ============================================================
   Echo rings behind hero visual
   ============================================================ */
.echo-rings {
  position: absolute;
  left: -64px; bottom: -36px;
  width: 230px; height: 230px;
  pointer-events: none;
  z-index: 0;
}
.echo-rings span {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.3);
  animation: echoPulse 4.8s ease-out infinite;
}
.echo-rings span:nth-child(2) { animation-delay: 1.6s; }
.echo-rings span:nth-child(3) { animation-delay: 3.2s; }
@keyframes echoPulse {
  0%   { opacity: .0;  transform: scale(.3); }
  18%  { opacity: .34; }
  100% { opacity: 0;   transform: scale(1.15); }
}

/* ============================================================
   Hero image layer
   ============================================================ */
.hero__visual { isolation: isolate; }
.hero__visual .media-frame,
.hero__visual .ph { position: relative; z-index: 1; }
.hero__badge { z-index: 3; transform: none !important; }

/* word-rise headline */
.js .hero h1 .word { display: inline-block; }
.js .hero h1 .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease;
}
.js .hero h1 .word { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .hero.in h1 .word > span { transform: none; opacity: 1; }
.js .hero h1 .word:nth-child(1) > span { transition-delay: .05s; }
.js .hero h1 .word:nth-child(2) > span { transition-delay: .12s; }
.js .hero h1 .word:nth-child(3) > span { transition-delay: .19s; }
.js .hero h1 .word:nth-child(4) > span { transition-delay: .26s; }
.js .hero h1 .word:nth-child(5) > span { transition-delay: .33s; }
.js .hero h1 .word:nth-child(6) > span { transition-delay: .40s; }
.js .hero h1 .word:nth-child(7) > span { transition-delay: .47s; }
.js .hero h1 .word:nth-child(8) > span { transition-delay: .54s; }

/* ============================================================
   Cursor spotlight on cards
   ============================================================ */
.svc, .step, .vcard, .testimonial, .svc-row { position: relative; }
.svc::after, .step::after, .vcard::after, .testimonial::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(165,18,60,0.10), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.svc:hover::after, .step:hover::after, .vcard:hover::after, .testimonial:hover::after { opacity: 1; }
/* keep the service card's existing arrow/content above the glow */
.svc > *, .step > *, .vcard > *, .testimonial > * { position: relative; z-index: 1; }

/* ============================================================
   Magnetic buttons
   ============================================================ */
.btn { will-change: transform; }

/* ============================================================
   Image clip reveal for hero
   ============================================================ */
.js .reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.78,0,.18,1); }
.js .reveal-clip.in { clip-path: inset(0 0 0 0); }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 20px 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 30px);
  color: var(--ink);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  background: currentColor;
  color: var(--brand);
  border-radius: 50%;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   Sticky mobile booking bar
   ============================================================ */
.book-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 56;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 20px;
  background: rgba(34,22,25,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(38,29,31,0.30);
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.34,1.3,.64,1);
}
.book-bar.show { transform: none; }
.book-bar__txt { color: #fff; line-height: 1.15; }
.book-bar__txt b { font-family: var(--font-display); font-weight: 600; font-size: 16px; display: block; }
.book-bar__txt span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 900px) {
  .book-bar { display: flex; }
  .to-top { bottom: 86px; }
}

/* ============================================================
   Animated nav indicator + eyebrow pulse
   ============================================================ */
.eyebrow::before { animation: dotPulse 3s ease-in-out infinite; }
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 4px var(--brand-tint); }
  50%     { box-shadow: 0 0 0 7px rgba(165,18,60,0.10); }
}

/* hover lift on stat numbers */
.stat strong { transition: transform .3s cubic-bezier(.34,1.56,.64,1); display: block; }
.hero__meta strong { transition: transform .3s cubic-bezier(.34,1.56,.64,1); display: block; }
.stat:hover strong, .hero__meta div:hover strong { transform: translateY(-3px); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .echo-rings span, .eyebrow::before { animation: none !important; }
  .echo-rings { display: none !important; }
  .marquee__track { animation: none !important; }
  .js .hero h1 .word > span { transform: none !important; opacity: 1 !important; transition: none !important; }
  .js .reveal-clip { clip-path: none !important; }
  .book-bar { transition: none; }
}
