/* =============================================
   Section 5 — Trust & Safety
   ============================================= */

/* --- Section Container --- */
.ts-section {
    position: relative;
    padding: 7rem 2rem 8rem 2rem;
    background-color: var(--bg-warm-cream);
    /* Deep blurred abstract shapes suggesting shield / lock forms */
    background-image:
        radial-gradient(ellipse 500px 600px at 25% 40%, rgba(85, 107, 47, 0.045) 0%, transparent 65%),
        radial-gradient(ellipse 450px 500px at 75% 55%, rgba(85, 107, 47, 0.04) 0%, transparent 65%),
        radial-gradient(ellipse 600px 400px at 50% 30%, rgba(62, 39, 35, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 350px 350px at 15% 75%, rgba(211, 84, 0, 0.025) 0%, transparent 60%),
        radial-gradient(ellipse 300px 450px at 85% 20%, rgba(62, 39, 35, 0.018) 0%, transparent 60%);
    overflow: hidden;
}

/* Subtle ambient light overlays */
.ts-section::before {
    content: '';
    position: absolute;
    top: -8%;
    right: -6%;
    width: 45%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ts-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Section Header (floating freely) --- */
.ts-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    animation: tsFloat 7s ease-in-out infinite;
}

.ts-label {
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-deep-espresso);
    margin: 0 0 0.75rem 0;
    opacity: 0.7;
}

.ts-headline {
    font-family: var(--font-heading, "Merriweather", serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-deep-espresso);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Frosted Glass Panel (card container backdrop) --- */
.ts-glass-panel {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 36px;
    padding: 3.5rem 3rem;
    box-shadow:
        0 30px 70px rgba(62, 39, 35, 0.08),
        0 10px 25px rgba(62, 39, 35, 0.04);
    animation: tsFloat 9s ease-in-out infinite 0.5s;
}

/* --- Three-Card Grid --- */
.ts-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* --- Individual White Card --- */
.ts-card {
    background: #fff;
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow:
        0 25px 60px rgba(62, 39, 35, 0.09),
        0 8px 22px rgba(62, 39, 35, 0.045);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: tsFloat 7s ease-in-out infinite;
}

.ts-card:nth-child(2) {
    animation-delay: 0.9s;
}

.ts-card:nth-child(3) {
    animation-delay: 1.8s;
}

.ts-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow:
        0 35px 75px rgba(62, 39, 35, 0.13),
        0 12px 30px rgba(62, 39, 35, 0.06);
}

/* --- Floating Emblem Icon --- */
.ts-emblem {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #556B2F, #6b8e3a);
    border: 2px solid rgba(85, 107, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow:
        0 14px 35px rgba(85, 107, 47, 0.25),
        0 0 20px rgba(85, 107, 47, 0.12);
    position: relative;
    /* Float above the card surface */
    margin-top: -1rem;
    animation: tsEmblemFloat 5.5s ease-in-out infinite;
}

.ts-card:nth-child(2) .ts-emblem {
    animation-delay: 0.6s;
}

.ts-card:nth-child(3) .ts-emblem {
    animation-delay: 1.2s;
}

.ts-emblem svg,
.ts-emblem i {
    width: 30px;
    height: 30px;
    stroke-width: 2;
    color: #FFFFFF;
}

/* Sage Green glow ring behind the emblem */
.ts-emblem::after {
    content: '';
    position: absolute;
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    border-radius: 50%;
    border: 2px solid rgba(85, 107, 47, 0.25);
    animation: tsGlowPulse 3.5s ease-in-out infinite;
}

/* --- Card Typography --- */
.ts-card h3 {
    font-family: var(--font-heading, "Merriweather", serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-deep-espresso);
    margin: 0;
}

.ts-card p {
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes tsFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes tsEmblemFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes tsGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    .ts-cards-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ts-glass-panel {
        padding: 2.5rem 1.5rem;
        border-radius: 28px;
    }

    .ts-headline {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .ts-section {
        padding: 4rem 1.25rem 5rem 1.25rem;
    }

    .ts-headline {
        font-size: 1.8rem;
    }

    .ts-glass-panel {
        padding: 2rem 1rem;
        border-radius: 22px;
    }

    .ts-card {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        border-radius: 22px;
    }
}




