section {
  padding: 20px 0;
  text-align: left;
  background-color: #f0f0f0;
}

/*BANNER*/
#banner {
  background-image: url('imagens/cabeçalho.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: left; 
  padding: 40px 40px;
  margin-top: 10px;
}


#banner h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-top: 0px;
  margin-bottom: 10px;
  margin-left: 100px;
  line-height: 1.2;
}

#banner p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: margin-left;
  margin-left: 100px;
  line-height: 1.3;
}

#banner .btn {
  display: inline-block;
  background-color: #37AF8F;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 100px;
}

#banner .btn:hover {
  background-color: #267D63;
}

/*QUEM SOMOS*/
.quem-somos-section {
    background: #ffffff;
    padding: 30px 0;
}

.quem-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
}

.flex-between {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.container-left {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
    min-width: 400px;
    max-width: min(500px,30%);
}

.container-left .equipe img { 
    width:500px; 
    max-width:100%; 
    border-radius:10px; 
    box-shadow:0 6px 20px rgba(0,0,0,0.08); 
}

.container-right { 
    flex:1 1 480px; 
    margin-left: 40px;
    max-width: min(50%,1000px);
}

.container-right .texto h2 { 
    color:#1D89AA; 
    font-size:2rem; 
    margin:0 0 10px; 
}

.container-right .texto p { 
    color:#353D3F; 
    font-size:1.2rem; 
    line-height:1.6; 
    margin-bottom:12px; 
    text-align:justify; 
}

.container-right .texto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-right .texto .btn { 
  display: inline-block;
  background-color: #1D89AA;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
}

.container-right .texto .btn:hover { 
     background-color: #1D99AA;
}

/*SERVIÇOS*/
.servicos {
    background-color: #37AF8F;
    color: #FFFFFF;
    padding: 30px 0 30px;
    text-align: center;
}

.servicos-container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.servicos h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
    margin-top: 5px;
}

.servicos p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #FFFFFF;
}

/*GRID DOS ÍCONES*/
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));;
    gap: 35px 20px;
    justify-items: center;
    align-items: start;
    margin-bottom: 45px;
}

.servico-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.servico-item img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.servico-item p {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.servico-item:hover img {
    transform: scale(1.1);
}

/*BOTÃO*/
.btn-servicos {
    display: inline-block;
    background-color: #1D89AA;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-servicos:hover {
    background-color: #1D99AA;
    transform: translateY(-3px);
}

/* COMPROMISSO SOCIAL*/
.compromisso-social { 
   background: #DFF3E3;
   padding: 30px 0;
   position: relative;
   overflow: hidden;
}

.compromisso-inner { 
    width: 100%;
    margin: 0 auto;
    display: grid;
    flex-direction: column;   /* <- AQUI */
    gap: 40px;
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.compromisso-copy { 
    flex: 1 1 420px; 
}

.compromisso-copy h2 { 
    color: #1D89AA; 
    font-size: 2rem; 
    margin-bottom: 15px; 
}

.compromisso-copy .lead { 
    font-size: 1.2rem; 
    color: #353D3F; 
    line-height: 1.7; 
    text-align: center; 
}

/*CARDS*/
.compromisso-cards {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    flex: 1 1 500px;
}


.card {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 40, 40, 0.06);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/*OVERLAY*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden
}

.overlay:hover {
    opacity: 1;
}

.overlay p {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 50%;
    overflow-y: auto;
    padding-right: 5px;
}

/*EFEITOS*/
.card:hover img {
    transform: scale(1.1);
}

.card:hover .overlay {
    opacity: 1;
}

.card:hover .overlay p {
    transform: scale(1.3);
    filter: brightness(100%);
}

/* ANIMAÇÃO DE ENTRADA */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.compromisso-cards .card {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

/* delays progressivos */
.compromisso-cards .card:nth-child(1) {
    animation-delay: 0.2s;
}
.compromisso-cards .card:nth-child(2) {
    animation-delay: 0.4s;
}
.compromisso-cards .card:nth-child(3) {
    animation-delay: 0.6s;
}
.compromisso-cards .card:nth-child(4) {
    animation-delay: 0.8s;
}

/*RESPONSIVIDADE GERAL*/

/* Ajustes para tablets e telas até 1100px */
@media (max-width: 1100px) {

    /* BANNER */
    #banner h2,
    #banner p,
    #banner .btn {
        margin-left: 50px;
    }

    /* QUEM SOMOS */
    .quem-container {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        text-align: center;
        gap: 0;
    }

    .container-left,
    .container-right {
        margin-left: 0;
        justify-content: center;
        text-align: center;
        max-width: 100%;
    }
    
    .container-left{
        max-height: 350px;
        min-width: 200px;
    }

    .container-right .texto {
        align-items: center;
        text-align: center;
    }

    /* SERVIÇOS */
    .servicos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes para celulares grandes e tablets estreitos */
@media (max-width: 768px) {

    /* BANNER */
    #banner {
        padding: 40px 20px;
        text-align: center;
    }

    #banner h2,
    #banner p,
    #banner .btn {
        margin-left: 0;
    }

    /* QUEM SOMOS */
  
    .container-right .texto h2 {
        font-size: 1.7rem;
    }

    .container-right .texto p {
        font-size: 1rem;
    }

    /* SERVIÇOS */
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servico-item img {
        width: 130px;
        height: 130px;
    }

    /* CARTÕES COMPROMISSO SOCIAL */
    .compromisso-inner {
        text-align: center;
    }

    .compromisso-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Ajustes para celulares pequenos */
@media (max-width: 480px) {

    #banner h2 {
        font-size: 1.4rem;
    }

    #banner p {
        font-size: 1rem;
    }

    /* SERVIÇOS */
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .servico-item img {
        width: 110px;
        height: 110px;
    }

    .servico-item p {
        font-size: 1rem;
    }

    /* QUEM SOMOS */
    .container-right .texto p {
        font-size: 1rem;
    }

    /* CARDS COMPROMISSO */
    .card {
        width: 90%;
        height: 250px;
    }

    .overlay p {
        max-width: 80%;
        font-size: 0.75rem;
    }
    .footer-menu ul {
        gap: 8px;
        flex-direction: column;
    }

    .footer-logo {
        width: 150px;
    }
    
    .footer-center p,
    .footer-right p {
        font-size: 0.9rem;
    }
}
