/* ========================================
    RESET E CONFIGURAÇÕES GLOBAIS
    ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto';
    font-weight: 400;
    color: #6A6A6A;
    background-color: #FFFFFF;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ========================================
    VARIÁVEIS DE COR (CSS Custom Properties)
    ======================================== */
:root {
    --color-blue-primary: #0055C8;
    --color-blue-dark: #003F9E;
    --color-blue-light: #0095FF;
    --color-blue-bright: #00B2FF;
    --color-gray-bg: #F3F6FB;
    --color-gray-text: #6A6A6A;
    --color-gray-dark: #3A3A3A;
    --color-black-soft: #1A1A1A;
    --color-white: #FFFFFF;

    --max-width: 1200px;
    --side-padding: 16px;
    --spacing-desktop: 80px;
    --spacing-tablet: 56px;
    --spacing-mobile: 40px;
}

/* ========================================
    CONTAINER E LAYOUT
    ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

/* ========================================
    HEADER - TOP BAR (AZUL)
    ======================================== */
.top-bar {
    background-color: #0048B6;
    /* Azul mais escuro conforme imagem */
    color: var(--color-white);
    padding: 8px 0;
    font-size: 11px;
    font-weight: 500;
}



.top-bar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gov-logo-img {
    width: 220px;
    height: 58px;
    margin-right: 16px;
}

#gov-logo-img-blue {
    display: block;
}

#gov-logo-img-white {
    display: none;
}

