/* ==========================================================================
   NOSSOS CLIENTES — Customer showcase section
   --------------------------------------------------------------------------
   DESIGN INTENT
   • Spacing scale: 10 / 25 / 50px ONLY.
   • Brand palette only — the "ao vivo" indicator uses --color-accent
     (orange) instead of an off-palette red so the marquee section stays
     inside the brand token set and reads as the same family as the
     conversas-reais "ao vivo" eyebrow below it.
   • Background #dbeafe (light blue) creates rhythm: the previous section
     is white, the next (conversas-reais) is also white so this section is
     the visual "exhale" between them, finished by the wave divider into
     conversas-reais.
   ========================================================================== */

.nossos-clientes-section {
    background: #dbeafe;
    position: relative;
    z-index: 3;
    /* Reserves bottom space for the ConversasReais macbook to bleed up
       (margin-top: -200px on desktop). Without this, the macbook would
       overlap NossosClientes content instead of empty padding. */
    padding-bottom: 200px;
}

@media (max-width: 1023px) {

    /* No bleed on mobile — iPhone replaces the MacBook and stacks normally. */

    .nossos-clientes-section {
        padding-bottom: 50px;
    }
}

/* -------------------------------------------------------------------------
   AO VIVO EYEBROW — slim, uppercase live indicator below the logo carousel.
   Mirrors the eyebrow on the conversas-reais section so the two consecutive
   sections feel like one continuous "live" thread.
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content .nc-live-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    white-space: nowrap;
    margin: 0 auto 25px;
}


/* -------------------------------------------------------------------------
   RATINGS — fetched on page load; sits between the logo grid and the CTA.
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content .nc-ratings-slot {
    width: 100%;
    margin: 25px auto 0;
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings {
        flex-direction: column;
        gap: 10px;
    }
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars {
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars .nc-ratings-star {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 25px;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars .nc-ratings-star .nc-ratings-star__bg,
.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars .nc-ratings-star .nc-ratings-star__fg {
    display: block;
    width: 100%;
    height: 100%;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars .nc-ratings-star .nc-ratings-star__bg {
    fill: transparent;
    stroke: rgba(15, 23, 42, 0.18);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__stars .nc-ratings-star .nc-ratings-star__fg {
    position: absolute;
    top: 0;
    left: 0;
    fill: #f59e0b;
    stroke: #f59e0b;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__caption {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__caption .nc-ratings__average,
.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__caption .nc-ratings__count {
    color: var(--color-ink);
    font-weight: 700;
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__caption .nc-ratings__divider {
    color: rgba(15, 23, 42, 0.3);
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nossos-clientes-section .nc-content .nc-ratings-slot .nc-ratings .nc-ratings__link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}


/* -------------------------------------------------------------------------
   CTA — primary button + subtext, below the ratings.
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content .nc-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 25px auto 0;
}

.nossos-clientes-section .nc-content .nc-cta .nc-cta__subtext {
    color: var(--color-muted);
    font-size: 13px;
}


/* LIVE DOT — accent orange (brand token). Pulses to signal real-time. */

.nossos-clientes-section .nc-content .nc-live-eyebrow .nc-live-eyebrow__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(255, 111, 60, 0.5);
    animation: ncPulse 3s ease-in-out infinite;
}

@keyframes ncPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 111, 60, 0.5); }
    60%  { box-shadow: 0 0 0 10px rgba(255, 111, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 60, 0); }
}

.nossos-clientes-section .nc-content .nc-live-eyebrow .nc-live-eyebrow__label {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 1.6px;
}


/* SEPARATOR DOT — visually small (transform: scale) so the spacing-scale
   width stays clean while the dot still reads as a tiny accent mark. */

.nossos-clientes-section .nc-content .nc-live-eyebrow .nc-live-eyebrow__sep {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.15);
    flex-shrink: 0;
    transform: scale(0.4);
}

.nossos-clientes-section .nc-content .nc-live-eyebrow .nc-live-eyebrow__sub {
    color: var(--color-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}


/* -------------------------------------------------------------------------
   HEADER — uses the shared `_SectionHeader` partial (.conheca-header-with-logo).
   Local rule only adjusts the bottom margin so the marquee gets breathing
   room. All other styling (typography, colors, layout) comes from the
   global .section-header / .conheca-header-with-logo rules in components.css.
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap {
    align-self: stretch;
    width: 100%;
}

.nossos-clientes-section .nc-content .conheca-header-with-logo {
    margin-bottom: 50px;
}


/* -------------------------------------------------------------------------
   STATIC GRID (SSR fallback — visible before JS builds the marquee)
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-grid .nc-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* -------------------------------------------------------------------------
   LOGO MARQUEE
   ------------------------------------------------------------------------- */

.nossos-clientes-section .nc-content .nc-marquee-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap::before,
.nossos-clientes-section .nc-content .nc-marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, #dbeafe, transparent);
}

.nossos-clientes-section .nc-content .nc-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, #dbeafe, transparent);
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-marquee-row {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ncMarqueeLeft var(--nc-duration, 20s) linear infinite;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-marquee-row.nc-reverse {
    animation-name: ncMarqueeRight;
}

@keyframes ncMarqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ncMarqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-marquee-row .nc-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 25px;
    list-style: none;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    background: var(--color-surface);
    border-radius: 25px;
    padding: 10px 25px;
    border: none;
    text-decoration: none;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap a.nc-logo-card {
    cursor: pointer;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap a.nc-logo-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap a.nc-logo-card:hover {
    filter: brightness(0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nossos-clientes-section .nc-content .nc-marquee-wrap div.nc-logo-card {
    cursor: default;
    opacity: 0.85;
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-logo-card .nc-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7);
}

.nossos-clientes-section .nc-content .nc-marquee-wrap .nc-logo-card .nc-logo-name {
    font-weight: 600;
    color: var(--color-ink);
    text-align: center;
    line-height: 1.2;
    opacity: 0.5;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */

@media (min-width: 1024px) {

    /* Logo desktop size handled by the global .conheca-header-logo rule. */

}

@media (max-width: 767px) {

    .nossos-clientes-section .nc-content .nc-marquee-wrap {
        gap: 10px;
    }

    .nossos-clientes-section .nc-content .nc-marquee-wrap::before,
    .nossos-clientes-section .nc-content .nc-marquee-wrap::after {
        width: 25px;
    }

    .nossos-clientes-section .nc-content .nc-marquee-wrap .nc-logo-card {
        width: 120px;
        height: 65px;
        padding: 10px;
        border-radius: 10px;
    }

    .nossos-clientes-section .nc-content .nc-marquee-wrap .nc-marquee-row .nc-logo-item {
        margin-right: 10px;
    }

    .nossos-clientes-section .nc-content .nc-marquee-wrap .nc-grid {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nossos-clientes-section .nc-content .nc-marquee-wrap .nc-marquee-row {
        animation-play-state: paused;
    }

    .nossos-clientes-section .nc-content .nc-live-eyebrow .nc-live-eyebrow__dot {
        animation: none;
    }
}
