/* Módulo: componentes globais, formulários e navegação. */

/* =========================================
   15. ESTRUTURA PADRÃO DE PÁGINAS E POSTS
========================================= */
.content-entry {
    background: #ffffff;
}

.default-page-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.default-page-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.default-back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.post-meta {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* =========================================
   16. ACESSIBILIDADE E MENU
========================================= */
.main-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

.clients-section-title {
    margin-left: 0;
}

.section-tag-light {
    color: var(--white);
}

.mobile-menu-btn:focus-visible,
.service-header:focus-visible,
.btn-premium:focus-visible,
.btn-formal:focus-visible,
.btn-formal-return:focus-visible,
.btn-error-sober:focus-visible,
.thankyou-button:focus-visible,
.site-search-button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

/* =========================================
   19. ARCHIVE / SEARCH / LISTAGENS
========================================= */
.listing-page-main {
    padding: 180px 8% 100px;
    min-height: 80vh;
    max-width: 1400px;
    margin: 0 auto;
}

.listing-header {
    margin-bottom: 50px;
}

.listing-kicker {
    color: #005a9c;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.listing-title {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.listing-description {
    max-width: 900px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.listing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    border-color: rgba(0, 90, 156, 0.25);
}

.listing-card-image-link {
    display: block;
}

.listing-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.listing-card-content {
    padding: 28px;
}

.listing-card-meta {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.listing-card-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 14px;
}

.listing-card-title a {
    color: var(--navy);
    text-decoration: none;
}

.listing-card-title a:hover {
    color: var(--ocean);
}

.listing-card-excerpt {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.listing-read-more {
    display: inline-block;
    color: var(--ocean);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.listing-read-more:hover {
    color: var(--navy);
}

.listing-pagination {
    margin-top: 50px;
}

.listing-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.listing-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dbe4ee;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
}

.listing-pagination .page-numbers.current,
.listing-pagination .page-numbers:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* =========================================
   20. BUSCA
========================================= */
.search-form-wrapper {
    margin-bottom: 35px;
}

.site-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 760px;
}

.site-search-input {
    flex: 1;
    min-height: 56px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-search-input:focus {
    outline: none;
    border-color: #005a9c;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.12);
}

.site-search-button {
    min-height: 56px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.site-search-button:hover {
    background: #005a9c;
    transform: translateY(-1px);
}

/* =========================================
   21. ACESSIBILIDADE DE LEITOR DE TELA
========================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000000;
    clip: auto;
    border-radius: 6px;
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

#conteudo-principal:focus {
    outline: none;
}

/* =========================================
   22. RESPONSIVIDADE DE LISTAGENS
========================================= */
@media (max-width: 768px) {
    .listing-page-main {
        padding: 140px 5% 70px;
    }

    .site-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .site-search-button {
        width: 100%;
    }

    .listing-card-image {
        height: 220px;
    }
}

/* =========================================
   25. MELHORIAS DE FORMULÁRIOS
========================================= */
/* Selects genéricos do Contact Form 7 */
.wpcf7-form-control-wrap select {
    width: 100%;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
}

.wpcf7-form-control-wrap select:focus {
    outline: none;
    border-color: var(--ocean);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    color: #991b1b;
}

.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 14px;
    color: #dc2626;
    font-weight: 600;
}

.contact-container,
.feedback-form-single,
.cf7-clean-form {
    position: relative;
}


/* =========================================
   BLOCO DE CARREIRAS NO RODAPÉ
========================================= */
.footer-careers-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-careers-label {
    display: block;
    margin-bottom: 7px;
    color: #70c3f5;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-careers-link {
    display: inline-block;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 5px;
}

.footer-careers-link:hover {
    color: #70c3f5;
    text-decoration-color: currentColor;
}

.footer-careers-link:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
}

/* =========================================
   26. MENU MOBILE PREMIUM
========================================= */
body.menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 11, 20, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1150px) {
    #site-header .main-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100dvh;
        background: linear-gradient(180deg, #04111d 0%, #051626 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding: 110px 34px 40px;
        transition: right 0.35s ease;
        box-shadow: -14px 0 35px rgba(0, 0, 0, 0.35);
        gap: 22px;
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #site-header .main-menu.active {
        right: 0;
    }

    #site-header .main-menu li {
        width: 100%;
    }

    #site-header .main-menu li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
        letter-spacing: 0.8px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    #site-header .main-menu li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ffffff;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ffffff;
    }
}


@media (min-width: 1151px) and (max-width: 1350px) {
    header {
        padding-left: 3%;
        padding-right: 3%;
    }

    nav ul,
    .main-menu {
        gap: 10px;
    }

    nav ul li a {
        font-size: 0.68rem;
        letter-spacing: 0.65px;
    }

    .header-controls {
        gap: 10px;
    }
}

/* =========================================
   29. PADRONIZAÇÃO FINAL
========================================= */
section {
    scroll-margin-top: 110px;
}


.default-page-title,
.listing-title,
.esg-report-title,
.error-title,
.thankyou-title,
.protocol-title {
    letter-spacing: -0.4px;
}

.mvv-section,
.partners-section,
.qualidade-section,
.porque-section,
.services,
.clients-section,
.locations,
.video-section,
.contact-section {
    position: relative;
}

/* =========================================
   30. BOTÕES E LINKS MAIS CONSISTENTES
========================================= */
.btn-formal,
.btn-formal-return,
.btn-error-sober,
.thankyou-button,
.site-search-button {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-formal:hover,
.btn-formal-return:hover,
.thankyou-button:hover,
.site-search-button:hover {
    transform: translateY(-2px);
}

a {
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* =========================================
   31. CONSISTÊNCIA DE CARDS
========================================= */
.porque-card-premium,
.listing-card,
.contact-container,
.feedback-container-single,
.compliance-container,
.esg-container {
    border-radius: 14px;
}

.contact-container,
.feedback-container-single,
.compliance-container,
.esg-container,
.listing-card {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

/* =========================================
   32. LEITURA E CONFORTO VISUAL
========================================= */
.default-page-content,
.listing-card-excerpt,
.porque-intro,
.qualidade-content p,
.esg-content-block p,
.protocol-body p,
.error-text,
.thankyou-text {
    text-wrap: pretty;
}

p {
    max-width: 100%;
}

