﻿/* ==========================================================================
   MODERN-TCM.CSS  —  Camada de modernizacao visual do Grupo TCM
   --------------------------------------------------------------------------
   ATENCAO / MANUTENCAO
   Este arquivo e ADITIVO. Ele NAO substitui bootstrap.min.css nem
   stylish-portfolio.css — ele e carregado DEPOIS deles e apenas sobrescreve
   o que precisa ser modernizado.
   Para reverter 100% do visual novo, basta remover a tag <link> deste
   arquivo no Views/Shared/_Layout.cshtml. Nada mais.

   PALETA: nenhuma cor da identidade foi trocada. As cores originais estao
   preservadas em tokens e apenas MESCLADAS em gradientes/transparencias.
     #242D42  navy principal (sections, rodape, cabecalhos de painel)
     #232C3D  navy escuro   (sidebar, botao de menu)
     #2E2F6F  indigo        (titulos, tooltips)
     #337AB7  azul          (links / hr small / tcmsac)
     #FFFFFF  branco
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* cores originais — nao alterar */
    --tcm-navy: #242D42;
    --tcm-navy-dark: #232C3D;
    --tcm-indigo: #2E2F6F;
    --tcm-blue: #337AB7;
    --tcm-white: #FFFFFF;

    /* derivadas (mesclas da propria paleta, sem cor nova) */
    --tcm-navy-soft: #394150;
    --tcm-blue-light: #4A8FD4;
    --tcm-surface: #F5F7FA;
    --tcm-surface-2: #EDF1F6;
    --tcm-border: rgba(36, 45, 66, .10);
    --tcm-text: #2B3242;
    --tcm-text-muted: #66708A;

    /* gradientes de mesclagem */
    --tcm-grad-brand: linear-gradient(135deg, #232C3D 0%, #242D42 45%, #2E2F6F 100%);
    /* Usado nas sections escuras. Comeca e termina EXATAMENTE nas cores das
       ondas vizinhas (#2E2F6F no topo, #242D42 na base) — se mexer aqui,
       ajuste tambem .tcm-wave--hero e .tcm-wave--to-light. */
    --tcm-grad-section: linear-gradient(180deg, #2E2F6F 0%, #242D42 100%);
    --tcm-grad-accent: linear-gradient(135deg, #2E2F6F 0%, #337AB7 100%);
    --tcm-grad-line: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);

    /* estrutura */
    --tcm-radius: 16px;
    --tcm-radius-sm: 10px;
    --tcm-radius-lg: 24px;
    --tcm-shadow-sm: 0 2px 8px rgba(36, 45, 66, .08);
    --tcm-shadow: 0 10px 30px rgba(36, 45, 66, .12);
    --tcm-shadow-lg: 0 24px 60px rgba(36, 45, 66, .20);
    --tcm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. BASE / TIPOGRAFIA
   -------------------------------------------------------------------------- */
body {
    font-family: "Segoe UI", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--tcm-text);
    background-color: var(--tcm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .1px;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -.4px;
}

::selection {
    background: rgba(46, 47, 111, .18);
}

/* rolagem suave para as ancoras #top / #empresas / #noticia */
html {
    scroll-behavior: smooth;
}

/* barra de rolagem discreta na identidade */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--tcm-surface);
}

::-webkit-scrollbar-thumb {
    background: rgba(36, 45, 66, .35);
    border-radius: 20px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(36, 45, 66, .55);
    }

/* CORRECAO: o stylish-portfolio.css tem `body { font-size: 70% }` entre
   600px e 1200px, o que derruba o texto para ~11px em tablets. */
@media (min-width: 600px) and (max-width: 1200px) {
    body {
        font-size: 17px;
    }
}

/* --------------------------------------------------------------------------
   3. DIVISORES EM ONDA  (substitui os cortes retos entre sections)
   Uso:  <div class="tcm-wave tcm-wave--to-navy"> ...svg... </div>
   -------------------------------------------------------------------------- */
.tcm-wave {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    margin: -1px 0 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

    .tcm-wave svg {
        display: block;
        width: calc(100% + 1.3px);
        height: 90px;
    }

@media (max-width: 768px) {
    .tcm-wave svg {
        height: 48px;
    }
}

/* REGRA DAS ONDAS — nao inverter.
   O fundo do divisor e sempre a cor de DESTINO (o bloco de baixo) e o <path>
   desenha a cor de ORIGEM ocupando o TOPO. Assim, se o navegador arredondar
   meio pixel na base do SVG, a sobra tem exatamente a cor do bloco seguinte e
   nao aparece aquela risquinha atravessando a tela. O -1px no topo cobre a
   mesma sobra do lado de cima. */

/* onda que "desce" do bloco claro para o navy */
.tcm-wave--to-navy {
    background: var(--tcm-navy);
}

    .tcm-wave--to-navy svg path {
        fill: var(--tcm-white);
    }

/* onda que "sobe" do navy para o bloco claro */
.tcm-wave--to-light {
    background: var(--tcm-white);
}

    .tcm-wave--to-light svg path {
        fill: var(--tcm-navy);
    }

/* Onda que "desce" do bloco claro para um bloco com --tcm-grad-section.
   PRECISA existir separada da --to-navy: o gradiente das sections escuras COMECA
   em #2E2F6F (indigo) e so termina em #242D42 (navy). Usar a --to-navy antes de um
   desses blocos deixava um degrauzinho reto de cor bem no encontro - exatamente o
   tipo de linha que esta modernizacao veio tirar. */
.tcm-wave--to-indigo {
    background: var(--tcm-indigo);
}

    .tcm-wave--to-indigo svg path {
        fill: var(--tcm-white);
    }

/* Onda do hero: unica que SOBREPOE o bloco de cima, para recortar a base do
   video em curva em vez de deixar aquele corte reto na borda inferior.
   Por isso ela foge da regra acima: fundo transparente e o <path> desenhando
   a cor de destino (indigo) na METADE DE BAIXO. A tirinha do ::after cobre o
   meio pixel que sobraria na base. */
.tcm-wave--hero {
    margin-top: -90px;
    background: transparent;
    z-index: 4;
}

    .tcm-wave--hero svg path {
        fill: var(--tcm-indigo);
    }

    .tcm-wave--hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: var(--tcm-indigo);
    }

@media (max-width: 768px) {
    .tcm-wave--hero {
        margin-top: -48px;
    }
}

/* --------------------------------------------------------------------------
   4. SECTIONS — remove bordas retas e aplica respiro/gradiente
   -------------------------------------------------------------------------- */
section, aside.tcmnews {
    border: 0 !important; /* mata border-bottom:groove da Home */
}

.tcm-section {
    position: relative;
    padding: 70px 0 80px;
}

.tcm-section--navy {
    background: var(--tcm-grad-section) !important;
    color: var(--tcm-white);
}

.tcm-section--light {
    background: linear-gradient(180deg, var(--tcm-white) 0%, var(--tcm-surface) 100%);
}

/* brilho suave no topo das sections escuras — tira o ar "chapado" */
.tcm-section--navy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 50% -10%, rgba(51,122,183,.28), transparent 65%);
    pointer-events: none;
}

