/*
   Maicon Infra - Estilos principais (ajustado para cor #002e5d)
   Paleta de cores:
   - Azul escuro principal: #002e5d
   - Branco: #FFFFFF
*/

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #002e5d; /* texto em azul escuro */
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #002e5d; /* títulos em azul escuro */
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #002e5d; /* links em azul escuro */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #001f40; /* hover em azul ainda mais escuro */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #BABABA; /* linha abaixo do título neutra */
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: #002e5d; /* fundo azul escuro */
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #001f40; /* azul ainda mais escuro no hover */
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #002e5d; /* fundo azul escuro */
    color: #FFFFFF;            /* texto branco sobre esse fundo */
}

.btn-secondary:hover {
    background-color: #001f40; /* azul mais escuro no hover */
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #002e5d; /* borda azul escuro */
    color: #002e5d;
}

.btn-outline:hover {
    background-color: #002e5d;
    color: #FFFFFF;
}

.btn-text {
    background-color: transparent;
    color: #002e5d;
    padding: 0;
}

.btn-text:hover {
    color: #001f40;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    color: #002e5d;
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #002e5d; /* underline azul */
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #002e5d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    /* overlay cinza leve sobre imagem de fundo */
    background: linear-gradient(rgba(186, 186, 186, 0.5), rgba(186, 186, 186, 0.5)),
    url('../img/back.png') center center/cover no-repeat;
    color: #FFFFFF;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-form {
    flex: 1;
    max-width: 450px;
}

.form-container {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
    color: #002e5d;
    margin-bottom: 0.5rem;
}

.form-container p {
    color: #002e5d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #002e5d; /* borda azul escuro */
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #002e5d; /* foco em azul */
}

.form-disclaimer {
    font-size: 0.8rem;
    color: #002e5d;
    text-align: center;
    margin-top: 1rem;
}

/* Por que escolher (Features) */
.features {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #002e5d; /* ícone em azul */
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Serviços */
.services {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #002e5d; /* fundo azul escuro */
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease;
    border-bottom: 3px solid #001f40; /* borda inferior azul ainda mais escuro */
    text-align: center;
    color: #FFFFFF; /* texto branco em cards de serviço */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: #FFFFFF; /* ícone branco sobre fundo escuro */
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #FFFFFF; /* título branco */
}

.service-card p {
    color: #FFFFFF; /* texto branco */
}

/* Projetos (Education) */
.education {
    padding: 5rem 0;
    background-color: #002e5d; /* fundo azul escuro */
}

.education-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.education-text {
    flex: 1;
}

.education-text h2 {
    color: #FFFFFF;
}

.education-text p {
    color: #FFFFFF;
}

.education-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background-color: #FFFFFF;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: #002e5d;
}

.newsletter-text p {
    color: #002e5d;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 0;
}

.newsletter-form input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid #002e5d; /* borda azul escuro */
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #002e5d; /* fundo azul escuro */
    color: #FFFFFF;            /* texto branco */
    border: 1px solid #002e5d;
}

.newsletter-form button:hover {
    background-color: #001f40; /* azul mais escuro */
}

/* CTA Final */
.cta {
    padding: 10rem 0 5rem;
    background: linear-gradient(rgba(186, 186, 186, 0.5), rgba(186, 186, 186, 0.5)),
    url('../img/back2.png') center center/cover no-repeat;
    color: #FFFFFF;
    text-align: center;
}

.cta-content h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #ffffff;
    color: #002e5d;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: #002e5d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #002e5d;
}

.footer-column a:hover {
    color: #001f40; /* links em azul escuro no hover */
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #002e5d;
    border-radius: 50%;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #001f40; /* azul mais escuro no hover */
    transform: translateY(-3px);
}

.copyright {
    color: #002e5d;
    font-size: 0.9rem;
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    color: #FFFFFF;
}

/* Responsividade */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 7rem 0 4rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        margin: 1rem 0;
    }

    .header-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
    }

    .hero-form {
        width: 100%;
    }

    .education-content {
        flex-direction: column;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}
