/* =========================================================
   Google Reviews Scroller — Cinematic Dark Glass
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- Section --- */
.grs-block {
    background: #0c0c1d;
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
}

.grs-block::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(59,191,173,.07) 0%, transparent 70%);
    pointer-events: none;
}

.grs-block::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(66,133,244,.05) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Header --- */
.grs-header {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.grs-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.grs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #3bbfad;
    margin-bottom: 14px;
}

.grs-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #3bbfad, transparent);
    border-radius: 1px;
}

.grs-heading {
    font-family: 'Playfair Display', var(--font1), Georgia, serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.08;
    color: #fff;
    margin: 0;
    letter-spacing: -.02em;
}

.grs-heading em,
.grs-heading i {
    font-style: italic;
    color: #3bbfad;
}

/* --- Badge --- */
.grs-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.grs-badge-g {
    flex-shrink: 0;
}

.grs-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.grs-badge-score {
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.grs-badge-stars {
    display: flex;
    gap: 1px;
}

.grs-badge-count {
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: .7rem;
    color: rgba(255,255,255,.4);
    letter-spacing: .02em;
}

/* --- Track (infinite scroll) --- */
.grs-track-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    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);
}

.grs-track {
    display: flex;
    width: max-content;
    animation: grs-scroll var(--grs-speed, 60s) linear infinite;
}

.grs-track:hover {
    animation-play-state: paused;
}

.grs-track-inner {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

@keyframes grs-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Cards --- */
.grs-card {
    width: 360px;
    min-height: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(30,30,52,.85) 0%, rgba(20,20,40,.95) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 26px 28px 28px;
    position: relative;
    overflow: hidden;
    transition: border-color .4s ease, transform .35s ease;
}

.grs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(59,191,173,.15), transparent 40%, transparent 60%, rgba(66,133,244,.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}

.grs-card:hover {
    border-color: rgba(59,191,173,.18);
    transform: translateY(-4px);
}

.grs-card:hover::before {
    opacity: 1;
}

/* --- Card Header --- */
.grs-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.grs-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.08);
}

.grs-avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #0f2940);
    border: 2px solid rgba(59,191,173,.2);
    color: #3bbfad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.grs-name {
    display: block;
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.grs-date {
    display: block;
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: .68rem;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
}

.grs-g-icon {
    flex-shrink: 0;
    opacity: .35;
    transition: opacity .3s ease;
}

.grs-card:hover .grs-g-icon {
    opacity: .7;
}

/* --- Stars --- */
.grs-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

/* --- Review Text --- */
.grs-text {
    font-family: 'DM Sans', var(--font2), sans-serif;
    font-size: .86rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grs-text--empty {
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: rgba(251,188,5,.25);
    -webkit-line-clamp: unset;
    text-align: center;
    padding: 20px 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
    .grs-block {
        padding: 70px 0 80px;
    }

    .grs-heading {
        font-size: 2.2rem;
    }

    .grs-card {
        width: 320px;
        padding: 22px 24px 24px;
    }
}

@media (max-width: 767px) {
    .grs-block {
        padding: 50px 0 60px;
    }

    .grs-header {
        margin-bottom: 36px;
    }

    .grs-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .grs-heading {
        font-size: 1.8rem;
    }

    .grs-badge {
        align-self: flex-start;
    }

    .grs-card {
        width: 280px;
        min-height: 180px;
        padding: 20px;
    }

    .grs-text {
        font-size: .82rem;
        -webkit-line-clamp: 4;
    }
}