.tcm-section > .row,
.tcm-section > .container,
.tcm-section > .tcm-inner {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   4b. HERO — painel de marca a esquerda + video a direita
   O <header class="header"> antigo virava uma caixa 100vh com o video
   esticado de ponta a ponta. Agora e uma grade de duas colunas; o video
   ocupa a direita com recorte curvo e sangra ate a borda da tela.
   -------------------------------------------------------------------------- */
.header,
.tcm-hero {
    position: relative;
    /* z-index:0 cria um contexto de empilhamento PROPRIO. Sem ele, o
       .tcm-hero__brand (z-index:3) escapava para o contexto da pagina e
       ficava POR CIMA do #menu-toggle — o botao aparecia mas nao clicava. */
    z-index: 0;
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 90vh;
    background: var(--tcm-navy-dark);
    overflow: hidden;
}

/* O video e posicionado em absoluto para garantir que preencha a altura
   inteira do hero — com grid ele parava antes e sobrava uma faixa navy. */
.tcm-hero__grid {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

/* --- coluna da marca --- */
.tcm-hero__brand {
    position: relative;
    z-index: 3;
    padding: 104px 40px 168px max(6vw, 28px);
    width: 100%;
    max-width: min(660px, 48%);
    color: var(--tcm-white);
}

.tcm-hero__logo {
    display: block;
    height: 84px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 28px;
}

.tcm-hero__brand h1 {
    font-size: clamp(30px, 3.2vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.022em;
    margin: 0 0 20px;
    color: var(--tcm-white);
    text-wrap: balance;
}

    .tcm-hero__brand h1 em {
        font-style: normal;
        color: var(--tcm-blue-light);
    }

.tcm-hero__lede {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 34px;
    max-width: 52ch;
}

.tcm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* Os valores deixaram de ser numeros curtos ("5", "3") e passaram a ser
   frases ("Agua · Energia · Gas"). Em tela larga os tres cabem numa linha so;
   quando nao cabem, empilham os TRES — 2+1 fica torto. */
.tcm-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.tcm-hero__fact strong {
    display: block;
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    white-space: nowrap;
    color: var(--tcm-white);
}

/* faixa em que os tres nao cabem lado a lado: empilha inteiro */
@media (max-width: 1180px) {
    .tcm-hero__facts {
        flex-direction: column;
        gap: 13px;
    }
}

.tcm-hero__fact span {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .48);
}

/* --- coluna do video --- */
.tcm-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    z-index: 1;
}

.tcm-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    background: var(--tcm-navy-dark);
    border-radius: 260px 0 0 260px;
}

/* veu que funde a borda esquerda do video no painel de marca */
.tcm-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 260px 0 0 260px;
    background: linear-gradient(100deg, #232C3D 0%, rgba(35,44,61,.82) 16%, rgba(35,44,61,.28) 40%, rgba(35,44,61,0) 66%);
}

/* halo discreto atras do painel de marca */
.tcm-hero::before {
    content: "";
    position: absolute;
    top: -18%;
    left: -12%;
    width: 62%;
    height: 90%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(46,47,111,.55), transparent 72%);
}

@media (max-width: 1100px) {
    .tcm-hero__video,
    .tcm-hero__media::after {
        border-radius: 160px 0 0 160px;
    }

    .tcm-hero__brand {
        padding-right: 24px;
    }
}

/* empilha no celular: marca em cima, video embaixo */
@media (max-width: 860px) {
    .header,
    .tcm-hero,
    .tcm-hero__grid {
        min-height: 0;
    }

    .tcm-hero__grid {
        grid-template-columns: 1fr;
    }

    .tcm-hero__brand {
        padding: 92px 24px 40px;
        max-width: none;
        text-align: center;
    }

    .tcm-hero__logo {
        margin-left: auto;
        margin-right: auto;
        height: 66px;
    }

    .tcm-hero__facts {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 13px;
    }

    .tcm-hero__grid {
        flex-direction: column;
    }

    .tcm-hero__lede {
        margin-left: auto;
        margin-right: auto;
    }

    .tcm-hero__actions,
    .tcm-hero__facts {
        justify-content: center;
    }

    /* relative, nao static: o .tcm-hero__video e absoluto e precisa deste
       elemento como referencia — com static ele escapava e cobria o texto. */
    .tcm-hero__media {
        position: relative;
        width: 100%;
        height: 62vw;
        max-height: 380px;
    }

    .tcm-hero__video,
    .tcm-hero__media::after {
        border-radius: 40px 40px 0 0;
    }

    .tcm-hero__media::after {
        background: linear-gradient(180deg, rgba(35,44,61,.85) 0%, rgba(35,44,61,0) 42%);
    }

    .tcm-hero::before {
        display: none;
    }
}

/* container interno padrao das sections novas */
.tcm-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* A section .empresas continua existindo; so recebe o tratamento novo.
   O shorthand `background` abaixo tambem descarta o url(../img/emp.jpg)
   herdado do stylish-portfolio.css — nao trocar por background-image:none,
   isso apagaria o proprio gradiente. */
.empresas.tcm-section--navy {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    background: var(--tcm-grad-section) !important;
}

/* --------------------------------------------------------------------------
   5. TITULOS DE SECTION
   -------------------------------------------------------------------------- */
/* REGRA DE CONTRASTE — o padrao e FUNDO CLARO.
   O tratamento para fundo escuro vem logo depois, limitado aos containers
   escuros do site. AO CRIAR UM BLOCO ESCURO NOVO, acrescente a classe dele
   nas tres listas abaixo (.tcm-eyebrow, .tcm-title, .tcm-subtitle) — senao
   o texto sai branco no branco, ou escuro no escuro. */
.tcm-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(46, 47, 111, .07);
    border: 1px solid rgba(46, 47, 111, .16);
    color: var(--tcm-indigo);
    margin-bottom: 18px;
}

.tcm-hero__brand .tcm-eyebrow,
.tcm-section--navy .tcm-eyebrow,
.tcm-pagehead .tcm-eyebrow,
.tcm-audio .tcm-eyebrow,
.tcm-cta .tcm-eyebrow {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .92);
}

.tcm-title {
    font-size: 40px;
    line-height: 1.18;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--tcm-indigo);
}

.tcm-hero__brand .tcm-title,
.tcm-section--navy .tcm-title,
.tcm-pagehead .tcm-title,
.tcm-audio .tcm-title,
.tcm-cta .tcm-title {
    color: var(--tcm-white);
}

.tcm-subtitle {
    font-size: 19px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
    color: var(--tcm-text-muted);
}

.tcm-hero__brand .tcm-subtitle,
.tcm-section--navy .tcm-subtitle,
.tcm-pagehead .tcm-subtitle,
.tcm-audio .tcm-subtitle,
.tcm-cta .tcm-subtitle {
    color: rgba(255, 255, 255, .78);
}

.tcm-rule {
    width: 72px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    margin: 22px auto 0;
    background: var(--tcm-grad-accent);
}

.tcm-hero__brand .tcm-rule,
.tcm-section--navy .tcm-rule,
.tcm-pagehead .tcm-rule,
.tcm-audio .tcm-rule,
.tcm-cta .tcm-rule {
    background: linear-gradient(90deg, #337AB7, #FFFFFF);
}

@media (max-width: 768px) {
    .tcm-title {
        font-size: 28px;
    }

    .tcm-subtitle {
        font-size: 16px;
    }

    .tcm-section {
        padding: 46px 0 52px;
    }
}

/* --------------------------------------------------------------------------
   6. CARDS DAS EMPRESAS  (moderniza .service-item sem renomear a classe)
   -------------------------------------------------------------------------- */
/* GRADE DAS EMPRESAS — numero de colunas explicito, nao automatico.
   Com wrap automatico sobrava um card sozinho na ultima linha (5+1).
   Aqui a contagem por linha e sempre divisor de 6, entao as fileiras fecham.
   AO ACRESCENTAR EMPRESAS: troque o 6 abaixo pelo novo total (ou por um
   divisor dele) — ex.: 8 empresas -> repeat(4, ...) em tela larga. */
.tcm-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto;
    padding: 0 18px;
    max-width: 1240px;
    list-style: none;
}

.tcm-card {
    min-width: 0;
}

@media (max-width: 1199px) {
    .tcm-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 780px;
        gap: 16px;
    }
}

@media (max-width: 719px) {
    .tcm-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 500px;
    }
}

