/**
 * Hero and floating-widget animations (previously printed inline in wp_head).
 * Kept in a cacheable stylesheet so it can be served/compressed by the browser.
 */
@keyframes pvcFadeUp {
    0% { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pvcFloatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pvcKernelZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.animate-fade-up {
    animation: pvcFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }

.animate-float {
    animation: pvcFloatSlow 4.5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: pvcFloatSlow 5s ease-in-out 2.2s infinite;
}

.animate-hero-zoom {
    animation: pvcKernelZoom 12s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-float,
    .animate-float-delayed,
    .animate-hero-zoom {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------------ */
/* Scroll reveal system (see src/js/motion.js)                          */
/* ------------------------------------------------------------------ */
.pvc-reveal {
    opacity: 0;
    transform: var(--pvc-reveal-offset, translate3d(0, 28px, 0));
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.pvc-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------------ */
/* Counters                                                            */
/* ------------------------------------------------------------------ */
.pvc-counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ------------------------------------------------------------------ */
/* Sticky header shrink                                                */
/* ------------------------------------------------------------------ */
[data-sticky-header] {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

[data-sticky-header].is-scrolled {
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.28);
}

/* ------------------------------------------------------------------ */
/* Shared hover / focus polish                                         */
/* ------------------------------------------------------------------ */
.pvc-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.pvc-lift:hover {
    transform: translateY(-4px);
}

.pvc-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.pvc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.45);
}

.pvc-card:hover .pvc-card-media img {
    transform: scale(1.06);
}

.pvc-card-media {
    overflow: hidden;
}

.pvc-card-media img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Focus ring for keyboard users on the storefront */
.pvc-focus:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .pvc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pvc-lift:hover,
    .pvc-card:hover {
        transform: none;
    }

    .pvc-card-media img {
        transition: none;
    }
}

