/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-primaria: #2E7D32;      /* Verde mais escuro e sofisticado */
    --cor-secundaria: #1B5E20;    /* Verde ainda mais escuro */
    --cor-terciaria: #66BB6A;     /* Verde médio */
    --cor-destaque: #E65100;      /* Laranja mais escuro para botões e destaque */
    --cor-texto: #333333;         /* Texto escuro */
    --cor-texto-claro: #555555;   /* Texto mais escuro para melhor legibilidade */
    --cor-branco: #FFFFFF;        /* Branco puro */
    --cor-bg-claro: #F8F8F8;      /* Fundo claro mais suave */
    --cor-bg-bege: #F5F2EB;       /* Fundo bege mais suave e elegante */
    --fonte-principal: 'Poppins', sans-serif;
    --fonte-secundaria: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    background-color: var(--cor-branco);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fonte-secundaria);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: var(--cor-branco);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #F57C00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--cor-destaque);
    color: var(--cor-destaque);
}

.btn-secondary:hover {
    background-color: var(--cor-destaque);
    color: var(--cor-branco);
}

.btn-submit {
    width: 100%;
    font-size: 18px;
    padding: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.section-header p {
    font-size: 18px;
    color: var(--cor-texto-claro);
    max-width: 700px;
    margin: 0 auto;
}

.divisor {
    width: 80px;
    height: 4px;
    background-color: var(--cor-terciaria);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    width: 100%;
    background-color: var(--cor-branco);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cor-primaria);
}

.logo h1 span {
    font-weight: 400;
    color: var(--cor-terciaria);
}

.logo img {
    max-width: 150px; /* Ajuste o tamanho máximo da logo */
    height: auto; /* Mantém a proporção da imagem */
    display: block; /* Garante que a imagem seja tratada como um bloco */
    margin: 0; /* Remove margens */
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--cor-texto);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--cor-primaria);
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-contato {
    background-color: var(--cor-primaria);
    color: var(--cor-branco) !important;
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-contato:hover {
    background-color: var(--cor-secundaria);
}

.menu-mobile {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--cor-primaria);
}

/* ===== HERO ===== */
.hero {
    padding: 180px 0 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Será substituído em dispositivos móveis */
    position: relative;
}

/* Solução alternativa para iOS */
@supports (-webkit-touch-callout: none) {
    /* CSS específico para iOS */
    .hero {
        background-attachment: scroll;
    }
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 80px;
}

.hero-content h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--cor-primaria);
    line-height: 1.3;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--cor-texto);
}

.contador {
    background-color: var(--cor-primaria);
    padding: 40px 0;
    margin-top: 0; /* Removido espaço para evitar vazamento */
    color: var(--cor-branco);
    position: relative; /* Adicionado para garantir que fique acima do background */
    z-index: 2; /* Garante que fique acima do background */
}

.contador .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.contador-item {
    text-align: center;
}

.contador-item .numero {
    font-size: 48px;
    font-weight: 700;
    display: inline-block;
}

.contador-item .plus {
    font-size: 48px;
    font-weight: 700;
    display: inline-block;
}

.contador-item p {
    font-size: 18px;
    margin-top: 10px;
}

/* ===== SOBRE ===== */
.sobre {
    padding: 100px 0;
    background-color: var(--cor-bg-claro);
}

.sobre-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.sobre-img {
    flex: 1;
    max-width: 450px;
}

.sobre-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sobre-texto {
    flex: 1;
}

.sobre-texto h3 {
    font-size: 30px;
    margin-bottom: 5px;
    color: var(--cor-primaria);
}

.sobre-texto .credentials {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--cor-secundaria);
}

.sobre-texto p {
    margin-bottom: 20px;
    color: var(--cor-texto-claro);
    font-size: 16px;
}

.cta-sobre {
    margin-top: 30px;
}