@media (max-width: 439px) {
    .tcm-card-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 320px;
    }
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 30px 20px 26px;
    border-radius: var(--tcm-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    transition: transform .35s var(--tcm-ease), box-shadow .35s var(--tcm-ease), background .35s var(--tcm-ease), border-color .35s var(--tcm-ease);
    margin-bottom: 0;
    overflow: hidden;
}

    .service-item::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        background: var(--tcm-grad-accent);
        opacity: 0;
        transition: opacity .35s var(--tcm-ease);
    }

    .service-item:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, .13);
        border-color: rgba(255, 255, 255, .30);
        box-shadow: var(--tcm-shadow-lg);
    }

        .service-item:hover::after {
            opacity: 1;
        }

    /* moldura do logo */
    .service-item .fa-stack,
    .service-item .tcm-card__logo {
        width: 96px;
        height: 96px;
        line-height: 96px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--tcm-white);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
        margin-bottom: 18px;
        font-size: inherit;
        transition: transform .35s var(--tcm-ease);
        overflow: hidden;
    }

    .service-item:hover .fa-stack,
    .service-item:hover .tcm-card__logo {
        transform: scale(1.06) rotate(-2deg);
    }

    .service-item .fa-stack img,
    .service-item .tcm-card__logo img {
        max-width: 66px;
        max-height: 66px;
        width: auto;
        height: auto;
    }

    .service-item h4 {
        margin: 0 0 8px;
        font-size: 17px;
        color: var(--tcm-white);
    }

        .service-item h4 strong {
            font-weight: 700;
        }

    .service-item p {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 255, 255, .70);
    }

    .service-item a.Logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

/* --------------------------------------------------------------------------
   7. FAIXA DE SELOS ISO
   -------------------------------------------------------------------------- */
.tcm-certs {
    margin-top: 60px;
    padding: 26px 18px;
    border-radius: var(--tcm-radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tcm-certs__label {
    font-size: 12px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .60);
    margin-bottom: 18px;
}

.tcm-certs__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.tcm-certs img {
    height: 92px;
    width: auto;
    padding: 8px 12px;
    background: var(--tcm-white);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    opacity: .92;
    transition: opacity .35s var(--tcm-ease), transform .35s var(--tcm-ease), box-shadow .35s var(--tcm-ease);
}

    .tcm-certs img:hover {
        opacity: 1;
        transform: scale(1.06) translateY(-3px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, .30);
    }

@media (max-width: 768px) {
    .tcm-certs img {
        height: 62px;
    }

    .tcm-certs__row {
        gap: 18px;
    }
}

/* --------------------------------------------------------------------------
   8. BOTOES
   -------------------------------------------------------------------------- */
.tcm-btn,
.btn.tcm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .28s var(--tcm-ease), box-shadow .28s var(--tcm-ease), background .28s var(--tcm-ease);
}

.tcm-btn--primary {
    background: var(--tcm-grad-accent);
    color: var(--tcm-white) !important;
    box-shadow: 0 10px 24px rgba(46, 47, 111, .32);
}

    .tcm-btn--primary:hover,
    .tcm-btn--primary:focus {
        color: var(--tcm-white) !important;
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(46, 47, 111, .42);
        text-decoration: none;
    }

.tcm-btn--ghost {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--tcm-white) !important;
}

    .tcm-btn--ghost:hover {
        background: rgba(255, 255, 255, .20);
        transform: translateY(-3px);
        text-decoration: none;
        color: var(--tcm-white) !important;
    }

/* botao antigo .btn-dark / .btn-light ganham raio e transicao */
.btn-dark,
.btn-light {
    border-radius: 12px !important;
    transition: all .28s var(--tcm-ease);
}

/* --------------------------------------------------------------------------
   9. MENU LATERAL
   -------------------------------------------------------------------------- */
#menu-toggle {
    /* precisa ficar acima das sections e das ondas (z-index ate 4) e abaixo
       do proprio painel do menu (#sidebar-wrapper, z-index 1000) */
    z-index: 900 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    top: 14px !important;
    left: 16px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: rgba(35, 44, 61, .82) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    opacity: 1 !important;
    transition: transform .3s var(--tcm-ease), background .3s var(--tcm-ease);
}

    #menu-toggle:hover {
        transform: translateY(-2px);
        background: rgba(35, 44, 61, .95) !important;
    }

/* as barrinhas do hamburguer agora se agrupam num bloco */
.tcm-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

    .tcm-burger .barrinha-menu {
        margin: 0 !important;
        width: 24px;
        height: 2px;
        transition: transform .3s var(--tcm-ease), width .3s var(--tcm-ease);
    }

#menu-toggle:hover .tcm-burger .barrinha-menu:nth-child(2) {
    width: 16px;
}

#menu-toggle .barrinha-menu {
    transition: transform .3s var(--tcm-ease);
}

/* O painel agora desliza da ESQUERDA, alinhado ao botao hamburguer.
   O stylish-portfolio.css ancorava em `right: 0` — sobrescrito aqui.
   O scripts.js so alterna a classe .active, entao nao precisou de JS. */
#sidebar-wrapper {
    right: auto !important;
    left: 0 !important;
    width: 320px;
    transform: translateX(-320px);
    background: var(--tcm-grad-brand) !important;
    opacity: 1 !important;
    box-shadow: 18px 0 46px rgba(0, 0, 0, .34);
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-left: 0;
    transition: transform .42s var(--tcm-ease) !important;
    padding-bottom: 30px;
}

    #sidebar-wrapper.active {
        left: 0 !important;
        width: 320px;
        transform: translateX(0);
    }

.sidebar-nav {
    width: 100% !important;
    padding: 0 14px !important;
    font-size: 17px !important;
}

    .sidebar-nav li {
        text-indent: 0 !important;
        line-height: 1.4 !important;
        margin-bottom: 4px;
    }

        .sidebar-nav li a {
            position: relative;
            padding: 13px 18px;
            border-radius: 12px;
            color: rgba(255, 255, 255, .74) !important;
            font-size: 17px;
            font-weight: 500;
            transition: all .26s var(--tcm-ease);
        }

            .sidebar-nav li a:hover {
                background: rgba(255, 255, 255, .10) !important;
                color: var(--tcm-white) !important;
                transform: translateX(4px);
            }

            /* marcador lateral no hover */
            .sidebar-nav li a::before {
                content: "";
                position: absolute;
                left: 4px;
                top: 50%;
                transform: translateY(-50%);
                width: 3px;
                height: 0;
                border-radius: 3px;
                background: var(--tcm-blue-light);
                transition: height .26s var(--tcm-ease);
            }

            .sidebar-nav li a:hover::before {
                height: 22px;
            }

    .sidebar-nav > .sidebar-brand {
        height: auto !important;
        line-height: normal !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
        padding: 22px 18px 20px !important;
        margin-bottom: 12px;
    }

/* submenu Canal Direto */
.sidebar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 4px 0 8px !important;
    padding: 8px !important;
    text-align: left !important;
    background: rgba(0, 0, 0, .22) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 15.5px !important;
}

    .sidebar-nav .dropdown-menu > li > a {
        padding: 10px 14px;
        font-size: 15.5px;
        color: rgba(255, 255, 255, .70) !important;
    }

/* TELA BAIXA: com "Transparencia Empresarial" a lista passou a 12 itens. Fechada
   ela cabe folgada; com o submenu "Canal Direto" aberto num monitor de 900px de
   altura o ultimo item ficava rente ao rodape do painel. O #sidebar-wrapper ja tem
   overflow-y:auto (entao nada fica inalcancavel), mas apertar um pouco o respiro
   evita a rolagem no caso mais comum. Nada muda em telas altas. */
@media (max-height: 900px) {
    .sidebar-nav li a {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }

    .sidebar-nav > .sidebar-brand {
        padding-top: 16px !important;
        padding-bottom: 14px !important;
    }
}

