/* --- 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #019139; /* Verde */
    --secondary-color: #0056b3; /* Azul */
    --dark-color: #333;
    --light-color: #ffffff;
    --gray-bg: #f4f6f8; /* Cinza de fundo */

    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. TIPOGRAFIA E ESTILOS GERAIS --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: -0.5rem auto 2.5rem auto;
    text-align: center;
}

section {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--dark-color);
}

/* --- 3. BOTÕES (CTAs) --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-title);
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #007a2f; /* Verde mais escuro */
    color: var(--light-color);
    transform: translateY(-2px);
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--light-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-title);
    border: 2px solid var(--light-color);
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-button-secondary:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* --- 4. CABEÇALHO (HEADER) E NAVEGAÇÃO --- */
header {
    width: 100%;
    height: var(--header-height);
    background: var(--light-color);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}
.logo:hover {
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--dark-color);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
.nav-menu li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-cta {
    display: block; /* Visível em desktop */
}

.menu-toggle {
    display: none; /* Escondido em desktop */
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* --- 5. SECÇÃO "HERO" (TOPO) --- */
#hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://businesshuntersmz.com/img/hero-bg.jpg'); /* SUBSTITUA O URL */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- 6. SECÇÃO "SOBRE NÓS" --- */
#sobre {
    background-color: var(--light-color);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 3rem;
}
.detail-box {
    text-align: center;
    padding: 30px;
    background: var(--gray-bg);
    border-radius: 8px;
    border-bottom: 4px solid var(--primary-color);
}
.detail-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.detail-box h3 {
    margin-bottom: 0.5rem;
}

/* --- 7. SECÇÃO "SERVIÇOS" --- */
#servicos {
    background-color: var(--gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card .price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    opacity: 0; /* Começa escondido - JS preenche */
    transition: opacity 0.5s ease;
}
.service-card .service-link {
    width: 100%;
    margin-top: 1rem;
}

/* --- 8. SECÇÃO "PORQUÊ NÓS" --- */
#porque {
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.value-box {
    padding: 25px;
    text-align: center;
}
.value-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 9. SECÇÃO "PORTFÓLIO" --- */
#portfolio {
    background-color: var(--gray-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 250px;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px 20px;
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.4s ease, background 0.4s ease;
}
.portfolio-caption h3 {
    color: var(--light-color);
    margin: 0;
}
.portfolio-caption p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}
.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

/* --- 10. SECÇÃO "CONTATO" --- */
#contato {
    background-color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: var(--gray-bg);
    padding: 40px;
    border-radius: 8px;
}
.contact-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 145, 57, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group button {
    grid-column: 1 / -1;
    max-width: 250px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}
.contact-info p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.contact-info p i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 2rem;
}
.social-icons a {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-right: 20px;
}
.social-icons a:hover {
    color: var(--primary-color);
}

/* --- 11. RODAPÉ (FOOTER) --- */
footer {
    background-color: #222;
    color: #aaa;
    padding-top: 60px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo h3 {
    color: var(--light-color);
    font-size: 1.8rem;
}
.footer-logo p {
    color: #aaa;
    max-width: 300px;
}
.footer-links h4,
.footer-social h4 {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li a {
    color: #aaa;
    margin-bottom: 10px;
    display: block;
}
.footer-links li a:hover {
    color: var(--light-color);
}
.footer-social .social-icons a {
    color: #aaa;
}
.footer-social .social-icons a:hover {
    color: var(--light-color);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* --- 12. PÁGINAS DE SERVIÇO (ESTILOS ESPECÍFICOS) --- */
#service-hero {
    padding: 120px 0 60px 0; /* Mais padding no topo por causa do header fixo */
    background: var(--gray-bg);
    text-align: center;
}
#service-hero h1 {
    color: var(--primary-color);
    font-size: 3rem;
}

#pacotes {
    background: var(--light-color);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* Garante que os cards tenham a mesma altura */
}

.package-card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.package-card.recommended {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(1, 145, 57, 0.2);
}

.recommend-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}

.package-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.package-header h3 {
    font-size: 1.8rem;
}
.package-header .price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
    opacity: 0; /* JS preenche */
    transition: opacity 0.5s ease;
}
.package-header span {
    font-size: 0.9rem;
    color: #777;
}

