/* Dedicated testimonials page — hero, trust bar, layout refinements */

.testimonials-page {
    background: var(--background-light, #fafbfc);
}

/* Active nav link */
.hair-transplant-landing .ht-nav-link.ht-nav-link--active {
    color: #fff;
    font-weight: 700;
    position: relative;
}

.hair-transplant-landing .ht-nav-link.ht-nav-link--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(46, 134, 171, 0.9), rgba(255, 182, 185, 0.75));
}

/* ----- Dark cinematic hero (split: copy + clinic image) ----- */
.testimonials-page-hero {
    /* Pointer-driven ambient (updated by testimonials-hero.js) */
    --amb-x: 50%;
    --amb-y: 40%;
    position: relative;
    min-height: auto;
    display: block;
    padding: calc(88px + var(--spacing-xl)) 0 clamp(2rem, 4vw, 2.75rem);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(46, 134, 171, 0.18), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.08), transparent 50%),
        linear-gradient(165deg, #0a0f16 0%, #121a28 45%, #0d1219 100%);
    color: #fff;
    overflow: hidden;
}

/* Full-banner cursor glow: sits above base bg, under noise + content */
.testimonials-page-hero__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 100% 90% at var(--amb-x) var(--amb-y),
            rgba(46, 134, 171, 0.2) 0%,
            rgba(46, 134, 171, 0.06) 32%,
            transparent 58%
        ),
        radial-gradient(
            ellipse 55% 50% at var(--amb-x) var(--amb-y),
            rgba(139, 92, 246, 0.1) 0%,
            transparent 52%
        );
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-page-hero__ambient {
        opacity: 0;
    }
}

.testimonials-page-hero > .container {
    position: relative;
    z-index: 2;
}

.testimonials-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(46, 134, 171, 0.5),
        rgba(139, 92, 246, 0.35),
        rgba(255, 182, 185, 0.45),
        transparent
    );
    opacity: 0.95;
}

.testimonials-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

.testimonials-page-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
}

.testimonials-page-hero__copy {
    text-align: left;
    max-width: 36rem;
}

.testimonials-page-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 var(--spacing-md);
}

.testimonials-page-hero__title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 var(--spacing-md);
    color: #fff;
}

.testimonials-page-hero__lede {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 var(--spacing-xl);
    max-width: 34rem;
}

.testimonials-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md) var(--spacing-lg);
}

.testimonials-page-hero__media {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero image parallax: inner clip + slightly oversized photo (see testimonials-hero.js) */
.testimonials-page-hero__parallax-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.testimonials-page-hero__media--parallax {
    cursor: default;
}

.testimonials-page-hero__parallax-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transform-origin: center center;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-page-hero__parallax-img {
        transform: none;
        will-change: auto;
    }
}

.testimonials-page-hero__actions .ht-trust-pill--google {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.testimonials-page-hero__actions .ht-trust-pill--google:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.testimonials-page-hero__actions .ht-trust-pill__headline,
.testimonials-page-hero__actions .ht-trust-pill__score {
    color: #fff;
}

.testimonials-page-hero__actions .ht-trust-pill__rating {
    color: rgba(255, 255, 255, 0.9);
}

.testimonials-page-hero__actions .ht-trust-pill__stars {
    color: #fbbc04;
}

.testimonials-page-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    background: #fff;
    color: #0c121c;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.testimonials-page-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Jump links to sections below */
.testimonials-page-hero__jumps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.testimonials-page-hero__jump {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonials-page-hero__jump:hover {
    color: #e8cfa8;
}

.testimonials-page-hero__jump i {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* Featured proof row */
.testimonials-page-hero__proof {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: stretch;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-page-hero__proof-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-page-hero__proof-stars {
    color: #fbbc04;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.testimonials-page-hero__proof-score {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}

.testimonials-page-hero__proof-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.testimonials-page-hero__proof-quote {
    margin: 0;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #c9a06c;
}

.testimonials-page-hero__proof-quote p {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
}

.testimonials-page-hero__proof-quote cite {
    font-size: 0.72rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232, 207, 168, 0.85);
}

.testimonials-page-hero__proof-video {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.testimonials-page-hero__proof-video:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 160, 108, 0.35);
    transform: translateY(-2px);
}

.testimonials-page-hero__proof-video-thumb {
    position: relative;
    flex-shrink: 0;
    width: 5.5rem;
    height: 3.25rem;
    border-radius: 8px;
    overflow: hidden;
}

.testimonials-page-hero__proof-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonials-page-hero__proof-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.75rem;
}

.testimonials-page-hero__proof-video-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.testimonials-page-hero__proof-video-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 207, 168, 0.9);
}

