/*------------------------------------------------------------------
    Reviews Section Stylesheet
    Project:        Pastelitos
    Description:    Google My Business reviews section styles
-------------------------------------------------------------------*/

/*=======================================================
      REVIEWS SECTION OUTER
========================================================*/
.reviews-outer {
    background: #f7f7f7;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/*=======================================================
      REVIEWS HEADING BLOCK
========================================================*/
.reviews-heading {
    margin: 0 auto 60px;
    text-align: center;
}

.reviews-heading h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #2d3a4b;
    font-size: 26px;
    margin: 0 0 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.reviews-heading .reviews-overall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reviews-overall-score {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: bold;
    color: #2d3a4b;
    line-height: 1;
}

.reviews-overall-right {
    text-align: left;
}

.reviews-overall-stars {
    display: block;
    font-size: 22px;
    color: #ffe115;
    letter-spacing: 2px;
    line-height: 1.2;
}

.reviews-overall-count {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6f6f6f;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.reviews-google-btn {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2d3a4b;
    border: 1px solid #965452;
    padding: 10px 28px;
    border-left: none;
    border-right: none;
    border-top-color: transparent;
    text-decoration: none !important;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    position: relative;
}

.reviews-google-btn:hover,
.reviews-google-btn:focus {
    background: #965452;
    color: #fff !important;
    border-color: #965452;
}

.reviews-google-btn .reviews-google-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}

/*=======================================================
      REVIEWS GRID
========================================================*/
.reviews-grid {
    margin-top: 10px;
}

.reviews-grid .row {
    margin-left: -10px;
    margin-right: -10px;
}

.reviews-grid [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/*=======================================================
      REVIEW CARD
========================================================*/
.review-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 22px 20px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    -webkit-transition: box-shadow 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    -moz-transition: box-shadow 0.3s ease-in-out, -moz-transform 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: 0 6px 24px rgba(150, 84, 82, 0.13);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    transform: translateY(-3px);
}

/*=======================================================
      REVIEW CARD HEADER (avatar + name + stars)
========================================================*/
.review-card-header {
    display: -webkit-flex;
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    margin-right: 12px;
    text-transform: uppercase;
}

/* Avatar color variants */
.review-avatar.av-1 { background: #ab4e52; }
.review-avatar.av-2 { background: #2d3a4b; }
.review-avatar.av-3 { background: #965452; }
.review-avatar.av-4 { background: #c0845a; }
.review-avatar.av-5 { background: #7a6a56; }
.review-avatar.av-6 { background: #d4736a; }
.review-avatar.av-7 { background: #4a6a7a; }
.review-avatar.av-8 { background: #a07850; }

.review-meta {
    flex: 1;
}

.review-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: #252525;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.3;
}

.review-stars {
    color: #ffe115;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.review-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    display: block;
}

/*=======================================================
      REVIEW CARD BODY (text)
========================================================*/
.review-card-body {
    flex: 1;
    margin-bottom: 14px;
}

.review-text {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: #6f6f6f;
    line-height: 22px;
    margin: 0;
}

.review-text-truncated {
    /* truncation handled via JS */
}

.review-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #965452;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.review-toggle-btn:hover,
.review-toggle-btn:focus {
    color: #ab4e52;
    outline: none;
}

/*=======================================================
      REVIEW CARD FOOTER (Google branding)
========================================================*/
.review-card-footer {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f0ebe6;
    margin-top: auto;
}

.review-google-logo {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}

.review-google-logo-svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.review-google-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

/*=======================================================
      RESPONSIVE
========================================================*/
@media (max-width: 991px) {
    .reviews-outer {
        padding: 70px 0 80px;
    }

    .reviews-grid .col-md-4 {
        width: 50%;
    }
}

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

    .reviews-heading h4 {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .reviews-overall-score {
        font-size: 42px;
    }

    .reviews-grid .col-md-4 {
        width: 100%;
    }

    .review-card {
        padding: 18px 16px 16px;
    }

    .reviews-heading {
        margin-bottom: 36px;
    }
}
