/* === GLOBAL RESET & VARIABLES === */
:root {
    --primary-color: #001f3f; /* Azul Marinho Principal */
    --secondary-color: #6c757d; /* Cinza para texto secundário */
    --accent-color: #007bff; /* Azul Brilhante para CTAs e destaques */
    --light-accent-color: #e6f2ff; /* Azul bem claro para fundos de ícones */
    --light-bg-color: #f8f9fa; /* Cinza muito claro para fundos de seção */
    --white-color: #ffffff;
    --dark-text-color: #212529; /* Preto suave para texto principal */
    --success-color: #25D366; /* Verde WhatsApp */
    --border-color: #dee2e6; /* Cinza claro para bordas */

    --font-primary: 'Poppins', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para REMs */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; color: var(--primary-color); }


p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}


a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}
a:hover { color: var(--primary-color); }

ul { list-style: none; }

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

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.visible { /* Classe adicionada pelo JS */
    opacity: 1;
    transform: translateY(0);
}

.bg-light { background-color: var(--light-bg-color); }

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 14px 30px;
    border-radius: 50px; /* Mais arredondado */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 31, 63, 0.3);
}
.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.cta-button-outline:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
}


/* === HEADER === */
#header {
    background-color: transparent; /* Começa transparente */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
#header.scrolled { /* Adicionada via JS */
    background-color: var(--white-color);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
#header.scrolled .logo a,
#header.scrolled nav ul li a {
    color: var(--primary-color);
}
#header.scrolled nav ul li a.nav-cta {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}
#header.scrolled nav ul li a.nav-cta:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
#header.scrolled .menu-toggle {
    color: var(--primary-color);
}


#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#header .logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white-color); /* Cor inicial do logo */
    transition: color 0.3s ease;
}
#header nav ul { display: flex; align-items: center; }
#header nav ul li { margin-left: 30px; }
#header nav ul li a {
    color: var(--white-color); /* Cor inicial dos links */
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
#header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
#header nav ul li a:hover::after,
#header nav ul li a.active::after { width: 100%; }
#header nav ul li a.nav-cta {
    border: 2px solid var(--white-color);
    padding: 8px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#header nav ul li a.nav-cta:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}
#header nav ul li a.nav-cta::after { display: none; } /* Remove underline do CTA */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white-color); /* Cor inicial */
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* === HERO SECTION === */
#hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://cdn.pixabay.com/photo/2019/12/18/13/07/right-4703938_1280.jpg'); /* PERSONALIZAR: Imagem de fundo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito parallax sutil */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.6); /* Overlay azul escuro */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--light-bg-color);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.hero-details {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #cccccc;
}
.hero-cta {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* === APRESENTAÇÃO BIO === */
#apresentacao h2 { text-align: left; }
#apresentacao h2::after {
    display: none; /* Remover underline global de h2 para este caso */
}
.apresentacao-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}
.apresentacao-image-bio {
    flex-basis: 35%;
    max-width: 350px;
}
.apresentacao-image-bio img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.15);
}
.apresentacao-text-bio {
    flex: 1;
}
.apresentacao-text-bio p {
    font-size: 1.05rem;
    color: var(--dark-text-color);
}


/* === ÁREAS DE ATUAÇÃO === */
#areas h2, #diferenciais h2, #depoimentos h2, #faq h2, #mapa h2, #contato h2 {
    text-align: center;
    margin-bottom: 1rem;
}
#areas h2::after, #diferenciais h2::after, #depoimentos h2::after, #faq h2::after, #mapa h2::after, #contato h2::after { /* Detalhe para títulos de seção */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.area-item {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.area-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.15);
}
.area-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: var(--light-accent-color);
    color: var(--accent-color);
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.area-item h3 { margin-bottom: 10px; font-size: 1.3rem; }
.area-item p { font-size: 0.95rem; color: var(--secondary-color); }

/* === DIFERENCIAIS === */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.diferencial-item {
    text-align: center;
    padding: 20px;
}
.icon-diferencial {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.diferencial-item:hover .icon-diferencial {
    transform: scale(1.1) rotate(-5deg);
}
.diferencial-item h4 { margin-bottom: 8px; }
.diferencial-item p { font-size: 0.95rem; }


/* === DEPOIMENTOS === */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.depoimento-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.depoimento-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 25px;
}
.depoimento-card .quote {
    font-style: italic;
    color: var(--dark-text-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
}
.depoimento-card .author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    margin-bottom: 0;
    font-size: 0.9rem;
}


/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: var(--white-color);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
    font-size: 1.1rem;
}
.faq-item summary:hover { background-color: var(--light-bg-color); }
.faq-item summary i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p {
    padding: 0 25px 20px;
    margin-bottom: 0;
    color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    animation: fadeInFaq 0.5s ease-out;
}
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* === MAPA === */
.map-container {
    position: relative;
    overflow: hidden;
    height: 450px; /* Altura fixa */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.endereco-texto {
    text-align: center;
    margin-top: 25px;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* === FORMULÁRIO DE CONTATO === */
#contactForm {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-color);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit-button { width: 100%; font-size: 1.1rem; padding: 16px 30px;}

/* === RODAPÉ === */
#footer {
    background-color: var(--primary-color);
    color: var(--light-bg-color);
    text-align: center;
    padding: 50px 0;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white-color);
}
.footer-info {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #bdc9d7; /* Tom de cinza mais claro */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.social-icons { margin-bottom: 15px; }
.social-icons a {
    color: var(--white-color);
    font-size: 1.6rem;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}
.copyright { font-size: 0.85rem; color: #bdc9d7; margin-top: 10px; }


/* === BOTÃO FLUTUANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 1.8rem; /* Ajustado para Font Awesome 6 */
    box-shadow: 2px 2px 15px rgba(0,0,0,0.25);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #1DA851; /* Um pouco mais escuro no hover */
}

/* === RESPONSIVIDADE === */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .apresentacao-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .apresentacao-image-bio { margin-bottom: 30px; max-width: 300px; }
    #apresentacao h2 { text-align: center; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    #hero { min-height: 500px; height: auto; padding: 120px 0 80px; }
    
    #header .container { padding: 0 15px; }
    #header nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }
    #header nav.active { display: flex; }
    #header nav ul { flex-direction: column; width: 100%; text-align: center; }
    #header nav ul li { margin: 10px 0; width: 100%; }
    #header nav ul li a,
    #header.scrolled nav ul li a {
        color: var(--primary-color);
        display: block;
        padding: 12px 0;
        width: 100%;
    }
    #header nav ul li a::after { display: none; }
    #header nav ul li a.nav-cta,
    #header.scrolled nav ul li a.nav-cta {
        background-color: var(--accent-color);
        color: var(--white-color);
        border-color: var(--accent-color);
        margin: 10px auto;
        display: inline-block;
        width: auto;
        padding: 10px 25px;
    }
    .menu-toggle { display: block; }
    #header.scrolled .menu-toggle { color: var(--primary-color); }


    .section { padding: 60px 0; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .areas-grid, .diferenciais-grid, .depoimentos-grid { grid-template-columns: 1fr; }
    .map-container { height: 350px; }
    #contactForm { padding: 30px; }

    .whatsapp-float { width: 55px; height: 55px; font-size: 1.6rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { padding: 15px 30px; font-size: 1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    .cta-button { padding: 12px 25px; font-size: 0.9rem; }
    #contactForm { padding: 25px; }
    .form-group input, .form-group textarea { padding: 12px 15px; }
}