/* ============================================================
   googleReviews.css — shared Google Reviews carousel
   (Views/Shared/_GoogleReviews.cshtml). Self-contained: used on
   the Landing and About pages, no dependency on their CSS.
   ============================================================ */

.grv-section {
    padding: 5rem 1.5rem 5.5rem;
    background: #f0f5ff;
    overflow: hidden;
}

.grv-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────── */
.grv-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.grv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #344054;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    margin-bottom: 1.25rem;
}

.grv-g {
    width: 20px;
    height: 20px;
}

.grv-g-sm {
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.9;
}

.grv-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #101828;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.grv-score {
    color: #155dee;
}

.grv-stars {
    display: inline-flex;
    gap: 3px;
}

.grv-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbc04;
}

.grv-stars-lg {
    margin-bottom: 0.9rem;
}

.grv-stars-lg svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(251, 188, 4, 0.35));
}

.grv-sub {
    font-size: 1.02rem;
    color: #475467;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.grv-sub a {
    color: #155dee;
    font-weight: 600;
    text-decoration: none;
}

.grv-sub a:hover {
    text-decoration: underline;
}

.grv-support-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 1.1rem;
    background: #ffffff;
    border: 1px solid #cdddfb;
    border-radius: 100px;
    padding: 0.6rem 1.3rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #155dee;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(21, 93, 238, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.grv-support-link svg {
    width: 16px;
    height: 16px;
}

.grv-support-link:hover {
    background: #155dee;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Carousel ───────────────────────────────────────────────── */
.grv-carousel {
    position: relative;
}

.grv-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px 4px 26px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.grv-track::-webkit-scrollbar {
    display: none;
}

.grv-card {
    position: relative;
    flex: 0 0 min(400px, 84vw);
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    padding: 1.5rem 1.6rem 1.4rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.grv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.09);
}

.grv-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.grv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--grv-av, #155dee) 14%, #ffffff);
    color: var(--grv-av, #155dee);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grv-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.grv-who strong {
    font-size: 0.95rem;
    color: #101828;
    line-height: 1.3;
}

.grv-who span {
    font-size: 0.76rem;
    color: #667085;
}

.grv-card .grv-stars {
    margin-bottom: 0.8rem;
}

.grv-card .grv-stars svg {
    width: 16px;
    height: 16px;
}

/* Review body — clamped by default; the script unclamps short reviews
   and shows "Read more" on the ones that actually overflow. */
.grv-text {
    font-size: 0.92rem;
    color: #344054;
    line-height: 1.7;
    flex: 1;
    max-height: 10.2em;
    overflow: hidden;
    position: relative;
}

.grv-text p {
    margin: 0 0 0.75rem;
}

.grv-text p:last-child {
    margin-bottom: 0;
}

.grv-has-more .grv-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 85%);
    pointer-events: none;
}

.grv-open .grv-text {
    max-height: none;
}

.grv-open .grv-text::after {
    display: none;
}

.grv-more {
    align-self: flex-start;
    margin-top: 0.6rem;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #155dee;
    cursor: pointer;
}

.grv-more:hover {
    text-decoration: underline;
}

/* ── Arrows ─────────────────────────────────────────────────── */
.grv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.grv-arrow svg {
    width: 22px;
    height: 22px;
    fill: #344054;
}

.grv-arrow:hover {
    background: #155dee;
    transform: translateY(-50%) scale(1.05);
}

.grv-arrow:hover svg {
    fill: #ffffff;
}

.grv-prev {
    left: -10px;
}

.grv-next {
    right: -10px;
}

@media (min-width: 1300px) {
    .grv-prev {
        left: -23px;
    }

    .grv-next {
        right: -23px;
    }
}

@media (max-width: 640px) {
    .grv-section {
        padding: 3.5rem 1rem 4rem;
    }

    .grv-arrow {
        width: 40px;
        height: 40px;
    }

    .grv-prev {
        left: 2px;
    }

    .grv-next {
        right: 2px;
    }
}