/* ===== SERVIÇOS ===== */
.servicos {
    padding: 100px 0;
    background-color: var(--cor-branco);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.servico-card {
    background-color: var(--cor-bg-bege);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.servico-card .icon {
    font-size: 50px;
    color: var(--cor-primaria);
    margin-bottom: 25px;
}

.servico-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.servico-card p {
    font-size: 16px;
    color: var(--cor-texto-claro);
}

.servicos-imagem {
    margin-top: 50px;
    text-align: center;
}

.servicos-imagem img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: cover;
}

/* ===== BENEFÍCIOS ===== */
.beneficios {
    padding: 100px 0;
    background-color: var(--cor-bg-bege);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.beneficio-item {
    background-color: var(--cor-branco);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.beneficio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.beneficio-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.beneficio-icon i {
    font-size: 30px;
    color: var(--cor-primaria);
}

.beneficio-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.beneficio-item p {
    font-size: 15px;
    color: var(--cor-texto-claro);
    line-height: 1.6;
}

.beneficios-imagem {
    margin-top: 50px;
    text-align: center;
}

.beneficios-imagem img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: cover;
}

/* ===== EBOOK ===== */
.ebook {
    padding: 100px 0;
    background-color: var(--cor-bg-claro);
}

.ebook-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--cor-branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ebook-info {
    flex: 1;
    padding: 50px;
}

.ebook-info h2 {
    font-size: 36px;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.ebook-info h3 {
    font-size: 22px;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
}

.ebook-info p {
    font-size: 16px;
    color: var(--cor-texto-claro);
    margin-bottom: 25px;
}

.ebook-info ul {
    margin-bottom: 30px;
}

.ebook-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ebook-info ul li i {
    color: var(--cor-primaria);
    margin-right: 10px;
}

.ebook-img {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 500px;
    background-color: #f0f7e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebook-img img {
    max-height: 400px;
    position: relative;
    z-index: 1;
}

#ebook-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    background-color: var(--cor-branco);
    transition: all 0.3s ease;
    font-size: 16px; /* Evita zoom em iOS */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Estilizando o placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Estilizando o select */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.59 2.585 6 6.005 9.41 2.585 10.825 4 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Estilo para validação do formulário */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ddd;
    box-shadow: none;
}

.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

/* Botão de envio do formulário */
.btn-submit {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    border: none;
    width: 100%;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
}

/* ===== DEPOIMENTOS ===== */
.depoimentos {
    background-color: var(--cor-bg-claro);
    padding: 100px 0;
}

.depoimentos-carousel {
    position: relative;
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.depoimento-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
    padding: 0 10px;
}

.depoimento-slide.active {
    opacity: 1;
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.depoimento-card {
    background-color: var(--cor-branco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aspas {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--cor-terciaria);
    font-size: 30px;
    opacity: 0.3;
}

.depoimento-card p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    color: var(--cor-texto);
}

.cliente-info {
    display: flex;
    align-items: center;
}

.cliente-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--cor-terciaria);
}

.cliente-info h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.estrelas {
    color: #FFC107;
}

.depoimentos-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(46, 125, 50, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--cor-primaria);
    transform: scale(1.2);
}

/* Setas de navegação para o carrossel */
.depoimentos-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.depoimentos-nav button {
    background-color: var(--cor-primaria);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.depoimentos-nav button:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
}

.depoimentos-nav button:focus {
    outline: none;
}

@media (max-width: 767.98px) {
    .depoimentos-nav {
        display: none; /* As setas são menos úteis em mobile, onde o swipe é mais natural */
    }
}

/* ===== CONTATO ===== */
.contato {
    padding: 100px 0 0;
    background-color: var(--cor-bg-claro);
}

.contato-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.contato-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--cor-primaria);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--cor-primaria);
}

.info-item p {
    color: var(--cor-texto-claro);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--cor-primaria);
    border-radius: 50%;
    color: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-5px);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: var(--cor-branco);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.contato-form {
    flex: 1;
    min-width: 300px;
}

#formulario-contato {
    background-color: var(--cor-branco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.mapa {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: #2b2b2b;
    color: #e0e0e0;
    padding: 50px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--cor-branco);
}

.footer-logo h2 span {
    color: var(--cor-terciaria);
}

.footer-logo p {
    color: #b0b0b0;
    font-size: 14px;
}

.footer-links h3,
.footer-servicos h3,
.footer-contato h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--cor-branco);
}

.footer-links ul li,
.footer-servicos ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--cor-terciaria);
    padding-left: 5px;
}

.footer-contato p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.footer-contato p i {
    margin-right: 10px;
    color: var(--cor-terciaria);
}

.footer-bottom {
    background-color: #212121;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom i {
    color: #ff4d4d;
}

.footer-bottom a {
    color: var(--cor-terciaria);
}

.footer-bottom a:hover {
    text-decoration: underline;
    
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 20px; /* Mantém alinhado com o botão do WhatsApp */
    right: 20px; /* Mantém alinhado no canto direito */
    width: 50px;
    height: 50px;
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Aparecer suavemente quando necessário */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Efeito de hover */
.back-to-top:hover {
    background-color: darken(var(--cor-primaria), 10%);
    transform: scale(1.1);
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .back-to-top {
        right: auto; /* Remove a posição fixa no lado direito */
        left: calc(100% - 80px); /* Mantém alinhado ao botão do WhatsApp no lado oposto */
}

    
/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px; /* Alterado de "right" para "left" */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 1.5s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Otimizações para dispositivos touchscreen */
input, 
textarea, 
select, 
button {
    font-size: 16px; /* Evita zoom automático no iOS */
}

/* Improve tap targets */
.menu-mobile, 
.btn, 
.social-icon, 
.whatsapp-float, 
.back-to-top,
nav ul li a,
.depoimentos-dots .dot {
    touch-action: manipulation;
}

/* Melhorar espaçamento para inputs em mobile */
input, 
textarea, 
select {
    margin-bottom: 15px;
}

/* Melhorar contraste de texto para acessibilidade */
.hero-content p,
.section-header p,
.beneficio-item p,
.servico-card p {
    text-shadow: 0 0 1px rgba(255,255,255,0.2);
} 