#menu-close {
    /* o .sidebar-nav e position:absolute (heranca do stylish-portfolio) e
       cobria este botao — sem o z-index o "x" aparece mas nao fecha */
    position: relative;
    z-index: 3;
    margin: 14px 14px 0 0 !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    line-height: 42px !important;
    text-align: center;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .20) !important;
    transition: all .26s var(--tcm-ease);
}

    #menu-close:hover {
        background: rgba(255, 255, 255, .24) !important;
        transform: rotate(90deg);
    }

@media (max-width: 480px) {
    #sidebar-wrapper {
        width: 86%;
        transform: translateX(-100%);
    }

        #sidebar-wrapper.active {
            width: 86%;
        }
}

/* --------------------------------------------------------------------------
   10. NOTICIAS
   -------------------------------------------------------------------------- */
.tcmnews {
    display: block !important; /* vinha como display:table do stylish-portfolio */
    background: linear-gradient(180deg, var(--tcm-white) 0%, var(--tcm-surface) 100%) !important;
    color: var(--tcm-text) !important;
    padding: 64px 0 76px;
}

.noticia {
    background: var(--tcm-white);
}

.tcm-news__panel {
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-lg);
    box-shadow: var(--tcm-shadow);
    padding: 16px 16px 8px;
    min-height: 280px;
}

/* linhas de noticia geradas pelo Script/scripts.js (div.row.linha) */
.tcm-news__panel .row.linha {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 8px;
    padding: 14px 12px;
    border-radius: var(--tcm-radius-sm);
    border: 1px solid transparent;
    transition: background .24s var(--tcm-ease), border-color .24s var(--tcm-ease), transform .24s var(--tcm-ease);
}

    .tcm-news__panel .row.linha:hover {
        background: var(--tcm-surface);
        border-color: var(--tcm-border);
        transform: translateX(4px);
    }

    .tcm-news__panel .row.linha a {
        text-decoration: none;
        font-weight: 500;
    }

        .tcm-news__panel .row.linha a:hover {
            text-decoration: none;
            color: var(--tcm-blue) !important;
        }

/* seta que aparece no hover, no lugar de um separador desenhado */
.tcm-news__panel .row.linha::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-right: 2px solid var(--tcm-blue);
    border-top: 2px solid var(--tcm-blue);
    transform: rotate(45deg) translateX(-4px);
    opacity: 0;
    transition: opacity .24s var(--tcm-ease), transform .24s var(--tcm-ease);
}

.tcm-news__panel .row.linha:hover::after {
    opacity: 1;
    transform: rotate(45deg) translateX(0);
}

    /* neutraliza os col-md-1 / col-md-10 gerados pelo scripts.js */
    .tcm-news__panel .row.linha > [class*="col-md-"] {
        float: none !important;
        width: auto !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 16px !important;
    }

    .tcm-news__panel .row.linha > .col-md-1 {
        flex: 0 0 auto;
        white-space: nowrap;
    }

        /* data vira etiqueta */
        .tcm-news__panel .row.linha > .col-md-1 span {
            display: inline-block;
            padding: 5px 11px;
            border-radius: 999px;
            background: var(--tcm-surface-2);
            font-size: 12.5px;
            font-weight: 600;
            letter-spacing: .02em;
            font-variant-numeric: tabular-nums;
            transition: background .24s var(--tcm-ease);
        }

    .tcm-news__panel .row.linha:hover > .col-md-1 span {
        background: rgba(51, 122, 183, .16);
    }

    /* o glyphicon de etiqueta que o scripts.js insere */
    .tcm-news__panel .row.linha .glyphicon {
        margin-right: 12px !important;
        font-size: 13px;
        opacity: .45;
    }

    .tcm-news__panel .row.linha > .col-md-10 {
        flex: 1 1 auto;
    }

    .tcm-news__panel .row.linha a {
        display: flex;
        align-items: baseline;
        width: auto !important;
        padding-left: 4px !important;
    }

        .tcm-news__panel .row.linha a .glyphicon {
            flex: 0 0 auto;
        }

.tcm-news__panel .apaga {
    opacity: .55;
}

.tcm-news__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 42px;
}

@media (max-width: 1199px) {
    .tcm-news__row {
        display: block;
    }
}

.tcm-news__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0;
}

@media (max-width: 1199px) {
    .tcm-news__side {
        margin-top: 22px;
    }
}

/* CARD DE DESTAQUE — substitui o newspaper.gif */
.tcm-highlight {
    position: relative;
    width: 100%;
    padding: 30px 28px 28px;
    border-radius: var(--tcm-radius-lg);
    background: var(--tcm-grad-brand);
    color: var(--tcm-white);
    box-shadow: var(--tcm-shadow-lg);
    overflow: hidden;
}

    .tcm-highlight::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(51,122,183,.55), transparent 70%);
        pointer-events: none;
    }

.tcm-highlight__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
}

    .tcm-highlight__icon svg {
        width: 26px;
        height: 26px;
        display: block;
    }

.tcm-highlight h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tcm-white);
}

.tcm-highlight p {
    position: relative;
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.tcm-highlight .tcm-btn {
    position: relative;
    width: 100%;
    justify-content: center;
}

/* o botao "Transparencia Empresarial" piscava (fa-blink) — agora pulsa suave */
.tcm-cta-pulse {
    animation: tcmPulse 2.6s var(--tcm-ease) infinite !important;
    opacity: 1 !important;
}

@keyframes tcmPulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(46, 47, 111, .30);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 16px 34px rgba(51, 122, 183, .48);
        transform: translateY(-3px);
    }
}

.tcm-news__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
}

    .tcm-news__nav input[type="image"] {
        width: 42px;
        height: 42px;
        padding: 9px;
        border-radius: 50%;
        background: var(--tcm-white);
        border: 1px solid var(--tcm-border);
        box-shadow: var(--tcm-shadow-sm);
        transition: all .26s var(--tcm-ease);
    }

        .tcm-news__nav input[type="image"]:hover {
            transform: translateY(-2px);
            box-shadow: var(--tcm-shadow);
            border-color: rgba(51, 122, 183, .45);
        }

    .tcm-news__nav #pagina {
        min-width: 70px;
        font-weight: 600;
        color: var(--tcm-indigo);
    }

/* --------------------------------------------------------------------------
   11. MODAIS
   -------------------------------------------------------------------------- */
.modal-content {
    border: 0 !important;
    border-radius: var(--tcm-radius) !important;
    box-shadow: var(--tcm-shadow-lg) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--tcm-border) !important;
    padding: 20px 26px !important;
    background: linear-gradient(180deg, var(--tcm-surface) 0%, var(--tcm-white) 100%);
}

    .modal-header .modal-title {
        color: var(--tcm-indigo);
        font-weight: 700;
    }

    .modal-header .close {
        opacity: .5;
        font-size: 26px;
        transition: opacity .2s var(--tcm-ease), transform .2s var(--tcm-ease);
    }

        .modal-header .close:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

.modal-footer {
    border-top: 1px solid var(--tcm-border) !important;
    padding: 14px 26px !important;
}

.modal-backdrop.in {
    opacity: .62;
}

/* --------------------------------------------------------------------------
   12. RODAPE
   -------------------------------------------------------------------------- */
.divFooter,
.footer-container {
    background: var(--tcm-grad-brand) !important;
    position: relative;
}

.footer-container {
    padding: 56px 0 0 !important;
    color: rgba(255, 255, 255, .80);
}

    .footer-container h4 {
        font-size: 13px;
        letter-spacing: 2.2px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .55);
        margin-bottom: 16px;
    }

        .footer-container h4 strong {
            font-weight: 700;
        }

    .footer-container p {
        font-size: 16px !important;
        line-height: 1.75;
        color: rgba(255, 255, 255, .80);
    }

    .footer-container a {
        color: rgba(255, 255, 255, .88) !important;
        transition: color .22s var(--tcm-ease);
    }

        .footer-container a:hover {
            color: var(--tcm-white) !important;
            text-decoration: none;
        }

