/* --- Variáveis de Cores (Rebranding: Branco e Azul) --- */
@font-face {
    font-family: 'Andis';
    src: url('../fonts/Andis Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Andis';
    src: url('../fonts/Andis Regular.otf') format('opentype');
    font-weight: bold;
    /* Simulating bold since explicit bold font wasn't found */
    font-style: normal;
}

:root {
    --deep-blue: #041c4b;
    --highlight-blue: #0044cc;
    /* New highlight color replacing gold */
    --light-blue: #e6f0ff;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-text: #333333;

    --font-primary: 'Andis', sans-serif;
    --font-serif: 'Andis', sans-serif;
    /* Unifying fonts as requested */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--deep-blue);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-padding-top: 100px;
    /* Adjust based on your header height */
}

/* --- Simulação de Bold (Andis) --- */
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
.active,
.btn-cta,
.header-contact-btn,
.footer-logo-text {
    font-weight: normal !important;
    /* Desativa o bold padrão do navegador */
    text-shadow: 0 0 1px currentColor;
    /* Engrossa a fonte suavemente */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.preloader-logo {
    width: 100px;
    /* Adjust size as needed */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Header Reto --- */
header {
    background-color: var(--deep-blue);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Logo Wrapper */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo-wrapper:hover {
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-img {
    height: 50px;
    width: auto;
    /* filter: brightness(0) invert(1); */
    margin-top: 8px;
}

/* Menu de Navegação */
#nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Header Actions - sempre visíveis */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a,
nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: normal;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after,
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--light-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active,
nav a:hover,
nav a.active {
    color: var(--light-blue);
}

/* Contact Button in Header */
.header-contact-btn {
    background-color: var(--white);
    color: var(--deep-blue);
    padding: 8px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--white);
    margin-left: 20px;
}

.header-contact-btn:hover {
    background-color: transparent;
    color: var(--white);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--white);
    border-color: var(--white);
    font-weight: bold;
}

/* --- Hero Text Styling --- */
.hero-text {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 0 0 1px currentColor, 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Layout Geral das Seções --- */
section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

.title-large {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: bold;
    color: var(--deep-blue);
    line-height: 1.3;
    position: relative;
    padding-bottom: 1.2rem;
}

.title-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight-blue), transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active section indicator - barra especial para seção ativa */
section.active-section .title-large::after {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-blue), var(--deep-blue), var(--highlight-blue));
    box-shadow: 0 2px 8px rgba(0, 68, 204, 0.3);
}

.title-medium {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
    font-weight: bold;
}

.text-highlight {
    color: var(--highlight-blue);
}

/* --- Hero Section --- */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 28, 75, 0.7);
    /* Deep blue overlay */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    color: var(--white);
    padding: 60px 20px 0;
}

/* --- Filosofia Section --- */
#filosofia {
    background-color: var(--off-white);
    position: relative;
}

.philosophy-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--deep-blue);
    font-weight: normal;
    letter-spacing: 0.3px;
}

.philosophy-principles {
    max-width: 1050px;
    margin: 0 auto 3rem;
    text-align: left;
    padding: 0 20px;
}

.philosophy-principles p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-text);
    margin-bottom: 2rem;
    padding-left: 50px;
    border-left: 4px solid var(--highlight-blue);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, rgba(0, 68, 204, 0.02) 0%, transparent 100%);
}

.philosophy-principles p::before {
    content: '◆';
    position: absolute;
    left: 15px;
    top: 0;
    color: var(--highlight-blue);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-principles p:hover {
    border-left-color: var(--deep-blue);
    border-left-width: 5px;
    background: linear-gradient(90deg, rgba(0, 68, 204, 0.05) 0%, transparent 100%);
    transform: translateX(5px);
    box-shadow: -3px 0 12px rgba(0, 68, 204, 0.15);
}

.philosophy-principles p:hover::before {
    color: var(--deep-blue);
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
}

.philosophy-principles p strong {
    color: var(--deep-blue);
    font-size: 1.15rem;
}

.philosophy-statement {
    background: var(--deep-blue);
    color: var(--white);
    padding: 3rem 3rem;
    text-align: center;
    margin: 5rem 0;
    border-radius: 0;
}

.philosophy-statement p {
    font-size: 1.8rem;
    line-height: 1.9;
    margin: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-closing {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 20px;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 68, 204, 0.03) 50%, transparent 100%);
}

.closing-text {
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--deep-blue);
    letter-spacing: 0.5px;
}

/* --- Fundo Section --- */
#fundo {
    background-color: var(--white);
}

