/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    
}
.page-wrapper {
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Cabin Sketch", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

p{
    font-family: "Onest", sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.293);
    backdrop-filter: blur(10px);
    z-index: 1000;
    
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2E7D32;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2E7D32;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2E7D32;
    
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    
}

/* --- NOVOS ESTILOS PARA O DROPDOWN --- */
.nav-item {
    position: relative;
}

.nav-item.dropdown > a {
    position: relative;
}

.nav-item.dropdown .fa-caret-down {
    margin-left: 5px;
    
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
     /* Remove o deslocamento para baixo */
    /* Anima apenas a opacidade para evitar o 'salto' */
     
}

.nav-item:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    
}

.nav-item:hover .fa-caret-down {
    
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #2E7D32;
}
/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    background-color: #0000005b;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: "Cabin Sketch", sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #FF8F00;
    color: white;
    border-color: #FF8F00;
}

.btn-primary:hover {
    background: transparent;
    color: #FF8F00;
    border-color: #FF8F00;
    
    box-shadow: 0 10px 25px rgba(255, 143, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2E7D32;
    
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem; /* Ajustado para consistência */
    color: #2E7D32;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Sobre Section */
.sobre {
    padding: 5rem 0;
    background: #f8f9fa;
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-text h2, .sobre-text h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.sobre-image .image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Serviços Section */
.servicos {
    padding: 5rem 0;
    background: white;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    border: 1px solid #f0f0f0;
}

.servico-card:hover {
    
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.servico-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2E7D32, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.servico-icon i {
    font-size: 2rem;
    color: white;
}

.servico-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Galeria Section */
.galeria {
    padding: 5rem 0;
    background: white;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    cursor: pointer;
    height: 250px;
}

.galeria-item:hover {
    
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.galeria-item:hover img {
    
}

.galeria-cta {
    text-align: center;
}

/* Page Header (para páginas internas) */
/* Page Header (para páginas internas) - AJUSTADO */
.page-header {
    /* Adicionamos um padding-top para compensar a altura do header fixo */
    padding-top: 120px; /* Aumenta o espaço no topo */
    padding-bottom: 4rem;
    margin-top: 100px;
    background: linear-gradient(135deg, #2E7D32, #1976D2);
    color: white;
    text-align: center;
    position: relative;
    display: flex; /* Adicionado para facilitar o alinhamento */
    align-items: center; /* Adicionado para centralizar verticalmente */
    justify-content: center; /* Adicionado para centralizar horizontalmente */
    min-height: 40vh; /* Garante uma altura mínima para a seção */
}

.page-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Opcional: Adiciona um escurecimento para melhorar a legibilidade do texto */
    background-color: rgba(0, 0, 0, 0.3); 
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* CTA Buttons (para páginas internas) */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-buttons .btn-secondary {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #333;
}

.cta-buttons .btn-secondary:hover {
    background-color: #ddd;
    border-color: #ddd;
    color: #000;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: #2E7D32;
}

.footer-section h4 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    
}

.footer-section ul li a:hover {
    color: #2E7D32;
}

.footer-section p {
    color: #ccc;
}

.footer-section i {
    color: #2E7D32;
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        
    }
    to {
        opacity: 1;
        
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        
    }

    .hamburger.active .bar:nth-child(3) {
        
    }
    
    /* Estilos Responsivos para o Dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(240, 240, 240, 0.8);
        backdrop-filter: blur(5px);
        padding-left: 1.5rem;
        opacity: 1;
        visibility: visible;
        
        border-radius: 0;
        width: 100%;
        margin-top: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-item:hover > .dropdown-menu {
        display: none;
    }

    .nav-item.dropdown-open > .dropdown-menu {
        display: block;
    }
    
    .nav-item.dropdown-open .fa-caret-down {
        
    }

    .dropdown-menu li a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sobre-image {
        order: -1; /* Move a imagem para cima em telas menores */
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 90%;
        justify-content: center;
    }
    
    .cta-buttons .btn {
        width: auto; /* Restaura o botão de CTA para o tamanho normal */
    }
}