.tcm-footer__col {
    padding: 0 26px 30px;
}

.tcm-footer__divider {
    height: 1px;
    border: 0;
    margin: 10px 0 0;
    background: var(--tcm-grad-line);
    opacity: .35;
}

.tcm-footer__logo {
    width: auto;
    height: 108px;
    margin-bottom: 16px;
}

.tcm-footer__links {
    font-size: 16px !important;
}

.tcm-footer__sep {
    display: inline-block;
    padding: 0 10px;
    color: rgba(255, 255, 255, .28);
}

.tcm-footer__bottom {
    margin-top: 26px;
    padding: 18px 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    background: rgba(0, 0, 0, .18);
}

.tcm-footer__links a {
    padding: 0 6px;
}

/* icones do footer com respiro */
.footer-container .fa {
    color: var(--tcm-blue-light);
    margin-right: 4px;
}

/* botao voltar ao topo */
#to-top {
    position: fixed;
    right: 20px !important;
    bottom: 20px !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    line-height: 48px !important;
    text-align: center;
    border-radius: 50% !important;
    background: var(--tcm-grad-accent) !important;
    color: var(--tcm-white) !important;
    border: 0 !important;
    box-shadow: 0 10px 26px rgba(46, 47, 111, .40);
    transition: transform .28s var(--tcm-ease), box-shadow .28s var(--tcm-ease);
    z-index: 900;
}

    #to-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(46, 47, 111, .55);
        color: var(--tcm-white) !important;
    }

/* --------------------------------------------------------------------------
   13. ANIMACAO DE ENTRADA (revelar ao rolar)
   Requer o pequeno script tcmReveal() no _Layout.cshtml.
   -------------------------------------------------------------------------- */
.tcm-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--tcm-ease), transform .7s var(--tcm-ease);
    will-change: opacity, transform;
}

    .tcm-reveal.is-visible {
        opacity: 1;
        transform: none;
    }

.tcm-reveal[data-delay="1"] {
    transition-delay: .08s;
}

.tcm-reveal[data-delay="2"] {
    transition-delay: .16s;
}

.tcm-reveal[data-delay="3"] {
    transition-delay: .24s;
}

.tcm-reveal[data-delay="4"] {
    transition-delay: .32s;
}

.tcm-reveal[data-delay="5"] {
    transition-delay: .40s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tcm-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .tcm-cta-pulse {
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   14. AJUSTES GERAIS DE COMPONENTES BOOTSTRAP 3 (usados nas demais paginas)
   Deixa Compliance / Premiacao / Servicos coerentes desde ja, sem editar
   aquelas views nesta rodada.
   -------------------------------------------------------------------------- */
.panel {
    border: 0 !important;
    border-radius: var(--tcm-radius) !important;
    box-shadow: var(--tcm-shadow) !important;
    overflow: hidden;
}

.panel-heading {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 22px 20px !important;
    background: var(--tcm-grad-brand) !important;
    color: var(--tcm-white) !important;
    letter-spacing: -.3px;
}

.list-group {
    border-radius: var(--tcm-radius-sm);
    overflow: hidden;
}

.list-group-item {
    border-color: var(--tcm-border) !important;
    transition: background .24s var(--tcm-ease), transform .24s var(--tcm-ease);
}

    .list-group-item:hover {
        background: var(--tcm-surface) !important;
        transform: translateX(3px);
    }

.thumbnail {
    border: 1px solid var(--tcm-border) !important;
    border-radius: var(--tcm-radius-sm) !important;
    box-shadow: var(--tcm-shadow-sm);
    transition: box-shadow .3s var(--tcm-ease), transform .3s var(--tcm-ease);
}

    .thumbnail:hover {
        box-shadow: var(--tcm-shadow);
        transform: translateY(-3px);
    }

.form-control {
    border-radius: var(--tcm-radius-sm) !important;
    border-color: var(--tcm-border) !important;
    box-shadow: none !important;
    transition: border-color .24s var(--tcm-ease), box-shadow .24s var(--tcm-ease);
}

    .form-control:focus {
        border-color: var(--tcm-blue) !important;
        box-shadow: 0 0 0 4px rgba(51, 122, 183, .14) !important;
    }

.btn-primary {
    background: var(--tcm-grad-accent) !important;
    border: 0 !important;
    border-radius: var(--tcm-radius-sm) !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: linear-gradient(135deg, #2E2F6F 0%, #4A8FD4 100%) !important;
    }

hr.small {
    background: var(--tcm-grad-accent);
    height: 3px;
    border: 0;
    border-radius: 999px;
}

/* ==========================================================================
   15. PAGINA DE SERVICOS  (Views/Servicos/Index.cshtml)
   Tambem serve de base para as demais paginas internas: o .tcm-pagehead e
   generico e pode ser reaproveitado em Compliance, Premiacao etc.
   ========================================================================== */

/* --- cabecalho de pagina interna --- */
.tcm-pagehead {
    position: relative;
    z-index: 0;
    padding: 132px 0 72px;
    background: var(--tcm-grad-section);
    color: var(--tcm-white);
    overflow: hidden;
}

    .tcm-pagehead::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(820px 380px at 22% -20%, rgba(51,122,183,.34), transparent 66%);
    }

    .tcm-pagehead .tcm-inner {
        position: relative;
        z-index: 1;
    }

    .tcm-pagehead h1 {
        font-size: clamp(30px, 3.4vw, 50px);
        line-height: 1.1;
        font-weight: 700;
        letter-spacing: -.022em;
        margin: 0 0 18px;
        color: var(--tcm-white);
        text-wrap: balance;
    }

        .tcm-pagehead h1 em {
            font-style: normal;
            color: var(--tcm-blue-light);
        }

.tcm-pagehead__lede {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .74);
    max-width: 60ch;
    margin: 0;
}

@media (max-width: 768px) {
    .tcm-pagehead {
        padding: 104px 0 72px;
    }
}

/* --- atalhos para as frentes de atuacao --- */
.tcm-fronts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.tcm-front {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-radius: var(--tcm-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--tcm-white) !important;
    text-decoration: none !important;
    transition: transform .3s var(--tcm-ease), background .3s var(--tcm-ease), border-color .3s var(--tcm-ease);
}

    .tcm-front:hover,
    .tcm-front:focus {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, .13);
        border-color: rgba(255, 255, 255, .32);
    }

.tcm-front__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

    .tcm-front__icon svg {
        width: 23px;
        height: 23px;
        display: block;
    }

.tcm-front strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
}

.tcm-front span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
}

/* --- corpo claro --- */
.tcm-servicos {
    background: linear-gradient(180deg, var(--tcm-white) 0%, var(--tcm-surface) 100%);
    padding: 10px 0 90px;
}

