*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --primary: #ffd428;
    --blue: #026197;
    --shape: #E4E3E6;
}
html{
    scroll-behavior: smooth;
}
html, button{
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Prevenir layout shifts com imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Garantir que elementos críticos tenham espaço reservado */
.text-area {
    min-height: 1px; /* Previne layout shift inicial */
}

h1, h2, h3 {
    font-display: swap;
}

main{
    overflow-x: hidden;
}

.p-bold{
    margin: 2rem 0;
    font-weight: 700;
    font-size: 1.5rem;

}
#tag{
    margin-bottom: 2rem;
    background-color: var(--primary);
    padding: .5rem;
    border-radius: 50px;
    display: block;
    max-width: 230px;
    text-align: center;
    color: #000;
    font-weight: 700;
}

.hero{
    padding: 2rem;
    display: flex;
    justify-content: center;
    /* background: var(--blue); */
    gap: 2rem;
    min-width: 100vw;
    height: 90vh;
    background: linear-gradient(117deg,#015586,#52cfff);
    background-size: 120% 120%;
    animation: gradient-animation 3s ease infinite;
}

.hero .text-area{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    width: 50%;
    /* border: 1px solid black; */
}

.hero .text-area h1{
    line-height: 90%;
    font-size: 5rem;
    
}

.hero .text-area p{
    font-size: 1.5rem;
    /* max-width: 700px; */
}
.hero .text-area p span{
    /* font-size: 1.5rem; */
    font-weight: 700;
    text-decoration: underline;
    /* max-width: 700px; */
}
.hero .text-area .p-bold{
    margin: 2rem 0;
    font-weight: 700;
    font-size: 1.5rem;
}
.hero .btn-area a button{
    margin-top: 1rem;
    font-weight: 700;
    background-color: var(--primary);
    border-radius: .5rem;
    border: 0px;
    padding: 1rem;
    font-size: 1.2rem; 
    cursor: pointer;
}
.img-area{
    display: flex;
}

.hero #img-hero{
    border-radius: 1rem;
}

.about{
    margin: auto;
    display: flex;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* height: 90vh; */
}

.about img{
    border-radius: 1rem;   
    max-width: 380px; 
}

.about .img-area{
    position: relative;    
}

.about .img-area .card{
    padding: 1rem;
    background: var(--blue);
    bottom: 0;
    right: 0;
    position: absolute;
    color: #fff;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.about .img-area .card .tittle{
    font-weight: 700;
    font-size: 1.5rem;
}

.about .text-area{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about .text-area h2{
    font-size: clamp(1rem, 3vw, 3rem);
}
.about .text-area .cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.about .text-area h2 span {
    color: var(--blue);
}
.about .text-area .cards .card{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--shape);
    border-radius: 1rem;
}

.about .text-area .cards .card:hover{
    filter: brightness(1.05);
}


.about .text-area .cards .card .tittle{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.flags{
    padding: 2rem;
    background: var(--shape);
    text-align: center;
    
}
.flags #tags{
    margin: 1rem auto;
    display: block;
    max-width: 230px;
    text-align: center;
    color: #000;
    background: var(--primary);
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 50px;
}

.flags h2{
    font-size: clamp(1rem, 3vw, 3rem);
}

.flags h2 span{
    color: var(--blue);
}

.flags .cards{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 80%;
    margin: 0 auto;
    margin-top: 2rem;
}

.flags .cards .card{
    padding: 1.5rem;
    background: #fff;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
}

.flags .cards .card .ico svg{
    width: 5rem;
    background: var(--primary);
    padding: 1rem;
    border-radius: 1rem;
}

.flags .cards .card .title{
    font-weight: 700;
    font-size: 1.5rem;
}

.flags .cards .card .description {
    text-align: left;
}

.results{
    display: flex;
    flex-direction: column;
    padding: 4rem 4rem;
}
.results #tags{
    margin: 1rem auto;
    display: block;
    text-align: center;
    color: #000;
    background: var(--primary);
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 50px;
}
.results h3{
    font-size: clamp(1rem, 3vw, 3rem);
    text-align: center;
}

.results h3 span{
    color: var(--blue);
}

.results .description{
    text-align: center;
    margin-bottom: 3rem;

}

.results .content{
    display: flex;
    margin: 0 auto;
}

.results .content .text-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
}

.results .content .text-area h3{
    font-size: clamp(1rem, 2vw, 2rem);
}

