/* Paleta de Colores: */
/* --primary-color: Verde Escuro Profissional (#0A6A3A); */
/* --secondary-color: Laranja Vibrante (#FF8C00); */
/* --accent-color: Vermelho Muted (#C0392B) - Usado para detalles/hover se apropriado; */
/* --text-color: Cinza Escuro (#333); */
/* --subtle-text-color: Cinza Médio (#666); */
/* --background-light: Cinza Claro (#F8F8F8); */
/* --background-white: Branco (#FFFFFF); */
/* --border-color: Cinza para bordas (#DDD); */

:root {
    --primary-color: #0A6A3A; /* Verde Escuro Profissional */
    --secondary-color: #FF8C00; /* Laranja Vibrante */
    --accent-color: #C0392B; /* Vermelho Muted (considerar uso cuidadoso) */
    --text-color: #333; /* Cinza Escuro */
    --subtle-text-color: #666; /* Cinza Médio */
    --background-light: #F8F8F8; /* Cinza Claro */
    --background-white: #FFFFFF; /* Branco */
    --border-color: #DDD; /* Cinza para bordas */

    /* Tipografia: */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-white);
}

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

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color); /* Headings use primary color (Green) */
    line-height: 1.2;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--subtle-text-color);
}

a {
    color: var(--primary-color); /* Links use primary color (Green) */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color); /* Link hover uses secondary color (Orange) */
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color); /* Primary button uses secondary color (Orange) */
    color: var(--background-white); /* Text color on primary button */
}

.btn-primary:hover {
    background-color: #e67e00; /* Manual darken for Orange */
    color: var(--background-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* Secondary button text uses primary color (Green) */
    border: 2px solid var(--primary-color); /* Secondary button border uses primary color (Green) */
}

.btn-secondary:hover {
     background-color: var(--primary-color); /* Secondary button hover background uses primary color (Green) */
     color: var(--background-white); /* Secondary button hover text color */
}

/* Header */
header {
    /* Use primary color (Green) overlay on hero background */
    background: linear-gradient(rgba(10, 106, 58, 0.8), rgba(10, 106, 58, 0.8)), url('hero-background.png') no-repeat center center/cover;
    color: var(--background-white);
    padding: 80px 0;
    text-align: center;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

header .logo img {
    max-width: 120px; /* Adjusted: Decreased from 150px */
    height: auto;
}

header h1 {
    color: var(--background-white);
    font-size: 1.5em;
    margin-bottom: 5px;
}

.hero-content h2 {
     color: var(--background-white);
     font-size: 3em;
     margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
}

/* Seções Gerais */
section {
    padding: 60px 0;
}

.bg-light-grey {
    background-color: var(--background-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--subtle-text-color);
    margin-top: -15px;
    margin-bottom: 40px;
}

/* Sobre a Empresa */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Center image on smaller screens */
}

.about-image img {
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    border-radius: 8px; /* Optional: add some rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: add shadow */
    /* Rule to decrease image size */
    width: 70%; /* Adjusted: Decreased from 80% */
    height: auto;
    display: inline-block; /* Allows margin auto for centering */
}

/* Serviços, Vantagens, Etapas Icons */
.services-grid img,
.advantages-grid img,
.steps-grid img {
    /* Rule to decrease icon size */
    width: 50px; /* Adjusted: Decreased from 60px */
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain; /* Ensure icon aspect ratio is maintained */
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Vantagens */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Etapas */
.steps-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 30px;
     text-align: center;
     margin-bottom: 40px;
}

.step-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; /* Needed for absolute positioning of number */
    padding-top: 60px; /* Add space for the number */
}

.step-item span {
     display: block;
     width: 40px;
     height: 40px;
     background-color: var(--secondary-color); /* Orange circle */
     color: var(--background-white);
     border-radius: 50%;
     font-size: 1.5em;
     font-weight: bold;
     line-height: 40px; /* Vertically center text */
     text-align: center;
     margin: 0 auto 20px; /* Center the circle */
     /* Optional: Absolute positioning */
     position: absolute;
     top: -20px; /* Position above the box */
     left: 50%;
     transform: translateX(-50%);
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Depoimentos */
.testimonials-slider {
    display: flex; /* Arrange items in a row */
    overflow-x: auto; /* Enable horizontal scrolling if items exceed container width */
    scroll-snap-type: x mandatory; /* Optional: For smoother snapping */
    gap: 30px; /* Space between testimonials */
    padding-bottom: 20px; /* Add some padding below for scrollbar visibility */
    margin-bottom: 30px;
}

.testimonial-item {
    flex: 0 0 300px; /* Fixed width for each testimonial, prevents shrinking */
    scroll-snap-align: start; /* Snap to the start of each item */
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-item .client-photo {
    /* Rule to decrease testimonial image size */
    width: 80px; /* Adjusted: Decreased size */
    height: 80px; /* Adjusted: Decreased size */
    border-radius: 50%; /* Make image round */
    object-fit: cover; /* Ensure image covers the circle without distortion */
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color); /* Add a border */
}

.testimonial-item p {
    font-style: italic;
    color: var(--text-color); /* Use darker text color for quotes */
    margin-bottom: 20px;
}

.testimonial-item .client-info h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color); /* Use primary color for name */
}

