/* 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; /* 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;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain; /* Ensure icon aspect ratio is maintained */
}

/* Serviços, Vantagens, Etapas Grid Items */
.service-item,
.advantage-item,
.step-item {
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center; /* Center content within the item */
}

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

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

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

.step-item {
    position: relative;
    padding-top: 40px; /* Add padding to make space for the number */
}

.step-item span {
    position: absolute;
    top: -15px; /* Position the number above the item */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color); /* Orange circle */
    color: var(--background-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--background-white); /* White border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

/* Depoimentos */
.testimonials-slider {
    display: flex; /* Use flexbox for slider items */
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to items when scrolling */
    gap: 20px; /* Space between items */
    padding-bottom: 20px; /* Padding for scrollbar */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    scrollbar-width: thin; /* Make scrollbar thinner */
    scrollbar-color: var(--secondary-color) var(--background-light); /* Style scrollbar */
}

/* Style for Webkit browsers (Chrome, Safari) */
.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: 2px solid var(--background-light);
}

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

.testimonial-item .client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color); /* Orange border */
}

.testimonial-item p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 15px;
    flex-grow: 1; /* Allows the text to take up available space */
}

.testimonial-item .client-info h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--primary-color);
}

.testimonial-item .client-info span {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    display: block; /* Ensure it's on a new line */
    margin-bottom: 10px;
}

.testimonial-item .stars {
    color: var(--secondary-color); /* Orange stars */
    font-size: 1.1em;
}

.testimonial-item .stars i {
    margin: 0 2px;
}

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

.blog-post {
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* Hide image overflow */
    display: flex;
    flex-direction: column;
}

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

.blog-post .read-more {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

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

.blog-post h3 {
     padding: 15px 15px 0 15px;
     font-size: 1.4em;
     margin-bottom: 10px;
}

.blog-post p {
    padding: 0 15px 15px 15px;
    color: var(--subtle-text-color);
    flex-grow: 1; /* Allows text to take up space */
}

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

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

.contact-info address {
     margin-bottom: 15px;
     font-style: normal; /* Remove italic for address */
     color: var(--subtle-text-color);
     padding-left: 25px; /* Align address text */
     text-indent: -25px; /* Pull first line back */
}

.contact-info p a {
    color: var(--subtle-text-color); /* Contact links default color */
}

.contact-info p a:hover {
    color: var(--primary-color); /* Contact links hover color */
}

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

.social-links a {
    display: inline-flex; /* Use inline-flex to center icon */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Original Social Icons */
.social-links a i {
     color: var(--background-white); /* Icon color inside the circle */
}

/* Inverted Social Icons */
.social-links a.facebook-icon { background-color: #3b5998; }
.social-links a.instagram-icon { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-links a.linkedin-icon { background-color: #0077b5; }

/* Contact Form */
.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.contact-form button {
    width: auto; /* Button should not take full width */
    margin-top: 10px;
}

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

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

/* Footer */
footer {
    background-color: var(--primary-color); /* Footer background is primary blue */
    color: rgba(255, 255, 255, 0.8); /* Light text color */
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
    text-align: left; /* Align content left within grid items */
}

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

.footer-logo p {
    color: var(--background-white); /* Ensure logo text is white */
    font-weight: bold;
    font-size: 1.2em;
}

.company-details p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8); /* Details text color */
    font-size: 0.95em;
}

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

.company-details a {
     color: rgba(255, 255, 255, 0.8); /* Link color in details */
}

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

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* 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 {
        flex-direction: column;
    }

    .about-image {
        text-align: center; /* Center image on small screens */
    }

    .about-image img {
        width: 80%; /* Adjust image size on smaller screens */
        margin: 0 auto; /* Center image */
    }

    .testimonials-slider {
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto; /* Ensure scrollability */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-item {
        flex: 0 0 80%; /* Make testimonial items take up 80% of container width */
        max-width: 350px; /* Max width for items */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact info and form on small screens */
    }

    .contact-info,
    .contact-form {
        text-align: center; /* Center text in contact section on small screens */
    }

    .contact-info address,
    .contact-info p {
        padding-left: 0; /* Remove left padding */
        text-indent: 0; /* Remove text indent */
    }

     .social-links {
         text-align: center; /* Center social icons */
     }

    .footer-info {
        grid-template-columns: 1fr; /* Stack footer info on small screens */
        text-align: center; /* Center footer content */
    }

    .footer-logo,
    .company-details,
    .footer-links {
         text-align: center; /* Ensure all footer content is centered */
    }
}

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

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

    .section-subtitle {
        font-size: 1em;
    }

    .testimonials-slider {
        gap: 15px;
    }

    .testimonial-item {
        flex: 0 0 90%; /* Make testimonial items take up 90% on very small screens */
    }
}