/* ==========================================================================
   LOCAL SCAFFOLDING LTD - Testimonials page
   Used by testimonials.php
   ========================================================================== */

/* ---------- Hero ---------- */
.ls-testimonials-hero {
    background: var(--ls-purple);
    color: var(--ls-white);
    padding: var(--ls-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.ls-testimonials-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ls-yellow);
}

.ls-testimonials-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ls-testimonials-hero .ls-eyebrow {
    color: var(--ls-yellow);
    margin-bottom: var(--ls-space-md);
    display: block;
}

.ls-testimonials-hero h1 {
    font-size: 2.5rem;
    color: var(--ls-white);
    margin-bottom: var(--ls-space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.ls-testimonials-hero h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--ls-yellow);
    border-radius: 2px;
}

.ls-testimonials-hero-lede {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--ls-space-lg);
}

.ls-testimonials-hero-inner .ls-review-pill {
    margin: 0 auto;
}

/* ---------- Reviews section ---------- */
.ls-testimonials-section {
    background: linear-gradient(180deg, var(--ls-off-white) 0%, var(--ls-white) 100%);
}

/* Uniform grid - equal-height cards, three across */
.ls-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ls-space-lg);
    align-items: stretch;
}

/* ---------- Review card ---------- */
.ls-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ls-white);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius-lg);
    padding: var(--ls-space-lg);
    box-shadow: 0 2px 10px rgba(31, 31, 46, 0.04);
    transition: transform var(--ls-transition), box-shadow var(--ls-transition), border-color var(--ls-transition);
}

.ls-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(59, 19, 68, 0.1);
    border-color: var(--ls-border-dark);
}

/* Top row - stars on the left, Google logo on the right */
.ls-testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ls-space-md);
    margin-bottom: var(--ls-space-md);
}

.ls-testimonial-stars {
    display: flex;
    gap: 3px;
    color: var(--ls-yellow);
    font-size: 0.875rem;
}

/* Google "G" logo mark */
.ls-testimonial-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ls-testimonial-google svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Review text - clamped by default, fills available space */
.ls-testimonial-text {
    font-size: 0.9375rem;
    color: var(--ls-text);
    line-height: 1.7;
    margin: 0 0 var(--ls-space-sm);
    flex: 1;
}

/* Clamped state - shows ~6 lines, rest hidden */
.ls-testimonial-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more / less toggle */
.ls-testimonial-toggle {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: var(--ls-space-md);
    font-family: var(--ls-font);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ls-teal);
    cursor: pointer;
    transition: color var(--ls-transition);
}

.ls-testimonial-toggle:hover {
    color: var(--ls-teal-dark);
    text-decoration: underline;
}

/* Hidden when JS isn't available or review is short enough not to need it */
.ls-testimonial-toggle[hidden] {
    display: none;
}

/* Reviewer name + detail - pinned to the bottom */
.ls-testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: var(--ls-space-md);
    border-top: 1px solid var(--ls-border);
}

.ls-testimonial-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ls-text);
}

.ls-testimonial-detail {
    font-size: 0.8125rem;
    color: var(--ls-text-light);
}

/* ---------- CTA ---------- */
.ls-testimonials-cta {
    background: var(--ls-purple);
    color: var(--ls-white);
    position: relative;
    overflow: hidden;
}

.ls-testimonials-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ls-yellow);
}

.ls-testimonials-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ls-testimonials-cta-inner h2 {
    font-size: 1.875rem;
    color: var(--ls-white);
    margin-bottom: var(--ls-space-md);
    line-height: 1.2;
}

.ls-testimonials-cta-inner p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--ls-space-xl);
}

.ls-testimonials-cta-actions {
    display: flex;
    gap: var(--ls-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
    .ls-testimonials-hero {
        padding: 56px 0;
    }

    .ls-testimonials-hero h1 {
        font-size: 2rem;
    }

    .ls-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ls-space-md);
    }

    .ls-testimonials-cta-inner h2 {
        font-size: 1.625rem;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .ls-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ls-testimonials-hero h1 {
        font-size: 1.75rem;
    }

    .ls-testimonials-cta-actions {
        flex-direction: column;
    }

    .ls-testimonials-cta-actions .ls-btn {
        width: 100%;
    }
}
