/* ==========================================================
   CALIBRE JOURNAL — REVIEWS OVERVIEW
========================================================== */


/* ==========================================================
   PAGE
========================================================== */

main.cj-reviews-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background: #f6f3ec;
    color: #1d1d1d;
}

.cj-reviews-container {
    width: min(calc(100% - 100px), 1280px);
    margin: 0 auto;
}


/* ==========================================================
   HERO
========================================================== */

.cj-reviews-hero {
    padding: 18px 0;
    text-align: center;
}

.cj-reviews-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #b38b3c;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cj-reviews-hero h1 {
    margin: 0 0 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
}

.cj-reviews-hero p {
    max-width: 700px;
    margin: 0 auto;

    color: #656565;

    font-size: 16px;
    line-height: 1.55;
}


/* ==========================================================
   SEARCH
========================================================== */

.cj-reviews-search {
    position: relative;

    width: min(100%, 440px);
    margin: 14px auto 0;
}

.cj-reviews-search input {
    display: block;

    width: 100%;
    height: 42px;

    padding: 0 45px 0 17px;

    border: 1px solid #d7d2c8;
    border-radius: 0;

    outline: none;

    background: #ffffff;
    color: #1d1d1d;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cj-reviews-search input::placeholder {
    color: #98958e;
}

.cj-reviews-search input:focus {
    border-color: #46523d;

    box-shadow: 0 0 0 2px rgba(70, 82, 61, 0.08);
}

.cj-reviews-search-icon {
    position: absolute;
    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: #46523d;

    font-size: 19px;
    line-height: 1;

    pointer-events: none;
}


/* ==========================================================
   REVIEWS SECTION
========================================================== */

.cj-reviews-section {
    padding: 0 0 100px;
}


/* ==========================================================
   GRID
========================================================== */

.cj-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;

    gap: 24px;
}


/* ==========================================================
   REVIEW CARD
========================================================== */

.cj-review-overview-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #ded9cf;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cj-review-overview-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.07);
}


/* ==========================================================
   IMAGE
========================================================== */

.cj-review-overview-image {
    display: block;

    width: 100%;
    height: 140px;

    overflow: hidden;

    background: #e9e6dc;
}

.cj-review-overview-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.cj-review-overview-card:hover .cj-review-overview-image img {
    transform: scale(1.025);
}


/* ==========================================================
   CARD CONTENT
========================================================== */

.cj-review-overview-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-height: 160px;

    padding: 16px 20px;
}


/* ==========================================================
   CATEGORY + SCORE
========================================================== */

.cj-review-overview-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;
}

.cj-review-overview-category {
    color: #b38b3c;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.cj-review-overview-score {
    display: flex;
    align-items: baseline;

    white-space: nowrap;
}

.cj-review-overview-score strong {
    color: #1d1d1d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.cj-review-overview-score span {
    margin-left: 3px;

    color: #8a887f;

    font-size: 10px;
}


/* ==========================================================
   WATCH NAME
========================================================== */

.cj-review-overview-card h2 {
    margin: 0 0 6px;

    color: #1d1d1d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.12;
}

.cj-review-overview-reference {
    margin: 0 0 12px;

    color: #88857e;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;

    text-transform: uppercase;
}


/* ==========================================================
   BUTTON
========================================================== */

.cj-review-overview-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    align-self: flex-start;

    margin-top: auto;

    padding: 10px 18px;

    background: #46523d;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.cj-review-overview-button:hover {
    background: #35402f;
    color: #ffffff;

    transform: translateY(-1px);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {

    .cj-reviews-container {
        width: calc(100% - 60px);
    }

    .cj-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .cj-reviews-container {
        width: calc(100% - 32px);
    }

    .cj-reviews-hero {
        padding: 30px 0 25px;
    }

    .cj-reviews-hero h1 {
        font-size: 46px;
        letter-spacing: -1px;
    }

    .cj-reviews-search {
        width: 100%;
        margin-top: 18px;
    }

    .cj-reviews-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .cj-review-overview-image {
        height: 220px;
    }

    .cj-review-overview-content {
        min-height: 0;

        padding: 20px;
    }

}

/* ==========================================================
   SEARCH + SORT
========================================================== */

.cj-reviews-tools {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: min(100%, 650px);
    margin: 14px auto 0;
}

.cj-reviews-tools .cj-reviews-search {
    flex: 1;

    width: auto;
    margin: 0;
}

.cj-reviews-sort {
    flex-shrink: 0;
}

.cj-reviews-sort select {
    height: 42px;

    padding: 0 38px 0 15px;

    border: 1px solid #d7d2c8;
    border-radius: 0;

    outline: none;

    background: #ffffff;
    color: #46523d;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.cj-reviews-sort select:focus {
    border-color: #46523d;
}

@media (max-width: 650px) {

    .cj-reviews-tools {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
    }

    .cj-reviews-sort select {
        width: 100%;
    }

}