.testimonials-page-hero__proof-video-cta {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

@media (max-width: 960px) {
    .testimonials-page-hero__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .testimonials-page-hero__media {
        order: -1;
        max-width: min(22rem, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .testimonials-page-hero__copy {
        text-align: center;
        max-width: none;
    }

    .testimonials-page-hero__lede {
        margin-left: auto;
        margin-right: auto;
    }

    .testimonials-page-hero__actions {
        justify-content: center;
    }

    .testimonials-page-hero__jumps {
        justify-content: center;
    }

    .testimonials-page-hero__proof {
        grid-template-columns: 1fr;
    }
}

/* ----- Credential ribbon (between hero and content) ----- */
.testimonials-page-trust {
    position: relative;
    z-index: 3;
    padding: var(--spacing-lg) 0;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.testimonials-page-trust--ribbon {
    margin-top: -0.75rem;
    padding: 1.15rem 0;
    background: linear-gradient(180deg, #fdfaf6 0%, #ffffff 100%);
    border-top: 1px solid rgba(184, 132, 90, 0.18);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 32px rgba(120, 80, 40, 0.08);
}

.testimonials-page-trust--ribbon .testimonials-page-trust__item {
    color: #2c241d;
}

.testimonials-page-trust--ribbon .testimonials-page-trust__item i {
    color: #b8845a;
    opacity: 1;
}

.testimonials-page-trust__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md) var(--spacing-2xl);
}

.testimonials-page-trust__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
}

.testimonials-page-trust__item i {
    color: #2e86ab;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ----- Patient stories: wider, breathing room on this page ----- */
.testimonials-page .patient-stories--page {
    padding-top: var(--spacing-3xl);
}
.testimonials-page .patient-stories--page .patient-stories__grid {
    max-width: 1200px;
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.testimonials-page .patient-stories--page .patient-stories__header {
    max-width: 44rem;
}

/* ----- Elfsight Google reviews: single dark band (no grey split) ----- */
.testimonials-page .grw.grw--elfsight {
    position: relative;
    margin-top: 0;
    padding: 2.25rem 0 2rem;
    border: none;
    background: #0d1219;
    overflow: visible;
    /* Top rule only: separates from light video section */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonials-page .grw-elfsight__container,
.testimonials-page .grw-elfsight-inner {
    position: relative;
    z-index: 1;
}

.testimonials-page .grw-elfsight-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem 0 0;
    min-height: 200px;
}

/* ----- Closing CTA — background from style.css (section.testimonials-page-cta animated strip) ----- */
.testimonials-page-cta {
    color: #f8fafc;
    padding: 1.75rem 0 var(--spacing-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-page-cta__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.testimonials-page-cta__lede {
    font-size: var(--font-size-base);
    color: #cbd5e1;
    margin: 0 auto var(--spacing-xl);
    max-width: 32rem;
    line-height: 1.6;
}

.testimonials-page-cta .btn-cta,
.testimonials-page-cta .js-open-lead-modal.btn-cta {
    background: #fff;
    color: #0c121c;
    border: none;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.testimonials-page-cta .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .testimonials-page-hero__actions {
        flex-direction: column;
    }

    .testimonials-page-hero__jumps {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-page-trust--ribbon .testimonials-page-trust__list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hair-transplant-landing .ht-nav-link.ht-nav-link--active::after {
        bottom: -0.2rem;
    }
}
