/* ==========================================
   DC Reviews Widget
   ========================================== */

.dc-reviews * { box-sizing: border-box; margin: 0; padding: 0; }

.dc-reviews .dc-rev {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    overflow: hidden;
}

.dc-reviews .dc-rev__wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================
   Header
============================ */
.dc-reviews .dc-rev__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
    margin-bottom: 56px;
}

.dc-reviews .dc-rev__eyebrow {
    font-family: 'Lobster', cursive;
    font-size: 22px;
    color: var(--p);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dc-reviews .dc-rev__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--p);
    border-radius: 1px;
}

.dc-reviews .dc-rev__title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--s);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.dc-reviews .dc-rev__hl {
    font-family: 'Lobster', cursive;
    color: var(--p);
    font-weight: 400;
}

/* Stats pills */
.dc-reviews .dc-rev__stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-reviews .dc-rev__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dc-reviews .dc-rev__stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--p-rgb), 0.12);
    border-color: rgba(var(--p-rgb), 0.15);
}

.dc-reviews .dc-rev__stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--p), #ff9a44);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--p-rgb), 0.25);
}

.dc-reviews .dc-rev__stat-icon svg { width: 20px; height: 20px; }

.dc-reviews .dc-rev__stat-val {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--s);
    line-height: 1.1;
}

.dc-reviews .dc-rev__stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   Marquee
============================ */
.dc-reviews .dc-rev__marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.dc-reviews .dc-rev__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: dcRevMarquee var(--dc-marquee-speed, 35s) linear infinite;
}

.dc-reviews .dc-rev__marquee:hover .dc-rev__track {
    animation-play-state: paused;
}

@keyframes dcRevMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================
   Review Card
============================ */
.dc-reviews .dc-rev__card {
    flex-shrink: 0;
    width: 380px;
    padding: 0;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dc-reviews .dc-rev__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 64px rgba(var(--p-rgb), 0.12), 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(var(--p-rgb), 0.12);
}

/* Top accent bar */
.dc-reviews .dc-rev__card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--p), #ff9a44, var(--p));
    background-size: 200% 100%;
    animation: dcRevGrad 4s ease infinite;
}

@keyframes dcRevGrad {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dc-reviews .dc-rev__card-inner {
    padding: 28px;
}

/* Card top row */
.dc-reviews .dc-rev__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Stars */
.dc-reviews .dc-rev__stars {
    display: flex;
    gap: 3px;
}

.dc-reviews .dc-rev__stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251,191,36,0.3));
}

.dc-reviews .dc-rev__stars svg.dc-rev__star--empty {
    fill: #e5e7eb;
    filter: none;
}

/* Service badge */
.dc-reviews .dc-rev__service {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p);
    background: rgba(var(--p-rgb), 0.08);
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dc-reviews .dc-rev__card:hover .dc-rev__service {
    background: var(--p);
    color: #fff;
}

/* Quote icon */
.dc-reviews .dc-rev__quote-mark {
    font-family: 'Lobster', cursive;
    font-size: 48px;
    line-height: 1;
    color: rgba(var(--p-rgb), 0.1);
    margin-bottom: -8px;
    transition: color 0.3s ease;
}

.dc-reviews .dc-rev__card:hover .dc-rev__quote-mark {
    color: rgba(var(--p-rgb), 0.2);
}

/* Review text */
.dc-reviews .dc-rev__text {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
    min-height: 78px;
}

/* Footer */
.dc-reviews .dc-rev__card-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dc-reviews .dc-rev__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--p), #ff9a44);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--p-rgb), 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.dc-reviews .dc-rev__card:hover .dc-rev__avatar {
    transform: scale(1.1) rotate(-5deg);
}

.dc-reviews .dc-rev__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--s);
}

.dc-reviews .dc-rev__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.dc-reviews .dc-rev__meta svg { width: 12px; height: 12px; flex-shrink: 0; }

.dc-reviews .dc-rev__verified {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 8px;
    color: #fff;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.dc-reviews .dc-rev__verified svg { width: 14px; height: 14px; }

/* ============================
   Google Badge
============================ */
.dc-reviews .dc-rev__google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 16px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.dc-reviews .dc-rev__google:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.dc-reviews .dc-rev__google-icon { width: 28px; height: 28px; }

.dc-reviews .dc-rev__google-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--s);
}

.dc-reviews .dc-rev__google-score {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--p);
}

.dc-reviews .dc-rev__google-stars {
    display: flex;
    gap: 2px;
}

.dc-reviews .dc-rev__google-stars svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

/* ============================
   Responsive
============================ */
@media (max-width: 1024px) {
    .dc-reviews .dc-rev__head {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .dc-reviews .dc-rev {
        padding: 64px 0 48px;
    }

    .dc-reviews .dc-rev__wrap { padding: 0 24px; }
    .dc-reviews .dc-rev__head { margin-bottom: 36px; }
    .dc-reviews .dc-rev__stats { width: 100%; }
    .dc-reviews .dc-rev__card { width: 310px; }
    .dc-reviews .dc-rev__card-inner { padding: 22px; }

    .dc-reviews .dc-rev__google {
        margin-top: 32px;
        width: 100%;
        justify-content: center;
    }
}

/* Fix: card min-width should use max-width to prevent overflow */
.dc-reviews .dc-rev__card {
    max-width: 380px;
}

@media (max-width: 480px) {
    .dc-reviews .dc-rev__card {
        width: 280px;
        max-width: 280px;
    }

    .dc-reviews .dc-rev__card-inner {
        padding: 18px;
    }

    .dc-reviews .dc-rev__text {
        font-size: 13px;
        min-height: auto;
        margin-bottom: 18px;
    }

    .dc-reviews .dc-rev__name {
        font-size: 13px;
    }

    .dc-reviews .dc-rev__meta {
        font-size: 11px;
    }

    .dc-reviews .dc-rev__quote-mark {
        font-size: 36px;
    }

    .dc-reviews .dc-rev__avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .dc-reviews .dc-rev__stat-val {
        font-size: 17px;
    }

    .dc-reviews .dc-rev__stat-label {
        font-size: 10px;
    }

    .dc-reviews .dc-rev__eyebrow {
        font-size: 18px;
    }

    .dc-reviews .dc-rev__wrap {
        padding: 0 16px;
    }

    .dc-reviews .dc-rev {
        padding: 48px 0 36px;
    }

    .dc-reviews .dc-rev__google {
        padding: 12px 20px;
        gap: 8px;
    }
}
