/* ==========================================================================
   1. VARIÁVEIS E RESET
   ========================================================================== */
:root {
    --primary-green: #367c43;
    --accent-green: #74c69d;
    --dynamic-green: #4ade80;
    --earth-brown: #403d39;
    --primary-blue: #043878;

    --bg-color: #043878;
    --white: #ffffff;
    --text-main: #2d3436;
    --text-muted: #64748b;
    --text-dark: #1e293b;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 30px rgba(45, 106, 79, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    font: inherit;
}

/* ==========================================================================
   2. GLOBAL
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
}

.section-padding {
    padding: 100px 8%;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 59, 132, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. HEADER E NAVEGAÇÃO
   ========================================================================== */
header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    padding: 2rem 8%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

header.scrolled {
    padding: 1rem 8%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 300px;
    transition: 0.4s ease;
}

header.scrolled .logo img {
    width: 140px;
}

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

.nav-links a {
    font-size: 20px;
    text-decoration: none;
    color: #f1b13d;
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.section-header{
    color:#f1b13d
}
/* ==========================================================================
   4. GALERIA
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    text-align: center;
}

.gallery-section h2 {
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

.gallery-carousel {
    position: relative;
    width: 100%;
}

.gallery-track {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gallery-arrow.prev {
    left: 20px;
}

.gallery-arrow.next {
    right: 20px;
}

/* ==========================================================================
   5. MISSÃO
   ========================================================================== */
.mission {
    padding: 100px 8%;
    background: whitesmoke;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.mission-text p {
    font-size: 1.1rem;
    color: #1e293bea;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   6. PROJETOS
   ========================================================================== */



.projects{
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
}

.bg-onca{
    position: absolute;

    right: -150px;
    bottom: 0;

    width: 1300px;
    height: auto;

    opacity: .18;

    pointer-events: none;
    user-select: none;

    z-index: 0;
}

.projects > *:not(.bg-onca){
    position: relative;
    z-index: 1;
}

.nav-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
    width: 100%;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 200px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-item:hover,
.carousel-item.active {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), inset 0 -50px 25px #00A651;
    z-index: 10;
}

.carousel-item:hover .carousel-overlay,
.carousel-item.active .carousel-overlay {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 166, 81, 0.85) 0%, rgba(0, 166, 81, 0.08) 100%);
    border-radius: 9px;
    z-index: 1;
    opacity: 0;
    transition: 0.3s ease;
}

.carousel-item span {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.project-grid {
    display: grid;
    gap: 40px;
}

.project-showcase-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.side-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    border: 2px solid #94949449;
    border-radius: 20px;
    transition: all 0.35s ease;
    cursor: pointer;
    overflow: hidden;
    background: white;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00A651;
}

.main-project-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-muted);
}

.info-card {
    background: var(--white);
    border: 1px solid #e2ece7;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-green);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--primary-blue);
    background: rgba(45, 106, 79, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.info-text h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.info-text p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.project-item {
    animation: fadeInProject 0.5s ease forwards;
}

@keyframes fadeInProject {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   7. MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 70%;
    max-width: 800px;
    position: relative;
    animation: modalFade 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-hero {
    margin: -40px -40px 20px -40px;
    height: 250px;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-content .close:hover {
    background: var(--primary-green);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.modal-info-grid ul {
    list-style: none;
    padding: 0;
}

.modal-info-grid li::before {
    content: '• ';
    color: var(--primary-green);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.official-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 10px 18px;
    margin-bottom: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.official-link:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

@keyframes modalFade {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   8. INVESTIDOR
   ========================================================================== */
.investidor {
    padding: 100px 8%;
    position: relative;
    overflow: hidden;
    background: url('../assets/background-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.investidor-grid {
    position: relative;
    z-index: 2;
}

.investidor h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.investidor-card {
    min-height: auto;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #e2ece7;
    transition: 0.4s ease;
    overflow: hidden;
}

.investidor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.collapsible-card {
    cursor: pointer;
    transition: 0.4s ease;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2ece7;
    background: rgba(255, 255, 255, 0.9);
}

.collapsible-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 166, 81, 0.25);
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.card-text {
    flex: 1;
}

.expand-icon {
    font-size: 1.2rem;
    color: #00A651;
    transition: 0.3s ease;
}

.card-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.collapsible-card.active .card-extra {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
}

.collapsible-card.active .expand-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   9. FOOTER E CONTATO
   ========================================================================== */
.contact {
    padding: 80px 8%;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 700;
}

.contact h2 {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links a,
.social-links div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}
.social-links a:hover{
    color:var(--primary-green);
}
/* ==========================================================================
   9.1. BOTÃO VOLTAR AO TOPO
   ========================================================================== */
.back-to-top {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #00A651;
    color: white;

    font-size: 1.2rem;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.3);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 9999;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);

    background: #008c45;

    box-shadow: 0 12px 25px rgba(0, 166, 81, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.social-links a:hover {
    opacity: 0.8;
}

footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.footer-top {
    padding: 60px 20px;
}

.footer-top h2 {
    margin-bottom: 10px;
    color: #f1b13d;
}

.footer-top p {
    opacity: 0.9;
    color: var(--primary-green);
    font-weight: 600; 
}

.footer-divider {
    width: 60%;
    height: 2px;
    background: rgb(255, 255, 255);
    margin: 30px auto;
    opacity: 0.8;
}

.footer-partners {
    padding: 30px 20px;
}

.footer-partners p {
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partners-logos img {
    height: 130px;
    transition: 0.3s;
}

.partners-logos img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.footer-bottom {
    padding: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.section-divider {
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: #d9e3dd;
    margin: 5rem auto;
    border-radius: 10px;
}

@media (max-width: 968px) {
    .mission-grid,
    .project-showcase-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

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