/* =========================================================
   CASANOVA CAR RENTAL — HOME PAGE: CLIENT TESTIMONIALS
   Carousel section (same shell pattern as Fleet carousel)
   Colors: Amber #FFBF01 | Rich Black #111111
========================================================= */

.testimonials-section {
    position: relative;
    background-color: var(--color-rich-black);
    padding: 50px 0;
    overflow: hidden;
}

/* Soft amber glow, consistent with other sections */
.testimonials-section::before {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 191, 1, 0.1) 0%, rgba(255, 191, 1, 0) 70%);
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* -----------------------------------------
   Heading
----------------------------------------- */
.testimonials-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.testimonials-eyebrow {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 16px;
}

.testimonials-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 44px);
    color: var(--color-white);
    line-height: 1.2;
}

/* -----------------------------------------
   Carousel Shell
----------------------------------------- */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonials-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

/* -----------------------------------------
   Arrows
----------------------------------------- */
.testimonials-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    z-index: 2;
}

.testimonials-arrow:hover {
    background-color: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-rich-black);
    transform: scale(1.05);
}

.testimonials-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* -----------------------------------------
   Testimonial Card
----------------------------------------- */
.testimonial-card {
    flex: 0 0 calc(33.333% - 19px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 191, 1, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-6px);
}

.testimonial-quote-icon {
    color: var(--color-amber);
    opacity: 0.85;
    margin-bottom: 18px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.testimonial-rating .star {
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-rating .star.is-filled {
    color: var(--color-amber);
}

.testimonial-text {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 191, 1, 0.12);
    color: var(--color-amber);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-white);
}

.testimonial-role {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* -----------------------------------------
   Dots
----------------------------------------- */
.testimonials-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.testimonials-dots .testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.testimonials-dots .testimonials-dot.is-active {
    background-color: var(--color-amber);
    width: 22px;
    border-radius: 4px;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-container {
        padding: 0 24px;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 14px);
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 860px) {
    .testimonials-heading {
        margin-bottom: 40px;
    }

    .testimonials-arrow {
        display: none; /* swipe on touch devices instead */
    }

    .testimonial-card {
        flex: 0 0 85%;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 64px 0;
    }

    .testimonial-card {
        flex: 0 0 92%;
        padding: 30px 24px;
    }
}