/* ==========================================================================
   ACADEMIA DO TRÁFEGO PAGO - SISTEMA DE DESIGN & ESTILOS GLOBAIS
   ========================================================================== */

/* Importação de Fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Cores do Sistema */
    --bg-main: #060913;
    --bg-darker: #04060d;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-card-hover: rgba(23, 33, 58, 0.85);
    
    --primary: #FF5A1F;
    --primary-hover: #E04812;
    --primary-glow: rgba(255, 90, 31, 0.15);
    
    --secondary: #1E293B;
    --secondary-hover: #334155;
    
    --accent: #38BDF8; /* Ciano/Azul claro para tráfego positivo */
    --accent-glow: rgba(56, 189, 248, 0.15);
    
    --success: #10B981;
    --danger: #EF4444;
    
    /* Cores de Texto */
    --text-white: #FFFFFF;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dark: #0F172A;
    
    /* Bordas e Sombras */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    --border-orange: rgba(255, 90, 31, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-orange: 0 8px 25px rgba(255, 90, 31, 0.25);
    
    /* Fontes e Tamanhos */
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
    
    /* Transições e Bordas Radiais */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & SETUP
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   ESTILOS DE TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

p {
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orange-text {
    color: var(--primary);
}

/* ==========================================================================
   COMPONENTES DE LAYOUT E UTILITÁRIOS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 90, 31, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 90, 31, 0.05);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(255, 90, 31, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 90, 31, 0.3);
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.header.scrolled {
    background: var(--bg-darker);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-white);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-normal);
        z-index: 999;
        padding: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-actions {
        display: none; /* Em telas menores o login fica no menu principal ou simplificado */
    }
    
    .nav-menu .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 993px) {
    .nav-menu .nav-actions-mobile {
        display: none;
    }
}

/* ==========================================================================
   PÁGINA INICIAL - INDEX.HTML
   ========================================================================== */

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: radial-gradient(circle at 10% 20%, rgba(255, 90, 31, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-container {
        margin-top: 2rem;
    }
}

/* Vetor animado na hero */
.floating-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Estatísticas Animadas */
.stats {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Depoimentos / Testimonials */
.testimonial-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem 0;
    scrollbar-width: thin;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    min-width: 300px;
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

.testimonial-rating {
    color: #FFC01F;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--text-white);
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--border-orange);
    background: var(--bg-card-hover);
}

.faq-summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1rem;
}

/* Call to Action Final */
.cta-banner {
    background: linear-gradient(135deg, rgba(255, 90, 31, 0.15) 0%, rgba(6, 9, 19, 0) 80%),
                var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ==========================================================================
   PÁGINA DE CURSOS - CURSOS.HTML
   ========================================================================== */
.courses-header {
    padding-top: 9rem;
    padding-bottom: 3rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 90, 31, 0.1) 0%, transparent 60%);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

.module-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.module-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Aula Lista */
.lessons-list {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.lesson-item:hover {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.05);
}

.lesson-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lesson-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.lesson-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-container {
    margin-top: 1.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
    display: block;
}

/* ==========================================================================
   ÁREA DO ALUNO - ALUNO.HTML
   ========================================================================== */
.auth-container {
    max-width: 450px;
    margin: 10rem auto 6rem auto;
    padding: 0 1.5rem;
}

.auth-card {
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.form-footer-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer-text a {
    color: var(--primary);
    font-weight: 600;
}

.form-footer-text a:hover {
    text-decoration: underline;
}

/* Dashboard Aluno */
.dashboard-layout {
    padding-top: 9rem;
    padding-bottom: 6rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Widget de Progresso Circular */
.progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, var(--secondary) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #0b1122;
}

.progress-value {
    position: relative;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    z-index: 10;
}

/* Certificado Section */
.certificate-section {
    margin-top: 2rem;
}

.certificate-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(255, 90, 31, 0.08) 100%), var(--bg-card);
    text-align: center;
}

.certificate-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}

/* ==========================================================================
   PÁGINA DO BLOG - BLOG.HTML
   ========================================================================== */
.blog-header {
    padding-top: 9rem;
    padding-bottom: 3rem;
    text-align: center;
}

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-box {
    max-width: 400px;
    width: 100%;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-main) 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.15;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* ==========================================================================
   PÁGINA DE FERRAMENTAS - FERRAMENTAS.HTML
   ========================================================================== */
.tools-layout {
    padding-top: 9rem;
    padding-bottom: 6rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    padding: 2.5rem;
}

.tool-header-info {
    margin-bottom: 2rem;
}

.tool-name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.tool-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.result-panel {
    background: rgba(6, 9, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.result-panel.active {
    border-left-color: var(--success);
}

.result-panel.danger {
    border-left-color: var(--danger);
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.result-value {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.result-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   PÁGINA DE CONTATO - CONTATO.HTML
   ========================================================================== */
.contact-layout {
    padding-top: 9rem;
    padding-bottom: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(255, 90, 31, 0.1);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   TOAST NOTIFICATION (ALERTAS)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   ANIMAÇÕES DE SCROLL (OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CERTIFICATE DOWNLOAD MODAL & PREVIEW
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0b1122;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.certificate-preview-container {
    width: 100%;
    aspect-ratio: 1.414; /* Proporção A4 deitada */
    margin: 1.5rem 0;
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Print utility styles */
@media print {
    body * {
        visibility: hidden;
    }
    #certificateCanvas, #certificateCanvas * {
        visibility: visible;
    }
    #certificateCanvas {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
    }
}
