/* ========================================
   REVIEWS SECTION - PREMIUM CSS STYLING
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #556B2F;
    --color-primary-light: #6F7F43;
    --color-light: #F8F6F0;
    --color-white: #FFFFFF;
    --color-neutral-light: #F4EEE4;
    --color-neutral: #E2D6C2;
    --color-accent: #E79A32;
    --color-dark: #2D2D2D;

    --shadow-soft: 0 8px 24px rgba(85, 107, 47, 0.1);
    --shadow-medium: 0 12px 32px rgba(85, 107, 47, 0.15);
    --shadow-glow: 0 0 40px rgba(231, 154, 50, 0.2);

    --border-radius-card: 28px;
    --border-radius-button: 999px;
    --border-radius-stats: 40px;
    --border-radius-image: 50%;

    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Poppins', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   REVIEWS SECTION BASE
   ======================================== */

.reviews-section {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
        url('../images/reviewsbg.webp') center center / cover no-repeat;
    background-color: var(--color-light);
    padding: 80px 10px;
    overflow: hidden;
}

.reviews-container {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}



/* ========================================
   SECTION HEADER
   ======================================== */

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.reviews-header__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.reviews-header__tag i {
    font-size: 14px;
    color: var(--color-accent);
}

.reviews-header__title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.reviews-header__description {
    font-family: var(--font-sans);
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

.reviews-header__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.reviews-header__stars {
    display: flex;
    gap: 4px;
}

.reviews-header__stars i {
    font-size: 20px;
    color: var(--color-accent);
    animation: starShimmer 1.5s ease-in-out infinite;
}

.reviews-header__stars i:nth-child(1) {
    animation-delay: 0s;
}

.reviews-header__stars i:nth-child(2) {
    animation-delay: 0.1s;
}

.reviews-header__stars i:nth-child(3) {
    animation-delay: 0.2s;
}

.reviews-header__stars i:nth-child(4) {
    animation-delay: 0.3s;
}

.reviews-header__stars i:nth-child(5) {
    animation-delay: 0.4s;
}

.reviews-header__score {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
}

.reviews-header__count {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/*=========================================
    PREMIUM CAROUSEL
=========================================*/

.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 80px auto;
}

.reviews-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
}

.reviews-track {
    display: flex;
    align-items: center;
    gap: 32px;
    will-change: transform;
    transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}

/*=========================================
    REVIEW CARD
=========================================*/

.reviews-card {

    position: relative;

    flex: 0 0 420px;

    max-width: 420px;

    background: #fff;

    border-radius: 28px;

    padding: 45px 35px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);

    transition:
        transform .75s cubic-bezier(.22, 1, .36, 1),
        opacity .75s,
        filter .75s;

    transform: scale(.82);

    opacity: .35;

    filter: blur(1px);

    user-select: none;
}

.reviews-card.active {

    transform: scale(1);

    opacity: 1;

    filter: none;

    z-index: 20;

    box-shadow:
        0 35px 70px rgba(0, 0, 0, .14);

}

.reviews-card.prev,
.reviews-card.next {

    transform: scale(.90);

    opacity: .75;

    filter: none;

    z-index: 10;

}

.reviews-card.hidden {

    opacity: .15;

    transform: scale(.75);

}

.reviews-card:hover {

    transform: translateY(-8px) scale(1);

}

/*=========================================
    IMAGE
=========================================*/

.reviews-card__photo-wrapper {

    width: 110px;

    height: 110px;

    margin: auto;

    margin-bottom: 28px;

}

.reviews-card__photo {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid var(--color-primary);

}

/*=========================================
    QUOTE
=========================================*/

.reviews-card__quote {

    position: absolute;

    top: 25px;

    right: 28px;

    font-size: 40px;

    color: var(--color-accent);

    opacity: .2;

}

/*=========================================
    STARS
=========================================*/

.reviews-card__stars {

    display: flex;

    justify-content: center;

    gap: 4px;

    margin-bottom: 22px;

}

.reviews-card__stars i {

    color: #f8b400;

}

/*=========================================
    TEXT
=========================================*/

.reviews-card__text {

    text-align: center;

    line-height: 1.8;

    margin-bottom: 30px;

    color: #666;

}

.reviews-card__divider {

    width: 60px;

    height: 2px;

    background: var(--color-accent);

    margin: 25px auto;

}

.reviews-card__name {

    text-align: center;

    font-size: 24px;

    margin-bottom: 6px;

}

.reviews-card__role {

    display: block;

    text-align: center;

    color: #888;

    font-size: 14px;

}

/*=========================================
    CONTROLS
=========================================*/

.reviews-control {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 58px;

    height: 58px;

    border: none;

    border-radius: 50%;

    background: #fff;

    cursor: pointer;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);

    transition: .3s;

    z-index: 100;

}

.reviews-control:hover {

    transform: translateY(-50%) scale(1.12);

}

.reviews-control--prev {

    left: -28px;

}

.reviews-control--next {

    right: -28px;

}

/*=========================================
    DOTS
=========================================*/

.reviews-pagination {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 45px;

}

.reviews-dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    border: none;

    background: #d8d8d8;

    transition: .35s;

    cursor: pointer;

}

.reviews-dot.active {

    width: 36px;

    border-radius: 50px;

    background: var(--color-primary);

}

/* ========================================
   STATISTICS STRIP
   ======================================== */

.reviews-stats {
    background: var(--color-white);
    border-radius: var(--border-radius-stats);
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.reviews-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: var(--transition-smooth);
    position: relative;
}

.reviews-stat:hover {
    transform: translateY(-4px);
}

.reviews-stat--separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--color-neutral);
}

.reviews-stat__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.reviews-stat:hover .reviews-stat__icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.reviews-stat__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.reviews-stat__number {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
}

.reviews-stat__percent {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
}

.reviews-stat__label {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 4px; 
    text-align: center;
    justify-content: center;
}

/* ========================================
   PLATFORM LOGOS
   ======================================== */

.reviews-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.reviews-platform {
    text-align: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);

    /* Keep content vertically organized */
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.reviews-platform:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* Logo stays in the middle */
.reviews-platform__logo-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-platform__logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.reviews-platform:hover .reviews-platform__logo {
    transform: scale(1.15);
}

/* Stars stay at bottom */
.reviews-platform__stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 20px;
}

.reviews-platform__stars i {
    font-size: 12px;
    color: var(--color-accent);
}
/* ========================================
   CALL TO ACTION
   ======================================== */

.reviews-cta {
    text-align: center;
    padding: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.reviews-cta__text {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.reviews-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: none;
    border-radius: var(--border-radius-button);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.reviews-cta__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.reviews-cta__button:hover::before {
    width: 300px;
    height: 300px;
}

.reviews-cta__button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.reviews-cta__button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.reviews-cta__button i {
    position: relative;
    z-index: 2;
    font-size: 16px;
}

.reviews-cta__button span {
    position: relative;
    z-index: 2;
}