/* Ajustes V2 — 21/09. Não alterar a V1. */

/* Logo colorida no topo, sem distorcer. */
.logo .logo-img--branca {
    display: none !important;
}
.logo .logo-img--padrao,
.header--scrolled .logo .logo-img--padrao,
.header:not(.header--scrolled) .logo .logo-img--padrao,
.nav-mobile-header .logo-img {
    display: block !important;
}
.logo-img,
.footer-logo {
    width: auto;
    max-height: 68px;
    height: 68px;
    object-fit: contain;
    object-position: left center;
}

/* Degradê laranja/amarelo do destaque → laranja sólido da marca. */
.highlight-text,
.hero .mask-text.highlight,
.page-hero .highlight-text {
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    color: #F58220;
    filter: none;
}

.hero-story .diff-story-title__line--accent {
    color: #F58220;
}

/* Hero: cobrir o quadro sem esticar; recorte central. Altura mobile permanece 700px. */
.diff-story-image,
.diff-story-media img,
.diff-story-youtube {
    object-fit: cover;
    object-position: center center;
}

/* Título institucional sem itálico. */
.page-quem-somos .qs-catalog__title,
.page-quem-somos .qs-catalog__title-em,
.page-quem-somos .qs-catalog__title-thin {
    font-style: normal;
}
.page-quem-somos .qs-catalog__title-em {
    font-weight: 800;
}

/* Timeline: LOGO / DATA / TEXTO */
.timeline-node__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}
.timeline-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 36px;
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 0.15rem;
}
.timeline-year {
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}
.timeline-text {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Certificações: três colunas quando couber; selos sem distorção. */
.certs-page .certs-grid,
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}
.cert-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.certs-page .cert-card__media,
.cert-card__media {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.85rem;
}
.certs-page .cert-card__media img,
.cert-card__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.cert-card--awaiting {
    border-style: dashed;
    background: #fafafa;
}
.cert-card__awaiting {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.home-psq-slot {
    padding: 40px 0;
    background: var(--color-light, #F1F1EF);
}
.home-psq-slot__box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem 2rem;
    min-height: 110px;
    padding: 28px 32px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}
.home-psq-slot__mark {
    display: block;
    width: 100px;
    max-width: 110px;
    height: auto;
    object-fit: contain;
}
.home-psq-slot__copy {
    min-width: 0;
}
.home-psq-slot__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
}
.home-psq-slot__note {
    margin: 0;
    max-width: 38rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
}
.home-psq-slot__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.15rem 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: #F58220;
    text-decoration: none;
    white-space: nowrap;
}
.home-psq-slot__cta:hover {
    color: #111;
}
.home-psq-slot__cta:focus-visible {
    outline: 2px solid #F58220;
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .home-psq-slot__box {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .home-psq-slot__cta {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .home-psq-slot {
        padding: 32px 0;
    }
    .home-psq-slot__box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.85rem;
        min-height: 0;
        padding: 24px 20px;
    }
    .home-psq-slot__mark {
        width: 96px;
    }
    .home-psq-slot__cta {
        grid-column: auto;
        justify-self: center;
    }
}

/* Quem Somos: o selo PSQ ocupa a mesma área do selo ABCP. */
.page-quem-somos .internal-dark-band__media--psq {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(374px, 52vh);
}
.page-quem-somos .internal-dark-band__media--psq .internal-dark-band__seal-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 205px);
    max-height: 220px;
    margin: auto;
    object-fit: contain;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .certs-page .certs-grid,
    .certs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .certs-page .certs-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-img,
    .footer-logo {
        height: 52px;
        max-height: 52px;
    }
    .timeline-logo {
        height: 30px;
    }
    .page-quem-somos .internal-dark-band__media--psq .internal-dark-band__seal-img {
        max-height: 160px;
    }
    .page-quem-somos .qs-certs-carousel .internal-dark-band__layout {
        align-content: start;
    }
}

/* Catálogo: alinhar conteúdo variável sem criar copy técnica nem cortar cards. */
.products-grid {
    align-items: stretch;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.products-grid .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}
.products-grid .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.products-grid .product-info h2 {
    min-height: 3.75rem;
}
.products-grid .product-card__summary {
    min-height: 4.275rem;
}
.products-grid .product-card__summary p {
    margin: 0;
}
.products-grid .product-specs {
    margin-top: 1.125rem;
}
.products-grid .product-card__actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Laranja aprovado nos CTAs e foco do catálogo. */
.product-single .btn-primary,
.products-grid .btn-primary {
    background-color: #F58220;
}
.product-single .btn-primary:hover,
.products-grid .btn-primary:hover {
    background-color: #D96D13;
}
.product-single a:focus-visible,
.products-grid a:focus-visible,
.catalog-family-filter:focus-visible {
    outline-color: #F58220;
}

@media (max-width: 620px) {
    .products-grid .product-info h2,
    .products-grid .product-card__summary {
        min-height: 0;
    }
}