.results .content .text-area .cards{
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.results .content .text-area .cards .card{
    padding: 1rem;
    background: var(--shape);
    border-radius: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results .content .text-area .cards .card:hover{
    filter: brightness(1.05);
}

.results .content .text-area .cards .card svg{
    width: 2rem;
}

.results .content .img-area{
    width: 50%;
    display: flex;
    justify-content: center;
}

.results .content .img-area img{
    width: 50%;
    border-radius: 1rem;
}



.footer {
    background: #0f172a; /* azul escuro */
    color: #fff;
    padding: 40px 20px 20px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .footer-brand h3 {
    margin: 0;
    font-size: 20px;
  }
  
  .footer-brand p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.8;
  }
  
.footer-links a {
color: #fff;
text-decoration: none;
margin-left: 16px;
font-size: 14px;
opacity: 0.9;
}

.footer-links a:hover {
opacity: 1;
}

.footer-copy {
text-align: center;
margin-top: 30px;
font-size: 13px;
opacity: 0.7;
}
  

@keyframes gradient-animation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

/* ============================================
   MEDIA QUERIES - RESPONSIVIDADE
   ============================================ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 90vh;
    padding: 2rem 1rem;
  }

  .hero .text-area {
    width: 100%;
    text-align: center;
  }

  .hero .text-area > div {
    display: flex;
    justify-content: center;
  }

  .hero .text-area h1 {
    font-size: 3.5rem;
  }

  .hero .img-area {
    width: 100%;
    justify-content: center;
  }

  .hero #img-hero {
    max-width: 100%;
    width: auto;
  }

  .about {
    flex-direction: column-reverse;
    padding: 2rem 1rem;
  }

  .about .text-area {
    width: 100%;
  }

  .about .text-area .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .flags .cards {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .results {
    padding: 2rem 1rem;
  }

  .results .content {
    flex-direction: column;
  }

  .results .content .text-area {
    width: 100%;
  }

  .results .content .img-area {
    width: 100%;
    margin-top: 2rem;
  }

  .results .content .img-area img {
    width: 100%;
    max-width: 500px;
  }
}

/* Mobile (até 768px) */
@media screen and (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero .text-area > div {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero .text-area h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero .text-area p {
    font-size: 1.2rem;
  }

  .hero .text-area .p-bold {
    font-size: 1.2rem;
    margin: 1.5rem 0;
  }

  .hero .btn-area a button {
    width: 100%;
    font-size: 1rem;
    padding: 0.875rem;
  }

  .about {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .about img {
    max-width: 100%;
  }

  .about .img-area .card {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .about .img-area .card .tittle {
    font-size: 1.2rem;
  }

  .about .text-area h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .about .text-area > div {
    display: flex;
    justify-content: center;
  }


  .about .text-area .cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about .text-area .cards .card {
    padding: 0.875rem;
  }

  .about .text-area .cards .card .tittle {
    font-size: 1.2rem;
  }

  .flags {
    padding: 1.5rem 1rem;
  }

  .flags .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .flags .cards .card {
    padding: 1rem;
  }

  .flags .cards .card .ico svg {
    width: 4rem;
    padding: 0.75rem;
  }

  .flags .cards .card .title {
    font-size: 1.2rem;
  }

  .results {
    padding: 1.5rem 1rem;
  }

  .results .description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .results .content .text-area h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .results .content .text-area h3:first-of-type {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .results .content .text-area .cards .card {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .results .content .text-area .cards .card svg {
    width: 1.5rem;
    min-width: 1.5rem;
  }

  .footer {
    padding: 30px 15px 15px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .footer-links a {
    margin-left: 0;
    padding: 8px 0;
  }

  .p-bold {
    font-size: 1.2rem;
    margin: 1.5rem 0;
  }

  #tag {
    font-size: 0.875rem;
    padding: 0.4rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .flags #tags,
  .results #tags {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile pequeno (até 480px) */
@media screen and (max-width: 480px) {
  .hero .text-area h1 {
    font-size: 2rem;
  }

  .hero .text-area p {
    font-size: 1rem;
  }

  .hero .text-area .p-bold {
    font-size: 1rem;
  }

  .about .text-area h2 {
    font-size: 1.5rem;
  }

  .flags h2 {
    font-size: 1.5rem;
  }

  .results h3 {
    font-size: 1.5rem;
  }

  .results h2 {
    font-size: 1.5rem;
  }

  .footer-brand h3 {
    font-size: 18px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

