/**
 * THAM Informática - Modern Design System Oficial
 * Padrão de Identidade Visual Corporativa THAM (Logo Redonda & Vsinacom):
 * Cores Principais: Vermelho Rubi THAM (#D32F2F / #B71C1C), Azul Tecnológico (#0284C7 / #0088DD), Prata Metálico (#8E8E93) e Dark Slate (#0F172A / #1E293B)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    /* Paleta Brand Oficial THAM (Vermelho Rubi extraído do LogoThamRedonda.ico) */
    --brand-50: #fef2f2;
    --brand-100: #fee2e2;
    --brand-200: #fecaca;
    --brand-300: #fca5a5;
    --brand-400: #f87171;
    --brand-500: #ef4444;
    --brand-600: #d32f2f; /* Cor Primária Oficial */
    --brand-700: #b71c1c;
    --brand-800: #991b1b;
    --brand-900: #7f1d1d;

    --tham-primary: #d32f2f;
    --tham-primary-hover: #b71c1c;
    --tham-primary-dark: #991b1b;
    --tham-primary-light: #ef4444;
    --tham-primary-glow: rgba(211, 47, 47, 0.35);
    --tham-primary-subtle: rgba(211, 47, 47, 0.1);

    /* Acentos Tecnológicos Complementares (Azul do Vsinacom_FundoPreto) */
    --tham-blue: #0284c7;
    --tham-blue-hover: #0369a1;
    --tham-blue-light: #38bdf8;
    --tham-blue-subtle: rgba(2, 132, 199, 0.12);

    /* Acentos Metálicos & Prata (extraídos do Logo) */
    --tham-silver: #8e8e93;
    --tham-silver-light: #cbd5e1;
    --tham-silver-dark: #475569;

    /* Superfícies Slate */
    --slate-950: #020617;
    --slate-900: #0f172a; /* Navbar, Hero Dark & Footer */
    --slate-800: #1e293b; /* Superfícies elevadas e bordas escuras */
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc; /* Fundo geral da página */

    --tham-text-main: #0f172a;
    --tham-text-muted: #64748b;
    --tham-border: #e2e8f0;

    /* Status e Ações */
    --tham-whatsapp: #25D366;
    --tham-whatsapp-dark: #128C7E;
    --tham-gold: #f59e0b;
}

/* ==========================================================================
   Base & Tipografia
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--tham-text-main);
    background-color: var(--slate-50);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-600);
    transition: all 0.25s ease;
}

a:hover, a:focus {
    color: var(--brand-700);
    text-decoration: none;
}

/* ==========================================================================
   Navbar Moderna
   ========================================================================== */
.navbar-modern {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-bottom: 1px solid var(--slate-800);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-modern .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 15px;
    height: auto;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.08);
}

.brand-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--tham-primary-glow);
}

.navbar-modern .nav > li > a {
    color: var(--slate-300) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-modern .nav > li > a:hover,
.navbar-modern .nav > li.active > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Status de Atendimento */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: var(--slate-200);
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Botão Área do Cliente Oficial */
.btn-client-portal {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px var(--tham-primary-glow) !important;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.25s ease !important;
}

.btn-client-portal:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%) !important;
    box-shadow: 0 6px 20px var(--tham-primary-glow) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Hero Section Moderna (Slate 900 + Vermelho Rubi THAM + Tech Blue)
   ========================================================================== */
