/* ============================================================
   FSPL â€” Trusted By Page
   trusted-by.css â€” Page-scoped styles
   All colors via CSS custom properties from site.css
   ============================================================ */

/* â”€â”€ Hero â”€â”€ */
.tb-hero {
    position: relative;
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 55%, var(--clr-accent-dark) 100%);
    padding: 100px 0 130px;
    overflow: hidden;
}

.tb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--clr-accent) 18%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated floating rings */
.tb-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--clr-accent) 20%, transparent);
    pointer-events: none;
}
.tb-hero-ring-1 {
    width: 420px; height: 420px;
    top: -140px; right: -100px;
    animation: tb-ring-pulse 8s ease-in-out infinite;
}
.tb-hero-ring-2 {
    width: 260px; height: 260px;
    top: -60px; right: 120px;
    border-color: rgba(255,255,255,0.08);
    animation: tb-ring-pulse 12s ease-in-out infinite reverse;
}
.tb-hero-ring-3 {
    width: 160px; height: 160px;
    bottom: 60px; left: 8%;
    border-color: color-mix(in srgb, var(--clr-accent) 15%, transparent);
    animation: tb-ring-pulse 10s ease-in-out infinite 2s;
}

@keyframes tb-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.08); opacity: 1; }
}

/* Wave bottom curve */
.tb-hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.tb-hero-wave svg {
    display: block;
    width: 100%;
}

.tb-hero-content {
    position: relative;
    z-index: 2;
}

.tb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--clr-accent) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--clr-accent) 35%, transparent);
    color: var(--clr-accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-capsule);
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
    animation: tb-slide-down 0.6s ease both;
}
.tb-hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--clr-accent);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--clr-accent);
}

.tb-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: tb-slide-up 0.7s ease 0.1s both;
}
.tb-hero-title em {
    font-style: normal;
    color: var(--clr-accent);
    position: relative;
}
.tb-hero-title em::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
    border-radius: var(--radius-sharp);
}

.tb-hero-sub {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 32px;
    animation: tb-slide-up 0.7s ease 0.2s both;
}

.tb-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: tb-slide-up 0.7s ease 0.3s both;
}

.tb-hero-breadcrumb {
    margin-top: 24px;
    animation: tb-fade-in 0.8s ease 0.4s both;
}

/* â”€â”€ Trust Statistics Strip â”€â”€ */
.tb-stats-strip {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 2;
}

.tb-stat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 32px 24px;
}
.tb-stat-pill + .tb-stat-pill {
    border-left: 1px solid var(--clr-border);
}

.tb-stat-icon-wrap {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--clr-light-bg), color-mix(in srgb, var(--clr-accent) 12%, transparent));
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--clr-accent);
}

.tb-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
    display: block;
}
.tb-stat-lbl {
    font-size: var(--fs-xs);
    color: var(--clr-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

@media (max-width: 767.98px) {
    .tb-stat-pill + .tb-stat-pill { border-left: none; border-top: 1px solid var(--clr-border); }
}

/* â”€â”€ Section wrapper & shared heading â”€â”€ */
.tb-section {
    padding: 96px 0;
    position: relative;
}
.tb-section-alt {
    background: var(--clr-light-bg);
}
.tb-section-dark {
    background: linear-gradient(160deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
}

/* Curved section separators */
.tb-curve-top {
    position: absolute;
    top: -2px; left: 0; width: 100%;
    line-height: 0; z-index: 1;
}
.tb-curve-bottom {
    position: absolute;
    bottom: -2px; left: 0; width: 100%;
    line-height: 0; z-index: 1;
}
.tb-curve-top svg, .tb-curve-bottom svg { display: block; width: 100%; }

.tb-section-inner { position: relative; z-index: 2; }

.tb-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 12px;
}
.tb-section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--clr-accent);
    border-radius: var(--radius-sharp);
    flex-shrink: 0;
}