.gov-logo-text {
    font-weight: 700;
    font-size: 16px;
    margin-right: 8px;
    letter-spacing: -0.5px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-links a {
    color: white;
    font-size: 13px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 22px;
    letter-spacing: 0.46px;
    word-wrap: break-word;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.top-links a:hover {
    background-color: #003380;
    /* Azul escuro para efeito hover */
}

.top-links span.divider {
    opacity: 0.5;
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.font-accessibility {
    cursor: pointer;
}

.tooltip-message {
    z-index: 9999;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 0.625rem;
    background: #fff;
    color: #000;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 2.5rem;
    border: 1px solid #ccc;
}

.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}

.accessibility-controls img {
    cursor: pointer;
}

.social-icons-top {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 16px;
}

.social-icons-top a {
    color: var(--color-white);
    font-size: 16px;
    text-decoration: none;
}

/* ========================================
    HEADER - MAIN BAR (BRANCO)
    ======================================== */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;
    height: 120px;
    top: 0;
    display: flex;
    align-items: center;

    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-mt {
    font-size: 36px;
    font-weight: 900;
    color: #204080;
    /* Azul escuro do logo */
    font-style: italic;
    letter-spacing: -1px;
}

.logo-lock-icon {
    color: #0095FF;
    /* Azul claro do cadeado */
    font-size: 24px;
    margin: 0 2px;
}

.logo-login {
    font-size: 36px;
    font-weight: 400;
    color: #204080;
    font-style: italic;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

nav a {
    color: #0048B6;
    /* Azul dos links */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #E6F0FF;
    /* Azul claro */
}

.btn-access {
    background-color: #0048B6;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-access:hover {
    background-color: #003380;
}

.btn-access i {
    font-size: 10px;
}

/* ========================================
    HERO SECTION (Ajustado para novo header)
    ======================================== */
#hero {
    background-color: var(--color-blue-primary);
    background-image: url('../images/section_hero.png');
    background-size: cover;
    color: var(--color-white);
    padding-top: var(--spacing-desktop);
    padding-bottom: var(--spacing-desktop);
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-text h1 {
    color: white;
    font-size: 48px;
    font-family: 'Roboto';
    font-weight: 500;
    line-height: 57.60px;
    word-wrap: break-word;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    padding: 50px 0;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    transform: scale(1.2);
    /* Aumentar imagem para corresponder ao mockup */
    transform-origin: center right;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    width: 100%;
    max-width: 300px;
    height: 42px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
    OUTRAS SEÇÕES (Mantidas do original)
    ======================================== */
section {
    padding: var(--spacing-desktop) var(--side-padding);
}

/* FAIXA DE AJUDA */
#faixa_ajuda {
    background-color: var(--color-white);
    padding: 40px var(--side-padding);
}

.ajuda-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.ajuda-icon img {
    color: #0048B6;
}

.ajuda-text {
    font-size: 48px;
    font-weight: 500;
    color: #0048B6;
    /* Azul escuro */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    background-color: #0048B6;
    color: #FFFFFF;
    text-transform: uppercase;
    height: 42px;
}

.btn-primary:hover {
    background-color: #003380;
    /* Azul mais escuro no hover */
    transform: translateY(-2px);
    /* Leve elevação */
    box-shadow: 0 4px 8px rgba(0, 69, 165, 0.3);
    /* Sombra suave */
}

/* GOVERNO DIGITAL */
#governo_digital {
    background-color: #F2F5FB;
    padding-top: 80px;
    padding-bottom: 80px;
}

.governo-header-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-bottom: 60px;
}

.governo-header-center h2,
.governo-header-center h2>span {
    font-size: 48px;
    font-weight: 500;
    color: #0045A5;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.governo-header-center h2>span {
    color: #595959;
}

.governo-header-center>span {
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0045A5;
    margin: 8px auto 0;
}

.governo-header-center p {
    font-size: 24px;
    color: #595959;
}

.governo-container {
    display: grid;
    grid-template-columns: 40% 60%;
    /* Ajuste de proporção para imagem e texto */
    gap: 60px;
    align-items: flex-start;
    /* Alinhar ao topo */
}

.governo-text h3 {
    font-size: 34px;
    font-weight: 700;
    color: #0048B6;
    margin-bottom: 24px;
}

.governo-text p {
    font-size: 16px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* MT ID */
#mt_id {
    background-color: var(--color-white);
    padding-top: 80px;
    padding-bottom: 80px;
}

.mt-id-header {
    text-align: center;
    margin-bottom: 60px;
}

.mt-id-header h2 {
    font-size: 48px;
    font-weight: 500;
    color: #0048B6;
    margin-bottom: 16px;
}

.mt-id-header p {
    font-size: 24px;
    color: #595959;
    margin: 0 auto;
    line-height: 1.6;
}

.mt-id-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.mt-id-card {
    box-sizing: border-box;
    background-color: #F2F5FB;
    border-radius: 16px;
    padding: 24px;
    /* Aumentado para igualar suporte */
    text-align: center;
    /* Sem sombra inicial conforme referência flat */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Adicionado transição */
    height: 300px;
    /* Garantir altura consistente */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; - Removido pois MT ID tem mais texto */
}

.mt-id-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.mt-id-icon {
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-id-icon img {
    height: 64px;
    width: auto;
}

.agilidade-icon {
    width: 73.333px;
    height: 53.333px;
}

.seguranca-icon {
    width: 53.333px;
    height: 70px;
}

.comodidade-icon {
    width: 60px;
    height: 53.333px;
}

.mt-id-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-id-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

ton-container {
    text-align: center;
}

.btn-primary.dark {
    background-color: var(--color-blue-dark);
}

/* PRODUTOS */
#produtos {
    background-color: #F2F5FB;
    /* Cor exata solicitada */
    padding-top: 80px;
    padding-bottom: 80px;
}

.produtos-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 48px;
    align-items: center;
}

/* Ajuste fino para alinhamento vertical da imagem do celular */
.produtos-image img {
    vertical-align: middle;
    /* Sombra suave conforme referência */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* CANAIS DE SUPORTE */
#canais_suporte {
    background-color: #FFFFFF;
    /* Fundo branco conforme referência */
    padding-top: 80px;
    padding-bottom: 80px;
}

