:root {
    --primary-color: #2e7d32;
    --secondary-color: #43a047;
    --accent-color: #66bb6a;

    --dark-green: #1b5e20;
    --light-green: #e8f5e9;

    --text-color: #2d2d2d;
    --light-bg: #f6fbf6;
    --white: #ffffff;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===========================
   HEADER
=========================== */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 60px;
    height: auto;
    max-width: 100%;
}

.logo span {
    font-size: 1.25rem;
    font-weight: bold;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

.nav-list li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.btn-header {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-header:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 90, 61, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

/* ===========================
   HERO
=========================== */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(61, 90, 61, 0.7), rgba(107, 142, 107, 0.7)),
                url('assets/hero.jpg') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(163, 193, 173, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===========================
   BOTÕES
=========================== */
.btn {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(61, 90, 61, 0.3);
}

/* ===========================
   ESTATÍSTICAS
=========================== */
.stats-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--light-green), var(--white));
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(61, 90, 61, 0.15);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ===========================
   CARROSSEL — RESPONSIVO
=========================== */
.mudas-section {
    padding: 5rem 5%;
    background-color: var(--light-bg);
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

/* O container ocupa largura total e define a altura via aspect-ratio */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 4rem; /* espaço para os controles */
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* A lista desliza horizontalmente; cada slide tem a mesma largura do wrapper */
.carousel-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cada slide ocupa exatamente 100% da largura do wrapper */
.slide-item {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;   /* quadrado — ajuste para 4/3 ou 16/9 se preferir */
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
    cursor: pointer;
    position: relative;
}

.slide-item:not(.active) {
    transform: scale(0.98) rotateX(4deg);
}

.slide-card {
    position: absolute;
    inset: 0;
    background: #1D1F2F;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Imagem cobre 100% do card, sem transbordar */
.slide-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

.slide-item.active .slide-image {
    transform: scale(1.03);
}

.slide-item:not(.active) .slide-image {
    opacity: 0.55;
}

/* Gradiente por cima da imagem para legibilidade do texto */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s;
}

.slide-item.active .slide-overlay {
    opacity: 1;
}

/* Conteúdo ancorado na base da imagem */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s, visibility 0.6s;
    transform: translateY(6px);
}

.slide-item.active .slide-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.slide-description {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    margin-bottom: 1rem;
    opacity: 0.92;
}

.slide-btn {
    padding: 0.6rem 1.4rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Controles do carrossel */
.carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.control-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(61, 90, 61, 0.3);
}

.control-btn.prev {
    transform: rotate(180deg);
}

.control-btn.prev:hover {
    transform: rotate(180deg) translateY(-2px);
}

/* ===========================
   SERVIÇOS
=========================== */
.services-section {
    padding: 5rem 5%;
    background-color: var(--white);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(61, 90, 61, 0.15);
    background-color: var(--white);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ===========================
   SOBRE
=========================== */
.about-section {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    background-color: var(--light-bg);
}

.about-image {
    flex: 1;
    min-width: 280px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content {
    flex: 1;
    min-width: 280px;
}

.about-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.text-generate-effect {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.text-generate-effect p {
    margin-bottom: 1.5rem;
}

.word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease, filter 0.5s ease;
    white-space: pre;
}

.word.visible {
    opacity: 1;
    filter: blur(0);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===========================
   DEPOIMENTOS
=========================== */
.testimonials-section {
    padding: 5rem 5%;
    background-color: var(--white);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(61, 90, 61, 0.15);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ===========================
   INSTAGRAM / NEWSLETTER
=========================== */
.newsletter-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   CONTATO
=========================== */
.contact-section {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-group {
    margin-bottom: 2rem;
}

.info-group h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.info-group p {
    color: var(--text-color);
}

.map-container {
    margin-top: 2rem;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================
   SOCIAL HOVER
=========================== */
.social-links-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 1rem;
}

.social-item {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    transition: opacity 0.2s ease;
}

.social-links-container.has-hover .social-item:not(.is-hovered) {
    opacity: 0.5;
}

.social-name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
    color: var(--text-color);
}

.social-preview-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.social-preview-image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    border-radius: 0;
    transform: translateY(-40px);
    opacity: 0;
    filter: blur(2px);
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.social-item.is-hovered .social-preview-image {
    transform: translateY(-50px);
    opacity: 1;
    filter: blur(0);
}

/* ===========================
   FOOTER
=========================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 3%;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        width: 40px;
    }

    .logo span {
        font-size: 1rem;
    }

    .about-section {
        flex-direction: column;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .contact-info {
        text-align: center;
    }

    .social-links-container {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Carrossel: quadrado quase cheio em tablet */
    .carousel-container {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .btn-header {
        display: none;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 3rem 3%;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 1.5rem;
    }

    .map-container {
        height: 220px;
    }

    /* Carrossel: quase tela cheia em mobile */
    .carousel-container {
        max-width: 95vw;
    }

    .slide-content {
        padding: 1rem;
    }
}