/* --- RESET E GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 4rem 0; }
.bg-light { background-color: #f9f9f9; }
.bg-dark { background-color: #003366; color: #fff; } /* Azul escuro tema */
.text-white { color: #fff; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2rem; text-transform: uppercase; }

/* --- NAVBAR --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:2rem; /* Adiciona o espaço entre os elementos: logo, botão e nav-links */
}
.logo { font-size: 1.5rem; letter-spacing: 2px; color: #0056b3; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: #0056b3; }
.btn-nav {
    background: #0056b3;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

/* --- HERO (Seu código ajustado) --- */
.hero {
    position: relative;
    background: linear-gradient(45deg, #15223b, #4c78f3, #4a63f0);
    /* Adicione sua imagem aqui */
    /* background: url('bg-jiujitsu.jpg') center/cover no-repeat; */
    min-height: 70vh; /* Altura boa para destaque */
    display: flex;
    align-items: center;
    color: #fff;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 0;
}
.hero-inner {
    position: relative; z-index: 1;
    width: 90%; max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 1rem; text-transform: uppercase; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; }
.btn-primary {
    background-color: #ffc107; color: #003366;
    padding: 1rem 2rem; border-radius: 5px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.btn-primary:hover { background-color: #e0a800; }

/* --- GRID SYSTEM --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* --- SEÇÃO SOBRE --- */
.sobre-texto h2 { color: #0056b3; margin-bottom: 1rem; }
.placeholder-img {
    width: 100%; height: 300px; background: #ddd;
    display: flex; align-items: center; justify-content: center; color: #777;
    border-radius: 8px;
}

/* --- ESTATÍSTICAS --- */
.flex-center { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
.stat-box h3 { font-size: 3rem; margin-bottom: 0.5rem; }

/* --- CARDS (Projetos) --- */
.card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-header { height: 200px; width: 100%; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; color: #333; }
.card-body p { font-size: 0.9rem; color: #666; }

/* --- FOOTER --- */
.footer { background: #003366; color: #fff; text-align: center; padding: 2rem 0; font-size: 0.9rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Menu simples para mobile (precisaria de JS para toggle) */
    .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .hero { min-height: 60vh; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-line {
    width: 22px;
    height: 2px;
    background: #333;
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        flex-direction: column;
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        gap: 1rem;
    }

    .nav-links.show {
        display: flex;
    }
}

.form-contato {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 1px rgba(0,86,179,0.2);
}

.alert {
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-success {
    background: #e6ffed;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    color: #fff; /* ajuste se seu footer não for escuro */
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Estilos para a logo no Hero */
.hero-logo {
    margin-bottom: 20px; /* Espaço entre a logo e o título */
}

.hero-logo img {
    max-width: 250px; /* Tamanho máximo da logo */
    height: auto;
    display: block; /* Para centralizar a imagem */
    margin: 0 auto; /* Para centralizar a imagem */
}

/* Ajuste para telas menores, se necessário */
@media (max-width: 768px) {
    .hero-logo img {
        max-width: 180px; /* Logo menor em mobile */
    }
}

/* Hero com logo ao lado */
.hero-com-logo .hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-com-logo .hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-com-logo .hero-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-com-logo .hero-logo {
    max-width: 700px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

/* Animação suave de flutuação para a logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsivo - em telas menores, empilha verticalmente */
@media (max-width: 768px) {
    .hero-com-logo .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-com-logo .hero-content {
        max-width: 100%;
    }

    .hero-com-logo .hero-logo {
        max-width: 350px;  /* ← Aumente aqui também (era 250px) */
    }
}

@media (max-width: 480px) {
    .hero-com-logo .hero-logo {
        max-width: 280px;  /* ← E aqui (era 200px) */
    }
}

/* Estilos do Footer */
.footer {
    background-color: #003366; /* Azul escuro */
    color: #f8f9fa;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-area {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.footer-logo {
    max-width: 180px; /* Tamanho da logo no footer */
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Para logos escuras ficarem brancas */
}

.footer-description {
    line-height: 1.6;
    color: #ccc;
}

.footer-links,
.footer-social {
    flex: 1;
    min-width: 150px;
}

.footer-links h4,
.footer-social h4 {
    color: #ffc107; /* Amarelo */
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffc107;
}

.social-icons a {
    color: #f8f9fa;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffc107;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

/* Responsivo para o footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-area,
    .footer-links,
    .footer-social {
        max-width: 100%;
        min-width: unset;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        margin-top: 15px;
    }
}