.suporte-header {
    text-align: center;
    margin-bottom: 60px;
}

.suporte-header h2 {
    font-size: 48px;
    font-weight: 500;
    color: #0048B6;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.suporte-header p {
    font-size: 24px;
    color: #595959;
    margin-top: 24px;
}

.suporte-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.suporte-card {
    background-color: #F2F5FB;
    /* Fundo azul claro conforme referência */
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    /* Sem sombra conforme referência flat */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.suporte-card-icon {
    margin-bottom: 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suporte-card-icon img {
    height: 64px;
    width: auto;
}

.suporte-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #000000DE;
    margin: 0;
}

.suporte-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.suporte-card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.suporte-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black-soft);
    word-break: break-word;
}

/* FOOTER */
#footer {
    width: 100%;
}

.footer-main {
    background-color: #F2F5FB;
    /* Fundo cinza claro conforme referência */
    padding: 20px 0;

}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Alinhamento vertical centralizado */
    gap: 40px;
}

/* Coluna Esquerda */
.footer-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.footer-logo-img {
    height: 29px;
    /* Ajuste conforme necessário */
    width: auto;
    margin: 0 auto;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
    margin: 8px 0;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-socials a:hover img {
    opacity: 1;
}

/* Coluna Central */
.footer-col-center {
    text-align: center;
    flex: 1;
    /* Ocupa o espaço disponível */
}

.footer-col-center h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000000DE;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-col-center p {
    font-size: 14px;
    color: #646464;
    line-height: 1.5;
}

/* Coluna Direita */
.footer-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.back-to-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.back-to-top-btn img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    /* Leve arredondamento se necessário */
}

.back-to-top-btn span {
    font-size: 12px;
    color: #0048B6;
    font-weight: 500;
}

/* Barra Inferior */
.footer-bottom-bar {
    background-color: #0048B6;
    /* Azul escuro oficial */
    padding: 10px 0;
    color: white;
}

.footer-dev-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-dev-info span {
    font-size: 12px;
    font-weight: 400;
}

.footer-dev-info img {
    height: 32px;
    /* Aumentado levemente para legibilidade */
    width: auto;
    filter: brightness(0) invert(1);
    /* Torna o logo branco */
    margin-left: 8px;
}

/* ========================================
    MENU HAMBÚRGUER (Mobile)
    ======================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0048B6;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 69, 165, 0.98);
    z-index: 9999;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu nav a {
    color: white;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.mobile-menu nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu .btn-access {
    margin-top: 24px;
    background-color: white;
    color: #0048B6;
    text-align: center;
    justify-content: center;
}

/* ========================================
    MENU MOBILE - ESTILOS (FULLSCREEN)
    ======================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-blue-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--color-blue-dark);
}

/* Menu Mobile - Container Principal */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header do Menu Mobile */
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--color-white);
    border-bottom: none;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
}

.mobile-menu-logo .logo-mt {
    color: var(--color-blue-primary);
    font-size: 28px;
    font-weight: 700;
}

.mobile-menu-logo .logo-lock-icon {
    color: var(--color-blue-primary);
    font-size: 20px;
}

.mobile-menu-logo .logo-login {
    color: #000;
    font-size: 28px;
    font-weight: 300;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #0048B6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.mobile-menu-close:hover {
    color: var(--color-blue-dark);
}

/* Navegação do Menu Mobile */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    overflow-y: auto;
}

.mobile-menu .mobile-menu-nav a {
    color: #0048B6 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 0;
    border-bottom: none;
    transition: color 0.3s ease;
    background-color: transparent;
    text-align: center;
    text-transform: uppercase;
}

.mobile-menu .mobile-menu-nav a:hover {
    color: #003380 !important;
    background-color: transparent;
}

/* Footer do Menu Mobile com Botão */
.mobile-menu-footer {
    padding: 24px;
    background-color: var(--color-white);
    border-top: none;
    display: flex;
    justify-content: center;
}

