/* ============================================================
   TRUSTED BY — Logo Marquee Section
   Authentic builder & developer brands across South India
   ============================================================ */

/* ---- Section Container ---- */
.trusted-by {
    position: relative;
    padding-top: clamp(48px, 5.5vw, 76px);
    padding-bottom: clamp(44px, 4.5vw, 64px);
    background: linear-gradient(180deg, #ffffff 0%, #faf9f6 50%, #f5f4f0 100%);
    overflow: hidden;
}

/* ---- Header ---- */
.trusted-by__header {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.trusted-by__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-brand, #ba121b);
    margin-bottom: 12px;
}

.trusted-by__eyebrow-diamond {
    font-size: 0.5rem;
    color: var(--color-brand, #ba121b);
    animation: trusted-diamond-pulse 2.5s ease-in-out infinite;
}

@keyframes trusted-diamond-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.25); }
}

.trusted-by__title {
    font-family: var(--font-heading), 'RoslaneDEMO', sans-serif;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--secondary-950, #07171d);
    margin: 0 0 14px 0;
}

.trusted-by__subtitle {
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: clamp(0.925rem, 1vw, 1.05rem);
    color: var(--text-500, #73828c);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- Infinite Marquee ---- */
.trusted-by__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 0 20px;
    /* Soft edge fade for infinite depth */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.trusted-by__track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: trustedScroll 32s linear infinite;
    will-change: transform;
}

.trusted-by__marquee:hover .trusted-by__track {
    animation-play-state: paused;
}

@keyframes trustedScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Logo Item Card ---- */
.trusted-by__logo-item {
    flex: none;
    width: 210px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    cursor: default;
}

.trusted-by__logo-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 24px rgba(186, 18, 27, 0.12);
    border-color: rgba(186, 18, 27, 0.35);
}

/* ---- Logo Image ---- */
.trusted-by__logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.92;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.trusted-by__logo-item:hover .trusted-by__logo-img {
    transform: scale(1.06);
    opacity: 1;
}

/* ---- Bottom Accent Line ---- */
.trusted-by__accent-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-brand, #ba121b), transparent);
    opacity: 0.6;
}

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

@media (max-width: 991px) {
    .trusted-by {
        padding-top: clamp(38px, 5vw, 56px);
        padding-bottom: clamp(34px, 4vw, 48px);
    }

    .trusted-by__title {
        font-size: clamp(1.4rem, 2.3vw, 1.85rem);
    }

    .trusted-by__title br {
        display: none;
    }

    .trusted-by__track {
        gap: 18px;
        animation-duration: 26s;
    }

    .trusted-by__logo-item {
        width: 180px;
        height: 78px;
        padding: 12px 18px;
    }
}

@media (max-width: 599px) {
    .trusted-by {
        padding-top: 32px;
        padding-bottom: 30px;
    }

    .trusted-by__header {
        margin-bottom: 24px;
    }

    .trusted-by__title {
        font-size: 1.25rem;
    }

    .trusted-by__subtitle {
        font-size: 0.85rem;
    }

    .trusted-by__track {
        gap: 14px;
        animation-duration: 20s;
    }

    .trusted-by__logo-item {
        width: 150px;
        height: 68px;
        padding: 10px 14px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trusted-by__track {
        animation: none !important;
    }
    .trusted-by__marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