/* --- busca --- */
/* sentinela invisivel: quando ela sai da tela, a barra abaixo grudou */
.tcm-search__sentinel {
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.tcm-search {
    /* 78px = altura do #menu-toggle + folga, para a barra grudada nao passar
       por baixo do botao do menu em telas estreitas */
    position: sticky;
    top: 78px;
    z-index: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 40px;
    padding: 14px 16px;
    border-radius: var(--tcm-radius);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    transition: padding .3s var(--tcm-ease), border-radius .3s var(--tcm-ease),
                background .3s var(--tcm-ease), box-shadow .3s var(--tcm-ease),
                border-color .3s var(--tcm-ease);
}

/* GRUDADA: vira uma faixa fina e translucida, para nao ficar sentada em cima
   do conteudo. Sai de ~82px de altura para ~56px. */
.tcm-search.is-stuck {
    padding: 7px 10px 7px 12px;
    border-radius: 999px;
    border-color: rgba(36, 45, 66, .07);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 6px 22px rgba(36, 45, 66, .13);
}

    .tcm-search.is-stuck input[type="text"],
    .tcm-search.is-stuck input[type="search"] {
        height: 40px;
        font-size: 15px;
        background: transparent;
        border-color: transparent;
    }

        .tcm-search.is-stuck input[type="text"]:focus,
        .tcm-search.is-stuck input[type="search"]:focus {
            background: var(--tcm-white);
            border-color: var(--tcm-blue);
        }

    .tcm-search.is-stuck .tcm-search__field .fa {
        left: 14px;
    }

    .tcm-search.is-stuck .tcm-search__count {
        font-size: 13.5px;
    }

@media (max-width: 760px) {
    .tcm-search.is-stuck .tcm-search__count {
        display: none;
    }
}

.tcm-search__field {
    position: relative;
    flex: 1 1 320px;
    min-width: 0;
}

    .tcm-search__field .fa {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--tcm-text-muted);
        pointer-events: none;
    }

.tcm-search input[type="text"],
.tcm-search input[type="search"] {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 44px 0 44px;
    font-size: 16px;
    color: var(--tcm-text);
    background: var(--tcm-surface);
    border: 1px solid var(--tcm-border);
    border-radius: 999px;
    box-shadow: none;
    transition: border-color .24s var(--tcm-ease), box-shadow .24s var(--tcm-ease), background .24s var(--tcm-ease);
}

    .tcm-search input[type="text"]:focus,
    .tcm-search input[type="search"]:focus {
        outline: 0;
        background: var(--tcm-white);
        border-color: var(--tcm-blue);
        box-shadow: 0 0 0 4px rgba(51, 122, 183, .14);
    }

.tcm-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 30px;
    text-align: center;
    border: 0;
    border-radius: 50%;
    background: var(--tcm-surface-2);
    color: var(--tcm-text-muted);
    cursor: pointer;
    transition: background .2s var(--tcm-ease), color .2s var(--tcm-ease);
}

    .tcm-search__clear:hover {
        background: rgba(51, 122, 183, .16);
        color: var(--tcm-indigo);
    }

    .tcm-search__clear.is-on {
        display: block;
    }

.tcm-search__count {
    flex: 0 0 auto;
    font-size: 14.5px;
    color: var(--tcm-text-muted);
    padding-right: 6px;
}

    .tcm-search__count b {
        color: var(--tcm-indigo);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

/* --- grupo --- */
.tcm-group {
    margin-bottom: 56px;
    scroll-margin-top: 96px;
}

    .tcm-group[hidden] {
        display: none;
    }

.tcm-group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tcm-border);
}

.tcm-group__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--tcm-grad-accent);
    box-shadow: 0 8px 18px rgba(46, 47, 111, .26);
}

    .tcm-group__icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

.tcm-group__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--tcm-indigo);
}

.tcm-group__count {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tcm-text-muted);
    background: var(--tcm-surface-2);
    border-radius: 999px;
    padding: 5px 12px;
    font-variant-numeric: tabular-nums;
}

/* --- cards de servico (sem foto) --- */
.tcm-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 14px;
}

.tcm-svc {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 18px 17px 17px;
    border-radius: var(--tcm-radius-sm);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow-sm);
    font-size: 15px;
    line-height: 1.5;
    color: var(--tcm-text);
    overflow: hidden;
    transition: transform .26s var(--tcm-ease), box-shadow .26s var(--tcm-ease), border-color .26s var(--tcm-ease);
}

    .tcm-svc::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--tcm-grad-accent);
        opacity: 0;
        transition: opacity .26s var(--tcm-ease);
    }

    .tcm-svc:hover {
        transform: translateY(-3px);
        box-shadow: var(--tcm-shadow);
        border-color: rgba(51, 122, 183, .30);
    }

        .tcm-svc:hover::before {
            opacity: 1;
        }

    .tcm-svc[hidden] {
        display: none;
    }

.tcm-svc__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--tcm-blue);
    opacity: .55;
}

/* --- galeria (servicos com foto real) --- */
.tcm-gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 18px;
}

.tcm-gal {
    display: block;
    border-radius: var(--tcm-radius);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow-sm);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--tcm-text) !important;
    transition: transform .3s var(--tcm-ease), box-shadow .3s var(--tcm-ease);
}

    .tcm-gal:hover,
    .tcm-gal:focus {
        transform: translateY(-5px);
        box-shadow: var(--tcm-shadow-lg);
    }

    .tcm-gal[hidden] {
        display: none;
    }

/* proporcao 4:3 pelo padding-top — funciona tambem em navegador antigo,
   que ignoraria aspect-ratio e deixaria o card sem altura nenhuma */
.tcm-gal__media {
    position: relative;
    display: block;
    height: 0;
    padding-top: 75%;
    background: var(--tcm-surface-2);
    overflow: hidden;
}

    .tcm-gal__media img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s var(--tcm-ease);
    }

.tcm-gal:hover .tcm-gal__media img {
    transform: scale(1.06);
}

.tcm-gal__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(35, 44, 61, .78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--tcm-white);
    font-size: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s var(--tcm-ease), transform .28s var(--tcm-ease);
}

.tcm-gal:hover .tcm-gal__zoom,
.tcm-gal:focus .tcm-gal__zoom {
    opacity: 1;
    transform: none;
}

.tcm-gal__title {
    display: block;
    padding: 16px 18px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--tcm-text);
}

/* --- estado vazio da busca --- */
.tcm-empty {
    display: none;
    padding: 56px 24px;
    text-align: center;
    border-radius: var(--tcm-radius);
    background: var(--tcm-white);
    border: 1px dashed var(--tcm-border);
    color: var(--tcm-text-muted);
}

    .tcm-empty.is-on {
        display: block;
    }

    .tcm-empty strong {
        display: block;
        margin-bottom: 6px;
        font-size: 18px;
        color: var(--tcm-indigo);
    }

/* --- faixa final de contato --- */
.tcm-cta {
    position: relative;
    z-index: 0;
    padding: 76px 0 84px;
    background: var(--tcm-grad-section);
    color: var(--tcm-white);
    text-align: center;
    overflow: hidden;
}

    .tcm-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(760px 340px at 50% -20%, rgba(51,122,183,.30), transparent 66%);
    }

    .tcm-cta .tcm-inner {
        position: relative;
        z-index: 1;
    }

    .tcm-cta h2 {
        font-size: clamp(26px, 2.6vw, 36px);
        font-weight: 700;
        letter-spacing: -.02em;
        margin: 0 0 14px;
        color: var(--tcm-white);
        text-wrap: balance;
    }

    .tcm-cta p {
        font-size: 17.5px;
        line-height: 1.6;
        color: rgba(255, 255, 255, .74);
        max-width: 58ch;
        margin: 0 auto 30px;
    }

.tcm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ==========================================================================
   16. REDES SOCIAIS  (substituiu a section de Noticias na Home)
   --------------------------------------------------------------------------
   Sobre a cor: o anel do avatar e o icone usam o degrade do Instagram. E a
   unica cor fora da paleta TCM no arquivo inteiro, e e proposital — e a marca
   de terceiro, nao a nossa. Fica confinada ao anel e ao icone; o card, o
   texto e o fundo continuam na paleta do Grupo.
   ========================================================================== */
:root {
    --tcm-ig: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

.tcm-social-sec {
    background: linear-gradient(180deg, var(--tcm-white) 0%, var(--tcm-surface) 100%);
    padding: 64px 0 78px;
}

.tcm-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 44px;
}

