/* Estilos gerais */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #f8f9fa;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #000000;
    color: white;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ec5d12;
}
.nav-menu {
    display: flex;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #000000;
    color: white;
}

/* Ícones das Redes Sociais */
.social-icons a {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f4a261;
}
.politicas a{
    color: white;
    text-align: right;
    margin-left: 85%;
}
#privacy-policy h2, p{
    margin-left: 20px;
}
#privacy-policy h1{
    font-size: x-large;
    margin-left: 10px;
}

/* Desktop layout improvements */
@media screen and (min-width: 1200px) {
    #quem-somos, #missao {
      display: flex;
      align-items: center;
      gap: 40px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }
    
    .text-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 20px;
    }
    
    .text-content h2 {
      width: 100%;
      margin-bottom: 20px;
    }
    
    .text-content p {
      width: 100%;
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 25px;
    }
    
    .section-image-index1,
    .section-image-index2 {
      flex: 1;
      max-width: 50%;
      height: 400px;
      object-fit: cover;
    }
    
    /* Maintain aspect ratio and prevent distortion */
    #banner .banner-image {
      max-height: 400px;
      width: 100%;
    }
    
    /* Center content in all sections */
    #welcome, #about-index, .service-block {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
      text-align: center;
    }
}

@media screen and (min-width: 1800px) {
    #quem-somos, #missao {
      max-width: 1600px;
    }
    
    .section-image-index1,
    .section-image-index2 {
      height: 500px;
    }
}

/*Index Page*/
.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 350px; 
}

#welcome {
    text-align: center;
    padding: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

#welcome h1 {
    font-size: 32px;
    color: #000;
    margin-bottom: 20px;
}

#welcome p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
}

/* Ajuste de Layout do Index */
#about-index{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-in-out forwards;
    background: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.section-image-index1 {
    width: 800px;
    height: 400px;
    object-fit: cover;
}

.section-image-index2 {
    width: 600px;
    height: 400px;
    object-fit: cover;
}

/* About Page */
#quem-somos, #missao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-in-out forwards;
    background: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#quem-somos p, #missao p {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.section-image-abt1{
    width: 600px;
    height: 400px;
    object-fit:cover;
}

.section-image-abt2{
    width: 500px;
    height: 400px;
    margin-left: 10px;
    object-fit:contain;
}

/* Estilização da Seção de Valores */
#about-values {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 40px auto;
}

#about-values h2 {
    font-size: 32px;
    color: #000000;
    margin-bottom: 20px;
}

