﻿/* -------------------------------------------------
   TESTIMONIALS — HERO
   ------------------------------------------------- */

#section-testimonials {
    background: linear-gradient( rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) ), url('../../img/shared/testimonial.jpg') center/cover no-repeat;
    color: #ffffff;
}

    #section-testimonials h1 {
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }

/* Rating pill under hero title */
.srv-rating-pill {
    background-color: rgba(15, 118, 110, 0.18);
    color: #e5f6f3;
    border: 1px solid rgba(45, 212, 191, 0.6);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}



/* -------------------------------------------------
   TESTIMONIAL CARDS — BASE LOOK & ANIMATION
   ------------------------------------------------- */

.card.testimonial-card {
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    /* Scroll-reveal baseline (hidden + slightly down) */
    opacity: 0;
    transform: translateY(24px) scale(0.98) !important;
    /* Slower, premium-feel transitions */
    transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    animation: none !important;
}

    /* When JS adds .is-visible, the card fades/slides in */
    .card.testimonial-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Featured cards (first row) */
.testimonial-card-featured {
    border-color: rgba(34, 197, 139, 0.45);
    box-shadow: 0 18px 48px rgba(22, 101, 52, 0.22);
}

/* Soft inner glow overlay */
.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient( circle at top left, rgba(100, 150, 120, 0.12), transparent 55% );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Lift + glow on hover (still snappy) */
.testimonial-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.16);
    border-color: rgba(100, 150, 120, 0.4);
}

    .testimonial-card:hover::before {
        opacity: 1;
    }



/* -------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------- */

.awc-stars i {
    font-size: 1.1rem;
    color: #0d6efd;
    margin-right: 2px;
}

.testimonial-text,
.reviewer-name {
    font-family: "Inter", sans-serif;
}

/* Main testimonial text */
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3a3a3a;
    margin: 0;
}

/* Quote icons */
.quote-open,
.quote-close {
    font-size: 2.4rem;
    color: rgba(0, 0, 0, 0.08);
    position: absolute;
    z-index: 0;
}

.quote-open {
    top: -10px;
    left: -2px;
}

.quote-close {
    bottom: -5px;
    right: 4px;
    transform: rotate(180deg);
}

/* Reviewer line */
.google-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reviewer-name {
    font-size: 0.95rem;
    letter-spacing: 0.015em;
    color: #273b2c;
}



/* -------------------------------------------------
   MASONRY / VISUAL RHYTHM (DESKTOP)
   ------------------------------------------------- 

@media (min-width: 992px) {
    .testimonials-grid .col-lg-4:nth-child(3n+2) {
        margin-top: 1.5rem;
    }

    .testimonials-grid .col-lg-4:nth-child(3n+3) {
        margin-top: 3rem;
    }
}
*/


/* -------------------------------------------------
   MOBILE TWEAKS
   ------------------------------------------------- */

@media (max-width: 575.98px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Keyframes for fade + slide up */
@keyframes ws-fade-up {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* When .is-visible is added, actually run the animation */
.card.testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: ws-fade-up 1.9s ease-out forwards !important;
}
