/* ==========================================================================
   Client reviews carousel — golf "gr" layout, recoloured to the CCW cyan/dark
   scheme. Markup driven by static/website/js/components/reviews.js
   ========================================================================== */
.gr-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

/* Old testimonials backdrop: subtle animated cyan grid */
.gr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.gr-section .container {
    position: relative;
    z-index: 1;
}

.gr {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

/* ---- Intro column ---- */
.gr__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 255, 0.07);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 999px;
    padding: 9px 18px;
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gr__badge-stars { color: #FFC107; font-size: 14px; letter-spacing: 1.5px; }
.gr__badge-rating { color: rgba(255, 255, 255, 0.9); font-size: .92rem; }
.gr__badge-rating strong { font-weight: 700; color: #fff; }

.gr__title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    margin: 0 0 18px;
    color: #fff;
    line-height: 1.05;
}
.gr__title em { font-style: normal; color: var(--secondary); }
.gr__lede {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 36ch;
    margin: 0;
    line-height: 1.6;
}

/* ---- Arrows ---- */
.gr__arrow {
    flex: none;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(0, 255, 255, 0.05); color: #fff;
    border: 1px solid rgba(0, 255, 255, 0.25); cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.gr__arrow:hover { background: var(--secondary); color: #00272e; border-color: var(--secondary); }
.gr__arrow:active { transform: scale(.93); }
.gr__arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.gr__arrow svg { width: 19px; height: 19px; }

/* ---- Carousel ---- */
.gr__carousel { min-width: 0; }
.gr__stage { display: flex; align-items: center; gap: 20px; }
.gr__viewport {
    flex: 1 1 auto; min-width: 0;
    display: flex; gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.gr__viewport::-webkit-scrollbar { display: none; }

.gr__card {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 12px);
    margin: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(140deg, rgba(0, 35, 42, 0.6), rgba(0, 50, 56, 0.42));
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px 30px 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gr__card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 28px 54px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 255, 255, 0.25);
}
.gr__quote {
    margin: 0 0 24px;
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.6;
}
.gr__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-top: 20px; border-top: 1px solid rgba(0, 255, 255, 0.12);
}
.gr__author { display: flex; flex-direction: column; gap: 2px; margin: 0; line-height: 1.3; }
.gr__author strong { color: #fff; font-size: .98rem; }
.gr__author span { color: rgba(255, 255, 255, 0.5); font-size: .82rem; }
.gr__stars { color: #FFC107; letter-spacing: 2px; font-size: 1rem; white-space: nowrap; }

/* ---- Dots ---- */
.gr__dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.gr__dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(0, 255, 255, 0.25); cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.gr__dot:hover { background: rgba(0, 255, 255, 0.5); }
.gr__dot.is-active { width: 26px; background: var(--secondary); }

.gr__arrow:focus-visible,
.gr__dot:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .gr__viewport { scroll-behavior: auto; }
    .gr__card { transition: none; }
    .gr__card:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .gr { grid-template-columns: 1fr; gap: 26px; text-align: center; }
    .gr__intro { display: flex; flex-direction: column; align-items: center; }
    .gr__title, .gr__lede { align-self: stretch; width: 100%; }
    .gr__lede { max-width: 48ch; margin-inline: auto; text-wrap: balance; }
    .gr__arrow { display: none; }
    .gr__dots { margin-top: 26px; }
    .gr__card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 760px) {
    .gr__card { flex: 0 0 100%; }
}
@media (min-width: 561px) and (max-width: 980px) {
    .gr__title { order: 1; margin-bottom: 14px; }
    .gr__lede { order: 2; margin: 0 auto 24px; }
    .gr__badge { order: 3; margin: 0; }
}
@media (max-width: 560px) {
    .gr__badge { margin-bottom: 22px; }
    .gr__lede { font-size: 1rem; }
    .gr__card { flex-basis: 100%; padding: 26px 24px 22px; }
    .gr__viewport { gap: 16px; }
}