@media (max-width: 880px) {
    .tcm-social-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- card de perfil --- */
.tcm-social {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 24px 28px;
    border-radius: var(--tcm-radius-lg);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow-sm);
    text-decoration: none !important;
    color: var(--tcm-text) !important;
    overflow: hidden;
    transition: transform .32s var(--tcm-ease), box-shadow .32s var(--tcm-ease), border-color .32s var(--tcm-ease);
}

    /* fio colorido que aparece no topo ao passar o mouse */
    .tcm-social::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        background: var(--tcm-ig);
        opacity: 0;
        transition: opacity .32s var(--tcm-ease);
    }

    .tcm-social:hover,
    .tcm-social:focus {
        transform: translateY(-6px);
        box-shadow: var(--tcm-shadow-lg);
        border-color: rgba(220, 39, 67, .22);
        text-decoration: none !important;
    }

        .tcm-social:hover::before,
        .tcm-social:focus::before {
            opacity: 1;
        }

/* --- anel + avatar --- */
.tcm-social__ring {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--tcm-ig);
    margin-bottom: 20px;
    transition: transform .32s var(--tcm-ease);
}

.tcm-social:hover .tcm-social__ring {
    transform: scale(1.05);
}

.tcm-social__avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--tcm-white);
    overflow: hidden;
}

    .tcm-social__avatar img {
        max-width: 62px;
        max-height: 62px;
        width: auto;
        height: auto;
        display: block;
    }

/* --- textos --- */
.tcm-social__name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--tcm-indigo);
    margin-bottom: 4px;
}

.tcm-social__handle {
    display: block;
    font-size: 14.5px;
    color: var(--tcm-text-muted);
    margin-bottom: 22px;
    word-break: break-all;
}

/* --- botao --- */
.tcm-social__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tcm-white);
    background: var(--tcm-ig);
    box-shadow: 0 8px 20px rgba(188, 24, 136, .26);
    transition: transform .28s var(--tcm-ease), box-shadow .28s var(--tcm-ease);
}

.tcm-social:hover .tcm-social__cta {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(188, 24, 136, .34);
}

.tcm-social__cta svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* --- variante em faixa horizontal (Transparencia Empresarial) --- */
.tcm-highlight--band {
    display: flex;
    align-items: center;
    gap: 26px;
    text-align: left;
    padding: 26px 30px;
    margin-top: 56px;
}

    .tcm-highlight--band .tcm-highlight__icon {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

.tcm-highlight__txt {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.tcm-highlight--band h3 {
    margin-bottom: 6px;
}

.tcm-highlight--band p {
    margin: 0;
    max-width: 66ch;
}

.tcm-highlight--band .tcm-btn {
    flex: 0 0 auto;
    width: auto;
}

@media (max-width: 780px) {
    .tcm-highlight--band {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 28px 22px;
        margin-top: 40px;
    }

        .tcm-highlight--band .tcm-btn {
            width: 100%;
            justify-content: center;
        }
}

/* --- icones do Instagram no rodape --- */
.tcm-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.tcm-footer__ig {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .82) !important;
    transition: transform .26s var(--tcm-ease), background .26s var(--tcm-ease), border-color .26s var(--tcm-ease);
}

    .tcm-footer__ig svg {
        width: 19px;
        height: 19px;
        display: block;
    }

    .tcm-footer__ig:hover,
    .tcm-footer__ig:focus {
        transform: translateY(-3px);
        background: var(--tcm-ig);
        border-color: transparent;
        color: var(--tcm-white) !important;
    }

@media (prefers-reduced-motion: reduce) {
    .tcm-social,
    .tcm-social__ring,
    .tcm-social__cta,
    .tcm-footer__ig {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   17. VERIFICACAO ANTI-ROBO  (Denuncia e Fale Conosco)
   O campo usa !important em largura/altura de proposito: o _Layout.cshtml tem
   um `input[type="text"] { width:100%; height:34px }` inline no <head>, e
   aquele seletor e mais forte que uma classe.
   ========================================================================== */
.tcm-captcha {
    position: relative;
    margin: 20px 0 8px;
    padding: 18px 20px;
    border-radius: var(--tcm-radius-sm);
    background: var(--tcm-surface);
    border: 1px solid var(--tcm-border);
    text-align: left;
}

.tcm-captcha__erro {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(220, 53, 69, .08);
    border: 1px solid rgba(220, 53, 69, .28);
    color: #A32330;
    font-size: 14.5px;
    font-weight: 600;
}

.tcm-captcha__pergunta {
    display: block;
    margin: 0 0 12px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--tcm-text);
}

    .tcm-captcha__pergunta strong {
        color: var(--tcm-indigo);
        font-size: 17.5px;
        letter-spacing: .01em;
        white-space: nowrap;
    }

.tcm-captcha__linha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tcm-captcha__campo {
    width: 88px !important;
    height: 46px !important;
    padding: 0 10px !important;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--tcm-text);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: border-color .22s var(--tcm-ease), box-shadow .22s var(--tcm-ease);
}

    .tcm-captcha__campo:focus {
        outline: 0;
        border-color: var(--tcm-blue) !important;
        box-shadow: 0 0 0 4px rgba(51, 122, 183, .14) !important;
    }

.tcm-captcha__ajuda {
    font-size: 13px;
    color: var(--tcm-text-muted);
}

/* Indicador da prova de trabalho. Some sozinho quando termina — nao vale
   chamar atencao para uma coisa que a pessoa nao precisa fazer. */
.tcm-captcha__status {
    margin: 0;
    font-size: 14px;
    color: var(--tcm-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .tcm-captcha__status::before {
        content: "";
        flex: 0 0 auto;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        border: 2px solid rgba(51, 122, 183, .25);
        border-top-color: var(--tcm-blue);
        animation: tcmGirando .7s linear infinite;
    }

@keyframes tcmGirando {
    to { transform: rotate(360deg); }
}

/* RESERVA — o JavaScript nao usa mais a classe .is-pronto: no caminho normal a caixa
   inteira fica escondida e nao ha aviso de conclusao (aparecer "verificacao concluida"
   na abertura da pagina confundia). Ficam aqui caso um dia se queira o retorno visual. */
.tcm-captcha.is-pronto {
    border-color: rgba(11, 107, 79, .28);
    background: rgba(11, 107, 79, .05);
}

    .tcm-captcha.is-pronto .tcm-captcha__status {
        color: #0B6B4F;
    }

        .tcm-captcha.is-pronto .tcm-captcha__status::before {
            border: 0;
            animation: none;
            background: #0B6B4F;
            -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
        }

@media (prefers-reduced-motion: reduce) {
    .tcm-captcha__status::before {
        animation: none !important;
    }
}

/* CAMPO-ARMADILHA — sai da tela sem usar display:none nem type=hidden, que os
   robos reconhecem e pulam. Pessoa nunca ve; robo que preenche tudo se entrega. */
.tcm-captcha__isca {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ==========================================================================
   18. COMPLIANCE  (Views/Compliance/Index.cshtml e IndexTIS.cshtml)
   --------------------------------------------------------------------------
   As duas telas eram o mesmo molde: um .panel do Bootstrap 3 com faixa navy no
   topo e uma .list-group de links empilhados, com PNGs de tamanhos diferentes
   como icone. Aqui elas passam a usar o .tcm-pagehead das paginas internas e
   duas grades novas:

     .tcm-doc-grid / .tcm-doc          -> as 13 diretrizes (Compliance/Index)
     .tcm-periodos / .tcm-periodo      -> os relatorios por semestre (IndexTIS)

   ICONES: viraram SVG embutido na propria view. Nao ha PNG novo para publicar,
   nada some se a pasta Style/img/compliance sumir, e o traco acompanha a cor do
   card. Os PNGs antigos continuam no disco - nada foi apagado.

   FUNDO CLARO: estes dois blocos vivem sobre .tcm-compliance (claro). Se um dia
   virarem escuros, lembre da REGRA DE CONTRASTE do bloco 5.
   ========================================================================== */

.tcm-compliance {
    position: relative;
    padding: 62px 0 78px;
    background: var(--tcm-white);
}

.tcm-compliance__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 30px;
}

    .tcm-compliance__head h2 {
        font-size: clamp(23px, 2.3vw, 31px);
        font-weight: 700;
        letter-spacing: -.02em;
        color: var(--tcm-indigo);
        margin: 0;
    }

.tcm-compliance__hint {
    font-size: 14.5px;
    color: var(--tcm-text-muted);
    margin: 0;
}

/* --- grade das diretrizes --------------------------------------------------
   Colunas explicitas (e nao auto-fit) para a ultima linha nunca ficar com um
   card orfao esticado na largura toda - mesmo motivo dos cards da Home. */
.tcm-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 991px) {
    .tcm-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tcm-doc-grid {
        grid-template-columns: 1fr;
    }
}

.tcm-doc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px 46px 19px 19px;
    border-radius: var(--tcm-radius);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow-sm);
    color: var(--tcm-text) !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .3s var(--tcm-ease), box-shadow .3s var(--tcm-ease), border-color .3s var(--tcm-ease);
}

    /* fio de cor que "acende" na borda esquerda ao passar o mouse */
    .tcm-doc::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--tcm-grad-accent);
        transform: scaleY(0);
        transform-origin: 50% 0;
        transition: transform .34s var(--tcm-ease);
    }

    /* setinha de "abre em outra aba" */
    .tcm-doc::after {
        content: "";
        position: absolute;
        right: 18px;
        top: 50%;
        width: 15px;
        height: 15px;
        margin-top: -7px;
        opacity: .30;
        background: var(--tcm-indigo);
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
        transition: opacity .3s var(--tcm-ease), transform .3s var(--tcm-ease);
    }

    .tcm-doc:hover,
    .tcm-doc:focus {
        transform: translateY(-4px);
        border-color: rgba(46, 47, 111, .22);
        box-shadow: var(--tcm-shadow);
        color: var(--tcm-text) !important;
        text-decoration: none !important;
    }

        .tcm-doc:hover::before,
        .tcm-doc:focus::before {
            transform: scaleY(1);
        }

        .tcm-doc:hover::after,
        .tcm-doc:focus::after {
            opacity: .8;
            transform: translate(2px, -2px);
        }

    .tcm-doc:focus-visible {
        outline: 3px solid var(--tcm-blue);
        outline-offset: 3px;
    }

