/* ==========================================================================
   AUDITORIART - PREMIUM MINIMALIST CSS (Vanilla)
   ========================================================================== */

:root {
    --primary-color: #0B132B;    /* Deep Navy */
    --primary-light: #1C2541;
    --accent-color: #3A7CA5;     /* Professional Blue/Cyan Accent */
    --accent-glow: rgba(58, 124, 165, 0.4);
    --bg-color: #0B132B;         /* Dark mode base */
    --surface-color: #111A30;    /* Slightly lighter than base for cards */
    --text-primary: #FFFFFF;
    --text-muted: #8D99AE;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Sticky fixed for premium feel */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: #FFF;
}
.logo h1 span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-items {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu-items li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-items li a:hover {
    color: var(--text-primary);
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-color), #2F6690);
    color: #FFF !important;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL ANIMATION HERO (Apple Style)
   ========================================================================== */
.hero-container {
    height: 100vh; /* Normal hero height */
    position: relative;
    background: var(--bg-color);
}

.canvas-wrapper {
    position: fixed; /* Fixa no background da viewport oitentista */
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* Não bloqueia clicks na página */
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Escurece um pouco a imagem para focar no texto */
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FFF, #A0ABC0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ==========================================================================
   GLASSMORPHISM PANELS & GRIDS
   ========================================================================== */
.features-section, .process-section, .recursos-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: rgba(28, 37, 65, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    background: rgba(28, 37, 65, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.glass-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   PROCESS STEPS (Minimalist)
   ========================================================================== */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    position: relative;
    overflow: hidden; /* Contains the watermark */
}

.step-num {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FFF;
    position: relative;
    z-index: 1;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ==========================================================================
   RESOURCES GRID (Substituindo o Acordeão)
   ========================================================================== */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    grid-gap: 2rem;
    margin-top: 3rem;
    align-items: start; /* CRITICAL: prevents height from stretching and causing overlaps */
}

.recurso-card {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: auto; /* Remove height constraints */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden; /* clear internal floats/margins */
}

.recurso-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

.recurso-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.recurso-icon {
    width: 48px;
    height: 48px;
    background: rgba(58, 124, 165, 0.1);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.recurso-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.recurso-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.recurso-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.r-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(19, 138, 68, 0.4); /* Borda verde sutil para combinar com gov.br no dark mode */
    border-radius: 20px; /* Formato de pílula gov.br */
    color: #FFF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.r-link:hover {
    background: rgba(19, 138, 68, 0.1);
    border-color: #138A44;
}

.r-link i {
    color: var(--text-muted);
}

.r-link-primary {
    background: #138A44; /* Verde Gov.br */
    color: #FFF !important;
    border: 1px solid #138A44; /* Mantém a borda na mesma cor */
    justify-content: center;
    font-weight: 600;
}
.r-link-primary:hover {
    background: #0e6b35; /* Fundo hover gov.br */
    border-color: #0e6b35;
}

/* ==========================================================================
   TLC SELECTABLE CARDS (NEW)
   ========================================================================== */
.tlc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: start;
}

.tlc-card {
    background: var(--surface-color);
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.tlc-card:hover {
    background: rgba(28, 37, 65, 0.8);
    border-color: rgba(255,255,255,0.15);
}

.tlc-card.active {
    border-color: #FDE047; /* Yellow border for emphasis */
    background: rgba(58, 124, 165, 0.15); /* Accent tint */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

.tlc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.tlc-card .icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 8px;
}

.tlc-card .title {
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.tlc-card.active .title {
    font-size: 1.15rem;
    color: #FFF;
    font-weight: 600;
}

.tlc-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.5rem;
}

.tlc-card .tlc-code {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.tlc-card .tlc-price {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 700;
    transition: all 0.3s ease;
}

.tlc-card.active .tlc-price {
    font-size: 1.6rem;
    color: #FFF;
}

.tlc-card-actions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    gap: 0.5rem;
    margin-top: 0;
}

.tlc-card.active .tlc-card-actions {
    max-height: 100px;
    opacity: 1;
    margin-top: 1.5rem;
}

.tlc-btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.tlc-btn-action.primary {
    background: #138A44;
    color: #FFF;
}
.tlc-btn-action.primary:hover {
    background: #0e6b35;
}

.tlc-btn-action.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFF;
}
.tlc-btn-action.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #FFF;
}

/* ==========================================================================
   FOOTER & WHATSAPP
   ========================================================================== */
.footer {
    background-color: #020C1B;
    color: #8D99AE;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.dislogico-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: 500;
}

.dislogico-link:hover {
    color: #FFF;
}

.whatsapp-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1001; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   MENU HAMBURGUER & MOBILE STATE
   ========================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }

    .menu-container {
        display: flex;
        align-items: center;
    }

    .navigation {
        width: 100%;
        justify-content: flex-end;
        gap: 1rem;
    }

    /* Oculta o menu inicialmente no mobile */
    .menu-items {
        display: none; 
        width: 100%;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* Classe ativada via JS para mostrar o menu */
    .menu-items.show {
        display: flex;
        gap: 0;
    }

    .menu-items li a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hero-title {
        font-size: 2.8rem;
    }
    .features-section, .process-section, .recursos-section {
        padding: 4rem 1.5rem;
    }
}