.strategy-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.9;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pillar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--deep-blue);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pillar-card h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pillar-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.tech-block {
    background: var(--deep-blue);
    color: var(--white);
    padding: 4rem 3rem;
    border-radius: 0;
    text-align: center;
    margin: 2rem 0;
}

.tech-block h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tech-block p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.fund-table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
}

.fund-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fund-table th {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 18px;
    text-align: left;
    font-size: 1.2rem;
}

.fund-table td {
    padding: 18px;
    border-bottom: 1px solid #eee;
    color: var(--deep-blue);
    font-size: 1.1rem;
}

/* Mobile Fund Card - Hidden on Desktop */
.mobile-only {
    display: none;
}

.desktop-only {
    display: table;
}

.fund-card {
    background: var(--white);
    border-left: 4px solid var(--deep-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.fund-card-title {
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

.fund-card-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.fund-card-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fund-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.fund-card-icon svg {
    width: 28px;
    height: 28px;
}

.fund-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.fund-card-label {
    font-size: 0.9rem;
    color: var(--highlight-blue);
    text-transform: uppercase;
    font-weight: bold;
}

.fund-card-value {
    font-size: 1.2rem;
    color: var(--deep-blue);
    font-weight: bold;
}

/* --- Quem Somos Section --- */
#quem-somos {
    background-color: var(--off-white);
}

.team-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.team-intro .intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--deep-blue);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border: none;
    border-left: 4px solid var(--deep-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-img-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--deep-blue);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15);
    /* Removido backface-visibility que pode causar serrilhado em bordas curvas */
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;

    /* Força antialiasing na imagem */
    transform: translateZ(0);
}

.profile-info {
    text-align: left;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 1rem;
    color: var(--highlight-blue);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
    font-weight: bold;
}

.profile-bio p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.linkedin-icon-card img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(35%) saturate(7048%) hue-rotate(204deg) brightness(88%) contrast(101%);
    /* Blue filter */
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.linkedin-icon-card:hover img {
    transform: scale(1.15);
}

/* --- Regulatório Section --- */
#regulatorio {
    background-color: var(--white);
}

