/* --- GERAL E VARIÁVEIS V3 --- */
:root {
    --primary-color: #2a4635; --secondary-color: #f3f0e9; --dark-text: #333; --light-text: #fff;
    --grey-text: #666; --primary-font: 'Montserrat', sans-serif; --secondary-font: 'Roboto', sans-serif;
    --header-height: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--secondary-font); background-color: var(--light-text); color: var(--dark-text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; overflow-x: hidden; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 60px; color: var(--primary-color); font-weight: 800; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; font-family: var(--primary-font); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background-color: var(--primary-color); color: var(--light-text); border: 2px solid var(--primary-color); }
.btn-primary:hover { background-color: #3b614a; transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: var(--light-text); border: 2px solid var(--light-text); }
.btn-secondary:hover { background-color: var(--light-text); color: var(--primary-color); transform: translateY(-3px); }

/* --- HEADER FIXO V3 --- */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); transition: background-color 0.4s ease, height 0.4s ease, box-shadow 0.4s ease; }
#main-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
#main-header.scrolled { background-color: rgba(42, 70, 53, 0.95); backdrop-filter: blur(10px); height: 70px; box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.logo { max-height: 40px; transition: max-height 0.4s ease; }
#main-header.scrolled .logo { max-height: 35px; }

/* Menu Desktop */
.nav-menu ul { list-style: none; display: flex; gap: 30px; }
.nav-menu a { color: var(--light-text); text-decoration: none; font-weight: bold; font-family: var(--primary-font); position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--light-text); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.btn-header { padding: 8px 20px; font-size: 0.8rem; }

/* Menu Hambúrguer */
.mobile-menu-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-toggle span { width: 25px; height: 3px; background-color: var(--light-text); margin: 3px 0; transition: 0.3s; border-radius: 2px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- HERO COM VÍDEO V3 --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-text); overflow: hidden; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.4)); z-index: -1; }
.hero-content h1 { font-size: 4.5rem; font-weight: 800; color: var(--light-text); text-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.hero-content p { font-size: 1.25rem; max-width: 600px; margin: 20px auto 40px; }
.hero-buttons { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-buttons .btn { margin: 0 10px; }

/* --- SEÇÕES V3 (SERVIÇOS, SOBRE, CTA, PORTFOLIO, FAQ) --- */
/* (Os estilos para .services, .about-us, .cta-parallax, .faq são os mesmos da V2, pois já eram robustos) */
.services, .faq { background-color: #f9f9f9; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--light-text); padding: 40px 30px; text-align: center; border-radius: 5px; transition: all 0.3s ease; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.service-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.about-us { background: var(--secondary-color); }
.about-us-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.about-image img { width: 100%; border-radius: 5px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.about-text span { display: block; font-weight: bold; color: var(--primary-color); margin-bottom: 10px; letter-spacing: 1px; }
.about-text h2 { text-align: left; font-size: 2.5rem; }
.about-text p { color: var(--grey-text); margin-bottom: 30px; }
.cta-parallax { padding: 120px 0; background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/1571463/pexels-photo-1571463.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); background-size: cover; background-position: center; background-attachment: fixed; text-align: center; color: var(--light-text); }
.cta-parallax h2 { color: var(--light-text); text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 5px; display: block; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 20px; color: var(--light-text); background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transition: opacity 0.5s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { transform: translateY(20px); transition: transform 0.5s ease; }
.portfolio-item:hover .portfolio-overlay h3 { transform: translateY(0); }
.faq-accordion { max-width: 800px; margin: auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 1.2rem; font-weight: 500; font-family: var(--secondary-font); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 0 20px 0; color: var(--grey-text); }

/* --- FOOTER V3 --- */
.footer { background: var(--dark-text); color: #ccc; padding-top: 80px; }
.footer-logo { max-width: 180px; margin-bottom: 20px; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-info p { margin-bottom: 15px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.footer-social { margin-top: 20px; }
.footer-social a { color: var(--light-text); font-size: 1.2rem; margin-right: 15px; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--primary-color); }
.footer-form h3, .footer-form p { margin-bottom: 20px; }
.footer-form input, .footer-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #555; background: #444; color: var(--light-text); border-radius: 5px; font-family: var(--secondary-font); }
.footer-form .btn { width: 100%; }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid #444; font-size: 0.9rem; }

/* --- NOVAS SEÇÕES SEO --- */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--grey-text);
}

.pricing-section { background: var(--secondary-color); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card {
    background: var(--light-text);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.4rem; }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li { padding: 5px 0; color: var(--grey-text); }
.pricing-card li:before { content: "✓"; color: var(--primary-color); font-weight: bold; margin-right: 10px; }

.footer-services, .footer-areas { margin-top: 25px; }
.footer-services h4, .footer-areas h4 { color: var(--light-text); margin-bottom: 15px; font-size: 1.1rem; }
.footer-services ul, .footer-areas ul { list-style: none; }
.footer-services li, .footer-areas li { padding: 3px 0; color: #ccc; font-size: 0.9rem; }

/* Seção dos proprietários */
.owners-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.owner { background: rgba(42, 70, 53, 0.1); padding: 20px; border-radius: 8px; border-left: 4px solid var(--primary-color); }
.owner h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.owner p { color: var(--grey-text); font-size: 0.95rem; }

/* --- ANIMAÇÕES NA ROLAGEM V3 --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

/* Garantir que sempre apareça */
body .whatsapp-float {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-fallback {
    display: none;
    font-size: 30px;
}

/* Mostrar fallback se Font Awesome não carregar */
.whatsapp-float i:not(.fa-whatsapp) + .whatsapp-fallback,
.whatsapp-float:not(:has(i.fa-whatsapp)) .whatsapp-fallback {
    display: block;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
}

/* --- RESPONSIVIDADE V3 --- */
@media (max-width: 900px) {
    /* Mostrar menu hambúrguer e esconder menu desktop */
    .mobile-menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(42, 70, 53, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        padding: 20px;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; align-items: center; padding-top: 50px; }
    .nav-menu a { font-size: 1.2rem; }
    .btn-header { display: none; }

    .about-us-container, .footer-content { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    /* Seção dos proprietários responsiva */
    .owners-info { grid-template-columns: 1fr; gap: 20px; }

    /* Correções para formulário mobile */
    .footer { padding: 60px 0 20px; }
    .footer-content { gap: 40px; }
    .footer-form { padding: 0; }
    .footer-form input, .footer-form textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 15px 12px;
    }
    .footer-form textarea { min-height: 120px; }

    /* Ajustes gerais mobile */
    .container { padding: 0 15px; }
    section { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }

    /* WhatsApp button mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .service-card { padding: 30px 20px; }
    .footer-form input, .footer-form textarea { padding: 12px 10px; }

    /* WhatsApp em telas pequenas */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 10px;
        right: 10px;
    }
}