/* Testimonials Page Styles */

/* Container principal */
.testimonials-container {
    padding-top: 140px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 80px;
}

/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.testimonials-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 8vw, 96px);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -2px;
}

.testimonials-subtitle {
    font-size: 20px;
    color: var(--silver);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Featured testimonial */
.featured-testimonial {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 80px 60px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.featured-testimonial::before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 200px;
    color: rgba(206, 28, 28, 0.05);
    line-height: 1;
    pointer-events: none;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.featured-author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.featured-author-info {
    text-align: left;
}

.featured-author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.featured-author-title {
    font-size: 14px;
    color: var(--silver);
    font-weight: 400;
}

.featured-author-company {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* Testimonials grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(206, 28, 28, 0.02), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.star {
    color: var(--accent);
    font-size: 18px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: rgba(206, 28, 28, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cream);
    transition: border-color 0.3s ease;
}

.testimonial-card:hover .author-image {
    border-color: var(--accent);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 3px;
}

.author-title {
    font-size: 13px;
    color: var(--silver);
}

.author-company {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
}

/* Trust indicators */
.trust-section {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 60px;
    margin-bottom: 100px;
    text-align: center;
}

.trust-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 50px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.trust-badge:nth-child(1) { animation-delay: 0.2s; }
.trust-badge:nth-child(2) { animation-delay: 0.3s; }
.trust-badge:nth-child(3) { animation-delay: 0.4s; }

.badge-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.trust-badge:hover .badge-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.badge-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--accent);
    transition: fill 0.3s ease;
}

.trust-badge:hover .badge-icon svg {
    fill: var(--white);
}

.badge-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.badge-value {
    font-size: 12px;
    color: var(--silver);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 40px;
    background: var(--charcoal);
    color: var(--white);
    margin: 0 -60px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Back navigation */
.back-navigation {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1001;
    animation: fadeIn 1s ease 0.8s both;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(250, 249, 247, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 50px;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
    border-color: rgba(206, 28, 28, 0.2);
}

.back-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Read More Button Wrapper - Centers the button */
.read-more-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

/* Read More Button Styles */
.read-more-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin: 1rem 0 2rem 0;
    background: transparent;
    border: 2px solid #CE1C1C;
    color: #CE1C1C;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #CE1C1C;
    color: white;
}

/* Smooth text transitions */
.text-content {
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        padding-top: 120px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .back-navigation {
        top: 30px;
        left: 30px;
    }

    .testimonials-title {
        font-size: 48px;
    }

    .featured-testimonial {
        padding: 50px 30px;
        margin-left: -30px;
        margin-right: -30px;
    }

    .featured-quote {
        font-size: 22px;
    }

    .featured-author {
        flex-direction: column;
        text-align: center;
    }

    .featured-author-info {
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .trust-section {
        padding: 40px 30px;
        margin-left: -30px;
        margin-right: -30px;
    }

    .trust-badges {
        gap: 40px;
    }

    .cta-section {
        margin: 0 -30px;
        padding: 80px 30px;
    }

    .cta-title {
        font-size: 40px;
    }

    .back-link {
        padding: 10px 16px;
        font-size: 12px;
    }
}
