/*==========================================================================
  Home page additions from the site review:
  proof bar, client walkthrough video and the "Start
  here" strip (the FAQ moved to the About page). Loaded after home.css.
==========================================================================*/

/* ---------- Proof bar under the hero ---------- */
.home-proof-bar {
    position: relative;
    z-index: 2;
    background: var(--theme-color-2);
}

.home-proof-list {
    list-style: none;
    margin: 0;
    padding: 22px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
}

.home-proof-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.4;
}

.home-proof-list strong {
    color: var(--white);
    font-size: 18px;
}

.home-proof-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #7fd6a6;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Client walkthrough video ---------- */
.home-video-section {
    background: #eef5f5;
}

.home-video-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 50px;
    align-items: center;
}

.home-video-copy .subtitle {
    display: inline-block;
    margin-bottom: 14px;
}

.home-video-copy h2 {
    margin-bottom: 16px;
}

.home-video-copy p {
    margin-bottom: 26px;
    font-size: 17px;
    line-height: 1.7;
}

.home-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px rgba(32, 64, 102, 0.18);
}

.home-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- "Start here" strip ---------- */
.home-start-strip {
    padding: 40px 0 0;
}

.home-start-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    padding: 22px 28px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(0, 152, 74, 0.2);
    border-left: 4px solid var(--theme-color);
    box-shadow: 0 8px 22px rgba(32, 64, 102, 0.06);
}

.home-start-label {
    margin: 0;
    font-size: 16px;
    color: var(--header);
}

.home-start-label i {
    color: var(--theme-color);
    margin-right: 6px;
}

.home-start-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.home-start-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--theme-color);
}

.home-start-links a:hover {
    color: var(--theme-color-2);
}

.home-start-links i {
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .home-proof-list { grid-template-columns: repeat(2, 1fr); }
    .home-video-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 575px) {
    .home-proof-list { grid-template-columns: 1fr; padding: 18px 0; }
    .home-start-inner { padding: 20px; }
}

/* ---------- Hero: "not a patient testing service" note ----------
   The note sat below the hero background layer (it had no stacking position,
   unlike the heading and buttons), so it was painted over and never seen. */
.hero-2.hero-static .hero-note {
    position: relative;
    z-index: 9;
}


/* ==========================================================================
   TESTIMONIALS - split layout.
   Heading, slider controls and the Google link stay pinned on the left while
   the written reviews slide through on the right. The two video testimonials
   sit as a strip underneath. Videos use a click-to-play facade so the page
   never pulls ~17 MB on first paint.
   ========================================================================== */

.testi-section {
    background: #f5f8f6;
}

.testi-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

/* Left column --------------------------------------------------------- */

.testi-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0, 152, 74, .10);
    color: #00984a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.testi-aside h2 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.22;
    color: #1b1b1b;
}

.testi-aside > p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #6b7280;
}

/* Arrows and dots live together under the copy. Swiper positions these
   absolutely by default, so each is reset to static. */
.testi-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

#testiNavWrap .swiper-button-prev,
#testiNavWrap .swiper-button-next {
    position: static;
    margin: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e6efff;
    box-shadow: 0 6px 18px rgba(32, 64, 102, .08);
    transition: background .3s ease, border-color .3s ease;
}

#testiNavWrap .swiper-button-prev:hover,
#testiNavWrap .swiper-button-next:hover {
    background: #00984a;
    border-color: #00984a;
}

#testiNavWrap .swiper-button-prev::after,
#testiNavWrap .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    color: #204066;
}

#testiNavWrap .swiper-button-prev:hover::after,
#testiNavWrap .swiper-button-next:hover::after {
    color: #fff;
}

#testiNavWrap .swiper-pagination {
    position: static;
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

#testiNavWrap .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #c3d2cb;
    opacity: 1;
    transition: width .3s ease, background .3s ease;
}

#testiNavWrap .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: #00984a;
}

/* Right column: the slider ---------------------------------------------- */

/* Grid children default to min-width:auto, so without this the column (and
   with it Swiper's slide width) expands past the track and the cards spill. */
.testi-slider-wrap {
    min-width: 0;
}

.testi-slider {
    overflow: hidden;
    padding: 8px 0 12px;
}

/* Slides stretch to a common height so every review card is the same size,
   whichever one is showing. The tallest card sets it, and expanding a quote
   grows them all together. */
.testi-slider .swiper-wrapper {
    align-items: stretch;
}

.testi-slider .swiper-slide {
    display: flex;
    height: auto;
}

.testi-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 42px 44px 34px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6efff;
    box-shadow: 0 14px 40px rgba(32, 64, 102, .07);
}

