/* Paleta de Colores: */
/* --primary-color: Azul Profissional (#1A5276); */
/* --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: #1A5276; /* Azul 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 (Blue) */
    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 (Blue) */
    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 (Blue) */
    border: 2px solid var(--primary-color); /* Secondary button border uses primary color (Blue) */
}

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

/* Header */
header {
    /* Use primary color (Blue) overlay on hero background */
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 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;
    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%;
    height: auto;
    display: inline-block;
}

/* Icons in Services, Advantages, Steps */
.services-grid .service-item img,
.advantages-grid .advantage-item img,
.steps-grid .step-item img {
    max-width: 80px; /* Diminish icon size */
    height: auto;
    display: block;
    margin: 0 auto 15px; /* Center and add space below */
}

/* Services Section */
.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 4px 10px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.cta-services {
    text-align: center;
    margin-top: 20px;
}

.cta-services p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 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);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.advantage-item h3 {
     color: var(--primary-color);
     margin-top: 0;
}

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

.step-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);
    position: relative; /* Needed for positioning the number */
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-item span {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: var(--background-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid var(--background-white); /* Add border for visibility */
}

.step-item h3 {
     color: var(--primary-color);
     margin-top: 0;
}

.cta-steps {
     text-align: center;
     margin-top: 20px;
}

/* Testimonials Section */
.testimonials-slider {
    display: flex; /* Flexbox for slider items */
    overflow-x: auto; /* Enable horizontal scrolling if items overflow */
    scroll-snap-type: x mandatory; /* Snap to items */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    gap: 20px; /* Space between testimonials */
    padding-bottom: 20px; /* Add padding for scrollbar visibility */
}

.testimonial-item {
    flex: 0 0 300px; /* Fixed width for each item, adjust as needed */
    scroll-snap-align: start; /* Align items to the start of the scroll area */
    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 {
     width: 100px; /* Reduced image size */
     height: 100px; /* Reduced image size */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
     border: 3px solid var(--secondary-color); /* Add a border */
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

.testimonial-item .client-info h4 {
    margin-bottom: 5px;
     color: var(--primary-color);
}

.testimonial-item .client-info span {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    display: block; /* Ensures name and location are on separate lines */
    margin-bottom: 10px;
}

.testimonial-item .stars i {
    color: gold; /* Or a brand-consistent color like secondary-color */
    margin: 0 2px;
}


/* Blog Section */
.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;
    overflow: hidden; /* Ensures image corners are rounded with the card */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

.blog-post:hover {
     transform: translateY(-5px);
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.blog-post .content {
    padding: 20px;
    flex-grow: 1; /* Allows content area to fill space */
    display: flex;
    flex-direction: column;
}

.blog-post h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.blog-post p {
    flex-grow: 1; /* Allows paragraph to push "Ler Mais" link down */
}

.blog-post .read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color); /* Use secondary color for read more link */
}

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

.cta-blog {
    text-align: center;
    margin-top: 20px;
}

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

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

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

.contact-info address {
     font-style: normal; /* Remove default italic style */
    margin-bottom: 10px;
     color: var(--text-color);
}

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

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

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

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--primary-color); /* Social icons use primary color */
     transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
     color: var(--secondary-color); /* Social icon hover uses secondary color */
     transform: translateY(-3px); /* Slight lift effect on hover */
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
     color: var(--primary-color);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
     color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1em;
    color: var(--text-color);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form button {
    width: auto; /* Override default button full width */
    display: block; /* Make button take its own line */
    margin-top: 20px;
}

.google-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.google-map iframe {
    border: 0;
    width: 100%;
    height: 450px; /* Fixed height for the map */
}

/* Footer */
footer {
    background-color: var(--primary-color); /* Footer background is primary color */
    color: rgba(255, 255, 255, 0.9); /* White text with slight transparency */
    padding: 40px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Space between columns */
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    flex: 1; /* Allows footer info to take up space */
}

.footer-logo {
    flex: 0 0 auto; /* Don't grow or shrink */
    text-align: center; /* Center logo and text */
    margin-right: 30px; /* Space after logo */
}

.footer-logo img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.company-details {
    flex: 1 1 250px; /* Allow growing/shrinking, base width 250px */
}

.company-details p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.company-details p strong {
    color: var(--background-white);
}

.footer-links {
    flex: 0 0 auto; /* Don't grow or shrink */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
     color: rgba(255, 255, 255, 0.8); /* Link color in footer */
     font-weight: bold;
}

.footer-links a:hover {
     color: var(--secondary-color); /* Link hover color in footer */
     text-decoration: underline;
}

.copyright {
    width: 100%; /* Ensure copyright spans full width */
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
     color: rgba(255, 255, 255, 0.7);
}


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

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

    .hero-content p {
        font-size: 1em;
    }

    .about-content,
    .contact-grid {
        flex-direction: column;
        gap: 40px;
    }

     .about-image img {
         width: 80%; /* Slightly increase image size on smaller screens */
     }

    .services-grid,
    .advantages-grid,
    .steps-grid,
    .blog-grid {
         grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust min width */
        gap: 20px;
    }

    .testimonial-item {
        flex-basis: 280px; /* Adjust testimonial item width */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

     .footer-logo {
         margin-right: 0;
     }

    .company-details,
    .footer-links {
        text-align: center;
         flex-basis: auto; /* Allow these to shrink/grow as needed */
         width: 100%; /* Take full width */
    }

    .footer-links {
        flex-direction: row; /* Row direction for small screen links */
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

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

    .hero-content p {
        font-size: 0.9em;
    }

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

     .about-image img {
         width: 90%; /* Further increase image size on very small screens */
     }

    .service-item, .advantage-item, .step-item, .testimonial-item, .blog-post {
        padding: 20px;
    }

     .service-item h3, .advantage-item h3, .step-item h3 {
         font-size: 1.5em;
     }

    .testimonial-item {
        flex-basis: 250px; /* Further adjust testimonial width */
    }

    .social-links a {
        font-size: 1.3em;
        margin: 0 8px;
    }
}