/* --- Documentação Oficial Section --- */
#documentacao {
    background-color: var(--off-white);
    padding: 3rem 0;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.gov-card {
    background: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-left: 4px solid var(--deep-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gov-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gov-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.gov-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Tablet (≤ 1024px) - 2 colunas */
@media (max-width: 1024px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doc-item {
    background: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-left: 4px solid var(--deep-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.doc-item h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.botao-pdf {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 10px 30px;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
}

.botao-pdf:hover {
    background-color: var(--highlight-blue);
}

.botao-pdf.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Footer --- */
footer {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 4rem 5% 2rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.footer-background-image {
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 843px;
    background-image: url('../imgs/footer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-icon {
    height: 80px;
    width: auto;
}

.footer-logo-text {
    height: 70px;
    width: auto;
    /* filter: brightness(0) invert(1); */
}

.footer-cta-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn-footer {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 2px solid var(--highlight-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
    transition: transform 0.3s;
}

.anbima-icon {
    transition: transform 0.3s;
    /* Dimensions handled by HTML style or intrinsic size */
}



.social-icon:hover,
.anbima-icon:hover {
    transform: scale(1.2);
}

/* --- Responsive (Laptops / Small Desktops) --- */
@media (max-width: 1440px) {
    .container {
        padding: 0 30px;
    }

    /* Typography Scaling (~75%) */
    .hero-text {
        font-size: 2.25rem;
    }

    .title-large {
        font-size: 2.6rem;
        margin-bottom: 3rem;
    }

    .title-medium {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1.25rem;
    }

    .philosophy-principles p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .philosophy-statement p {
        font-size: 1.4rem;
    }

    .closing-text {
        font-size: 1.8rem;
    }

    .strategy-intro {
        font-size: 1.15rem;
    }

    .pillar-card h3 {
        font-size: 1.4rem;
    }

    .pillar-card p {
        font-size: 1rem;
    }

    .tech-block h3 {
        font-size: 1.5rem;
    }

    .tech-block p {
        font-size: 1.15rem;
    }

    .fund-table th,
    .fund-table td {
        font-size: 1rem;
        padding: 12px;
    }

    .team-intro .intro-text {
        font-size: 1.25rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-bio p {
        font-size: 1rem;
    }

    .gov-card h3 {
        font-size: 1.3rem;
    }

    .gov-card p {
        font-size: 1rem;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {

    /* ===== HEADER & NAVIGATION ===== */
    header {
        padding: 0.8rem 4%;
        flex-wrap: wrap;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
        order: 1;
        /* Garante que fique sobre o menu overlay */
        position: relative;
        z-index: 1200;
    }

    .logo-wrapper {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .header-actions {
        order: 3;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        padding-bottom: 0.4rem;
        padding-top: 0.7rem;
    }

    /* Hide desktop navigation, show on hamburger click */
    #nav-menu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
        position: fixed;
        /* Ocupa a tela toda */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        background-color: var(--deep-blue);
        /* Espaço para não cobrir o X */
        padding-top: 120px;
        box-shadow: none;
        z-index: 1100;
        /* Alinhamento flex */
        flex-direction: column;
        justify-content: flex-start;
    }

    #nav-menu.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Backdrop escuro quando menu está aberto */
    /* Backdrop removido para evitar bloqueio de cliques
    #nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: -1;
    } */

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .logo-img,
    .logo-text-img {
        height: 45px;
    }

    .lang-toggle {
        margin-left: 0;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .header-contact-btn {
        margin-left: 0;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* ===== HERO SECTION ===== */
    .hero-container {
        height: 80vh;
    }

    .container.hero-content {
        padding: 40px 10px 0;
        max-width: 95%;
    }

    #bg-video {
        object-position: 35% center;
        transform: scale(1.2);
    }

    .hero-text {
        font-size: 1.7rem;
        line-height: 1.3;
        text-wrap: balance;
    }

    /* ===== SECTIONS GENERAL ===== */
    section {
        padding: 60px 15px;
        min-height: auto;
    }

    .container {
        padding: 0 10px;
    }

    .title-large {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        padding-bottom: 1rem;
    }

    .title-large::after {
        display: none;
    }

    .title-medium {
        font-size: 1.8rem;
    }

    /* ===== FILOSOFIA SECTION ===== */
    .intro-text {
        font-size: 1.25rem;
    }

    .philosophy-principles p {
        font-size: 1.1rem;
        padding-left: 35px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .philosophy-principles p::before {
        left: 10px;
        font-size: 1rem;
    }

    .philosophy-principles p:hover {
        padding-left: 35px;
        transform: translateX(3px);
    }

    .philosophy-principles p strong {
        font-size: 1.15rem;
    }

    .closing-text {
        font-size: 1.6rem;
    }

    /* ===== FUNDO SECTION ===== */
    .strategy-intro {
        font-size: 1.25rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pillar-card {
        padding: 1.5rem;
    }

    .tech-block {
        padding: 2.5rem 1.5rem;
    }

    .tech-block h3 {
        font-size: 1.5rem;
    }

    .tech-block p {
        font-size: 1.15rem;
    }

    /* Fund Table -> Card on Mobile */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .fund-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .fund-card-title {
        font-size: 1.3rem;
    }

    .fund-card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* ===== EQUIPE SECTION ===== */
    .team-intro .intro-text {
        font-size: 1.25rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .profile-img-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }

    .profile-info {
        text-align: center;
    }

    .profile-name {
        justify-content: center;
        font-size: 1.2rem;
    }

    .profile-role {
        font-size: 0.9rem;
    }

    .profile-bio p {
        font-size: 1rem;
    }

    /* ===== REGULATÓRIO SECTION ===== */
    .gov-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gov-card {
        padding: 2rem 1.5rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doc-item {
        padding: 2rem 1.5rem;
    }

    /* ===== FOOTER ===== */
    .footer-top,
    .footer-bottom {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo-icon {
        height: 60px;
    }

    .footer-logo-text {
        height: 50px;
    }

    .footer-cta {
        text-align: center;
    }

    .footer-cta-text {
        font-size: 1.1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        margin: 0 10px;
    }

    .footer-background-image {
        /* Aumentada e reposicionada para visibilidade */
        height: 300px;
        bottom: -20px;
        opacity: 0.15;
    }
}

/* Extra small devices (≤480px) */
@media (max-width: 480px) {
    .hero-text {
        font-size: 1.5rem;
    }

    .title-large {
        font-size: 1.9rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .philosophy-principles p {
        font-size: 1rem;
        padding-left: 30px;
    }

    .fund-card-title {
        font-size: 1.2rem;
    }

    .fund-card-value {
        font-size: 1.1rem;
    }

    .header-contact-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Logos menores em telas muito pequenas */
    .logo-img,
    .logo-text-img {
        height: 38px;
    }

    .container.hero-content {
        padding: 40px 10px 0;
        max-width: 98%;
    }
}

/* Tablet (769px – 1024px) — ativa hambúrguer */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Show hamburger on tablet */
    .hamburger {
        display: flex;
    }

    .logo-wrapper {
        flex: 1;
        justify-content: center;
    }

    /* Hide desktop nav links */
    #nav-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background-color: var(--deep-blue);
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    #nav-menu.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Backdrop removido
    #nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: -1;
    } */

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
}