/* ============================================================
   Técnico por Competência – IBPIC® Educação
   /educacao/assets/css/tecnico-por-competencia.css
   ============================================================ */

.tpc-page {
    --tpc-dark: var(--azul-profundo, #1A3A5C);
    --tpc-dark-2: #0F2A44;
    --tpc-accent: var(--edu-primary, #F2A67A);
    --tpc-accent-2: var(--edu-accent, #E8844F);
    --tpc-gold: var(--dourado, #C9A84C);
    --tpc-text: #2D4254;
    --tpc-muted: #687885;
    --tpc-bg: #F6F8FA;
    --tpc-border: #E1E7EC;
    --tpc-white: #FFFFFF;
    --tpc-success: #0F8E65;
    --tpc-whatsapp: #25D366;

    width: 100%;
    color: var(--tpc-text);
    background: #FFFFFF;
}

.tpc-page .container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.tpc-page .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* HERO */

.tpc-hero {
    padding:
        clamp(58px,8vw,88px)
        0
        clamp(48px,7vw,70px);

    color: #FFFFFF;
    text-align: center;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(242,166,122,0.19),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--tpc-dark),
            var(--tpc-dark-2)
        );
}

.tpc-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tpc-eyebrow,
.tpc-section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tpc-eyebrow {
    margin-bottom: 12px;
    color: #F7C7AB;
}

.tpc-hero h1 {
    margin: 0 auto 17px;
    color: #FFFFFF;
    font-size: clamp(2.1rem,5.6vw,3.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.tpc-hero h1 span {
    display: block;
    margin-top: 5px;
    color: #F4C7AA;
}

.tpc-hero-lead {
    max-width: 880px;
    margin: 0 auto 24px;
    color: rgba(255,255,255,0.84);
    font-size: 1.02rem;
    line-height: 1.75;
}

.tpc-hero-lead strong {
    color: #FFFFFF;
}

.tpc-hero-actions,
.tpc-finish-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tpc-btn {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.tpc-btn-primary {
    color: #FFFFFF;
    background: var(--tpc-accent-2);
}

.tpc-btn-primary:hover {
    color: #FFFFFF;
    background: #D8733D;
}

.tpc-btn-whatsapp {
    color: #FFFFFF;
    background: var(--tpc-whatsapp);
}

.tpc-btn-whatsapp:hover {
    color: #FFFFFF;
    background: #1FB85A;
}

.tpc-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 23px;
    color: rgba(255,255,255,0.72);
    font-size: 0.79rem;
}

.tpc-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tpc-trust-row i {
    color: var(--tpc-gold);
}


/* INTENT NAV */

.tpc-intent-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--tpc-border);
    box-shadow: 0 4px 14px rgba(20,43,61,0.035);
}

.tpc-intent-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
}

.tpc-intent-grid a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--tpc-dark);
    border-right: 1px solid var(--tpc-border);
    font-size: 0.76rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.tpc-intent-grid a:first-child {
    border-left: 1px solid var(--tpc-border);
}

.tpc-intent-grid a:hover {
    background: #FFF8F4;
}


/* SEÇÕES */

.tpc-section {
    padding: clamp(52px,7vw,76px) 0;
    scroll-margin-top: 72px;
}

.tpc-section-tag {
    margin-bottom: 8px;
    color: var(--tpc-accent-2);
}

.tpc-section-heading {
    max-width: 860px;
    margin: 0 auto 31px;
    text-align: center;
}

.tpc-section-heading h2,
.tpc-two-columns h2 {
    margin: 0 0 12px;
    color: var(--tpc-dark);
    font-size: clamp(1.65rem,3.7vw,2.35rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.tpc-section-heading p,
.tpc-two-columns p {
    color: var(--tpc-muted);
    line-height: 1.75;
}

.tpc-two-columns {
    display: grid;
    grid-template-columns:
        minmax(0,1.25fr)
        minmax(280px,0.75fr);
    gap: 38px;
    align-items: center;
}

.tpc-two-columns p {
    margin: 0 0 14px;
}


/* ALERTA */

.tpc-alert-card {
    padding: 24px;
    background: #FFF9E8;
    border: 1px solid #ECD995;
    border-top: 4px solid #B18419;
    border-radius: 14px;
}

.tpc-alert-card > i {
    margin-bottom: 10px;
    color: #A17408;
    font-size: 1.6rem;
}

.tpc-alert-card > strong {
    display: block;
    margin-bottom: 10px;
    color: #624E18;
}

.tpc-alert-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
    color: #6B5A2A;
    font-size: 0.86rem;
    line-height: 1.5;
}


/* PROCESSO */

.tpc-process {
    background: var(--tpc-bg);
}

.tpc-process-grid,
.tpc-how-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
}

.tpc-process-grid article {
    min-height: 185px;
    padding: 18px 15px;
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 12px;
}

.tpc-process-grid article > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #FFFFFF;
    background: var(--tpc-dark);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
}

