/* ------------------- */
/* Reset e Variáveis   */
/* ------------------- */
:root {
    --primary-color: #8DBC4F; /* Verde amigável */
    --secondary-color: #795548; /* Marrom aconchegante */
    --background-color: #ffffff; /* Fundo branco */
    --surface-color: #f9f9f9; /* Cor de superfície para seções */
    --text-color: #3d3d3d; /* Cor principal do texto */
    --light-text-color: #ffffff; /* Cor de texto para fundos escuros */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
} 
.img-redonda {
    width: 150px;       /* largura da imagem */
    height: 150px;      /* altura da imagem (mesma da largura) */
    object-fit: cover;  /* garante que a imagem preencha sem distorcer */
    border-radius: 50%; /* deixa a imagem perfeitamente circular */
}
/* ------------------- */
/* Cabeçalho e Navegação */
/* ------------------- */
.main-header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #79a342;
    transform: translateY(-2px);
}

/* Menu Hambúrguer (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* ------------------- */
/* Seção Hero          */
/* ------------------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),  url('imagens/entrada.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 80vh;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
    background-color: #79a342;
    transform: translateY(-3px);
}

/* ------------------- */
/* Estilos de Seção    */
/* ------------------- */
.services-section, .about-section, .contact-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section, .contact-section {
    text-align: center;
}

.services-section {
    background-color: var(--surface-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.service-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Seção Sobre */
.about-section .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    width: 50%;
}

/* ------------------- */
/* Estilos do Carrossel*/
/* ------------------- */
.carousel {
    width: 50%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Seção Contato */
.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ------------------- */
/* Rodapé              */
/* ------------------- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ------------------- */
/* Responsividade      */
/* ------------------- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .about-section .about-content {
        flex-direction: column;
    }
    .carousel, .about-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; /* Esconde o menu fora da tela */
        top: 70px; /* Altura do cabeçalho */
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0; /* Mostra o menu */
    }

    .hamburger {
        display: block;
    }

    /* Animação do ícone Hambúrguer para "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cta-button {
        display: none; /* Opcional: esconder o CTA principal no mobile */
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
    }
}