/* The signed letter is the strongest proof, so it reads differently. */
.testi-card--letter {
    border-color: rgba(0, 152, 74, .3);
}

.testi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 152, 74, .11);
    color: #00984a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.testi-mark {
    display: block;
    margin-bottom: 16px;
    font-size: 30px;
    color: #00984a;
    opacity: .28;
}

/* Quotes are clamped to three lines so every card reads the same length;
   the Read more button below lifts the clamp. -webkit-line-clamp needs the
   -webkit-box display to take effect, and it clamps the whole flow, so the
   lede and the body text count together. */
.testi-card blockquote {
    /* NOT flex:1 1 auto. Stretching this box makes it taller than the three
       lines the clamp renders, and the extra height lets a fourth line bleed
       through and get sliced at the overflow edge. Sized to its own content,
       the box ends exactly where the clamp does. */
    flex: 0 0 auto;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expanded: drop the clamp and let the quote run to its full length. */
.testi-card.is-open blockquote {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/*--------------------------------[ Read more ]----------------------------*/

.testi-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #00984a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.testi-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.testi-more:hover {
    color: #204066;
}

.testi-card.is-open .testi-more i {
    transform: rotate(180deg);
}

/* A quote short enough to fit in three lines needs no button; the script
   hides it rather than offering a control that does nothing. */
.testi-more[hidden] {
    display: none;
}

.testi-card blockquote p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.85;
    color: #4b5563;
}

.testi-card blockquote p:last-child { margin-bottom: 0; }

/* The opening sentence carries the quote. */
.testi-lede {
    font-size: 18px !important;
    line-height: 1.65 !important;
    font-weight: 500;
    color: #204066 !important;
}

.testi-card figcaption {
    /* Takes up the slack the blockquote no longer does, so every card stays
       the same height with the attribution on the baseline. */
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid #e6efff;
}

.testi-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00984a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
}


.testi-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #204066;
    line-height: 1.35;
}

.testi-role {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.45;
}

/* Video strip ---------------------------------------------------------- */

/* Three clips now. auto-fit keeps them even at any count and drops to two
   up, then one, as the space runs out - no breakpoint per card. */
.testi-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

@media (max-width: 1199px) {
    .testi-videos { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

.testi-video {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 18px 46px rgba(13, 31, 51, .22);
}

/* The facade button fills the card until the real <video> replaces it. */
/* Poster frame pulled from the clip itself, behind the play button. It is
   lazy-loaded because the section sits well down the page, and it sits under
   a dark scrim so the white label text stays readable over any frame. */
.testi-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    transition: transform .5s ease;
}

.testi-video-play::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(13, 31, 51, .28);
    transition: background .35s ease;
}

.testi-video-play:hover .testi-poster { transform: scale(1.04); }

.testi-video-play:hover::after {
    background: rgba(13, 31, 51, .16);
}

/* Keep the play button above the poster and the scrim. */
.testi-play-icon {
    position: relative;
    z-index: 2;
}

.testi-video-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(150deg, #24496f, #101f33);
    transition: background .35s ease;
}

.testi-video-play:hover {
    background: linear-gradient(150deg, #2b5885, #142942);
}

.testi-play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00984a;
    color: #fff;
    font-size: 25px;
    box-shadow: 0 0 0 10px rgba(0, 152, 74, .18);
    transition: transform .35s ease, box-shadow .35s ease;
}

.testi-video-play:hover .testi-play-icon {
    transform: scale(1.07);
    box-shadow: 0 0 0 16px rgba(0, 152, 74, .16);
}

/* Swapped in by the facade script. */
.testi-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 1199px) {
    .testi-split { grid-template-columns: 320px 1fr; gap: 40px; }
    .testi-aside h2 { font-size: 34px; }
    .testi-card { padding: 34px 32px 28px; }
    .testi-lede { font-size: 17px !important; }
}

@media (max-width: 991px) {
    .testi-split {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 42px;
    }
    .testi-aside { text-align: center; }
    .testi-nav { justify-content: center; }
    .testi-videos { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 575px) {
    .testi-aside h2 { font-size: 27px; }
    .testi-aside > p { font-size: 15px; }
    .testi-card { padding: 26px 20px 22px; }
    .testi-lede { font-size: 16px !important; }
    .testi-card blockquote p { font-size: 15px; }
    .testi-play-icon { width: 62px; height: 62px; font-size: 21px; }
    #testiNavWrap .swiper-button-prev,
    #testiNavWrap .swiper-button-next { width: 44px; height: 44px; }
}
