/* Trustpilot-score in de homepage-hero — 11 november 2026.
   Score, sterren, label en aantal komen live van Trustpilot (home-trust.js); nooit vaste cijfers.
   Alles onder .hero-trust. */
.hero-trust {
    --ht-navy: #0d1f3c;
    --ht-ink: #1b2a44;
    --ht-muted: #5a6880;
    --ht-green: #00b67a;
    --ht-line: rgba(13, 31, 60, 0.1);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    min-height: 80px;
    margin: -6px 0 26px;
    padding: 11px 16px 11px 11px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(8, 18, 40, 0.28), 0 2px 6px rgba(8, 18, 40, 0.12), inset 0 1px 0 #fff;
    color: var(--ht-ink);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-trust:hover,
.hero-trust:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(8, 18, 40, 0.34), 0 3px 8px rgba(8, 18, 40, 0.14), inset 0 1px 0 #fff;
}
.hero-trust:focus-visible {
    outline: 3px solid #ffcd00;
    outline-offset: 3px;
}

/* Scoretegel */
.hero-trust-score {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 58px;
    padding: 0 8px;
    border-radius: 14px;
    background: linear-gradient(160deg, #13305e 0%, var(--ht-navy) 70%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 10px rgba(13, 31, 60, 0.25);
    color: #fff;
    box-sizing: border-box;
}
.hero-trust-value {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}
.hero-trust-value-label {
    margin-top: 3px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #ffcd00;
}

/* Middenkolom */
.hero-trust-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.hero-trust-line1 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-trust-label {
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--ht-navy);
    letter-spacing: 0.1px;
}
.hero-trust-stars {
    display: block;
    width: 124px;
    height: 23px;
    flex: 0 0 auto;
}
.hero-trust-line2 {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ht-muted);
}
.hero-trust-count strong {
    color: var(--ht-ink);
    font-weight: 800;
}
.hero-trust-logo {
    display: block;
    width: 86px;
    height: 21px;
    flex: 0 0 auto;
    margin-top: -2px;
}

/* Pijlknop */
.hero-trust-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 6px;
    border-radius: 50%;
    background: #eef3fb;
    color: #0057b8;
    transition: background 0.18s ease, color 0.18s ease;
}
.hero-trust:hover .hero-trust-arrow,
.hero-trust:focus-visible .hero-trust-arrow {
    background: #0057b8;
    color: #fff;
}
.hero-trust-arrow svg {
    width: 18px;
    height: 18px;
}

/* Laden: rustige placeholders, geen cijfers */
.hero-trust[data-state="loading"] .hero-trust-value,
.hero-trust[data-state="loading"] .hero-trust-label,
.hero-trust[data-state="loading"] .hero-trust-count {
    color: transparent;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(13, 31, 60, 0.07), rgba(13, 31, 60, 0.13), rgba(13, 31, 60, 0.07));
    background-size: 200% 100%;
    animation: hero-trust-shimmer 1.4s ease-in-out infinite;
}
.hero-trust[data-state="loading"] .hero-trust-value { display: block; width: 40px; height: 22px; background-color: rgba(255, 255, 255, 0.18); background-image: none; animation: none; }
.hero-trust[data-state="loading"] .hero-trust-label { display: inline-block; min-width: 104px; }
.hero-trust[data-state="loading"] .hero-trust-count { display: inline-block; min-width: 72px; }
.hero-trust[data-state="loading"] .hero-trust-fallback,
.hero-trust[data-state="ready"] .hero-trust-fallback { display: none; }
.hero-trust[data-state="loading"] .hero-trust-stars { visibility: hidden; }
@keyframes hero-trust-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Geen live gegevens: alleen een nette link naar het profiel, zonder cijfers */
.hero-trust[data-state="fallback"] .hero-trust-score,
.hero-trust[data-state="fallback"] .hero-trust-line1,
.hero-trust[data-state="fallback"] .hero-trust-count { display: none; }
.hero-trust[data-state="fallback"] { padding-left: 18px; }
.hero-trust-fallback { display: none; }
.hero-trust[data-state="fallback"] .hero-trust-fallback { display: inline; font-weight: 800; color: var(--ht-ink); font-size: 1rem; }

/* Tablet en telefoon */
@media (max-width: 1024px) {
    .hero-trust { margin: -4px 0 22px; }
}
@media (max-width: 768px) {
    .hero-trust {
        display: flex;
        width: 100%;
        min-height: 66px;
        gap: 12px;
        margin: -2px 0 18px;
        padding: 8px 10px 8px 8px;
        border-radius: 18px;
    }
    .hero-trust-score { min-width: 58px; height: 48px; border-radius: 12px; }
    .hero-trust-value { font-size: 1.4rem; }
    .hero-trust-value-label { font-size: 0.5rem; letter-spacing: 0.8px; }
    .hero-trust-main { flex: 1 1 auto; gap: 5px; }
    .hero-trust-line1 { gap: 8px; }
    .hero-trust-label { font-size: 1rem; }
    .hero-trust-stars { width: 96px; height: 18px; }
    .hero-trust-line2 { font-size: 0.8rem; gap: 5px; }
    .hero-trust-logo { width: 72px; height: 18px; }
    .hero-trust-arrow { width: 30px; height: 30px; margin-left: auto; }
}
@media (max-width: 359px) {
    .hero-trust-stars { width: 84px; height: 16px; }
    .hero-trust-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-trust,
    .hero-trust-arrow { transition: none; }
    .hero-trust:hover,
    .hero-trust:focus-visible { transform: none; }
    .hero-trust[data-state="loading"] .hero-trust-label,
    .hero-trust[data-state="loading"] .hero-trust-count { animation: none; }
}