.tb-section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.2;
    margin-bottom: 14px;
}
.tb-section-dark .tb-section-heading,
.tb-section-dark .tb-section-label { color: #fff; }
.tb-section-dark .tb-section-label::before { background: rgba(255,255,255,0.5); }

.tb-section-intro {
    font-size: var(--fs-base);
    color: var(--clr-text-light);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 0;
}
.tb-section-dark .tb-section-intro { color: rgba(255,255,255,0.72); }

/* â”€â”€ Client Grid â”€â”€ */
.tb-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.tb-client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--clr-white);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
    position: relative;
    overflow: hidden;
}
.tb-client-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}
.tb-client-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-accent);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--clr-primary) 12%, transparent);
}
.tb-client-card:hover::after {
    transform: scaleX(1);
}

.tb-client-dot {
    flex-shrink: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
}

.tb-client-logo {
    max-height: 30px;
    max-width: 84px;
    object-fit: contain;
    flex-shrink: 0;
}

.tb-client-name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.3;
}
.tb-client-desc {
    font-size: var(--fs-xs);
    color: var(--clr-text-light);
    line-height: 1.4;
    margin-top: 2px;
}
.tb-client-sector {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    background: var(--clr-light-bg);
    border: 1px solid var(--clr-border);
    padding: 3px 8px;
    border-radius: var(--radius-capsule);
}

/* â”€â”€ Accreditation Cards â”€â”€ */
.tb-accred-card {
    background: var(--clr-white);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.tb-accred-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--clr-accent) 10%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.tb-accred-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--clr-primary) 13%, transparent);
    border-color: var(--clr-accent);
}

.tb-accred-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.tb-accred-initials {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.tb-accred-logo {
    max-height: 44px;
    max-width: 78px;
    object-fit: contain;
    flex-shrink: 0;
}

.tb-accred-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.25;
    margin-bottom: 4px;
}
.tb-accred-authority {
    font-size: var(--fs-xs);
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tb-accred-meta {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
    line-height: 1.6;
    margin-bottom: 4px;
}
.tb-accred-meta strong { color: var(--clr-text); }

.tb-accred-valid {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--clr-success);
    background: var(--clr-success-bg);
    border: 1px solid rgba(46,125,82,0.2);
    padding: 4px 10px;
    border-radius: var(--radius-capsule);
    margin-top: 6px;
}
.tb-accred-expired {
    color: var(--clr-error);
    background: var(--clr-error-bg);
    border-color: rgba(217,79,79,0.2);
}

/* â”€â”€ Systems (Feature Cards) â”€â”€ */
.tb-system-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    backdrop-filter: blur(8px);
    transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
    position: relative;
    overflow: hidden;
}
.tb-system-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
    opacity: 0;
    transition: opacity var(--t-base);
}
.tb-system-card:hover {
    background: rgba(255,255,255,0.11);
    border-color: color-mix(in srgb, var(--clr-accent) 40%, transparent);
    transform: translateY(-4px);
}
.tb-system-card:hover::after { opacity: 1; }

.tb-system-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--clr-accent) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--clr-accent) 25%, transparent);
    color: var(--clr-accent);
    font-size: 1.35rem;
    margin-bottom: 20px;
}
.tb-system-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.25;
}
.tb-system-text {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    margin-bottom: 0;
}

/* â”€â”€ CTA Section â”€â”€ */
.tb-cta {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.tb-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 50%, color-mix(in srgb, var(--clr-accent) 14%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.tb-cta-inner { position: relative; z-index: 2; }

.tb-cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.tb-cta-sub {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}
.tb-cta-date {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.45);
    margin-top: 16px;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes tb-slide-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tb-slide-down {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Stagger observe (enhanced for this page) */
.tb-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.tb-reveal.tb-visible {
    opacity: 1;
    transform: none;
}
.tb-reveal-delay-1 { transition-delay: 80ms; }
.tb-reveal-delay-2 { transition-delay: 160ms; }
.tb-reveal-delay-3 { transition-delay: 240ms; }
.tb-reveal-delay-4 { transition-delay: 320ms; }
.tb-reveal-delay-5 { transition-delay: 400ms; }
.tb-reveal-delay-6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    .tb-reveal { opacity: 1; transform: none; transition: none; }
    .tb-hero-ring { animation: none; }
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 767.98px) {
    .tb-hero { padding: 72px 0 100px; }
    .tb-section { padding: 64px 0; }
    .tb-client-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .tb-client-grid { grid-template-columns: 1fr; }
    .tb-hero-actions { flex-direction: column; align-items: flex-start; }
}
