/* ==========================================================================
   reviews.css - Trustpilot review wall (homepage + packages page).
   Dark theme to match the rest of the site (body is #000, packages.css uses
   #0b0c0f). Coral (#F95F57) stays the site accent; Trustpilot green (#00B67A)
   is used ONLY for the Trustpilot rating mark and star tiles, so it reads as
   a third-party badge rather than a second brand colour.
   Classes prefixed .tp-.
   ========================================================================== */
:root { --tp-green: #00B67A; --tp-accent: #F95F57; }

.tp-section {
    background: #0b0c0f;
    padding: 76px 0 84px;
    overflow: hidden;
    position: relative;
}

/* ---- Header: rating panel on the left, message on the right.
   Deliberately asymmetric (7fr/5fr) rather than a centred block, so it does
   not read as another generic testimonial header. ---- */
.tp-top {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 46px;
    align-items: center;
    margin: 0 0 52px;
}

/* Rating panel */
.tp-panel {
    background: linear-gradient(340deg, #00b67a0f, #ffffff0d 70%);
    border: 1px solid #ffffff1f;
    border-radius: 16px;
    padding: 30px 28px;
}
.tp-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
}
.tp-brand .fa {
    color: var(--tp-green);
    font-size: 21px;
    line-height: 1;
}
.tp-brand span {
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.2px;
}

/* 5 tiles, greyed, with a green overlay clipped to the real score. */
.tp-score-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
    margin: 0 0 16px;
}
.tp-score-stars .tp-row-grey,
.tp-score-stars .tp-row-fill { display: flex; gap: 4px; }
.tp-score-stars .tp-row-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}
.tp-tile {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.tp-tile .fa { font-size: 15px; line-height: 1; color: #fff; }
.tp-tile-grey { background: #3a3d45; }
.tp-tile-green { background: var(--tp-green); }

.tp-score-line {
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    margin: 0 0 4px;
    padding: 0;
}
.tp-score-line strong { font-size: 27px; font-weight: 700; line-height: 1; }
.tp-score-sub {
    color: #99a0af;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    margin: 0 0 20px;
    padding: 0;
}
.tp-panel-link {
    display: inline-block;
    background: var(--tp-green);
    /* Near-black on the Trustpilot green gives 7.3:1. White would be 2.6:1,
       which fails WCAG AA for button text. */
    color: #06251a !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    padding: 11px 20px;
    border-radius: 10px;
    transition: transform .2s ease, background-color .2s ease;
}
.tp-panel-link:hover { background: #00d18b; transform: translateY(-2px); color: #06251a !important; }

/* Right-hand message */
.tp-intro h2 {
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding: 0;
}
.tp-intro h2 span { color: var(--tp-accent); }
.tp-intro p {
    color: #aab1c0;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px;
    line-height: 1.65;
    max-width: 58ch;
    margin: 0 0 22px;
    padding: 0;
}
.tp-cta {
    display: inline-block;
    background: var(--tp-accent);
    color: #fff !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    padding: 13px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(249, 95, 87, .22);
    transition: transform .2s ease, background-color .2s ease;
}
.tp-cta:hover { background: #e2453d; transform: translateY(-2px); color: #fff !important; }

/* ---- The rail. One continuous marquee, full width of the viewport, with a
   fade at both edges so cards enter and leave instead of being cut off. ---- */
.tp-rail {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tp-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: tp-scroll 68s linear infinite;
}
.tp-rail:hover .tp-track,
.tp-rail:focus-within .tp-track { animation-play-state: paused; }

@keyframes tp-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Card */
.tp-card {
    flex: 0 0 372px;
    width: 372px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(343deg, #f9444408, #ffffff10 70%);
    border: 1px solid #51515159;
    border-radius: 16px;
    padding: 26px 24px;
    transition: border-color .2s ease, transform .2s ease;
}
.tp-card:hover { border-color: var(--tp-green); transform: translateY(-4px); }
.tp-card-stars { display: flex; gap: 3px; margin: 0 0 15px; }
.tp-card-stars .tp-tile { width: 23px; height: 23px; flex: 0 0 23px; }
.tp-card-stars .tp-tile .fa { font-size: 12px; }
.tp-quote {
    color: #d8dde6;
    font-family: 'Cairo', sans-serif !important;
    font-size: 15px;
    line-height: 1.62;
    margin: 0 0 20px;
    padding: 0;
    flex: 1 1 auto;
}
.tp-who { border-top: 1px solid #ffffff14; padding-top: 15px; }
.tp-who b {
    display: block;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
.tp-who span {
    display: block;
    color: #8d94a3;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    margin-top: 3px;
}
.tp-who .tp-verified { color: var(--tp-green); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .tp-top { grid-template-columns: 1fr; gap: 32px; }
    .tp-intro h2 { font-size: 32px; }
}
@media (max-width: 575px) {
    .tp-section { padding: 56px 0 62px; }
    .tp-panel { padding: 24px 20px; }
    .tp-intro h2 { font-size: 27px; }
    .tp-card { flex: 0 0 290px; width: 290px; padding: 22px 20px; }
    .tp-tile { width: 26px; height: 26px; flex: 0 0 26px; }
}

/* ---- Motion is decoration here, never the only way to read the reviews.
   With reduced motion the marquee stops and the rail becomes a normal
   horizontal scroller the visitor drives themselves. ---- */
@media (prefers-reduced-motion: reduce) {
    .tp-track { animation: none; }
    .tp-rail {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .tp-card:hover { transform: none; }
    .tp-cta:hover, .tp-panel-link:hover { transform: none; }
}