.tpc-process-grid h3 {
    margin: 11px 0 6px;
    color: var(--tpc-dark);
    font-size: 0.94rem;
}

.tpc-process-grid p {
    margin: 0;
    color: var(--tpc-muted);
    font-size: 0.81rem;
    line-height: 1.55;
}


/* REQUISITOS */

.tpc-requirements {
    background: #FFFFFF;
}

.tpc-requirement-list {
    padding: 24px;
    background: var(--tpc-bg);
    border: 1px solid var(--tpc-border);
    border-radius: 14px;
}

.tpc-requirement-list h3 {
    margin: 0 0 12px;
    color: var(--tpc-dark);
    font-size: 1rem;
}

.tpc-requirement-list ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tpc-requirement-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--tpc-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.tpc-requirement-list i {
    margin-top: 4px;
    color: var(--tpc-success);
    font-size: 0.72rem;
}


/* DOCUMENTOS */

.tpc-documents {
    background: var(--tpc-bg);
}

.tpc-document-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.tpc-document-grid article {
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 12px;
}

.tpc-document-grid i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 10px;
    color: var(--tpc-dark);
    background: #FFF0E7;
    border-radius: 50%;
}

.tpc-document-grid h3 {
    margin: 0 0 6px;
    color: var(--tpc-dark);
    font-size: 0.96rem;
}

.tpc-document-grid p {
    margin: 0;
    color: var(--tpc-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}


/* COMPARAÇÃO */

.tpc-compare-section {
    background: #FFFFFF;
}

.tpc-compare {
    overflow: hidden;
    border: 1px solid var(--tpc-border);
    border-radius: 13px;
}

.tpc-compare-row {
    display: grid;
    grid-template-columns:
        minmax(150px,0.55fr)
        repeat(2,minmax(0,1fr));
}

.tpc-compare-row > * {
    padding: 14px 15px;
    border-right: 1px solid var(--tpc-border);
    border-bottom: 1px solid var(--tpc-border);
    font-size: 0.82rem;
    line-height: 1.55;
}

.tpc-compare-row > *:last-child {
    border-right: 0;
}

.tpc-compare-row:last-child > * {
    border-bottom: 0;
}

.tpc-compare-head {
    color: #FFFFFF;
    background: var(--tpc-dark);
    font-weight: 800;
}

.tpc-compare-row:not(.tpc-compare-head) strong {
    color: var(--tpc-dark);
    background: #F7F9FA;
}

.tpc-compare-row:not(.tpc-compare-head) span {
    color: var(--tpc-muted);
}

.tpc-compare-link {
    margin: 16px 0 0;
    color: var(--tpc-muted);
    text-align: center;
}

.tpc-compare-link a {
    color: var(--tpc-dark);
    font-weight: 800;
}


/* SISTEC */

.tpc-sistec {
    background: var(--tpc-bg);
}

.tpc-official-links {
    display: grid;
    gap: 9px;
}

.tpc-official-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--tpc-dark);
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.tpc-rede-note {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 17px 19px;
    color: #315268;
    background: #EDF5F8;
    border: 1px solid #D6E6ED;
    border-radius: 11px;
}

.tpc-rede-note > i {
    margin-top: 3px;
}

.tpc-rede-note strong {
    display: block;
    margin-bottom: 4px;
}

.tpc-rede-note p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}


/* TRIAGEM */

.tpc-screening {
    background: #FFFFFF;
}

.tpc-screening-form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    background: var(--tpc-bg);
    border: 1px solid var(--tpc-border);
    border-radius: 13px;
}

.tpc-field {
    display: grid;
    gap: 6px;
}

.tpc-field label {
    color: var(--tpc-dark);
    font-size: 0.8rem;
    font-weight: 750;
}

.tpc-field select {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    color: var(--tpc-text);
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.84rem;
}

.tpc-screening-action {
    grid-column: 1 / -1;
    text-align: center;
}

.tpc-screening-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #FFFFFF;
    background: var(--tpc-whatsapp);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tpc-screening-action p {
    max-width: 650px;
    margin: 8px auto 0;
    color: var(--tpc-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}


/* CATÁLOGO */

.tpc-catalog {
    background: var(--tpc-bg);
}

.tpc-catalog-tools {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.tpc-search {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
}

.tpc-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--tpc-muted);
    transform: translateY(-50%);
}

.tpc-search input {
    width: 100%;
    min-height: 48px;
    padding: 9px 12px 9px 40px;
    color: var(--tpc-text);
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 9px;
    font: inherit;
}

.tpc-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.tpc-filters button {
    padding: 7px 10px;
    color: var(--tpc-dark);
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 999px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}

.tpc-filters button.is-active {
    color: #FFFFFF;
    background: var(--tpc-dark);
    border-color: var(--tpc-dark);
}

.tpc-results-count {
    margin: 0 0 19px;
    color: var(--tpc-muted);
    font-size: 0.8rem;
    text-align: center;
}

