/* =========================================================================
   BLOCKS.CSS
   Styles for the three theme blocks:
     1. Page Header  (.page-header, .review-strip)
     2. Reviews      (.reviews-block, .review-slider)
     3. Text Block   (.text-block, .title-holder, .check-list-wrap)
   Depends on base.css for variables, layout and buttons.
   ========================================================================= */

/* Shared: title holder used by Reviews and Text Block */
.title-holder { margin-bottom: 24px; }
.title-holder.center { text-align: center; }
.title-holder.left { text-align: left; }
.title-holder h2 { margin-bottom: 12px; }
.title-holder .title-border {
    width: 64px;
    height: 4px;
    border-radius: 80px;
    background: var(--main);
}
.title-holder.center .title-border { margin-left: auto; margin-right: auto; }
.title-holder.white h2 { color: var(--white); }

/* Shared: restricted-width text */
.text-restrict {
    max-width: 720px;
    margin: 0 auto;
}
.columns .text-restrict { margin: 0; }

/* =========================================================================
   1. PAGE HEADER
   ========================================================================= */
.page-header {
    position: relative;
    padding: 0;
    background: var(--light-grey);
    overflow: hidden;
}
.page-header.has-image { background: var(--dark-contrast); }

.page-header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(39, 73, 112, 0.6);
    z-index: 1;
}
.page-header .body-container { position: relative; z-index: 2; }

.page-header-content { max-width: 720px; }
.page-header.has-image .page-header-content,
.page-header.has-image .page-header-content h1,
.page-header.has-image .pre-title { color: var(--white); }

.page-header .pre-title {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--main);
}
.page-header h1 { margin-bottom: 16px; }

/* Review strip (below the page header) */
.review-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    padding: 18px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border-grey);
    font-weight: 700;
    color: var(--dark-contrast);
}
.review-strip.as-card {
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    margin-top: 32px;
}
.star-holder { display: inline-flex; gap: 4px; }
.ratings-star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--review-star);
    -webkit-mask: url('../images/Orange-Star.svg') center / contain no-repeat;
            mask: url('../images/Orange-Star.svg') center / contain no-repeat;
}
.google-reviews-image { max-height: 40px; width: auto; }

/* =========================================================================
   2. REVIEWS
   ========================================================================= */
.reviews-block .title-holder { text-align: center; }
.reviews-block .title-holder .title-border { margin-left: auto; margin-right: auto; }

.review-slider {
    position: relative;
    max-width: 760px;
    margin: 32px auto 0;
    overflow: hidden;
}
.review-track {
    display: flex;
    transition: transform 0.5s ease;
}
.review-slide {
    min-width: 100%;
    padding: 8px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(39, 73, 112, 0.06);
}
.review-quote {
    font-size: 64px;
    line-height: 0.5;
    color: var(--main);
    height: 32px;
}
.review-text {
    font-size: 19px;
    margin-bottom: 20px;
}
.reviewer-name { font-weight: 700; color: var(--dark-contrast); }
.reviewer-location { font-size: 14px; color: var(--dark-grey); }

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-grey);
    border-radius: 50%;
    background: var(--white);
    color: var(--main);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.review-nav:hover { background: var(--main); color: var(--white); }
.review-nav.prev { left: -8px; }
.review-nav.next { right: -8px; }

/* =========================================================================
   3. TEXT BLOCK
   ========================================================================= */
.text-block {
    padding-top: 4px;
    padding-bottom: 4px;
}
.text-block.layout-simple { text-align: center; }
.text-block .column-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* Check list / bullets */
.check-list-wrap {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    text-align: left;
}
.text-block.simple .check-list-wrap {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.check-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.check-list-icon-wrap {
    flex: 0 0 22px;
    margin-top: 3px;
}
.check-list-icon { width: 22px; height: 22px; }

/* Contact form (Contact template) */
.contact-section .text-restrict { text-align: center; }
.contact-form {
    max-width: 560px;
    margin: 28px auto 0;
    display: grid;
    gap: 14px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
}
.contact-form button { justify-self: start; }

/* Responsive */
@media screen and (max-width: 767px) {
    .page-header { padding: 60px 0; }
    .review-card { padding: 28px; }
    .review-nav.prev { left: 0; }
    .review-nav.next { right: 0; }
}
