/**
 * Testimonials Page Styles
 * MyHomePros
 * 
 * Requires: main.css for variables
 * 
 * @package MyHomePros
 */

/* ========================================
   HERO
   ======================================== */
.tm-hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    padding: 4rem 1.5rem 4.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .tm-hero {
        padding: 5rem 2rem 5.5rem;
    }
}

.tm-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.tm-hero .mhp-breadcrumb {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tm-hero .mhp-breadcrumb-link {
    color: var(--slate-400);
}

.tm-hero .mhp-breadcrumb-link:hover {
    color: var(--primary-400);
}

.tm-hero .mhp-breadcrumb-separator {
    color: var(--slate-500);
}

.tm-hero .mhp-breadcrumb-current {
    color: var(--slate-300);
}

.tm-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .tm-hero-title {
        font-size: 2.75rem;
    }
}

.tm-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-300);
    margin: 0;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   STATS BAR
   ======================================== */
.tm-stats {
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 0 1.5rem;
}

.tm-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.75rem 0;
}

@media (min-width: 768px) {
    .tm-stats-inner {
        gap: 2.5rem;
        padding: 2rem 0;
    }
}

.tm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.tm-stat-number {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-500);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .tm-stat-number {
        font-size: 1.75rem;
    }
}

.tm-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tm-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--slate-200);
    display: none;
}

@media (min-width: 768px) {
    .tm-stat-divider {
        display: block;
    }
}

/* ========================================
   SHARED SECTION
   ======================================== */
.tm-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.tm-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--slate-900);
    margin: 0;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .tm-section-title {
        font-size: 2rem;
    }
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */
.tm-testimonials {
    padding: 3.5rem 1.5rem 4rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .tm-testimonials {
        padding: 4rem 2rem 5rem;
    }
}

.tm-testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .tm-testimonials-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.tm-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .tm-card {
        padding: 2rem 1.75rem;
    }
}

/* Quote icon */
.tm-card-quote-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-100);
    margin-bottom: 0.75rem;
}

.tm-card-quote-icon svg {
    width: 100%;
    height: 100%;
}

/* Stars */
.tm-card-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.875rem;
}

.tm-card-stars svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

/* Headline */
.tm-card-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

/* Quote text */
.tm-card-text {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

/* Author row */
.tm-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}

/* Avatar */
.tm-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.tm-avatar-primary {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
}

.tm-avatar-teal {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
}

.tm-avatar-amber {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* Author info */
.tm-card-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tm-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate-800);
}

.tm-card-meta {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.tm-how {
    padding: 4rem 1.5rem;
    background: white;
    text-align: center;
}

@media (min-width: 768px) {
    .tm-how {
        padding: 5rem 2rem;
    }
}

.tm-how-inner {
    max-width: 900px;
    margin: 0 auto;
}

.tm-how-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .tm-how-steps {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

/* Step */
.tm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.tm-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-600);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-200);
}

.tm-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.tm-step p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
    margin: 0;
}

/* Connector line */
.tm-step-connector {
    width: 2px;
    height: 32px;
    background: var(--slate-200);
    flex-shrink: 0;
    margin: 0.5rem 0;
}

@media (min-width: 768px) {
    .tm-step-connector {
        width: 48px;
        height: 2px;
        margin: 24px 0 0 0;
    }
}

/* ========================================
   CTA
   ======================================== */
.tm-cta {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    text-align: center;
}

@media (min-width: 768px) {
    .tm-cta {
        padding: 5rem 2rem;
    }
}

.tm-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.tm-cta h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .tm-cta h2 {
        font-size: 2.25rem;
    }
}

.tm-cta p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.tm-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .tm-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.tm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9375rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.tm-cta-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.tm-cta-btn:hover svg {
    transform: translateX(3px);
}

.tm-cta-btn-primary {
    background: white;
    color: var(--primary-600) !important;
}

.tm-cta-btn-primary:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tm-cta-btn-outline {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.tm-cta-btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .tm-hero-title {
        font-size: 1.875rem;
    }
    
    .tm-stats-inner {
        gap: 1rem;
    }
    
    .tm-stat-number {
        font-size: 1.25rem;
    }
    
    .tm-card {
        padding: 1.5rem 1.25rem;
    }
    
    .tm-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
