/**
 * Faixa de Certificações Oficiais (Viaje com total tranquilidade)
 * Fundo verde floresta da marca, destaque âmbar e logotipos oficiais em cartões brancos
 *
 * @package Borboleta_Travel
 */

.trust-strip-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(78, 113, 102, 0.35) 0%, rgba(78, 113, 102, 0) 55%),
        linear-gradient(135deg, var(--bt-header-bg, #153A32) 0%, var(--bt-color-teal, #183E40) 100%);
    color: var(--bt-color-white);
    padding: var(--bt-space-20) 0;
}

/* Linha âmbar de transição com a seção anterior */
.trust-strip-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--bt-color-amber) 0%, var(--bt-color-terracotta) 100%);
}

/* Relevo topográfico (cartografia andina) */
.trust-strip-topography {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='500' viewBox='0 0 1200 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='white' stroke-width='1.6'%3E%3Cpath d='M-50 90 C 220 10, 430 170, 720 70 C 980 -20, 1120 120, 1260 80'/%3E%3Cpath d='M-50 160 C 200 80, 410 240, 700 140 C 960 50, 1100 190, 1260 150'/%3E%3Cpath d='M-50 230 C 180 150, 390 310, 680 210 C 940 120, 1080 260, 1260 220'/%3E%3Cpath d='M-50 300 C 160 220, 370 380, 660 280 C 920 190, 1060 330, 1260 290'/%3E%3Cpath d='M-50 370 C 140 290, 350 450, 640 350 C 900 260, 1040 400, 1260 360'/%3E%3Cpath d='M-50 440 C 120 360, 330 520, 620 420 C 880 330, 1020 470, 1260 430'/%3E%3C/g%3E%3Cg stroke='white' stroke-width='1.3'%3E%3Ccircle cx='1040' cy='250' r='150' stroke-dasharray='4 5'/%3E%3Ccircle cx='1040' cy='250' r='100'/%3E%3Ccircle cx='1040' cy='250' r='50'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trust-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: center;
    gap: var(--bt-space-16);
}

/* ==========================================================================
   Texto
   ========================================================================== */
.trust-strip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: var(--bt-space-5);
    border-radius: var(--bt-radius-full);
    background: rgba(232, 172, 85, 0.12);
    border: 1px solid rgba(232, 172, 85, 0.35);
    color: var(--bt-pastel-amber-soft);
    font-family: var(--bt-font-family-ui);
    font-size: var(--bt-fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-strip-title {
    font-family: var(--bt-font-family-heading);
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: var(--bt-line-height-tight);
    letter-spacing: -0.01em;
    color: var(--bt-color-white);
    margin: 0 0 var(--bt-space-4);
}

.trust-strip-title em {
    display: block;
    font-style: italic;
    font-weight: 600;
    color: var(--bt-pastel-amber);
}

.trust-strip-text {
    font-family: var(--bt-font-family-body);
    font-size: var(--bt-fs-base);
    line-height: var(--bt-line-height-base);
    color: rgba(250, 248, 245, 0.78);
    max-width: 34ch;
    margin: 0;
}

/* ==========================================================================
   Logotipos oficiais em cartões brancos (cores originais preservadas)
   ========================================================================== */
.trust-strip-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bt-space-4);
}

.trust-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 124px;
    padding: var(--bt-space-4);
    background: var(--bt-color-white);
    border-radius: var(--bt-radius-md);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
}

/* Barra âmbar que surge no hover */
.trust-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bt-color-amber), var(--bt-color-terracotta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.trust-logo:hover::after {
    transform: scaleX(1);
}

.trust-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

/* Ajuste óptico por logotipo (proporções muito diferentes entre si) */
.trust-logo--agencia-registrada .trust-logo-img {
    max-height: 60px;
}

.trust-logo--marca-peru .trust-logo-img {
    max-height: 62px;
}

.trust-logo--tripadvisor .trust-logo-img,
.trust-logo--protegeme .trust-logo-img {
    max-height: 92px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1100px) {
    .trust-strip {
        gap: var(--bt-space-10);
        grid-template-columns: minmax(240px, 300px) 1fr;
    }

    .trust-logo {
        height: 112px;
        padding: var(--bt-space-3) var(--bt-space-4);
    }
}

/* Tablets: texto centralizado em cima, logotipos em grade 3 x 2 */
@media (max-width: 900px) {
    .trust-strip-section {
        padding: var(--bt-space-16) 0;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        gap: var(--bt-space-10);
        text-align: center;
    }

    .trust-strip-title em {
        display: inline;
    }

    .trust-strip-text {
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Celulares: grade 2 x 3 com cartões mais baixos */
@media (max-width: 560px) {
    .trust-strip-section {
        padding: var(--bt-space-14) 0;
    }

    .trust-strip-title em {
        display: block;
    }

    .trust-strip-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--bt-space-3);
    }

    .trust-logo {
        height: 96px;
        padding: var(--bt-space-3);
    }

    .trust-logo:hover {
        transform: none;
    }

    .trust-logo-img {
        max-height: 56px;
    }

    .trust-logo--agencia-registrada .trust-logo-img,
    .trust-logo--marca-peru .trust-logo-img {
        max-height: 46px;
    }

    .trust-logo--tripadvisor .trust-logo-img,
    .trust-logo--protegeme .trust-logo-img {
        max-height: 74px;
    }
}
