/* --- GERAL & VARIÁVEIS --- */
:root {
    --primary-color: #00004a; /* Azul escuro */
    --secondary-color: #FFFFFF; /* Branco */
    --accent-color: #FFD700; /* Amarelo/Dourado */
    --text-color: #333;
    --light-bg: #f4f4f4;
    /* Typographic scale */
    --font-display: 'Anton', sans-serif;
    --font-base: 'Roboto', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.8rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--primary-color);
}

h1 {
    font-size: var(--h1-size);
    text-align: center;
}

h2 {
    font-size: var(--h2-size);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.content-section {
    padding: 4rem 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e6c300;
}

/* --- HEADER & NAVBAR --- */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

/* --- SWIPER STYLES --- */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* --- NOVA SEÇÃO HERO --- */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('images/ImagemFundo/ImagemFundoJoagares.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    padding: 0 1rem;
}

/* overlay escuro separado para manter a imagem visível abaixo */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 74, 0.6), rgba(0, 0, 74, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* garante que logo e textos fiquem sobre a imagem e overlay */
}

.hero-content .hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    background-color: white;
    padding: 0.8rem;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: var(--h1-size);
    max-width: 900px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- SEÇÃO SOBRE --- */
#sobre { background-color: var(--secondary-color); }

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-visuals {
    flex: 1;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.about-quote {
    background: var(--secondary-color);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.about-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0;
}

.about-quote footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: left;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem -2rem -2rem -2rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-weight: bold;
    font-style: italic;
}

/* --- SEÇÃO DE OPORTUNIDADES --- */
.opportunities-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.opportunity-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.opportunity-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.opportunity-item h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- SEÇÃO DE NÚMEROS --- */
.stats-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
}

.stats-section h2 {
    color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.stat-item {
    font-size: 1.2rem;
}

.stat-item span {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: var(--accent-color);
}

/* --- SEÇÃO DE CONTATO --- */
#contato { background-color: var(--light-bg); }

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info { flex: 1; }
.contact-info a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.contact-info a:hover { color: var(--primary-color); }
.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
    width: 20px;
}

.contact-form { flex: 1.5; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.contact-form button { width: 100%; }

.contact-info-centered {
    text-align: center;
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-centered h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info-centered p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.contact-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-links i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.contact-links a:hover i {
    color: var(--secondary-color);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0 1.5rem 0;
}

#donate-button-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
}

#donate-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- RESPONSIVIDADE --- */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-wrapper, .contact-wrapper {
        flex-direction: column;
    }

    .contact-info-centered {
        padding: 2rem 1rem;
    }

    .contact-links a {
        min-width: 200px;
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
}

/* ================================================= */
/* AQUI ESTÃO OS ESTILOS PARA A SEÇÃO DE CAMPEONATOS */
/* ================================================= */
.championships-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

/* Adiciona espaçamento no topo para páginas novas */
.page-section {
    padding-top: 120px;
    min-height: 80vh; /* Garante que a página tenha uma altura mínima */
}

.swiper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* --- PROJETOS SOCIAIS STYLES --- */
.projetos-hero {
    background: url('images/ImagemFundo/ImagemFundoJoagares.jpeg') no-repeat center center/cover;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.projetos-details-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.projetos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.projeto-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent-color);
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.projeto-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.projeto-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--font-display);
}

.projeto-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--text-color);
}

.projeto-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent-color);
    text-align: center;
}

.projeto-footer strong {
    color: var(--primary-color);
    font-style: italic;
}

.projetos-gallery-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--secondary-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 74, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--secondary-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
}

.modal-nav-btn {
    background: rgba(0, 0, 74, 0.8);
    color: var(--secondary-color);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-nav-btn:hover {
    background: var(--primary-color);
}

.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Active nav link */
.nav-link.active {
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive Design for Gallery and Projects */
@media screen and (max-width: 768px) {
    .projetos-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projeto-card {
        padding: 1.5rem;
    }
    
    .projeto-card h3 {
        font-size: 1.2rem;
    }
    
    .projeto-card p {
        font-size: 0.95rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-nav-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .close {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }
}