.testimonial-item .client-info span {
    display: block;
    font-size: 0.9em;
    color: var(--subtle-text-color); /* Use subtle text color for title/location */
    margin-bottom: 10px;
}

.testimonial-item .stars i {
    color: #FFD700; /* Gold color for stars */
    margin: 0 2px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* Ensures image corners are rounded with the container */
    display: flex; /* Use flexbox to arrange image and content */
    flex-direction: column; /* Stack image and content vertically */
}

.blog-post img {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover; /* Ensure images cover the area without distortion */
}

.blog-post .read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.blog-post .read-more i {
    margin-left: 5px;
}

.blog-post h3 {
    padding: 0 20px;
    margin-top: 15px;
}

.blog-post p {
     padding: 0 20px;
}

.blog-post .read-more {
     padding: 0 20px 20px; /* Add padding bottom */
}

/* CTA Sections */
.cta-services,
.cta-steps,
.cta-blog {
    text-align: center;
    margin-top: 30px;
}

.cta-services p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Contato */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color); /* Use darker text color for info */
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color); /* Icons use primary color */
}

.contact-info a {
     color: var(--text-color); /* Contact links use darker text color */
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color); /* Social icons background is primary color */
    color: var(--background-white); /* Social icons color is white */
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links .linkedin-icon,
.social-links .instagram-icon,
.social-links .facebook-icon { 
    background-color: var(--background-white); /* White background */
    color: var(--primary-color); /* Primary green icon color */
}

.social-links a:hover {
    background-color: var(--secondary-color); /* Social icons hover background is secondary color */
    color: var(--background-white); /* Social icons hover color is white */
}

.contact-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color); /* Label text uses primary color */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color); /* Border color for form inputs */
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--body-font);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color); /* Highlight color on focus is secondary color */
    outline: none;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.3); /* Shadow color matches secondary color */
}

textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form button {
    width: 100%; /* Make submit button full width */
}

.google-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* Ensures map corners are rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.google-map iframe {
    display: block; /* Remove extra space below iframe */
}

/* Rodapé */
footer {
    background-color: var(--primary-color); /* Footer background is primary color */
    color: var(--background-white);
    padding: 40px 0 20px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: space-around; /* Distribute space */
    gap: 30px; /* Space between footer columns */
    width: 100%; /* Take full width */
    margin-bottom: 30px;
    text-align: left; /* Align text left within each column */
}

.footer-logo {
    flex: 1; /* Allow logo section to grow */
    min-width: 200px; /* Minimum width for logo column */
    text-align: center; /* Center logo and text */
}

.footer-logo img {
    max-width: 150px; /* Keep logo size reasonable */
    height: auto;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--background-white);
    font-weight: bold;
    margin: 0;
}

.company-details {
    flex: 2; /* Allow company details section to grow more */
    min-width: 250px; /* Minimum width for details column */
}

.company-details p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    font-size: 0.95em;
}

.company-details a {
    color: rgba(255, 255, 255, 0.9);
}

.company-details a:hover {
     color: var(--secondary-color); /* Highlight color on hover */
}

.footer-links {
    flex: 1; /* Allow links section to grow */
    min-width: 150px; /* Minimum width for links column */
    display: flex;
    flex-direction: column; /* Stack links vertically */
    gap: 10px; /* Space between links */
    text-align: center; /* Center links */
}

.footer-links a {
    color: var(--background-white);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color); /* Highlight color on hover */
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7); /* More transparent white for copyright */
}

/* Responsividade */
@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: -1; /* Move image above text on small screens */
        margin-bottom: 20px;
    }

     .about-image img {
         width: 90%; /* Increase image size slightly on smaller screens */
     }

    .services-grid,
    .advantages-grid,
    .steps-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

     .step-item span {
         position: static; /* Revert to static positioning */
         transform: none;
         margin-bottom: 15px; /* Add bottom margin */
         display: inline-block; /* Center inline block */
     }

     .step-item {
         padding-top: 30px; /* Adjust padding */
     }

    .contact-form button {
        width: auto; /* Auto width for button in form */
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        text-align: center; /* Center align footer items */
    }

     .footer-logo, .company-details, .footer-links {
         min-width: auto; /* Remove min-width constraint */
         width: 100%; /* Allow full width */
     }

     .footer-links {
         margin-top: 20px; /* Add space above links */
     }
}

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

    h2 {
        font-size: 1.8em;
    }

     .hero-content h2 {
         font-size: 2em;
     }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    section {
        padding: 40px 0;
    }

     .section-subtitle {
         font-size: 1em;
         margin-bottom: 30px;
     }

     .service-item, .advantage-item, .step-item, .testimonial-item, .blog-post, .contact-form {
         padding: 20px; /* Decrease padding */
     }

     .services-grid img,
     .advantages-grid img,
     .steps-grid img {
         width: 40px; /* Further decrease icon size */
         height: 40px;
     }

     .testimonial-item .client-photo {
         width: 60px; /* Further decrease testimonial photo size */
         height: 60px;
     }

     .blog-post img {
         height: 150px; /* Decrease blog image height */
     }

     .contact-info p {
         font-size: 0.9em;
     }

      .social-links a {
          width: 35px;
          height: 35px;
          line-height: 35px;
          font-size: 0.9em;
          margin-right: 8px;
      }
}