/*========================================================================
   DpinLab - Estilo Institucional/Acadêmico
   Thème: Grayscale, Sóbrio, Acadêmico, Limpo
  ========================================================================*/

:root {
    /* Paleta Institucional (Escala de cinzas rígida) */
    --bg-main: #ffffff;
    --bg-light: #f7f7f7;
    --bg-dark: #1a1a1a;

    --text-primary: #111111;
    --text-secondary: #4a4a4a;
    --text-muted: #737373;

    --border-color: #e5e5e5;
    --border-darker: #d4d4d4;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --spacing-section: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilitários */
.bg-light {
    background-color: var(--bg-light);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.link-arrow {
    display: inline-block;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.link-arrow:hover {
    opacity: 0.6;
}


/* ====================================
   HEADER
==================================== */
.header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 38px;
    filter: grayscale(100%);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
}


/* ====================================
   FOOTER INSTITUCIONAL
==================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    padding: 5rem 0 2rem;
}

.site-footer a {
    color: #e0e0e0;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;

}

.footer-desc {
    color: #999;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-contact h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-contact p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: #ddd;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #777;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #777;
}

.footer-legal a:hover {
    color: #fff;
}

/* ====================================
   RESPONSIVO
==================================== */
@media (max-width: 900px) {
    .content-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .content-col-stats {
        border-left: none;
        border-top: 1px solid var(--border-darker);
        padding-left: 0;
        padding-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .squads-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .squads-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        -ms-overflow-style: none; /* IE e Edge */
        scrollbar-width: none; /* Firefox */
    }

    .squads-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari e Opera */
    }

    .squad-tab-btn {
        min-width: max-content;
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        padding: 1rem 1.2rem;
    }

    .squad-tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--text-primary);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    .main-nav.active {
        max-height: 400px;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .publication-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
}