.btn-mobile-access {
    display: block;
    width: auto;
    min-width: 250px;
    background-color: #0048B6;
    color: var(--color-white);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 69, 165, 0.2);
}

.btn-mobile-access:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 69, 165, 0.3);
}

.btn-mobile-access i {
    margin-left: 8px;
    font-size: 14px;
}


/* ========================================
ESTILOS COMPLETOS SEÇÃO PRODUTOS
======================================== */

/* Header da seção produtos */
.produtos-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.produtos-header-center h2 {
    font-size: 48px;
    font-weight: 500;
    color: #0048B6;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.produtos-header-center h2>span:nth-child(1),
.produtos-header-center h2>span:nth-child(2) {
    margin-left: 10px;
}

.produtos-title-blue {
    color: #0048B6;
}

.produtos-title-gray {
    color: #595959;
}

.produtos-title-underline {
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0048B6;
    margin: 16px auto 0;
}

/* Imagem do celular */
.produtos-image {
    text-align: end;
}

.produtos-phone-img {
    max-width: 280px;
    height: auto;
}

/* Logo MT Cidadão */
.mt-cidadao-logo {
    margin-bottom: 16px;
}

.mt-cidadao-logo-img {
    height: 60px;
    width: auto;
}

/* Subtítulo e descrição */
.produtos-subtitle {
    font-size: 24px;
    color: #646464;
    margin-bottom: 24px;
    font-weight: 400;
}

.produtos-description {
    font-size: 16px;
    color: #646464;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Badges e QR Codes */
.produtos-badges {
    display: flex;
    gap: 24px;
}

.produtos-badge-img {
    height: 100px;
    width: auto;
}


/* ========================================
    RESPONSIVO - TABLET (< 1024px)
    ======================================== */
@media (max-width: 1023px) {
    .top-bar {
        display: none;
    }

    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .btn-access {
        display: none;
    }

    .header-container {
        width: 100%;
        justify-content: space-between;
    }

    /* Hero Section */
    #hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero-image img {
        transform: scale(1);
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }

    /* Governo Digital */
    .governo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .governo-image {
        display: flex;
        justify-content: center;
        order: 2;
    }

    .governo-text {
        order: 1;
    }

    /* MT ID Cards */
    .mt-id-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Produtos */
    .produtos-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .produtos-image {
        order: 2;
    }

    .produtos-text {
        order: 1;
    }

    /* Suporte Cards */
    .suporte-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ========================================
    RESPONSIVO - TABLET (< 1024px)
    ======================================== */
@media (max-width: 1023px) {
    :root {
        --side-padding: 24px;
    }

    /* HEADER - Mostrar botão hambúrguer e ocultar navegação desktop */
    .top-bar {
        display: none;
        /* Ocultar top bar em tablet e mobile */
    }

    header nav {
        display: none;
        /* Ocultar navegação desktop */
    }

    header .btn-primary {
        display: none;
        /* Ocultar botão desktop */
    }

    .mobile-menu-toggle {
        display: block;
        /* Mostrar botão hambúrguer */
    }

    /* HERO SECTION - Layout responsivo */
    #hero {
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-mockup {
        justify-content: center;
    }

    .mockup-phone {
        width: 240px;
        height: 480px;
    }

    /* SEÇÃO DE AJUDA */
    .help-section {
        padding: 32px 0;
    }

    .help-content {
        flex-direction: column;
        gap: 16px;
    }

    /* GOVERNO DIGITAL */
    #governo-digital {
        padding: 56px 0;
    }

    .governo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .governo-mockups {
        order: -1;
        /* Colocar imagens antes do texto */
        justify-content: center;
    }

    /* MT ID - Cards em 2 colunas */
    .mt-id-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* PRODUTOS */
    #produtos {
        padding: 56px 0;
    }

    .produtos-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .produtos-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .produtos-image img {
        max-width: 240px;
    }

    .produtos-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .produtos-text h4 {
        max-width: 100%;
        word-wrap: break-word;
    }

    .produtos-text p {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }


    /* SUPORTE - Cards em 2 colunas */
    .suporte-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FOOTER - Tablet */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-col-left {
        align-items: center;
        width: 100%;
    }

    .footer-divider {
        max-width: 200px;
    }

    .footer-col-center {
        width: 100%;
    }

    .footer-col-right {
        justify-content: center;
        width: 100%;
    }
}

