/* =============================================
   PRIME EVENTS — MOTION
   Restrained, foil-and-candlelight motion: a single
   orchestrated page load, slow reveals on scroll, and
   hover states that behave like polished metal.
   ============================================= */

/* ---- Hero load: one staggered curtain-up ---- */
@keyframes pf-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pf-plate-in {
    from { opacity: 0; transform: translateY(34px) scale(0.965); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pf-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pf-hero-text > * {
    animation: pf-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pf-hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.pf-hero-text > *:nth-child(2) { animation-delay: 0.17s; }
.pf-hero-text > *:nth-child(3) { animation-delay: 0.29s; }
.pf-hero-text > *:nth-child(4) { animation-delay: 0.39s; }
.pf-hero-text > *:nth-child(5) { animation-delay: 0.49s; }
.pf-hero-text > *:nth-child(6) { animation-delay: 0.59s; }

.pf-hero-photo-main   { animation: pf-plate-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
.pf-hero-photo-accent { animation: pf-plate-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both; }
.pf-hero-photo-tag    { animation: pf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both; }
.pf-hero-stat-badge   { animation: pf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.84s both; }

.pf-hero-ring,
.pf-hero-dots { animation: pf-fade 2.2s ease 0.2s both; }

/* ---- Scroll reveal (driven by js/local.js) ----
   Scoped to .pf-js, which an inline script in the <head> sets. Without
   JavaScript nothing is ever hidden, so the page can never render blank. */
.pf-js .pf-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--pf-delay, 0s);
    will-change: opacity, transform;
}

.pf-js .pf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Starburst twinkle ---- */
@keyframes pf-twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.82) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1) rotate(45deg); }
}

.pe-star--twinkle {
    animation: pf-twinkle 4.5s ease-in-out infinite;
}

.pe-star--twinkle:nth-of-type(2) { animation-delay: 2.2s; }

/* ---- Nav underline, drawn from the centre like a hairline rule ---- */
.pf-navbar-wrapper ul li a { position: relative; }

.pf-navbar-wrapper ul li a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-navbar-wrapper ul li a:hover::after { transform: scaleX(1); }

/* ---- Button press ---- */
.pf-btn-primary:active,
.pf-btn-outline:active,
.pf-btn-secondary:active {
    transform: translateY(0) scale(0.985);
}

/* ---- Hours rows slide their day label on hover ---- */
.pf-hours-list li {
    transition: background 0.3s ease, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-hours-list li:hover { padding-left: 52px; }

/* ---- Carousel arrows ---- */
.pf-testimonials-section .carousel-control-prev:hover { transform: translateY(-50%) translateX(-3px); }
.pf-testimonials-section .carousel-control-next:hover { transform: translateY(-50%) translateX(3px); }

/* ---- Value-prop diamond lifts slightly ---- */
.pf-valueprop-card:hover .pf-valueprop-icon {
    transform: rotate(45deg) translate(-2px, -2px);
}

/* =============================================
   REDUCED MOTION
   Everything above degrades to a plain, static page.
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .pf-js .pf-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
