/* testimonials-page.css — banner unique to the "ביקורות" (testimonials) page.
   Adapted 1:1 from about-page.css (production-tested scaled-stage banner):
   - Handshake photo bg with dark gradients
   - Centered title "ביקורות" + gold rule
   - 3 feature text columns (mobile: vertical stack with check icons)
   - Mobile-only Google reviews badge ("4.8" + Google Reviews logo) over the photo
   NO white callout card (about-page only).
   Canvas: 1920px. Figma: node 1806:1443 (desktop) / 1818:1516 (mobile). */


/* ===== BANNER ===== */
.test-banner {
    position: relative;
    width: 100%;
    height: 653px;                     /* Figma banner frame height */
    background: #131313;
    overflow: hidden;
    color: var(--c-wht);
}

.test-banner__stage {
    position: absolute;
    top: 0;
    left: 0;                           /* anchored to LEFT, NOT margin auto (claude-html §VV) */
    width: 1920px;
    height: 653px;
    transform-origin: top left;
}

/* Handshake photo bg — fills the banner */
.test-banner__photo {
    position: absolute;
    inset: 0;
    width: 1920px;
    height: 643px;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* Dark gradients (match about banner) */
.test-banner__fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 159px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.test-banner__fade-mid {
    position: absolute;
    top: 267px;
    left: 0;
    width: 1920px;
    height: 384px;
    background: linear-gradient(to bottom, rgba(19,19,19,0) 0%, rgba(19,19,19,0.82) 100%);
    z-index: 2;
    pointer-events: none;
}

.test-banner__fade-bottom {
    position: absolute;
    top: 410px;
    left: 0;
    width: 1920px;
    height: 238px;
    background: linear-gradient(to bottom, rgba(19,19,19,0) 0%, rgba(19,19,19,0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Breadcrumb (top-right) */
.test-banner__crumb {
    position: absolute;
    top: 105px;
    right: 310px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-wht);
    font-family: var(--ff-he);
    font-size: 16px;
    font-weight: 300;
    opacity: 0.85;
}

.test-banner__crumb a { color: inherit; }
.test-banner__crumb a:hover { opacity: 0.7; }

.test-banner__crumb svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Title — large "ביקורות" centered */
.test-banner__title {
    position: absolute;
    top: 267px;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    z-index: 5;
    font-family: var(--ff-he);
    font-size: 110px;
    font-weight: 700;
    line-height: 128px;
    color: var(--c-wht);
    text-align: center;
    margin: 0;
    direction: rtl;
    text-shadow: 0 3px 42px rgba(0,0,0,0.52);
}

/* Gold rule under title (centered) */
.test-banner__rule {
    position: absolute;
    top: 400px;
    left: 50%;
    transform: translateX(-50%);
    width: 222px;
    height: 6px;
    background: var(--c-gold-flat);
    z-index: 5;
    border-radius: 3px;
}

/* 3-feature row */
.test-banner__features {
    position: absolute;
    top: 434px;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    height: 100px;
    z-index: 5;
    display: flex;
    direction: rtl;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    color: var(--c-wht);
}

.test-banner__feature {
    flex: 1 1 0;
    text-align: center;
    direction: rtl;
}

.test-banner__feature-text {
    font-family: var(--ff-he);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-wht);
    margin: 0;
}

/* Check icon (mobile-only by default; hidden in desktop columns).
   Hollow gold ring (24x24) + white checkmark inside (12.6x12.6) — per Figma. */
.test-banner__feature-check {
    display: none;
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
}

.test-banner__feature-check-ring,
.test-banner__feature-check-mark {
    display: block;
    position: absolute;
}

.test-banner__feature-check-ring {
    width: 24px;
    height: 24px;
    top: 0;
    left: 0;
}

.test-banner__feature-check-mark {
    width: 12.63px;
    height: 12.63px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Google reviews badge — mobile only (hidden on desktop). Figma node 1818:1532. */
.test-banner__google { display: none; }

/* Responsive scaling — section-level scaled-stage.
   CRITICAL: must use `1920px` (length) not `1920` in calc, else scale() ignores it. */
@media (max-width: 1919px) {
    .test-banner {
        height: calc(653px * (100vw / 1920px));
    }
    .test-banner__stage {
        transform: scale(calc(100vw / 1920px));
    }
}


/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 1024px) {

    .test-banner {
        position: relative;
        height: auto;
        min-height: 660px;
        padding: 270px 0 30px;             /* push content down so photo is visible above */
        background: #131313;
        overflow: hidden;
    }

    .test-banner__stage {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        padding: 0 16px;
    }

    .test-banner__photo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 525px !important;          /* Figma mobile photo area */
        object-fit: cover;
        object-position: center center;
        z-index: 1;
        opacity: 0.95;
    }

    .test-banner__fade-top,
    .test-banner__fade-mid,
    .test-banner__fade-bottom {
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
    }
    .test-banner__fade-top    { top: 0 !important; height: 110px !important; }
    .test-banner__fade-mid    { top: 270px !important; height: 255px !important;
        background: linear-gradient(180deg, rgba(19, 19, 19, 0.00) 0%, #131313 100%) !important; }
    .test-banner__fade-bottom { display: none !important; }

    /* Google badge over the photo, centered near the top */
    .test-banner__google {
        display: flex !important;
        align-items: center;
        gap: 10px;
        direction: ltr;                    /* 4.8 on the left, Google on the right (Figma 1818:1546) */
        position: absolute !important;
        top: 96px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 6;
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 9px 14px;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    }
    .test-banner__google-score {
        font-family: var(--ff-he);
        font-weight: 800;
        font-size: 30px;
        line-height: 1;
        color: #1d1d1b;
    }
    .test-banner__google-logo {
        height: 36px;
        width: auto;
        display: block;
    }

    .test-banner__crumb {
        position: absolute !important;
        top: 70px !important;
        right: 16px !important;
        z-index: 5;
        justify-content: flex-end;
        font-size: 13px;
    }

    .test-banner__title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        font-size: 56px;
        line-height: 1.05;
        text-align: center;
        margin: 0 0 14px;
        z-index: 5;
    }

    .test-banner__rule {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 240px !important;
        height: 4px !important;
        margin: 0 auto 24px;
        z-index: 5;
    }

    .test-banner__features {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        z-index: 5;
    }

    .test-banner__feature {
        display: flex;
        flex-direction: row;                  /* RTL natural: DOM 1 (check) → visual RIGHT */
        align-items: flex-start;
        gap: 12px;
        text-align: right;
    }

    .test-banner__feature-check {
        display: inline-flex;
        margin-top: 3px;
    }

    .test-banner__feature-text {
        font-size: 15px;
        line-height: 1.55;
        text-align: right;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .test-banner__title { font-size: 46px; }
}


/* =========================================================================
   TESTIMONIALS PAGE — featured video carousel + Google review grid
   (page layout; the homepage .testimonials section is a single-row slider —
   here it's a centered video carousel + a 4-column review grid for many reviews)
   ========================================================================= */
.testimonials--page {
    background: #ffffff;
    padding: 0 0 80px;
}
/* Full-width dark stage behind the featured video — continues the HERO,
   climbs onto its dark bottom, auto-sizes to the card. Reviews stay on white. */
.tvid-stage {
    position: relative;
    z-index: 30;                 /* lift the video ON TOP of the HERO */
    background: transparent;     /* keep the HERO photo visible behind the overlap */
    margin-top: -150px;          /* climb onto the HERO (below the features) */
    padding: 0 0 50px;
}
.testimonials--page .tsp {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Featured video (landscape white card, Figma 1806:1509) ---- */
.tvid {
    position: relative;
    width: 100%;
    max-width: 1301px;
    margin: 0 auto;
    z-index: 31;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.20);
    padding: 66px 110px;             /* image inset per Figma (1078×606 in 1301×736) */
}
.tvid__track { position: relative; width: 100%; }
.tvid__slide { display: none; margin: 0; }
.tvid__slide.is-active { display: block; }

.tvid__card {
    position: relative;
    width: 100%;
    aspect-ratio: 1078 / 606;        /* landscape — matches the project thumbnail */
    border-radius: 16px;
    overflow: hidden;
    background: #0b0b0b;
}
.tvid__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tvid__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94px;
    height: 94px;
    z-index: 2;
    pointer-events: none;
}
.tvid__play img { width: 100%; height: 100%; display: block; }

/* gold-bordered circle arrows in the card's side gutters, centered on the image */
.tvid__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}
.tvid__nav img { width: 100%; height: 100%; display: block; }
.tvid__nav--prev { right: 28px; }    /* RTL: right arrow = previous */
.tvid__nav--next { left: 28px; }
.tvid__nav--next img { transform: scaleX(-1); }
.tvid--single .tvid__nav { opacity: 0.45; cursor: default; }

/* ---- Review grid (4 columns) ---- */
.treviews {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.treviews .testimonials__review {
    flex: 0 0 calc((100% - 72px) / 4);
    max-width: calc((100% - 72px) / 4);
    min-width: 0;
}
.treviews .testimonials__review-top {
    display: flex;
    direction: ltr;                  /* quote (DOM 1) → LEFT, Google (DOM 2) → RIGHT (Figma) */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.treviews .testimonials__review-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    line-height: 0.7;
    color: #c8c8c8;
    width: auto;
    height: auto;
}
.treviews .testimonials__review-stars { flex-direction: row-reverse; margin-bottom: 16px; }
.treviews .testimonials__review-stars svg { width: 20px; height: 20px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .testimonials--page { background: #ffffff; padding-bottom: 50px; }
    .testimonials--page .tsp { padding: 0 16px; }
    .tvid-stage { margin-top: -60px; padding: 0 0 30px; background: transparent; }
    .tvid { width: 100%; max-width: 100%; padding: 12px; border-radius: 12px; }
    .tvid__nav { width: 40px; height: 40px; }
    .tvid__nav--prev { right: 4px; }
    .tvid__nav--next { left: 4px; }
    .tvid__play { width: 60px; height: 60px; }
    .treviews { margin-top: 40px; gap: 16px; }
    .treviews .testimonials__review { flex: 0 0 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
    .treviews .testimonials__review { flex: 0 0 100%; max-width: 100%; }
}

/* uniform review-card height + clamped text (Figma cards ~424px, consistent) */
.treviews .testimonials__review {
    min-height: 384px;
}
.treviews .testimonials__review-text {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* "all reviews" CTA */
.treviews-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.treviews-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--c-gold-flat);
    color: #fff;
    font-family: var(--ff-he);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 40px;
    transition: filter .2s ease;
}
.treviews-cta__btn:hover { filter: brightness(0.92); }
.treviews-cta__btn svg { width: 22px; height: 14px; }
@media (max-width: 600px) {
    .treviews .testimonials__review { min-height: 0; }
}

/* =====================================================================
   REVIEWS PAGE — Figma 2255-830 corrections (final, wins by order)
   ===================================================================== */
.test-banner__rev-stars svg { width: 26px; height: 26px; }
.test-banner__rev-score { font-size: 28px; }
.test-banner__rev-count { font-size: 19px; }

@media (min-width: 1025px) {
    /* restore gold underline under the title + tighten vertical rhythm to Figma */
    .test-banner__title    { top: 235px; }
    .test-banner__rule     { display: block; top: 362px; }
    .test-banner__reviews  { top: 392px; }
    .test-banner__features { top: 452px; }

    /* Featured VIDEO climbs UP and sits ON TOP of the dark HERO
       (Figma: card y=572 overlaps the banner that ends at ~651) */
    .testimonials--page { background: #ffffff; }
    .tvid-stage { margin-top: 0; }
    .tvid {
        transform: translateY(-90px);
        margin-bottom: -90px;
        position: relative;
        z-index: 30;
    }
}

/* Google wordmark as WHITE text — Figma: Google(right) → 5.0 → white stars → | → 124(left) */
.test-banner__rev-google {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.test-banner__rev-score { font-weight: 600; color: #ffffff; }
.test-banner__rev-sep   { background: rgba(255,255,255,0.6); }

/* =====================================================================
   REVIEWS PAGE — restore base 5.0 block (lost) + final Figma 2255-830
   ===================================================================== */
.test-banner__reviews {
    position: absolute; top: 392px; left: 50%; transform: translateX(-50%);
    z-index: 6; display: flex; align-items: center; justify-content: center;
    gap: 12px; direction: rtl; white-space: nowrap;
}
.test-banner__rev-google { font-family:'Heebo',Arial,sans-serif; font-weight:600; font-size:24px; line-height:1; color:#fff; letter-spacing:-0.5px; text-shadow:0 2px 14px rgba(0,0,0,.7); }
.test-banner__rev-score  { font-family:var(--ff-he); font-weight:700; font-size:26px; line-height:1; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.7); }
.test-banner__rev-stars  { display:inline-flex; gap:3px; }
.test-banner__rev-stars svg { width:24px; height:24px; display:block; filter:drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.test-banner__rev-sep    { width:1px; height:22px; background:rgba(255,255,255,.6); }
.test-banner__rev-count  { font-family:var(--ff-he); font-weight:400; font-size:19px; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.85); }
.test-banner__feature-text { text-shadow:0 2px 16px rgba(0,0,0,.9); }

@media (min-width:1025px) {
    .test-banner__title    { top:235px; }
    .test-banner__rule     { display:block; top:362px; }
    .test-banner__reviews  { top:392px; }
    .test-banner__features { top:452px; }
    .testimonials--page { background:#ffffff !important; overflow:visible; }
    .tvid-stage { margin-top:0; overflow:visible; }
    .tvid { transform:translateY(-175px); margin-bottom:-175px; position:relative; z-index:40; }
}
@media (max-width:1024px) {
    .test-banner__reviews { position:static; transform:none; margin:14px auto 0; flex-wrap:wrap; }
}
