/* ===============================
   RESET E ESTILOS GLOBAIS
================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===============================
   LAYOUT PRINCIPAL
================================ */

.container {
    display: flex;
    min-height: 100vh;
}

/* ===============================
   SIDEBAR
================================ */

.sidebar {
    width: 25%;
    min-width: 280px;
    background-color: #213546ff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    color: white;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header img {
    width: 80%;
    max-width: 180px;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #4e4e9a;
    margin-bottom: 10px;
}

.accordion-item summary {
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 10px;
    cursor: pointer;
    list-style: none;
}

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

.accordion-item summary::before {
    content: '➔ ';
}

.accordion-item[open] summary {
    background-color: #4e4e9a;
    border-radius: 4px;
}

.accordion-content {
    padding: 10px 15px 15px 30px;
}

.accordion-content a {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95em;
}

/* ===============================
   CONTEÚDO PRINCIPAL
================================ */

.main-content {
    width: 75%;
    padding: 25px;
    overflow-y: auto;
}

/* ===============================
   HERO ENTERPRISE DEFINITIVO
================================ */

.main-banner {
    width: 100%;
    margin-bottom: 48px;
}

.banner-link {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

/* Imagem */
.banner-link img {
    width: 100%;
    display: block;
}

/* Overlay desktop */
.banner-overlay {
    position: absolute;
    inset: 0;
    max-width: 58%;

    padding: 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.25) 70%,
        rgba(0, 0, 0, 0) 100%
    );

    color: #e9f7f2;
}

/* Headline */
.banner-overlay h1 {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 22px;

    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.15s forwards;
}

/* Texto */
.banner-overlay p {
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 34px;
    opacity: 0;

    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

/* CTA */
.banner-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, #1fcf8b, #14b87a);
    color: #003b2f;
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.45s forwards;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(31, 207, 139, 0.35);
}

.banner-link:hover .banner-cta {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(31, 207, 139, 0.45);
}

/* Keyframes */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .banner-overlay h1,
    .banner-overlay p,
    .banner-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===============================
   QUICK LINKS
================================ */

.quick-links-bar {
    background-color: #213546ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.quick-links-bar a {
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

/* ===============================
   GRID E CARDS
================================ */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    color: #213546ff;
    margin-bottom: 20px;
    border-bottom: 3px solid #FC4C02;
    padding-bottom: 10px;
}

.card-links a {
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.card-links a:hover {
    color: #213546ff;
}

/* ===============================
   DOWNLOADS
================================ */

.downloads-section .btn {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: #005151;
}

.downloads-section .btn:hover {
    background-color: #003838;
}

/* ===============================
   FOOTER
================================ */

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

footer img {
    width: 20%;
    max-width: 150px;
}

footer p {
    color: #777;
}

/* ===============================
   RESPONSIVO – MOBILE ENTERPRISE
================================ */

@media (max-width: 900px) {

    .container {
        flex-direction: column;
    }

    .sidebar,
    .main-content {
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    /* HERO mobile */
    .banner-overlay {
        position: relative;
        max-width: 100%;
        padding: 32px 28px;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.55)
        );
    }

    .banner-overlay h1 {
        font-size: 1.9rem;
    }

    .banner-overlay p {
        font-size: 1rem;
        margin-bottom: 26px;
    }

    .banner-cta {
        width: 100%;
        text-align: center;
    }
}
