﻿
/* ==========================================
   CENTRAL DE DOWNLOADS - JOEL VARGAS
   Identidade visual azul e laranja
========================================== */

:root {
    --primary: #004a99;
    --primary-dark: #00366f;
    --primary-light: #e8f1fb;
    --accent: #f39c12;
    --accent-dark: #d6890f;
    --bg: #f4f7f9;
    --text: #333;
    --muted: #6b7280;
    --border: #e2e7ed;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Manrope', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   CABEÇALHO
========================================== */

.download-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 40px 0 55px;
    text-align: center;
}

.nav-simple {
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 9px 16px;
    border-radius: 7px;
    transition: background 0.25s, border-color 0.25s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

.hero-text h1 {
    margin: 25px 0 8px;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 800;
}

.hero-text p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
}

/* ==========================================
   SEÇÕES
========================================== */

.download-section {
    margin: 45px 0;
}

.section-label {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    font-size: 1.35rem;
    font-weight: 800;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 20px;
}

/* ==========================================
   CARDS DE DOCUMENTOS
========================================== */

.dl-card {
    min-width: 0;
    background: var(--white);
    padding: 24px;
    border-radius: 13px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.045);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(0,0,0,0.09);
    border-color: #c5d8ed;
}

.dl-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 1.9rem;
    flex-shrink: 0;
}

.dl-content {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.dl-content h3 {
    margin: 0 0 9px;
    font-size: 1.12rem;
    line-height: 1.4;
    color: var(--primary);
    font-weight: 800;
}

.dl-content p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #626b75;
}

.file-size {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
}

/* ==========================================
   AÇÕES E LINKS
========================================== */

.dl-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.dl-actions a,
.dl-card > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: color 0.2s;
}

.dl-actions a:hover,
.dl-card > a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.dl-unavailable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    background: #f1f3f5;
    color: #777f89;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: not-allowed;
}

/* ==========================================
   AVISO DE TRANSPARÊNCIA
========================================== */

.download-disclaimer {
    margin: 35px 0 50px;
    padding: 20px 22px;
    background: #edf3f9;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: #526171;
    font-size: 0.88rem;
    line-height: 1.7;
}

.download-disclaimer strong {
    color: var(--primary-dark);
}

/* ==========================================
   RODAPÉ
========================================== */

.main-footer {
    margin-top: 50px;
    padding: 35px 20px;
    background: #fff;
    border-top: 1px solid var(--border);
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.main-footer p {
    margin: 0;
}

/* ==========================================
   ANIMAÇÕES
========================================== */

.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.animate-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVIDADE
========================================== */

@media screen and (max-width: 768px) {
    .download-hero {
        padding: 28px 0 40px;
    }

    .hero-text h1 {
        margin-top: 24px;
    }

    .download-section {
        margin: 35px 0;
    }

    .section-label {
        font-size: 1.18rem;
    }

    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dl-card {
        padding: 20px;
    }

    .dl-content h3 {
        font-size: 1.05rem;
    }

    .dl-actions {
        align-items: flex-start;
    }

    .download-disclaimer {
        padding: 16px;
    }
}

@media screen and (max-width: 380px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dl-card {
        padding: 17px;
    }

    .dl-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-actions a {
        justify-content: flex-start;
    }
}

/* Respeita usuários que preferem menos animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