/* Container dos Valores */
.values-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cada Cartão de Valor */
.value-box {
    flex: 1;
    min-width: 250px;
    background: #e17237;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Ícones dentro dos Valores */
.value-box i {
    font-size: 40px;
    margin-bottom: 10px;
    color: white;
}

/* Título de Cada Valor */
.value-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

/* Parágrafo de Cada Valor */
.value-box p {
    font-size: 16px;
    color: white;
    margin-left: 0;
}

/* Services Page */
.service-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-in-out forwards;
    background: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-block h2 {
    width: 100%;
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #000000;
}

.sevices h1{
    text-align: center;
    margin: 0 auto;
    padding: 20px 0;
}

#contact{
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.slideshow-container {
    position: relative;
    max-width: 45%;
    height: 400px;
    margin: auto;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efeito de transição suave */
.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

#services h1{
    text-align: left;
    font-size: 40px;
    margin: 20px auto;
    margin-left: 30px;
}

/* Botões Melhorados */
.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    color: white;
    background-color: #ec5d12;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.button-con{
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    color: white;
    background-color: #ec5d12;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

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

/* Responsividade Melhorada */

/* Dispositivos Médios (Tablets, entre 768px e 1024px) */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        height:auto;
        font-size: small; 
    }
    .logo{
        width: 200px;
        margin-left: 10px;
        margin-right: 70px;
    }

    nav ul {
        flex-direction: column;
        padding-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }
    /* Hide nav menu by default */
      /* Show hamburger button */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px; /* Adjusted for smaller screens */
        top: 10px;
        font-size: 22px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }
    .banner-image {
        width: 100%;
        height: 300px; /* Slightly larger than mobile */
    }
    /* Hide nav menu by default */
    .nav-menu {
        display: none;
        position: absolute;
        top: 50px;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        width: 260px; /* Set width for better placement */
        text-align: center;
        padding: 20px 20px;
        z-index: 999;
    }

    /* Show nav menu when active */
    .nav-menu.active {
        display: block;
        text-align: center;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        text-align: center;
    }

    .nav-menu ul li {
        margin: 10px 0;
        text-align: center; /* Align text to the right */
    }

    .nav-menu ul li a {
        color: white;
        font-size: 18px;
        text-align: right;
    }
    #quem-somos, #missao, .service-block, #about-index, #services-index {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        margin-right: 20px;
        margin-left: 20px;
    }

    .section-image-index1, .section-image-index2, .section-image-abt1, .section-image-abt2 {
        width: 90%;
        height: auto;
        margin-bottom: 20px;
        justify-content: center;
    }


    .values-container {
        flex-wrap: wrap;
        justify-content: center;
        margin-right: 30px;
    }

    .value-box {
        min-width: 50px;
        margin-bottom: 20px;
        height: 30px;
        margin-left: 10px;
    }

    .slideshow-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-bottom: 15px;
    }

    .service-block {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .map-container iframe {
        width: 90%;  /* Make the map smaller for better layout */
        height: 300px; /* Further reduce height */
        margin: 0 auto; /* Center the map */
        display: block;
    }
    #contact h2,
    #contact p,
    .contact-info h3,
    .contact-info p {
        text-align: left ;
        margin-left: 10px;
    }
    #contact{
        margin-left: 5px;
    }
    .button{
        padding: 20px 5px;
    }
    .button-con{
        padding: 20px 70px;
    }
}

    
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Header */
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        height: 70px;
        font-size: small;
    }

    /* Adjust Logo */
    .logo {
        width: 210px; /* Reduce logo size for smaller screens */
        margin-left: 0px; /* Keep it to the left */
        height: 40px;
    }
    
    .politicas a {
        white-space: nowrap; /* Prevents text from breaking */
        display: inline-block; /* Ensures it stays in one line */
        font-size: 14px; /* Slightly reduce font size for better fit */
        margin-left: 10px;
    }

    .politicas {
        text-align: center; /* Adjust alignment if needed */
        width: auto;
        max-width: 100%;
    }
    
    /* Center the Menu Toggle with the Logo */
    .menu-toggle {
        display: block;
        font-size: 40px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        position: absolute;
        margin-right: -5%; /* Adjusted for better alignment */
        top: 50px;
        transform: translateY(-50%);
        align-items: center;
        text-align: center;
        padding: 20px 20px;
    }

    /* Banner Image */
    .banner-image {
        width: 100%;
        height: 250px; /* Adjust height for smaller screens */
        object-fit: cover;
    }

    /* Navigation Menu */
    .nav-menu {
        display: none;
        position: absolute;
        top: 85px;
        right: -10%;
        background: rgba(0, 0, 0, 0.9);
        width: 360px;
        text-align: center;
        padding: 30px 0px;
        z-index: 999;
    }

    .nav-menu.active {
        display: block;
        text-align: center;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
    }

    .nav-menu ul li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-menu ul li a {
        color: white;
        font-size: 16px;
        text-align: center;
    }

    /* Services Section */
    #services h1 {
        margin-left: 20px;
    }

    /* Sections & Containers */
    #quem-somos, 
    #missao, 
    .service-block, 
    #about-index, 
    #services-index {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        margin-right: 10px;
        margin-left: 10px;
    }

    /* Adjust Images */
    .section-image-index1, 
    .section-image-index2, 
    .section-image-abt1, 
    .section-image-abt2 {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
        display: block;
    }

    /* Values Section */
    .values-container {
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        margin-right: 10px;
    }

    .value-box {
        min-width: 100px;
        margin-bottom: 15px;
        height: auto;
        margin-left: 0;
    }

    /* Slideshow */
    .slideshow-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    /* Contact Page */
    #contact h2,
    #contact p,
    .contact-info h3,
    .contact-info p {
        text-align: left;
        margin-left: 10px;
    }

    #contact {
        margin-left: 0;
        padding: 20px;
    }

    /* Map */
    .map-container iframe {
        width: 100%; /* Make it fully responsive */
        height: 250px;
        margin: 0 auto;
        display: block;
    }

    /* Buttons */
    .button {
        padding: 15px 5px;
        width: 90%; /* Make button full-width */
        text-align: center;
    }

    .button-con {
        padding: 20px 20px;
        width: 90%;
        text-align: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeBlur {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}