* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #172a1d;
    --accent-green: #4a7c59;
    --light-green: #e8f5e8;
    --dark-gray: #2c2c2c;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --black: #000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
nav {
    background: var(--white);
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--light-green);
}

/* Hero Section */
.hero {
    background: var(--light-gray);
    color: var(--black);
    padding: 0 0 1.875rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-green);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact {
    padding: 5rem 0;
    background: var(--light-gray);
    color: var(--black);
}

.contact-content {
    width: 50%;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.contact-form h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent-green);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    align-items: stretch;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: var(--black);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@media (max-width: 830px) {
    nav {
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
        gap: 6px;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 2rem;
        background: none;
        border: none;
        color: #0074c8;
        z-index: 1100;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: var(--light-gray);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        font-size: 1.2rem;
    }

    .nav-links.active {
        display: flex !important;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        color: #222;
        border: none;
        background: none;
    }
    .nav-links a[style*="border-bottom"] {
        color: #0074c8;
        border-bottom: 2px solid #0074c8;
    }
    .social-icons {
        display: none !important;
    }

    .social-icons {
        display: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .services,
    .gallery,
    .about,
    .contact {
        padding: 2rem 0;
    }

    .services-grid,
    .gallery-grid,
    .about-content,
    .about-stats,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card,
    .gallery-item,
    .stat,
    .contact-item {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .gallery-item img,
    #carousel-images img {
        height: 120px;
    }

    #carousel {
        height: 120px;
    }

    .about-text h2,
    .contact h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .contact-content {
        width: 100%;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    footer .container {
        flex-direction: column;
        align-items: center !important;
        gap: 1rem;
    }

    footer img {
        height: 6rem !important;
    }

    footer iframe {
        width: 100%;
        height: 120px;
    }
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent-green);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hidden sections for navigation */
.section {
    display: none;
}

.section.active {
    display: block;
}

#home.active {
    display: block;
}

.img-servicos{
    height: 12rem;
}

#carousel {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

#carousel-images img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsivo para telas menores */
@media (max-width: 480px) {
    #carousel {
        height: 220px !important;
    }
    #carousel-images img {
        height: 220px;
    }

    .img-sobre{
        width: 18rem !important;
    }
}

.icon-img{
    width: 2rem;
}

.img-sobre{
   width: 21rem; 
   margin: 0 0 1rem;
}