/* 
 * Component: Testimonials
 * Migrated to Vanilla CSS + Tokens (Tailwind-Ready)
 */

/* main.css excludes #testimonials from global section padding so we control spacing here */
.app-testimonials {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    background-color: var(--color-bg-body);
    scroll-margin-top: 100px;
}
@media (max-width: 1199px) {
    .app-testimonials {
        scroll-margin-top: 66px;
    }
}

.app-testimonials__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section header: title uses shared .home-section__title in site.css */
.app-testimonials__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.app-testimonials__subtitle {
    color: color-mix(in srgb, var(--color-text-main), transparent 30%);
    max-width: 600px;
    margin: 0 auto;
}

/* 
 * Robust Slider Layout (Grid Overlay)
 * This creates a stack where the controls float perfectly centered over the slider
 */
/* 
 * Robust Slider Layout (Standard Swiper)
 * Reverted to absolute positioning to match live site exactly
 */
.app-testimonials__wrapper {
    position: relative;
    /* Grid overlay removed */
}

.app-testimonials__slider {
    padding: 12px;
    width: 100%;
    overflow: visible;
}

/* On small screens: extra side padding so single centered card clears nav arrows */
@media (max-width: 767px) {
    .app-testimonials__slider {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.app-testimonials__nav {
    display: none;
    /* Removed custom nav layer */
}

/* Cards need side padding from container logic elsewhere or Swiper spacing */
/* Swiper Slide Sizing & Shadow Buffer */
.swiper-slide {
    height: auto;
    padding: 12px 5px;
}

/* Cleaned up orphaned CSS */

/* Testimonial Card */
.app-testimonial-card {
    background: var(--color-bg-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid color-mix(in srgb, var(--color-text-main), transparent 92%);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.3s;
    user-select: none;
    margin: 0;
    width: 100%;
}

.app-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: color-mix(in srgb, var(--color-accent), transparent 80%);
}

.app-testimonial-card__text {
    font-style: italic;
    color: color-mix(in srgb, var(--color-text-main), transparent 25%);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 0;
}

.app-testimonial-card__name {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-accent);
    margin-bottom: 2px;
}

.app-testimonial-card__business {
    font-size: 14px;
    color: color-mix(in srgb, var(--color-text-main), transparent 45%);
}

/* Swiper Controls Customization */
/* Live Site Swiper Controls */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    /* Reverted to absolute */
    top: 50%;
    margin-top: -24px;
    /* Half of 48px height */
    width: 48px;
    /* Live site value */
    height: 48px;
    /* Live site value */
    background-color: #f8f9fa;
    /* Keeping distinct off-white for now, or could make a token */
    color: var(--color-accent);
    /* Keep our blue */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: none;
    /* Live site has no shadow initially */
    transition: 0.3s;
}

.swiper-button-prev {
    left: -20px;
    /* Live site positioning */
}

.swiper-button-next {
    right: -20px;
    /* Live site positioning */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    /* Live site value */
    font-weight: 700;
}

@media (max-width: 991px) {
    .swiper-button-prev {
        left: 0;
    }

    .swiper-button-next {
        right: 0;
    }
}