/* =====================================================================
   PHC Feedback page -- Testimonials card reveal + hover lift
   ----------------------------------------------------------------
   Mirrors the .phc-why-choose-card pattern in phc-client-homepage.css.
   Lives here (NOT in the section's xpro_custom_css) because Xpro's
   inline <style> loads before Elementor's .e-con default
       transition: background 0.3s, border 0.3s, box-shadow 0.3s, transform 0.4s
   and loses the cascade at simple specificity. Mu-plugin .css files
   load after Elementor's frontend CSS via phc-styles.php, so they win.

   Reveal driver: WPCode snippet #76 "PHC Methodology Reveal".
   It already maps .phc-testimonials-section -> .phc-testimonial-cards ->
   .phc-testimonial-card and toggles .phc-revealing / .phc-revealed
   (with .phc-observed on the container so the no-JS fallback below
   stops firing once the observer is live).
   ===================================================================== */

/* -- Reveal initial state -------------------------------------------- */

.phc-testimonial-card {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.6s ease,
        transform 0.35s ease-out,
        box-shadow 0.35s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.phc-testimonial-card.phc-revealing,
.phc-testimonial-card.phc-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* -- Hover lift ------------------------------------------------------- */

@media (hover: hover) {
    .phc-testimonial-card.phc-revealed:hover {
        transform: translate3d(0, -6px, 0);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
}

/* -- No-JS fallback --------------------------------------------------- */

.phc-testimonial-cards:not(.phc-observed) .phc-testimonial-card {
    opacity: 1;
    transform: none;
}

/* -- Reduced-motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .phc-testimonial-card {
        transition: none;
    }
    .phc-testimonial-card.phc-revealed:hover {
        transform: none;
    }
}

/* -- Watch Video trigger ---------------------------------------------- */

.phc-video-trigger {
    cursor: pointer;
}

.phc-video-trigger .elementor-widget-text-editor p {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
}

.phc-video-trigger .elementor-widget-text-editor p::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 0.25s ease;
}

@media (hover: hover) {
    .phc-video-trigger:hover .elementor-widget-text-editor p::after {
        width: 100%;
    }
}

/* -- Video modal ------------------------------------------------------ */

.phc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.phc-video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.phc-video-modal__inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.phc-video-modal.is-open .phc-video-modal__inner {
    transform: scale(1);
}

.phc-video-modal iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (prefers-reduced-motion: reduce) {
    .phc-video-modal,
    .phc-video-modal__inner {
        transition: none;
    }
}