.hero-modern {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.20) 0%, transparent 40%),
                linear-gradient(180deg, var(--slate-950) 0%, var(--slate-900) 100%);
    color: #ffffff;
    text-align: left;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(211, 47, 47, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.hero-badge i {
    color: var(--brand-400);
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-title span.highlight-red,
.hero-title span.highlight-teal {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.highlight-blue {
    background: linear-gradient(135deg, #38BDF8 0%, var(--tham-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--slate-400);
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 45px;
}

.btn-tham-primary {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    box-shadow: 0 8px 24px var(--tham-primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-tham-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
    box-shadow: 0 12px 30px var(--tham-primary-glow);
    color: #ffffff !important;
}

.btn-tham-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-tham-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-tham-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-tham-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* Card Visual do Hero */
.hero-card-preview {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    position: relative;
}

.hero-card-preview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-400), var(--tham-blue), transparent);
    border-radius: 10px;
}

.stat-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-number.red,
.stat-number.teal { color: #f87171; }
.stat-number.blue { color: #38bdf8; }
.stat-number.green { color: #4ade80; }

.stat-label {
    font-size: 13px;
    color: var(--slate-400);
}

/* ==========================================================================
   Central de Atendimento & Suporte
   ========================================================================== */
.section-modern {
    padding: 90px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--slate-500);
    max-width: 650px;
    margin: 0 auto 50px auto;
}

/* Card do Suporte Geral */
.support-main-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.support-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-600) 0%, var(--tham-blue) 100%);
}

.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    color: var(--slate-900) !important;
    font-weight: 700;
    font-size: 15px;
    margin: 4px;
    transition: all 0.2s ease;
}

.phone-chip:hover {
    background: #ffffff;
    border-color: var(--brand-500);
    color: var(--brand-700) !important;
    box-shadow: 0 4px 12px var(--tham-primary-subtle);
    transform: translateY(-2px);
}

.phone-chip i {
    color: var(--brand-600);
}

/* Cards dos Especialistas */
.specialist-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(13, 148, 136, 0.08);
    border-color: var(--brand-400);
}

.specialist-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.specialist-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--brand-600);
}

.specialist-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.specialist-role {
    font-size: 13px;
    color: var(--slate-500);
    margin: 0;
    font-weight: 500;
}

.specialist-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-call-mini {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--slate-100);
    color: var(--slate-800) !important;
    border: 1px solid var(--slate-200);
    transition: all 0.2s ease;
}

.btn-call-mini:hover {
    background: var(--slate-200);
}

.btn-zap-mini {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(37, 211, 102, 0.12);
    color: #15803D !important;
    border: 1px solid rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.btn-zap-mini:hover {
    background: #25D366;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Módulos de Softwares
   ========================================================================== */
.module-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-400);
}

.module-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.module-icon-teal {
    background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 100%);
    color: var(--brand-600);
    border: 1px solid var(--brand-200);
}

.module-icon-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: var(--tham-blue);
    border: 1px solid #bae6fd;
}

.module-card:hover .module-icon-wrap {
    transform: scale(1.1) rotate(4deg);
}

.module-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.module-desc {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.module-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.module-link:hover {
    color: var(--brand-700);
    gap: 10px;
}

/* ==========================================================================
   Banner Certificado Digital
   ========================================================================== */
.cert-banner {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-950) 100%);
    border: 1px solid var(--slate-800);
    border-radius: 24px;
    padding: 45px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: 40px 0;
}

.cert-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==========================================================================
   Contato & Formulário
   ========================================================================== */
.contact-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--slate-200);
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-group-modern {
    margin-bottom: 22px;
}

.form-group-modern label {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: block;
}

.form-control-modern {
    width: 100%;
    height: 52px;
    padding: 12px 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-size: 15px;
    color: var(--slate-900);
    transition: all 0.2s ease;
}

textarea.form-control-modern {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.form-control-modern:focus {
    background: #ffffff;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--tham-primary-subtle);
    outline: none;
}

/* ==========================================================================
   Rodapé Moderno (Slate 950)
   ========================================================================== */
.footer-modern {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 70px 0 30px 0;
    border-top: 1px solid var(--slate-800);
}

.footer-modern h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-modern a {
    color: var(--slate-300);
}

.footer-modern a:hover {
    color: var(--brand-400);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--slate-800);
    font-size: 13px;
    color: var(--slate-500);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp .zap-tooltip {
    position: absolute;
    right: 72px;
    background: var(--slate-900);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--slate-800);
}

.floating-whatsapp:hover .zap-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-modern {
        padding: 120px 0 60px 0;
    }
    .section-title {
        font-size: 26px;
    }
}
