/* ============================================================
   Customer review cards (design/testimonials.php -> bosk_review_card)
   Used by the homepage "Happy Customers" carousel and testimonial.php.
   Brand: brown #532A1A, gold #C2A773, Montserrat + Open Sans.
   ============================================================ */

.rv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 30px 28px 24px;
    background: #fff;
    border: 1px solid rgba(83, 42, 26, .08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(83, 42, 26, .07);
    transition: transform .3s ease, box-shadow .3s ease;
    text-align: left;
}
.rv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(83, 42, 26, .13);
}
.rv-mark {
    display: block;
    height: 28px;
    margin: 2px 0 12px;
    font: 700 66px/.9 Georgia, 'Times New Roman', serif;
    color: #C2A773;
    opacity: .75;
    pointer-events: none;
}
.rv-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #E0A526;
    font-size: 15px;
}
.rv-stars .rv-star-off { color: #e6dcd4; }

.rv-card .rv-text {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-style: normal;
    quotes: none;
}
.rv-card .rv-text::before,
.rv-card .rv-text::after { content: none; }
.rv-card .rv-text p {
    margin: 0;
    padding: 0;
    color: #4a3b33;
    font: 400 15px/1.75 'Open Sans', sans-serif;
    font-style: normal;
    text-transform: none;
}

.rv-who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(83, 42, 26, .16);
}
.rv-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3ece6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(194, 167, 115, .55);
}
.rv-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #532A1A 0%, #8a5a3c 100%);
    color: #fff;
    font: 700 17px/1 'Montserrat', sans-serif;
    letter-spacing: .04em;
}
.rv-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rv-name {
    color: #2b1d14;
    font: 600 15.5px/1.3 'Montserrat', sans-serif;
}
.rv-city {
    margin-top: 2px;
    color: #9a8b80;
    font: 400 12.5px/1.4 'Open Sans', sans-serif;
}

/* ---------- Homepage carousel ---------- */
.hm-reviews .owl-stage-outer { padding: 12px 0 34px; }
.hm-reviews .owl-stage { display: flex; }
.hm-reviews .owl-item { display: flex; padding: 0 2px; }
/* Long reviews are cut to six lines here; the full text is on the testimonials page */
.hm-reviews .rv-text p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-reviews.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
}
.hm-reviews.owl-carousel .owl-dots .owl-dot {
    width: auto;
    height: auto;
    margin: 0;
    padding: 4px 0;
    background: none !important;   /* styles.css paints every .owl-dot dark with !important */
    border: 0;
}
.hm-reviews.owl-carousel .owl-dots .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0;
    border-radius: 999px;
    background: #d9cbbf;
    transition: width .3s ease, background .3s ease;
}
.hm-reviews.owl-carousel .owl-dots .owl-dot.active span {
    width: 26px;
    background: #532A1A;
}
/* Fewer reviews than slots: centre them (Owl adds a 24px gap after the last card) */
.hm-reviews.is-few .owl-stage {
    margin-left: auto;
    margin-right: auto;
    left: 12px;
}

/* ---------- Testimonials page: masonry columns ---------- */
.rv-masonry {
    column-count: 3;
    column-gap: 24px;
}
.rv-masonry .rv-card {
    display: inline-flex;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 24px;
}
.rv-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    color: #7a6a60;
    font: 400 15px/1.6 'Open Sans', sans-serif;
}
.rv-summary strong { color: #532A1A; font-family: 'Montserrat', sans-serif; }

@media (max-width: 991px) {
    .rv-masonry { column-count: 2; }
}
@media (max-width: 640px) {
    .rv-masonry { column-count: 1; }
    .rv-card { padding: 24px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-card { transition: none; }
    .rv-card:hover { transform: none; }
}