.tpc-course-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.tpc-course-card {
    display: flex;
    min-height: 225px;
    flex-direction: column;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-top: 3px solid var(--tpc-accent);
    border-radius: 11px;
}

.tpc-course-card[hidden] {
    display: none !important;
}

.tpc-course-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 10px;
    color: var(--tpc-dark);
    background: #FFF0E7;
    border-radius: 50%;
}

.tpc-course-category {
    color: var(--tpc-accent-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tpc-course-card h3 {
    margin: 7px 0;
    color: var(--tpc-dark);
    font-size: 0.96rem;
    line-height: 1.35;
}

.tpc-course-card p {
    flex: 1;
    margin: 0 0 12px;
    color: var(--tpc-muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.tpc-course-card > a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    color: #FFFFFF;
    background: var(--tpc-dark);
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.tpc-empty {
    max-width: 560px;
    margin: 25px auto 0;
    padding: 24px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 11px;
}


/* BASE LEGAL */

.tpc-legal {
    background: #FFFFFF;
}

.tpc-legal-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.tpc-legal-grid article {
    padding: 20px;
    background: var(--tpc-bg);
    border: 1px solid var(--tpc-border);
    border-radius: 11px;
}

.tpc-legal-grid strong {
    display: block;
    margin-bottom: 7px;
    color: var(--tpc-dark);
}

.tpc-legal-grid p {
    color: var(--tpc-muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

.tpc-legal-grid a {
    color: var(--tpc-dark);
    font-size: 0.78rem;
    font-weight: 800;
}


/* FAQ */

.tpc-faq {
    background: var(--tpc-bg);
}

.tpc-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.tpc-faq details {
    margin-bottom: 10px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--tpc-border);
    border-radius: 10px;
}

.tpc-faq summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    color: var(--tpc-dark);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.tpc-faq summary::-webkit-details-marker {
    display: none;
}

.tpc-faq summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--tpc-accent-2);
    font-size: 1.25rem;
    transform: translateY(-50%);
}

.tpc-faq details[open] summary::after {
    content: '−';
}

.tpc-faq details > div {
    padding: 0 18px 17px;
}

.tpc-faq p {
    margin: 0;
    color: var(--tpc-muted);
    font-size: 0.89rem;
    line-height: 1.7;
}


/* FINAL */

.tpc-finish {
    padding: clamp(56px,8vw,74px) 0;
    color: #FFFFFF;
    background:
        linear-gradient(
            135deg,
            var(--tpc-dark),
            var(--tpc-dark-2)
        );
    text-align: center;
}

.tpc-finish-content {
    max-width: 860px;
    margin: 0 auto;
}

.tpc-finish h2 {
    margin: 0 0 11px;
    color: #FFFFFF;
    font-size: clamp(1.8rem,4vw,2.5rem);
}

.tpc-finish-content > p {
    margin: 0 auto 21px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.tpc-payment-details {
    max-width: 650px;
    margin: 20px auto 0;
    text-align: left;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
}

.tpc-payment-details summary {
    padding: 13px 16px;
    color: #FFFFFF;
    font-size: 0.83rem;
    font-weight: 750;
    cursor: pointer;
}

.tpc-payment-details > div {
    padding: 0 16px 16px;
}

.tpc-payment-details p {
    color: rgba(255,255,255,0.76);
    font-size: 0.8rem;
    line-height: 1.55;
}

.tpc-payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tpc-payment-actions a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--tpc-dark);
    background: #FFFFFF;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}


/* RESPONSIVO */

@media (max-width: 1050px) {

    .tpc-intent-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .tpc-intent-grid a {
        border: 1px solid var(--tpc-border);
        border-top: 0;
    }

    .tpc-course-grid,
    .tpc-document-grid,
    .tpc-legal-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .tpc-process-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}


@media (max-width: 820px) {

    .tpc-two-columns {
        grid-template-columns: 1fr;
    }

    .tpc-compare {
        overflow-x: auto;
    }

    .tpc-compare-row {
        min-width: 700px;
    }
}


@media (max-width: 680px) {

    .tpc-page .container {
        width: min(100% - 24px,1180px);
    }

    .tpc-intent-grid,
    .tpc-course-grid,
    .tpc-document-grid,
    .tpc-legal-grid,
    .tpc-process-grid,
    .tpc-screening-form,
    .tpc-payment-actions {
        grid-template-columns: 1fr;
    }

    .tpc-screening-action {
        grid-column: auto;
    }

    .tpc-hero-actions,
    .tpc-finish-actions {
        flex-direction: column;
    }

    .tpc-hero-actions .tpc-btn,
    .tpc-finish-actions .tpc-btn {
        width: 100%;
    }

    .tpc-trust-row {
        flex-direction: column;
        align-items: center;
    }

    .tpc-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .tpc-filters button {
        flex: 0 0 auto;
    }

    .tpc-process-grid article {
        min-height: auto;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }
}
