:root {
  --tilte: rgb(0, 52, 103);
  --footer: rgb(0, 0, 48);
  --destac: rgb(6, 28, 48);
  --nav-title: rgb(14, 54, 86);
  --primary: rgb(22, 72, 99);
  --secondary: rgb(56, 158, 137);
  --background: rgb(238, 242, 245);
  --surface: rgb(250, 252, 253);
  --text: rgb(34, 37, 41);
  --text-muted: rgb(110, 120, 130);
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Esconde qualquer overflow horizontal */
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
}

h1 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  font-family: "Poppins", sans-serif;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

h4 {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

a {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
}

header{
    display: flex;
  flex-direction: row;   /* logo e botão lado a lado */
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.botao-whats-flutuante {
  height: 45px;
  width: 45px;
  border: none;
  border-radius: 50%;
  background-color: rgb(37, 211, 102);
  position: fixed;
  bottom: 15px;
  right: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: transform 0.3s ease, box-shadow ease;
  z-index: 1000;
}

#icon-wpp {
  font-size: 30px;
}

.botao-whats-flutuante:hover {
  background-color: rgb(28, 160, 77);
  transform: scale(1.09);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 18px;
  gap: 20px;
  width: 100%;
  padding: 15px;
  background-color: var(--nav-title);
  z-index: 1000;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero .btn-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 90%;      
  padding: clamp(0.75rem, 1vw, 1rem) clamp(1.2rem, 2vw, 1.5rem);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 600;
  border-radius: 20px;
  background-color: var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 400px) {
  header {
    flex-direction: column;  /* empilha logo e botão */
    align-items: center;     /* centraliza elementos */
    padding: 0.5rem;
  }

  .hero .btn-cta {
    max-width: 95%;          /* garante que não vaze */
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0;        /* espaço entre logo e botão */
  }
}

.logo {
  max-height: 4rem;
  max-width: 4rem;
  background-size: cover;
}

.btn-cta:hover {
  background-color: var(--footer);
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
}

.section {
  background-color: var(--background);
  min-height: 100vh;
  min-width: 100%;
}

@media(max-width: 768px){
  .section{
    min-height: 80vh;
  }
}

.container-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

#intro {
  align-items: flex-start;
  padding-top: clamp(4rem, 10vh, 8rem);
}

.conteudo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 70%;
  padding: 20px;
}

.conteudo h1 {
  color: var(--tilte);
  font-family: "Poppins", sans-serif;
  font-weight: 1000;
}

.conteudo p {
  color: #fff;
}

#introducao {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)),
    url(imagens/fundoSiteReUrb.png);
  background-size: cover;
  background-repeat: no-repeat;
}

#conteudo-introducao {
  flex-direction: column;
  justify-content: flex-start;
}

#conteudo-introducao h1 {
  color: var(--background);
}

#conteudo-introducao h4 {
  color: var(--background);
}

#conteudo-introducao p {
  font-weight: 500;
  color: var(--text-muted);
  max-width: 55ch;
}

#sobre-nos {
    position: relative;
  margin-top: 5rem;
  overflow-x: hidden;
  height: 60vh;
}

#container-sobre {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

.sobre-texto {
    margin-top: 2rem;
    min-width: 80%;
    min-height: 40%;
    position: relative;
    text-align: justify;
    padding-bottom: 100px;
}

@media (max-width: 768px) {

    #sobre-nos{
        height: 120vh;
    }
  #sobre-nos #container-sobre {
    flex-direction: column; 
    align-items: center;
    gap: 1rem;               
    text-align: center;      
  }

  .sobre-texto {
    max-width: 35ch;  
    width: 90%;        
    margin: 0 auto;    
    text-align: center;
    padding: 0.5rem;
  }

  .sobre-texto h2::after{
    width: 100%;
  }

  .sobre-destaques{
    flex-direction: column;
  }

  .sobre-texto h2::after{
    min-width: 100%;
  }
}

@media (max-width: 1216px) {

  #sobre-nos #container-sobre {
    flex-direction: column; 
    align-items: center;      
    justify-content: center;  
    gap: 1rem;               
    text-align: center;       
  }

  .sobre-imagem {
    display: none;            
  }

  .sobre-texto { 
    max-width: 90%;  
    width: 90%;    
    margin: 0 auto;           
    text-align: center;       
    padding: 0.5rem;
    display: flex;            
    flex-direction: column;   
    align-items: center;     
  }

  .sobre-destaques {
    flex-direction: column;   
    align-items: center;      
  }

}


.sobre-texto h2 {
  position: relative;
  padding-bottom: 12px;
}

.sobre-texto h2::after {
  content: "";
  width: 55%;
  height: 4px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
  margin-bottom: 6px;
}

.sobre-texto p {
  max-width: 60ch;
  line-height: 1.6;
  letter-spacing: 0.2;
}

.sobre-destaques {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.sobre-destaques li {
  font-family: "Montserrat", sans-serif;
  list-style: none;
}

.sobre-destaques strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
}

.sobre-imagem {
  position: absolute;
  right: -5%;
  top: 35%;
  transform: translateY(-50%);

  width: 520px;
  height: 370px;

  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
    url(imagens/ImgAboutReUrb.png);
  background-size: cover;
  background-position: center;

  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@media(max-width: 768px){
    .sobre-imagem{
        display: none;
    }
}

.card-container {
    position: relative;
  background: linear-gradient(180deg, var(--destac), #0a2236);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media(max-width: 768px){
    .card-container{
        flex-direction: column;
    }
}

.card-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.card {
    flex: 1 1 250px;
  background-color: var(--background);
  max-width: 300px;  
  min-width: 0;          
  box-sizing: border-box;
  margin: 1.5em;
  padding: 2em;
  border-radius: 20px;
  height: 26rem;
  width: 18.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  word-wrap: break-word;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.card h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  padding-top: 14px;
}

.card h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.card p {
  font-size: clamp(0.7rem, 1vw, 1rem);
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

#contato {
  margin-top: 10rem;
}

.caixa-contato {
  justify-content: center;
  display: flex;
  background-color: var(--surface);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 3rem;
  padding: 1.5rem;
  min-height: 30rem;
  min-width: 60%;
 }

@media(max-width: 768px){
    .caixa-contato{
        flex-direction: column;
        width: 80%;
        margin: 2rem;
    }

    .text{
        min-width: 80%;
        margin: 1rem;
    }

    .text p{
        max-width: 35ch;
    }

    .map{
        min-width: 100%;
        justify-content: center;
    }

    .btn-wpp{
        min-width: 100%;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

.text {
  width: 40%;
  margin: 2em;
}

.text p {
  margin-top: 1em;
  text-align: justify;
}

.map {
  min-height: 100%;
  width: 60%;
}

.btn-wpp {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
  border-radius: 30px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 3rem;
  background-color: rgb(37, 211, 102);
  transition: transform 0.3s ease, box-shadow ease;
}

.btn-wpp:hover {
  background-color: rgb(28, 160, 77);
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#icon-wpp-final {
  color: #fff;
  font-size: 1.5rem;
}

.footer {
  background: var(--footer);
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand img {
  max-height: 48px;
}

.footer-info {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-info p {
  margin: 0.3rem 0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}


.footer-credit {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-credit p{
  font-size: 0.8em;
}

.footer-credit img {
  max-height: 22px;
}
