/* 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;
    /* Add a subtle drop shadow for better visibility on dark background */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

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 {
    max-width: 80px; /* Diminish icon size */
    height: auto;
    display: block;
    margin: 0 auto 15px; /* Center and add space below */
}

.advantages-grid .advantage-item img {
    max-width: 80px; /* Diminish icon size */
    height: auto;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-right: 20px; /* Add space to the right of the icon */
}

.steps-grid .step-item img {
    max-width: 80px; /* Diminish icon size */
    height: auto;
    /* The step-visual flex/center handles positioning */
    margin-bottom: 10px; /* Space between icon and number/heading */
}

/* 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;
}

/* Vantagens Section - Make items flex containers for icon+text side-by-side */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust min-width slightly as content layout changes */
    gap: 30px;
    margin-bottom: 40px;
}

.advantage-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    /* text-align: center; */ /* Removed as flex container will handle alignment */
    display: flex; /* Make the item a flex container */
    flex-direction: row; /* Arrange icon and text side-by-side */
    align-items: flex-start; /* Align items to the top */
}

.advantage-text {
    flex-grow: 1; /* Allow the text container to take up available space */
    text-align: left; /* Align text to the left within this container */
}

.advantage-text h3 {
    margin-top: 0; /* Remove default margin-top */
    margin-bottom: 5px; /* Add space below the heading */
}

.advantage-text p {
    margin-bottom: 0; /* Remove margin below the paragraph if it's the last element */
}

/* 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; /* Centers text content */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally within the column */
}

.step-visual {
    position: relative; /* Needed for positioning the number */
    display: flex;
    flex-direction: column; /* Stack icon and potentially other visual elements */
    align-items: center; /* Centers items horizontally */
    justify-content: center;
    margin-bottom: 20px; /* Space below the icon/number area */
}

.step-visual img {
    max-width: 80px; /* Diminish icon size */
    height: auto;
    margin-bottom: 10px; /* Space between icon and heading */
}

.step-visual span {
    position: absolute; /* Position the number relative to the wrapper */
    top: -15px; /* Adjust to position above or slightly off-center */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: var(--secondary-color); /* Use secondary color (Orange) */
    color: var(--background-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 3px solid var(--background-white); /* Add a white border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optional shadow for emphasis */
    z-index: 1; /* Ensure number is above icon */
}

.step-item h3 {
    margin-top: 0; /* Remove default top margin */
}

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

/* Depoimentos Section */
.testimonials-slider {
    display: flex; /* Use flexbox to lay out testimonial items */
    overflow-x: auto; /* Add horizontal scrolling if needed */
    gap: 20px; /* Space between items */
    padding-bottom: 15px; /* Add padding for scrollbar */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--secondary-color) var(--background-light); /* For Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* 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; /* Prevent items from growing, set base width */
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* For potential future absolute positioning */
}

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

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

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

.client-info span {
    font-size: 0.9em;
    color: var(--subtle-text-color);
    display: block; /* Ensure span is on its own line */
    margin-bottom: 10px;
}

.stars {
    color: gold; /* Or use a color from the palette */
    margin-top: auto; /* Push stars to the bottom if item has flex */
}

.stars .fas {
    font-size: 1em;
}

/* 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; /* Hide overflow for rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; /* Use flexbox for content layout */
    flex-direction: column;
}

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

.blog-post .read-more {
     margin-top: auto; /* Push link to the bottom */
     display: inline-block;
     padding-top: 15px;
     font-weight: bold;
}

.blog-post .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-post .read-more:hover i {
    transform: translateX(5px);
}

.blog-post h3 {
    padding: 20px 20px 0;
    margin-bottom: 10px;
}

.blog-post p {
    padding: 0 20px 20px;
     flex-grow: 1; /* Allows text to take up available space */
}

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

/* Contact Section */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px; /* Allow stacking on small screens */
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color); /* Ensure contact info is clear */
}

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

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

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

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

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

.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: 4px;
    font-family: var(--body-font);
    font-size: 1em;
}

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

.contact-form button.btn-primary {
    width: 100%; /* Make button full width in form */
    padding: 15px;
}

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

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

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

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

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.footer-logo, .company-details, .footer-links {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-logo img {
     max-width: 100px; /* Adjust logo size for footer */
     height: auto;
     margin-bottom: 10px;
     /* Ensure footer logo is visible */
     filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

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

.company-details p {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    font-size: 0.9em;
}

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

.copyright {
    margin-top: 30px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

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

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

    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 100%; /* Full width on small screens */
        margin-top: 20px;
    }

    .contact-grid {
        flex-direction: column;
    }

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

    .footer-logo, .company-details, .footer-links {
        text-align: center;
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width */
        margin-bottom: 20px;
    }
    .footer-links a {
        display: block; /* Stack links vertically */
        margin: 10px 0;
    }
    .testimonials-slider {
        flex-direction: column; /* Stack testimonials on small screens */
        overflow-x: visible; /* Remove horizontal scroll */
        gap: 20px;
        padding-bottom: 0;
    }

    .testimonial-item {
        flex: 0 0 auto; /* Allow item to size based on content */
        width: 100%; /* Take full width */
    }

    .blog-grid {
        grid-template-columns: 1fr; /* Stack blog posts */
    }

    .advantages-grid {
         grid-template-columns: 1fr; /* Stack advantages on small screens */
    }

    .advantage-item {
        flex-direction: column; /* Stack icon and text on small screens */
        align-items: center; /* Center content when stacked */
    }

    .advantages-grid .advantage-item img {
        margin-right: 0; /* Remove right margin when stacked */
        margin-bottom: 15px; /* Add bottom margin when stacked */
    }

    .advantage-text {
        text-align: center; /* Center text when stacked */
    }

    .step-visual {
        flex-direction: column; /* Ensure icon and number stay stacked */
    }
    /* Adjust step-visual img margin for clarity */
     .steps-grid .step-item img {
         margin-bottom: 10px;
     }
}