/* ===== Hero tuning (scoped to this page only) ===== */
/* Taller hero; focus the crop on the TOP of the photo so faces/sky show */
main.contactpage.testimonialpage .hero-slide-image {
    height: 70vh;
    min-height: 560px;
    max-height: 780px;
    object-position: center 45%;
}
/* Lighter, even overlay (was a heavy left-dark gradient) */
main.contactpage.testimonialpage .hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.32), rgba(0,0,0,0.4));
}
/* Centering + balance (push content down a touch so the top of the photo shows) */
main.contactpage.testimonialpage .hero-content {
    padding-top: 200px;
    padding-bottom: 56px;
}
main.contactpage.testimonialpage .hero-text-center {
    max-width: 1040px;
}
/* Less bold title, but strong shadow for readability on the lighter overlay */
main.contactpage.testimonialpage .hero-title {
    font-weight: 600;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}
main.contactpage.testimonialpage .hero-description {
    text-shadow: 1px 2px 6px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.5);
}

/* ===== Hero trust badges (reused from consultation; styled for the dark hero) ===== */
.contactpage .trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 28px 72px;
    margin: 210px auto 0;
    max-width: 100%;
}
.contactpage .trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
    flex: 0 1 auto;
}
.contactpage .trust-logo-wrap {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.contactpage .trust-logo { max-height: 38px; width: auto; }
.contactpage .trust-stars { height: 16px; width: auto; margin-bottom: 6px; }
.contactpage .trust-link {
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    opacity: .95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.85);
    transition: color .2s ease, opacity .2s ease;
}
.contactpage .trust-logo,
.contactpage .trust-stars { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
.contactpage .trust-link:hover,
.contactpage .trust-link:focus { color: #f0ad4e; opacity: 1; text-decoration: none; }
@media (max-width: 600px) {
    .contactpage .trust-grid { gap: 20px; }
    .contactpage .trust-item { flex: 1 1 40%; min-width: 130px; }
}

/* ===== Mobile hero fixes (title clipping + cramped badges) ===== */
@media (max-width: 767px) {
    main.contactpage.testimonialpage .hero-slide-image {
        height: 90vh;
        min-height: 620px;
        max-height: 740px;
        object-position: center 40%;
    }
    /* clear the fixed header and keep content tidy within the hero */
    main.contactpage.testimonialpage .hero-content {
        padding-top: 112px;
        padding-bottom: 40px;
    }
    main.contactpage.testimonialpage .hero-title { line-height: 1.15; margin-bottom: 10px; }
    main.contactpage.testimonialpage .hero-description { font-size: 15px; }
    /* badges: tidy 2x2, smaller, pulled up close under the subtitle */
    main.contactpage .trust-grid { margin-top: 30px; gap: 20px 14px; }
    main.contactpage .trust-item { flex: 1 1 40%; min-width: 0; max-width: 47%; }
    main.contactpage .trust-logo-wrap { height: 34px; margin-bottom: 6px; }
    main.contactpage .trust-logo { max-height: 28px; }
    main.contactpage .trust-stars { height: 14px; }
    main.contactpage .trust-link { font-size: 12px; }
}

/* ===== Page-specific (small; no new CSS file) ===== */
.testi-block { padding: 60px 0; background: #fff; }

/* Wide reviews container (Jesse dislikes side whitespace) + 3-column flex grid */
.testi-reviews-wrap {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}
.testi-reviews-row { display: flex; flex-wrap: wrap; }
.testi-reviews-row > [class*="col-"] { display: flex; }
.testi-reviews-row .review-card { width: 100%; }

/* Pagination */
.testi-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.testi-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d4cc;
    background: #fff;
    color: #444;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.testi-page-btn:hover:not(:disabled) { border-color: #c2872f; color: #c2872f; }
.testi-page-btn.is-active { background: #c2872f; border-color: #c2872f; color: #fff; }
.testi-page-btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 991px) { .testi-reviews-wrap { padding: 0 15px; } }
.testi-block--cream { background: #faf8f5; }
.testi-block--form { background: linear-gradient(180deg, #f3f1ec 0%, #efece6 100%); }

/* ===== Modern review form ===== */
.testi-form-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee7db;
    border-radius: 18px;
    padding: 44px 46px;
    box-shadow: 0 14px 50px rgba(60,45,20,.08);
}
.testi-form-card .form-group { margin-bottom: 22px; }
.testi-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
    letter-spacing: .2px;
}
.testi-form-card .req { color: #c0392b; }
.testi-form-card .form-control {
    width: 100%;
    height: auto;
    border: 1px solid #ddd6cb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #222;
    background: #fbfaf7;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.testi-form-card .form-control::placeholder { color: #b3ada2; }
.testi-form-card .form-control:focus {
    border-color: #c2872f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(194,135,47,.15);
    outline: none;
}
.testi-form-card textarea.form-control { min-height: 150px; resize: vertical; line-height: 1.6; }
.testi-form-rating .star-rating { font-size: 36px; margin-top: 2px; }
/* Keep star labels inline (override the block label rule above) */
.testi-form-card .star-rating label { display: inline-block; margin: 0; padding: 0 2px; color: #ccc; }
.testi-form-card .star-rating label:hover,
.testi-form-card .star-rating label:hover ~ label,
.testi-form-card .star-rating input:checked ~ label { color: #f0ad4e; }
.testi-form-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}
.testi-form-submit {
    background: #c2872f;
    color: #fff;
    border: 0;
    border-radius: 50px;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(194,135,47,.28);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.testi-form-submit:hover { background: #a9741f; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(194,135,47,.36); }
@media (max-width: 600px) { .testi-form-card { padding: 30px 22px; } }

/* "As Seen In" heading for the reused press section */
main.testimonialpage .press-section__title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a9388;
    margin: 0 0 34px;
}

/* ===== Why IVS — separate card + separate text block (Scott Dunn layout, white theme) ===== */
main.testimonialpage .why-ivs { background: #fff; padding: 72px 0; }
main.testimonialpage .why-ivs__head { text-align: center; margin-bottom: 54px; }
main.testimonialpage .why-ivs__title { color: #1a1a1a; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin: 0 0 16px; }
main.testimonialpage .why-ivs__rule { display: block; width: 64px; height: 3px; background: #c2872f; border-radius: 2px; margin: 0 auto; }
main.testimonialpage .why-ivs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start; }

/* wrapper only — no box, prevents the "double card" look */
main.testimonialpage .why-card { display: flex; flex-direction: column; align-items: center; border: 0 !important; background: transparent !important; box-shadow: none !important; }
main.testimonialpage .why-card::before,
main.testimonialpage .why-card::after { content: none !important; }

main.testimonialpage .why-card__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #15402e; color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: -32px; position: relative; z-index: 2;
    box-shadow: 0 6px 16px rgba(0,0,0,.16);
}
main.testimonialpage .why-card__icon svg { width: 30px; height: 30px; }

/* THE card: badge area + title + photo */
main.testimonialpage .why-card__panel {
    width: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0,0,0,.08);
    padding: 46px 0 0;
    text-align: center;
    overflow: hidden;
}
main.testimonialpage .why-card__title { color: #15402e; font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 16px 18px; min-height: 50px; display: flex; align-items: center; justify-content: center; }
main.testimonialpage .why-card__photo img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* separate text block below the card */
main.testimonialpage .why-card__points {
    width: 100%;
    list-style: disc;
    margin: 18px 0 0;
    padding: 20px 20px 20px 40px;
    text-align: left;
    background: #f7f5f1;
    border-radius: 12px;
}
main.testimonialpage .why-card__points li { font-size: 14px; line-height: 1.65; margin-bottom: 9px; color: #555; }
main.testimonialpage .why-card__points li:last-child { margin-bottom: 0; }
main.testimonialpage .why-card__points li::marker { color: #c2872f; }
@media (max-width: 991px) { main.testimonialpage .why-ivs__grid { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; } }
@media (max-width: 575px) { main.testimonialpage .why-ivs__grid { grid-template-columns: 1fr; } main.testimonialpage .why-card__title { min-height: 0; } }

/* ===== Final CTA — reused 1:1 from group "Let's Start a Conversation" (bg photo + parallax) ===== */
main.testimonialpage .final-cta-section { position: relative; padding: 5rem 0; overflow: hidden; isolation: isolate; }
main.testimonialpage .final-cta-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    filter: saturate(0.85);
}
main.testimonialpage .final-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,20,0.55) 0%, rgba(10,10,20,0.75) 50%, rgba(10,10,20,0.6) 100%);
}
main.testimonialpage .final-cta-inner { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; z-index: 1; }
main.testimonialpage .final-cta-title {
    font-family: 'Cormorant Garamond', 'Lora', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
main.testimonialpage .final-cta-text { font-size: 1.05rem; color: rgba(255,255,255,0.78); line-height: 1.8; margin: 0 auto 1rem; max-width: none; }
main.testimonialpage .final-cta-title { white-space: nowrap; }
@media (max-width: 820px) {
    main.testimonialpage .final-cta-title { white-space: normal; }
}
main.testimonialpage .final-cta-trust { font-size: 0.9rem; font-style: italic; color: rgba(255,255,255,0.55); margin: 0 auto 2.5rem; letter-spacing: 0.02em; }
main.testimonialpage .final-cta-btn {
    display: inline-block;
    padding: 1rem 2.75rem;
    background: transparent;
    color: #fff;
    font-family: 'Cormorant Garamond', 'Lora', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.6);
    transition: all 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
main.testimonialpage .final-cta-btn:hover { background: rgba(255,255,255,0.15); border-color: #fff; letter-spacing: 0.22em; box-shadow: 0 0 30px rgba(255,255,255,0.1); }
main.testimonialpage .final-cta-email { margin: 1.5rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }
main.testimonialpage .final-cta-email a { color: rgba(255,255,255,0.85); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
main.testimonialpage .final-cta-email a:hover { color: #fff; text-decoration-color: rgba(255,255,255,0.7); }
main.testimonialpage .final-cta-crosslink { margin-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.45); letter-spacing: 0.03em; }
main.testimonialpage .final-cta-crosslink a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s ease; }
main.testimonialpage .final-cta-crosslink a:hover { color: #fff; }
/* Parallax fallback (iOS/mobile don't support background-attachment: fixed) */
@supports (-webkit-touch-callout: none) { main.testimonialpage .final-cta-bg { background-attachment: scroll; } }
@media (max-width: 767px) {
    main.testimonialpage .final-cta-section { padding: 3.5rem 0; }
    main.testimonialpage .final-cta-bg { background-attachment: scroll; }
}

.testi-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.testi-head__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin: 0 0 12px; color: #1a1a1a; }
.testi-head__subtitle { font-size: 16px; line-height: 1.6; color: #666; margin: 0; }
.testi-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.testi-sort__label { font-size: 14px; color: #555; margin: 0; font-weight: 600; }
.testi-sort__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px;
    color: #1a1a1a;
    padding: 8px 34px 8px 18px;
    border: 1px solid #d9d4cc;
    border-radius: 50px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    cursor: pointer;
    outline: none;
}
.testi-sort__select:focus { border-color: #c2872f; }

.review-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
}
.review-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-card__stars { color: #f0ad4e; font-size: 17px; letter-spacing: 3px; }
.review-card__date { font-size: 12px; color: #999; white-space: nowrap; }
.review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 14px;
}
.review-card__verified svg { width: 15px; height: 15px; color: #2db742; flex-shrink: 0; }
.review-card__title { font-size: 18px; margin: 0 0 8px; color: #222; }
.review-card__quote {
    border: 0; margin: 0 0 6px; padding: 0;
    font-size: 15px; line-height: 1.7; color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card__more {
    align-self: flex-start;
    background: none; border: 0; padding: 0; margin: 2px 0 0;
    color: #c2872f; font-weight: 600; font-size: 13px; cursor: pointer;
}
.review-card__more:hover { text-decoration: underline; }
.review-card__author { font-style: normal; font-weight: 700; color: #222; margin-top: auto; padding-top: 16px; }

/* ===== Full-review modal ===== */
.review-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.review-modal.is-open { display: block; }
.review-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.review-modal__dialog {
    position: relative;
    max-width: 960px;
    width: calc(100% - 40px);
    margin: 4vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 38px 44px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.review-modal__close {
    position: absolute; top: 10px; right: 16px;
    background: none; border: 0; font-size: 30px; line-height: 1;
    color: #999; cursor: pointer;
}
.review-modal__close:hover { color: #333; }
.review-modal__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-modal__stars { color: #f0ad4e; font-size: 19px; letter-spacing: 3px; }
.review-modal__date { font-size: 12px; color: #999; white-space: nowrap; }
.review-modal__title { font-size: 21px; margin: 0 0 14px; color: #1a1a1a; }
.review-modal__body { font-size: 15px; line-height: 1.75; color: #444; margin-bottom: 18px; }
.review-modal__author { font-style: normal; font-weight: 700; color: #222; }
@media (max-width: 600px) { .review-modal__dialog { margin: 4vh 16px; padding: 28px 22px; } }

/* Star input widget: RTL trick so left-to-right hover/selection fills work. */
.star-rating { font-size: 30px; line-height: 1; direction: rtl; display: inline-block; }
.star-rating input { display: none; }
.star-rating label { color: #ccc; cursor: pointer; padding: 0 2px; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f0ad4e; }