/* ========================================
    RESPONSIVO - MOBILE INTERMEDIÁRIO (< 768px) - ESTILOS ANTIGOS
    ======================================== */
@media (max-width: 767px) {


    /* Header */
    .logo-mt,
    .logo-login {
        font-size: 28px;
    }

    .logo-lock-icon {
        font-size: 20px;
    }

    /* Hero */
    #hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .btn-outline-light {
        max-width: none;
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-image img {
        display: none;
    }


    #canais_suporte {
        padding: 24px 16px;
    }

    /* Ajuda */
    .ajuda-container {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .ajuda-icon img {
        width: 53.33px;
        height: 62.12px;
    }

    .ajuda-text {
        font-size: 16px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Governo Digital */
    #governo_digital {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .governo-header-center h2 {
        font-size: 48px !important;
    }

    .governo-header-center h2>span {
        font-size: 20px !important;
    }

    .governo-header-center p {
        font-size: 16px !important;
    }

    .governo-text h3 {
        font-size: 22px !important;
    }

    .governo-text p {
        font-size: 15px !important;
    }

    /* MT ID */
    #mt_id {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .mt-id-header h2 {
        font-size: 24px !important;
    }

    .mt-id-header p {
        font-size: 15px !important;
    }

    .mt-id-card {
        padding: 32px 24px;
    }

    .mt-id-card h3 {
        font-size: 18px;
    }

    .mt-id-card p {
        font-size: 14px;
    }

    /* Produtos */
    #produtos {
        padding-top: 40px;
        padding-bottom: 40px;
        overflow-x: hidden;
    }

    #produtos .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .produtos-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        overflow-x: hidden;
    }

    .produtos-header-center h2 {
        font-size: 24px !important;
    }

    .produtos-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .produtos-image img {
        max-width: 220px;
    }

    .produtos-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .produtos-text h3 {
        font-size: 22px !important;
    }

    .produtos-text h4 {
        font-size: 18px !important;
        max-width: 100%;
        word-wrap: break-word;
    }

    .produtos-text p {
        font-size: 15px !important;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .produtos-text>div:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
    }

    /* Suporte */
    #suporte {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .suporte-header h2 {
        font-size: 24px !important;
    }

    .suporte-card {
        padding: 32px 24px;
    }

    .suporte-card h3 {
        font-size: 18px;
    }

    .suporte-card p {
        font-size: 14px;
    }

    /* Footer - Mobile */
    .footer-main {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-col-left {
        align-items: center;
        width: 100%;
    }

    .footer-logo-img {
        height: 36px;
    }

    .footer-divider {
        max-width: 180px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col-center {
        width: 100%;
    }

    .footer-col-center h3 {
        font-size: 13px;
    }

    .footer-col-center p {
        font-size: 12px;
    }

    .footer-col-right {
        justify-content: center;
        width: 100%;
    }

    .footer-dev-info {
        flex-direction: column;
        gap: 8px;
    }

    .footer-dev-info span {
        font-size: 11px;
    }

    .footer-dev-info img {
        height: 28px;
        margin-left: 0;
    }

    .container {
        padding: 0;
    }
}

/* ========================================
    RESPONSIVO - MOBILE (< 768px)
    ======================================== */
@media (max-width: 767px) {
    :root {
        --side-padding: 16px;
        --spacing-mobile: 32px;
    }

    /* HEADER */
    .logo-mt,
    .logo-login {
        font-size: 24px;
    }

    .logo-lock-icon {
        font-size: 18px;
    }

    /* HERO SECTION */
    #hero {
        padding: 24px 16px;
        max-height: 361px;
    }

    #hero div.container {
        padding: 0;
    }

    .hero-buttons {
        padding: 0;
    }

    .hero-text h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 15px;
    }

    .mockup-phone {
        width: 200px;
        height: 400px;
    }

    /* SEÇÃO DE AJUDA */
    .help-section {
        padding: 24px 0;
    }

    .help-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .help-text {
        font-size: 16px;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }

    /* GOVERNO DIGITAL */
    #governo-digital {
        padding: 40px 0;
    }

    .governo-header-center h2 {
        font-size: 24px !important;
    }

    .governo-header-center p {
        font-size: 15px !important;
    }

    .governo-text h3 {
        font-size: 20px !important;
    }

    .governo-text p {
        font-size: 14px !important;
    }

    /* MT ID - Cards em coluna única */
    #mt-id {
        padding: 40px 0;
    }

    .mt-id-header h2 {
        font-size: 24px !important;
    }

    .mt-id-header p {
        font-size: 15px !important;
    }

    .mt-id-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mt-id-card {
        padding: 32px 24px;
    }

    .mt-id-card h3 {
        font-size: 18px;
    }

    .mt-id-card p {
        font-size: 14px;
    }

    /* PRODUTOS */
    #produtos {
        padding: 40px 0;
    }

    .produtos-header-center h2 {
        font-size: 24px !important;
        display: flex;

    }

    .produtos-text h3 {
        font-size: 20px !important;
    }

    .produtos-text p {
        font-size: 14px !important;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .qr-item {
        max-width: 200px;
    }

    /* SUPORTE - Cards em coluna única */
    #suporte {
        padding: 40px 0;
    }

    .suporte-header h2 {
        font-size: 24px !important;
    }

    .suporte-header p {
        font-size: 15px !important;
    }

    .suporte-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .suporte-card {
        padding: 16px;
        height: auto;
    }

    .suporte-card h3 {
        font-size: 16px;
        word-break: break-all;
    }

    /* FOOTER - Mobile Completo */
    .footer-main {
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .footer-logo-img {
        height: 32px;
    }

    .footer-divider {
        max-width: 150px;
    }

    .footer-socials {
        justify-content: center;
        gap: 12px;
    }

    .footer-socials a img {
        height: 20px;
    }

    .footer-col-center h3 {
        font-size: 12px;
    }

    .footer-col-center p {
        font-size: 11px;
    }

    .back-to-top-btn img {
        width: 32px;
        height: 32px;
    }

    .back-to-top-btn span {
        font-size: 11px;
    }

    .footer-bottom-bar {
        padding: 12px 0;
    }

    .footer-dev-info {
        flex-direction: column;
        gap: 6px;
    }

    .footer-dev-info span {
        font-size: 10px;
    }

    .footer-dev-info img {
        height: 24px;
        margin-left: 0;
    }

    .container {
        padding: 0 !important;
    }
}

