/* Estilos gerais */
body {
    font-family: 'Nunito Sans', sans-serif; /* Apply Nunito Sans font to the entire body */
    margin: 0;
    padding: 0;
}

.top-bar {
    background-color: #007bff;
    color: white;
    padding: 5px 0; /* Changed horizontal padding to 0 */
    text-align: right;
    font-size: 0.9em;
}

.top-bar span {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.navbar {
    background-color: #ffffff; /* White background for the navbar */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: relative; /* Needed for z-index to work */
    z-index: 1001; /* Ensure it's above the menu wrapper */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    height: 70px; /* Increased logo height */
}

.logo-link {
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    /* font-weight: bold; */ /* Removed bold */
    margin-left: 25px;
    padding-bottom: 5px; /* Added padding for the border */
    border-bottom: 2px solid transparent; /* Initial transparent border */
    transition: color 0.3s ease, border-color 0.3s ease; /* Smooth transition for color and border */
}

.nav-links a:hover {
    color: #007bff;
    border-color: #007bff; /* Border color on hover */
}

.banner-slider {
    background-color: #f8f8f8; /* Slightly darker white background */
    /* padding: 20px 0; */ /* Removed vertical padding */
    /* margin-bottom: 20px; */ /* Removed space below the banner */
}

.banner-slider .container {
    position: relative; /* Establish positioning context for absolute children */
    height: 400px; /* Set a fixed height for the banner area, adjust as needed */
    
}

.banner-img {
    position: absolute; /* Position images on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cover the entire area, cropping if necessary */
    opacity: 0; /* Initially hide all images */
    transition: opacity 1s ease-in-out; /* Smooth transition for opacity */
}

.banner-img.active {
    opacity: 1; /* Show the active image */
}

.results-bar {
    background-color: #007bff;
    color: white;
    padding: 20px 0; /* Vertical padding for the full-width bar */
    margin-bottom: 20px; /* Space below this section */
}

.results-bar .container {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Distribute items with space between */
    gap: 20px; /* Space between elements */
}

.results-bar .checkbox-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 60px; /* Increased width for SVG */
    height: 60px; /* Increased height for SVG */
    display: flex; /* Use flexbox to center the SVG content */
    justify-content: center;
    align-items: center;
}

.results-bar .results-text {
    flex-grow: 1; /* Allow text to take available space */
}

.results-bar .results-text h3 {
    margin: 0; /* Remove default margin */
    font-size: 1.5em;
}

.results-bar .results-text p {
    margin: 5px 0 0 0; /* Adjust margin for paragraph */
    font-size: 0.9em;
}

.results-bar .results-button {
    font-family: 'Nunito Sans', sans-serif;
    background-color: white;
    color: black;
    border: none;
    border-radius: 2rem; /* Border radius as requested (2xl) */
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
    flex-shrink: 0; /* Prevent button from shrinking */
    display: flex; /* Use flexbox to align content */
    align-items: center; /* Vertically center items */
    gap: 5px; /* Space between text and SVG */
    text-decoration: none;
}

.results-bar .results-button:hover {
    background-color: #e0e0e0; /* Slightly darker white on hover */
    transform: scale(1.05); /* Slight scale effect on hover */
}

.results-bar .results-button svg {
    width: 20px; /* Smaller width for SVG */
    height: 20px; /* Smaller height for SVG */
}

.cards-section {
    padding: 40px 0; /* Vertical padding for the section */
    background-color: #ffffff; /* White background for the section */
}