.tcm-doc__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--tcm-grad-accent);
    box-shadow: 0 6px 16px rgba(46, 47, 111, .26);
}

    .tcm-doc__icon svg {
        width: 25px;
        height: 25px;
        display: block;
    }

.tcm-doc__body {
    min-width: 0;
}

.tcm-doc__nome {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--tcm-indigo);
    text-wrap: balance;
}

.tcm-doc__tipo {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--tcm-text-muted);
}

/* --- faixa do audio livro --------------------------------------------------
   O <audio> nativo nao aceita estilo por dentro (cada navegador desenha o seu),
   entao o tratamento vai no envelope: cartao claro sobre o navy, com respiro. */
.tcm-audio {
    position: relative;
    z-index: 0;
    padding: 66px 0 72px;
    background: var(--tcm-grad-section);
    color: var(--tcm-white);
    overflow: hidden;
}

    .tcm-audio::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(700px 320px at 78% -10%, rgba(51,122,183,.30), transparent 66%);
    }

    .tcm-audio .tcm-inner {
        position: relative;
        z-index: 1;
    }

.tcm-audio__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 46px;
}

@media (max-width: 900px) {
    .tcm-audio__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.tcm-audio__texto h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    color: var(--tcm-white);
    text-wrap: balance;
}

.tcm-audio__texto p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .76);
    margin: 0;
    max-width: 52ch;
}

.tcm-audio__card {
    padding: 26px;
    border-radius: var(--tcm-radius-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    text-align: center;
}

.tcm-audio__marca {
    max-width: 190px;
    width: 62%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.tcm-audio__player {
    width: 100%;
    display: block;
    border-radius: 999px;
}

.tcm-audio__nota {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .60);
}

/* --- linha do tempo dos relatorios (IndexTIS) ------------------------------ */
.tcm-periodos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 860px) {
    .tcm-periodos {
        grid-template-columns: 1fr;
    }
}

.tcm-periodo {
    display: flex;
    flex-direction: column;
    border-radius: var(--tcm-radius);
    background: var(--tcm-white);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow-sm);
    overflow: hidden;
}

.tcm-periodo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    background: var(--tcm-grad-section);
    color: var(--tcm-white);
}

    .tcm-periodo__head strong {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: .2px;
    }

.tcm-periodo__cont {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    white-space: nowrap;
}

.tcm-periodo__lista {
    padding: 8px;
}

.tcm-rel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 40px 13px 13px;
    border-radius: var(--tcm-radius-sm);
    color: var(--tcm-text) !important;
    text-decoration: none !important;
    transition: background .26s var(--tcm-ease), transform .26s var(--tcm-ease);
}

    .tcm-rel + .tcm-rel {
        box-shadow: inset 0 1px 0 var(--tcm-border);
    }

    .tcm-rel::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 14px;
        height: 14px;
        margin-top: -7px;
        opacity: .26;
        background: var(--tcm-indigo);
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
        transition: opacity .26s var(--tcm-ease), transform .26s var(--tcm-ease);
    }

    .tcm-rel:hover,
    .tcm-rel:focus {
        background: var(--tcm-surface);
        color: var(--tcm-text) !important;
        text-decoration: none !important;
    }

        .tcm-rel:hover::after,
        .tcm-rel:focus::after {
            opacity: .75;
            transform: translate(2px, -2px);
        }

    .tcm-rel:focus-visible {
        outline: 3px solid var(--tcm-blue);
        outline-offset: 2px;
    }

.tcm-rel__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tcm-surface-2);
    border: 1px solid var(--tcm-border);
}

    .tcm-rel__icon svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.tcm-rel__body {
    min-width: 0;
}

.tcm-rel__empresa {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tcm-indigo);
}

.tcm-rel__doc {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--tcm-text-muted);
}

/* semestre ainda sem relatorio publicado.
   O align-self evita que o cartao vazio estique ate a altura do vizinho cheio e
   fique com um vao de espaco branco por baixo. */
.tcm-periodo--vazio {
    align-self: start;
}

.tcm-periodo--vazio .tcm-periodo__head {
    background: var(--tcm-surface-2);
    color: var(--tcm-indigo);
}

.tcm-periodo--vazio .tcm-periodo__cont {
    background: rgba(46, 47, 111, .08);
    border-color: rgba(46, 47, 111, .16);
    /* indigo, e nao o cinza --tcm-text-muted: em 12px negrito o cinza dava 4.36:1
       sobre o fundo claro do cartao, abaixo dos 4.5:1 de leitura confortavel. */
    color: var(--tcm-indigo);
}

.tcm-periodo__vazio {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 26px 18px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--tcm-text-muted);
}

    .tcm-periodo__vazio svg {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        opacity: .55;
    }


/* variante de duas colunas - usada no fim das paginas de Compliance, para
   apontar o Canal de Denuncia e os Relatorios de Igualdade Salarial. Precisa
   vir DEPOIS das media queries de .tcm-doc-grid: mesma especificidade, quem
   estiver por ultimo no arquivo vence. */
.tcm-doc-grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
    .tcm-doc-grid--duo {
        grid-template-columns: 1fr;
    }
}

.tcm-doc--wide {
    align-items: flex-start;
    padding: 24px 46px 24px 24px;
}

.tcm-doc__desc {
    display: block;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tcm-text-muted);
}