.package-features {
    list-style: none;
    padding: 30px;
    flex-grow: 1; /* Faz esta parte crescer para empurrar o botão para baixo */
}
.package-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}
.package-features li i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
}
.package-features li .fa-check { color: var(--primary-color); }
.package-features li .fa-times { color: #aaa; }

.package-card .cta-button {
    width: 100%;
    border-radius: 0 0 6px 6px;
    padding: 15px;
}

#formulario-servico {
    background: var(--gray-bg);
}
.service-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.service-form .form-group {
    display: flex;
    flex-direction: column;
}
.service-form .form-full-width {
    grid-column: 1 / -1;
}
.service-form .cta-button {
    grid-column: 1 / -1;
    max-width: 300px;
    justify-self: center; /* Centra o botão */
}

/* --- 13. BOTÃO "VOLTAR AO TOPO" --- */
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top-btn:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* --- 14. RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    /* Menu Móvel */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--light-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-out;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-menu li a {
        font-size: 1.5rem;
    }
    .menu-toggle {
        display: block;
    }
    .nav-cta {
        display: none; /* Esconde CTA do header em móvel */
    }

    h1 { font-size: 2.8rem; }
    #hero h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .about-details { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .service-form { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    #hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1.1rem; }
    
    .cta-button { width: 100%; }
    .cta-button-secondary { width: 100%; margin: 10px 0 0 0; }
    
    .contact-container { padding: 20px; }
    .contact-container form { grid-template-columns: 1fr; }
    .service-form { padding: 20px; }
}


/* --- 15. ESTILOS DE TESTEMUNHOS (SWIPER) --- */
#testemunhos {
    background-color: var(--gray-bg);
}

.swiper {
    width: 100%;
    max-width: 800px; 
    padding: 40px 0;
    padding-left: 10px;
    padding-right: 10px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    background: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    margin: 0 10px; 
    min-height: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-card span {
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--dark-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    .swiper {
        padding-left: 0;
        padding-right: 0;
    }
}

/* --- 16. MELHORIAS DE ESTÉTICA (MICRO-INTERAÇÕES) --- */

/* 16a. Ícone nos Botões ao fazer hover */
.cta-button {
    position: relative;
    padding-right: 45px;
}
.cta-button::after {
    content: '\f178';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease;
}
.cta-button:hover::after {
    opacity: 1;
    right: 15px;
}

/* 16b. Efeito 'Bounce' nos Ícones de Serviço */
.service-card:hover i {
    transform: scale(1.1) translateY(-5px);
    color: var(--dark-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 16c. Efeito 'Zoom & Darken' no Portfólio */
.portfolio-item:hover img {
    transform: scale(1.15);
    filter: brightness(0.4);
}
.portfolio-item:hover .portfolio-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}


/* --- 17. ESTILOS DA BARRA "TRUSTED BY" (LOGOS) --- */
/* (Esta é a nova secção para o carrossel de logos) */
#trusted-by {
    background-color: var(--light-color); 
    padding: 40px 0;
    border-top: 1px solid var(--gray-bg);
    border-bottom: 1px solid var(--gray-bg);
    overflow: hidden; /* Garante que nada transborda */
}
#trusted-by .container {
    text-align: center;
}
#trusted-by h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Configuração do Swiper de Logos */
.logo-swiper {
    width: 100%;
    height: 60px; /* Define uma altura fixa para o carrossel */
}

.logo-swiper .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* A largura será automática */
}

.logo-swiper .swiper-slide img {
    max-height: 45px; /* Altura máxima do logo */
    width: auto; /* Largura automática para manter proporção */
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-swiper .swiper-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    cursor: pointer;
}

/* Garante que o wrapper do swiper se mexe suavemente */
.logo-swiper .swiper-wrapper {
     transition-timing-function: linear; /* Efeito de scroll contínuo */
}


/* --- 18. ESTILOS DE FAQ (ACCORDION) --- */
#faq {
    background-color: var(--gray-bg);
}
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-question {
    background: var(--light-color);
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(-180deg);
}
.faq-answer {
    background: var(--light-color);
    border-top: 1px solid #eee;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 20px 0;
    line-height: 1.7;
}

/* --- 19. SECÇÃO DE ESTATÍSTICAS --- */
#stats {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-color);
}
.stat-item p {
    font-size: 1.1rem;
    font-family: var(--font-title);
    opacity: 0.9;
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- 20. MENSAGEM DE SUCESSO (PÁGINAS DE SERVIÇO) --- */
#formulario-servico {
    position: relative;
    overflow: hidden; 
}
.form-container,
.success-message-service {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s;
}
.success-message-service {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}
.success-message-service.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.success-message-service .success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}
@keyframes bounceIn {
    0% { transform: scale(0.1); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
.success-message-service h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.success-message-service p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}
.form-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

/* --- 21. GARANTIA DE TAMANHO DE IMAGEM --- */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logos-grid .logo-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}