.cards-section .container {
    display: flex;
    justify-content: center; /* Center the cards horizontally */
    gap: 20px; /* Space between cards */
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.card {
    background-color: #fcfcfc; /* Lighter white background */
    border-radius: 1rem; /* Border radius for cards */
    padding: 20px;
    flex: 1; /* Allow cards to grow and shrink */
    max-width: 30%; /* Limit card width to allow 3 per row */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    text-align: left; /* Align content inside cards to the left */
}

.card:hover {
    transform: scale(1.01); /* Scale up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly larger shadow on hover */
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content horizontally to the left within the wrapper */
    gap: 10px; /* Space between SVG and title */
    margin-bottom: 10px; /* Space below the title wrapper */
}

.card-title-wrapper svg {
    width: 30px; /* Adjust SVG size within the card */
    height: 30px;
    flex-shrink: 0;
    vertical-align: middle; /* Align SVG vertically */
}

.card-title-wrapper h2 {
    margin: 0 !important; /* Remove default margin from h2 */
    padding: 0 !important; /* Remove default padding from h2 */
    font-size: 1.3em;
    color: #3b3b3b;
    line-height: 1; /* Ensure consistent line height */
}

.card-link {
    display: inline-flex; /* Use flexbox for text and SVG alignment */
    align-items: center;
    text-decoration: none;
    color: #007bff; /* Link color */
    font-weight: bold;
    margin-top: 15px; /* Space above the link */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.card-link svg {
    width: 20px; /* Adjust SVG size */
    height: 20px;
    margin-left: 5px; /* Space between text and SVG */
    transition: transform 0.3s ease; /* Smooth transition for SVG movement */
}

.card-link:hover {
    transform: translateX(5px); /* Move the entire link slightly to the right on hover */
}

.card-link:hover svg {
    transform: translateX(5px); /* Move the SVG further to the right on hover */
}

.main-footer {
    background-color: #343a40; /* New background color */
    color: #e0e0e0; /* Slightly grayer white text color */
    padding: 40px 0; /* Vertical padding */
    font-family: 'Nunito Sans', sans-serif; /* Ensure font is applied */
}

.main-footer .container {
    display: flex;
    justify-content: space-around; /* Distribute columns with space */
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    gap: 30px; /* Space between columns */
}

.footer-column {
    flex: 1; /* Allow columns to grow and shrink */
    min-width: 250px; /* Minimum width for columns before wrapping */
    text-align: center; /* Center content within each column */
}

.footer-column h3 {
    font-size: 1.1em; /* Slightly smaller font size */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0; /* Use border-bottom instead of text-decoration */
    padding-bottom: 5px; /* Space between title and border */
    display: inline-block; /* Needed for border-bottom to wrap content */
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.85em; /* Slightly smaller font size */
}

.copyright-notice {
    text-align: center;
    font-size: 0.75em; /* Small font size */
    padding-top: 20px; /* Space above the copyright notice */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    margin-top: 20px; /* Space between columns and copyright */
}

.copyright-notice p {
    margin: 0; /* Remove default paragraph margin */
}

.menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 997; /* Below the modal but above other content */
}

.menu-overlay.active {
    display: block; /* Show when active */
}

@media (max-width: 1024px) {
    .top-bar .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px 0;
    }

    .top-bar-link,
    .top-bar span {
        margin: 5px 0;
        justify-content: center; /* Center icon and text within the link/span */
    }
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000; /* Ensure it's above other content */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Adjust navbar container for hamburger on small screens */
@media (max-width: 1024px) {
    /* Responsive Banner for Mobile */
    .banner-slider .container {
        height: auto; /* Let the content define the height */
    }
    .banner-img {
        position: static; /* Take image out of absolute positioning flow */
        height: auto;     /* Respect the image's aspect ratio */
        object-fit: unset; /* Remove the 'cover' behavior */
        display: none;    /* Hide all banners by default */
    }
    .banner-img.active {
        display: block;   /* Show only the active one */
    }

    .navbar .container {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between; /* Space between logo and hamburger */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on small screens */
    }

    .nav-links-wrapper {
        display: none; /* Hidden by default */
        position: fixed; /* Fixed position to cover the screen */
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for true centering */
        width: 90%; /* 90% width */
        max-width: 400px; /* Max width for modal */
        height: auto; /* Height adjusts to content */
        max-height: 90vh; /* Max height to prevent overflow */
        background-color: #ffffff; /* Solid white background for the modal */
        border-radius: 1rem; /* Rounded corners for modal */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Modal shadow */
        z-index: 998; /* Below hamburger button but above other content */
        flex-direction: column; /* Stack links vertically */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        overflow-y: auto; /* Allow scrolling if content overflows */
        padding: 20px; /* Padding inside the modal */
    }

    .nav-links-wrapper.active {
        display: flex; /* Show when active */
    }

    .nav-links {
        display: flex; /* Make it a flex container */
        flex-direction: column; /* Stack links */
        width: 100%;
    }

    .nav-links a {
        margin: 10px 20px; /* Adjust margin for stacked links */
        text-align: center; /* Center text in dropdown */
    }

    .cards-section .container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards horizontally */
    }

    .card {
        max-width: 90%; /* Make cards take almost full width */
        margin-bottom: 20px; /* Add space between stacked cards */
    }

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

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

    .certificacoes-image-column {
        flex-direction: column !important;
        align-items: center;
    }

    .certificacoes-image-column .certificado-img {
        max-width: 60%;
    }

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

@media (max-width: 480px) {
    .results-bar .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within the container */
    }

    .results-bar .results-text {
        text-align: center; /* Ensure text is centered */
    }

    .results-bar .results-button {
        width: 100%; /* Make button take full width */
        max-width: 200px; /* Limit button width */
        margin-top: 15px; /* Space above the button */
        justify-content: center; /* Center content horizontally within the button */
    }
}

/* Standard Page Title */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 40px 0;
    color: #007bff;
}

/* Convenios Page */
.convenios-main {
    padding: 4rem 0;
}

.convenios-subtitle {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.convenios-text {
    text-align: left;
    margin-bottom: 2rem;
    max-width: 800px;
}

.convenios-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.convenio-logo {
    max-height: 300px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.convenio-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Servicos Page */
.servicos-main {
    padding: 4rem 0;
}

.servicos-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

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

.servicos-image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.servicos-image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.servicos-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.servicos-text-column p {
    font-size: 0.9rem;
}

/* Certificacoes Page */
.certificacoes-main {
    padding: 4rem 0;
}

.certificacoes-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

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

.certificacoes-image-column {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.certificado-img {
    max-width: 50%;
    height: auto;
}

.certificacoes-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Contato Page */
.contato-main {
    padding: 4rem 0;
}

.contato-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contato-info-column,
.contato-form-column {
    flex: 1;
    min-width: 300px;
}

.contato-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Add this */
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23888%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.form-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Honeypot field for security */
.honeypot {
    position: absolute;
    left: -5000px;
    top: -5000px;
}

/* Popup messages */
.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, bottom 0.5s ease;
    z-index: 10000;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.popup.success {
    background-color: #28a745; /* Green */
}

.popup.error {
    background-color: #dc3545; /* Red */
}

/* Top Bar WhatsApp Link */
.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
    margin-left: 20px;
    font-family: inherit;
    font-size: inherit;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.top-bar-icon {
    height: 16px !important;
    width: auto !important;
}

/* Logo container for multiple logos */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between the two logos */
}

.outubro-rosa-logo {
    height: 50px;
    width: auto;
}