/* ========================================
    RESPONSIVO - MOBILE PEQUENO (< 480px)
    ======================================== */
@media (max-width: 479px) {
    :root {
        --side-padding: 16px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .governo-header-center h2,
    .mt-id-header h2,
    .produtos-header-center h2,
    .suporte-header h2 {
        font-size: 20px !important;
    }



    .produtos-title-underline {
        display: none;
    }

    .btn-primary {
        font-size: 13px;
        padding: 12px 20px;
    }

    /* FOOTER - Mobile Pequeno */
    .footer-logo-img {
        height: 28px;
    }

    .footer-col-center h3 {
        font-size: 11px;
    }

    .footer-col-center p {
        font-size: 10px;
        line-height: 1.6;
    }

    .footer-socials a img {
        height: 18px;
    }

    .back-to-top-btn img {
        width: 28px;
        height: 28px;
    }

    .back-to-top-btn span {
        font-size: 10px;
    }

    .footer-dev-info span {
        font-size: 9px;
    }

    .footer-dev-info img {
        height: 20px;
    }


}

/* RESPONSIVIDADE TABLET */
@media (max-width: 1023px) {
    .produtos-header-center {
        margin-bottom: 48px;
    }

    .produtos-header-center h2 {
        font-size: 28px;
    }

    .produtos-phone-img {
        max-width: 240px;
    }

    .mt-cidadao-logo-img {
        height: 55px;
    }

    .produtos-subtitle {
        font-size: 19px;
    }

    .produtos-description {
        font-size: 15px;
    }

    .produtos-badge-img {
        height: 120px;
    }
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 767px) {
    #produtos {
        padding-left: 20px;
        padding-right: 20px;
    }

    .produtos-header-center {
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .produtos-header-center h2 {
        font-size: 24px !important;
    }

    .produtos-content {
        padding: 0 16px;
    }

    .produtos-image {
        padding: 0;
        margin-bottom: 32px;
    }

    .produtos-phone-img {
        max-width: 220px;
    }

    .produtos-text {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .mt-cidadao-logo {
        text-align: center;
    }

    .mt-cidadao-logo-img {
        height: 50px;
    }

    .produtos-subtitle {
        font-size: 18px !important;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center;
    }

    .produtos-description {
        font-size: 15px !important;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        text-align: center;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .produtos-image {
        display: none;
    }

    .produtos-badges {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
    }


    .produtos-badge-img {
        max-width: 81px;
        height: 100px;
        width: 100%;
        height: auto;
    }
}

/* ========================================
    COOKIE MODAL
   ======================================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cookie-modal-content {
    position: relative;
    background-color: white;
    width: 400px;
    /* Wider to match image */
    max-height: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    /* Image doesn't show clearer border, maybe distinct spacing */
}

.cookie-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #595959;
    /* Grayish from image */
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #0048B6;
    /* Blue close button */
    cursor: pointer;
    line-height: 1;
}

.cookie-modal-body {
    padding: 0 24px;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar styling */
.cookie-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.cookie-item {
    margin-bottom: 24px;
}

.cookie-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-icon-wrapper {
    width: 24px;
    color: #666;
    font-size: 18px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
}

.cookie-item-title {
    flex: 1;
}

.cookie-item-title h4 {
    font-size: 16px;
    font-weight: 600;
    color: #595959;
    margin: 0;
}

.cookie-description {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cookie-show-more {
    font-size: 14px;
    font-weight: 500;
    color: #595959;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cookie-show-more i {
    font-size: 12px;
}

/* Subitem Keycloak */
.cookie-subitem {
    display: none;
    /* Start hidden */
    margin-top: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
}

.cookie-subitem.active {
    display: block;
}

.cookie-subitem-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-subitem-content span {
    font-size: 14px;
    color: #595959;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ccc' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

/* When Checked */
input:checked+.slider {
    background-color: #0048B6;
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230048B6' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
}

/* Round Slider */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Toggle Disabled */
input:disabled+.slider {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Footer */
.cookie-modal-footer {
    padding: 24px 24px 24px;
    background-color: white;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
    /* Ensure it stays on top of scroll content if overlapping */
}

.adopt-branding {
    font-size: 13px;
    color: #555;
    text-align: center;
    /* Center adopt text */
}

.adopt-blue {
    color: #0048B6;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
}

.cookie-buttons button {
    flex: 1;
    padding: 12px;
    border: 1px solid #0048B6;
    background-color: white;
    color: #0048B6;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.cookie-buttons button:hover {
    background-color: #F0F6FF;
}

@media (max-width: 600px) {
    .cookie-buttons {
        flex-direction: column;
    }
}