/* =========================================================================
   Vinícius Dias 13444 — De plantão pelo Piauí
   Layout referência: desktop 1440px · mobile 440px
   ========================================================================= */

/* ------------------------------- TOKENS ---------------------------------- */
:root{
  /* cores da marca */
  --vermelho:      #DA0022;   /* selos, sombra dos cards, chamada vermelha */
  --magenta:       #C30744;   /* links, títulos dos pilares, filete do topo */
  --verde-selo:    #82D666;   /* sombra dos selos */
  --lima:          #CFF21A;   /* fundo da trajetória */
  --lima-escuro:   #B2C837;   /* sombra das chamadas, início do degradê */
  --azul-petroleo: #528FA4;   /* fim do degradê */

  /* superfícies e tinta */
  --cartao:        #F4F4F4;
  --tinta-ardosia: #213735;   /* corpo sobre branco */
  --tinta-verde:   #2C605C;   /* corpo dentro dos cards */
  --tinta-escura:  #16211F;   /* corpo sobre o lima */
  --tinta-rodape:  #3D3D3D;
  --tinta-legal:   #8C8C8C;
  --tinta-botao:   #3A3D3C;

  /* degradês */
  --grad-faixa:  linear-gradient(90deg, var(--lima-escuro) 0%, #7CA77C 50%, var(--azul-petroleo) 100%);
  --grad-vermelho: linear-gradient(42deg, #D9001F 45%, #EF7D2B 102%);
  --grad-verde:  linear-gradient(42deg, #79CE12 0%, #CFF21A 100%);
  --grad-lima:   linear-gradient(100deg, #B2C837 0%, #E2FA43 100%);

  /* medidas */
  --largura-larga:  1290px;   /* topo, pilares, chamadas */
  --largura-estreita: 1070px; /* trajetória, redes, rodapé */
  --margem-lateral: 24px;

  /* tipografia */
  --fonte-corpo: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fonte-titulo: "Poppins", "Figtree", "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------- BASE ------------------------------------ */
*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: #fff;
  color: var(--tinta-ardosia);
  font-family: var(--fonte-corpo);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }

:focus-visible{
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--magenta);
  font-weight: 700;
  padding: 12px 20px;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ----------------------------- SELO / TAG -------------------------------- */
/* Retângulo vermelho com canto arredondado na diagonal e sombra verde. */
.tag{
  display: inline-block;
  margin: 0;
  padding: 12px 24px 13px;
  background: var(--vermelho);
  color: #fff;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  border-radius: 0 14px 0 14px;
  box-shadow: 3px 3px 0 var(--verde-selo);
}
.tag--centro{ display: block; width: max-content; margin-inline: auto; }

/* ------------------------------- BOTÕES ---------------------------------- */
.botao{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  transition: transform .18s ease, box-shadow .18s ease;
}
.botao--lima{
  max-width: 300px;
  min-height: 48px;
  padding: 6px 18px;
  background: var(--grad-lima);
  color: var(--tinta-botao);
  border-radius: 0 24px 0 24px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.22);
}
.botao--branco{
  width: 198px;
  min-height: 43px;
  padding: 6px 16px;
  font-size: 19px;
  background: #fff;
  color: var(--tinta-botao);
  border-radius: 0 16px 0 16px;
  box-shadow: 5px 5px 0 var(--magenta);
}
.botao:hover{ transform: translate(-2px,-2px); }
.botao--lima:hover{ box-shadow: 8px 8px 0 rgba(0,0,0,.22); }
.botao--branco:hover{ box-shadow: 7px 7px 0 var(--magenta); }

/* ============================ HERO + TOPO ================================ */
.hero{ position: relative; }

.hero__art{
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1103;
  background: #fff url("../img/fotos/hero-desktop.jpg") no-repeat center top;
  background-size: 100% 100%;
}

.hero__lockup{
  position: absolute;
  left: 7.78%;
  top: 32.2%;
  width: 36.11%;
  height: auto;
}
.hero__selo{
  position: absolute;
  left: 48.4%;
  top: 65.5%;
  width: 18.82%;
  height: auto;
}

/* barra branca sobreposta ao hero */
.navbar{
  position: absolute;
  inset: 20px 0 auto 0;
  z-index: 20;
}
.navbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--largura-larga), 100% - var(--margem-lateral) * 2);
  margin-inline: auto;
  height: 64px;
  padding: 0 25px 0 18px;
  background: #fff;
  border-bottom: 4px solid var(--magenta);
  border-radius: 0 0 14px 14px;
}
.navbar__brand img{ width: 112px; height: 50px; }

.navbar__mobile-label,
.navbar__toggle{ display: none; }

.navbar__menu{
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__menu a{
  color: var(--magenta);
  font-weight: 700;
  font-size: 17px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.navbar__menu a:hover{ border-bottom-color: var(--magenta); }

/* ============================ QUEM EU SOU ================================ */
.quem{ padding: 21px 0 57px; }

.quem__inner{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  width: min(880px, 100% - var(--margem-lateral) * 2);
  margin-inline: auto;
}

.quem__foto{
  flex: 0 0 442px;
  width: 442px;
  border-radius: 0 55px 0 55px;
}

.quem__texto{ flex: 0 1 404px; padding-top: 202px; }

.quem__bio{
  margin-top: 34px;
  max-width: 400px;
  font-size: 18px;
  line-height: 24px;
}
.quem__bio strong{ color: var(--magenta); font-weight: 700; }

/* ============================= TRAJETÓRIA ================================ */
.trajetoria{
  background: var(--lima);
  padding: 64px 0 63px;
}
.trajetoria__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: min(var(--largura-estreita), 100% - var(--margem-lateral) * 2);
  margin-inline: auto;
}
.trajetoria__texto{
  flex: 0 1 472px;
  color: var(--tinta-escura);
}
.trajetoria__texto p:not(.tag) + p{ margin-top: 15px; }
.trajetoria__texto p:not(.tag){
  font-size: 18px;
  line-height: 24px;
}
.trajetoria__texto .tag{ margin-bottom: 34px; }
.trajetoria__foto{ flex: 0 0 547px; width: 547px; }

/* =========================== FAIXA COMÍCIO =============================== */
.faixa-comicio{ width: 100%; height: auto; }

/* ============================= PLATAFORMA ================================ */
.plataforma{ padding: 56px 0 0; }

.plataforma__grade{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 36px;
  width: min(var(--largura-larga), 100% - var(--margem-lateral) * 2);
  margin: 35px auto 0;
}

.pilar{
  background: var(--cartao);
  border-radius: 50px 0 50px 0;
  box-shadow: 8px 8px 0 var(--vermelho);
  padding: 32px 32px 32px;
}

.pilar__cabecalho{
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 58px;
}
.pilar__icone{
  flex: 0 0 44px;
  width: 44px;
  height: 38px;
  fill: none;
  stroke: var(--vermelho);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pilar__titulo{
  margin: 0;
  color: var(--magenta);
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-weight: 700;
  font-size: 25px;
  line-height: 29px;
}

.pilar__lista{
  margin-top: 36px;
  color: var(--tinta-verde);
  font-size: 18px;
  line-height: 24px;
}
.pilar__lista li + li{ margin-top: 15px; }

/* ============================== CHAMADAS ================================= */
.chamadas{
  display: grid;
  grid-template-columns: 48.37% 47.29%;
  justify-content: space-between;
  align-items: end;
  width: min(var(--largura-larga), 100% - var(--margem-lateral) * 2);
  margin: 58px auto 0;
}

.chamada{
  position: relative;
  overflow: hidden;
  border-radius: 0 40px 0 40px;
  box-shadow: 5px 5px 0 var(--lima-escuro);
}

.chamada--materiais{
  display: flex;
  align-items: stretch;
  min-height: 290px;
  padding-left: 230px;
  background: var(--grad-vermelho);
}
.chamada__foto{
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.chamada--materiais .chamada__conteudo{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 20px 39px;
  width: 100%;
}
.chamada__titulo{
  color: #fff;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  text-align: center;
}
.chamada__lockup{ width: 258px; height: auto; }
.chamada--materiais .botao{ margin-top: 20px; }

.chamada--doacao{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  background: var(--grad-verde);
  border-radius: 0 14px 0 55px;
}
.chamada--doacao .chamada__conteudo{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 28px 24px 56px;
}
.chamada__titulo--verde{
  color: #12492B;
  font-size: 33px;
  line-height: 38px;
}
.chamada__titulo--verde em{ color: var(--vermelho); font-style: italic; }

  .faixa-comicio-mobile{
    display: none;
    width: 100%;
  }
   .faixa-comicio{
    display: block;
  }

/* ============================ REDES SOCIAIS ============================== */
.redes{
  margin-top: 62px;
  background: var(--grad-faixa);
}
.redes__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--largura-estreita), 100% - var(--margem-lateral) * 2);
  margin-inline: auto;
  min-height: 148px;
}
.redes__titulo{
  color: #fff;
  font-weight: 700;
  font-size: 26px;
}
.redes__lista{
  display: flex;
  align-items: center;
  gap: 46px;
}
.redes__lista a{
  display: block;
  color: #fff;
  transition: transform .18s ease, opacity .18s ease;
}
.redes__lista svg{ width: 32px; height: 32px; fill: currentColor; }
.redes__lista a:hover{ transform: translateY(-3px); opacity: .82; }

/* =============================== RODAPÉ ================================== */
.rodape{ background: #fff; }
.rodape__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: min(var(--largura-estreita), 100% - var(--margem-lateral) * 2);
  margin-inline: auto;
  padding: 57px 0 55px;
}
.rodape__marca{ flex: 0 0 310px; }
.rodape__marca img{ width: 310px; height: auto; }

.rodape__nav{ flex: 0 0 180px; padding-top: 6px; }
.rodape__nav li + li{ margin-top: 14px; }
.rodape__nav a{
  color: var(--tinta-rodape);
  font-weight: 700;
  font-size: 17px;
}
.rodape__nav a:hover{ color: var(--magenta); }

.rodape__legal{
  flex: 0 1 330px;
  padding-top: 22px;
  color: var(--tinta-legal);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.rodape__legal p + p{ margin-top: 12px; }

.rodape__faixa{ height: 19px; background: var(--grad-faixa); }

/* ========================================================================= */
/*                          TABLET  (≤ 1080px)                               */
/* ========================================================================= */
@media (max-width: 1080px){
  .navbar__menu{ gap: 26px; }
  .navbar__menu a{ font-size: 15px; }

  .quem__inner{ gap: 26px; }
  .quem__foto{ flex-basis: 380px; width: 380px; }
  .quem__texto{ padding-top: 120px; }

  .trajetoria__foto{ flex: 0 1 460px; width: 460px; }

  .plataforma__grade{ gap: 24px; }
  .pilar{ padding: 32px 26px 30px; }
  .pilar__titulo{ font-size: 20px; }

  .chamadas{ grid-template-columns: 1fr; gap: 40px; }
  .chamada--doacao{ min-height: 240px; }

  .redes__lista{ gap: 26px; }
  .redes__titulo{ font-size: 19px; }

  .rodape__inner{ gap: 24px; }
  .rodape__marca{ flex-basis: 240px; }
  .rodape__marca img{ width: 240px; }
}

/* ========================================================================= */
/*                          MOBILE  (≤ 900px)                                */
/* ========================================================================= */
@media (max-width: 900px){

  /* ------------------------------ hero ---------------------------------- */
  .hero__art{
    aspect-ratio: 440 / 711;
    background-image: url("../img/fotos/hero-mobile.jpg");
  }
  .hero__lockup{
    left: 50%;
    top: auto;
    bottom: -16.5%;
    transform: translateX(-50%);
    width: 73%;
  }
  .hero__selo{
    left: 5%;
    top: 63%;
    width: 31%;
  }
  .hero{ padding-bottom: 41.6%; }
  .faixa-comicio-mobile{
    display: block;
    width: 100%;
  }
   .faixa-comicio{
    display: none;
  }
  /* ------------------------------ topo ---------------------------------- */
  .navbar{ inset: 25px 0 auto 0; }
  .navbar__inner{
    width: calc(100% - 30px);
    margin-inline: auto;
    height: 62px;
    padding: 0 20px;
    border-bottom: 0;
    border-radius: 26px 0px 26px 0;
    box-shadow: 6px 6px 0 var(--magenta);
  }
  .navbar__brand{ display: none; }

  .navbar__mobile-label{
    display: block;
    color: var(--magenta);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
  }
  .navbar__mobile-label:hover{ text-decoration: underline; text-underline-offset: 4px; }

  .navbar__toggle{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .navbar__toggle span{
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--magenta);
    transition: transform .25s ease, opacity .2s ease;
  }
  .navbar__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .navbar__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

  .navbar__menu{
    position: absolute;
    top: 78px;
    right: 15px;
    left: 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 26px 26px 26px 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }
  .navbar__menu.esta-aberto{
    max-height: 340px;
    box-shadow: 8px 8px 0 var(--magenta);
  }
  .navbar__menu li + li{ border-top: 1px solid #F0DDE3; }
  .navbar__menu a{
    display: block;
    padding: 15px 24px;
    font-size: 16px;
    border-bottom: 0;
  }
  .navbar__menu li:first-child a{ padding-top: 20px; }
  .navbar__menu li:last-child a{ padding-bottom: 20px; }

  /* --------------------------- quem eu sou ------------------------------ */
  .quem{ padding: 0 0 46px; }
  .quem__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .quem__foto{
    flex: none;
    width: 100%;
    border-radius: 0 0 55px 55px;
  }
  .quem__texto{
    padding: 42px var(--margem-lateral) 0;
    text-align: center;
  }
  .quem__bio{ max-width: none; margin-top: 26px; }
  .tag{ font-size: 22px; padding: 9px 20px 11px; }

  /* --------------------------- trajetória ------------------------------- */
  .trajetoria{ padding: 48px 0 56px; }
  .trajetoria__inner{
    flex-direction: column;
    align-items: center;
    gap: 34px;
    width: 100%;
  }
  .trajetoria__texto{
    order: 2;
    flex: none;
    width: min(100%, 440px);
    padding: 0 var(--margem-lateral);
  }
  .trajetoria__texto .tag{
    display: block;
    width: max-content;
    margin: 0 auto 28px;
  }
  .trajetoria__foto{
    order: 1;
    flex: none;
    width: calc(100% - var(--margem-lateral) * 2);
    max-width: 440px;
  }

  /* --------------------------- plataforma ------------------------------- */
  .plataforma{ padding-top: 46px; }
  .plataforma__grade{
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 30px;
    width: calc(100% - var(--margem-lateral) * 2);
  }
  .pilar{ padding: 30px 26px 28px; }
  .pilar__cabecalho{ align-items: flex-start; }
  .pilar__titulo{ font-size: 21px; }
  .pilar__lista{ margin-top: 30px; }

  /* ---------------------------- chamadas -------------------------------- */
  .chamadas{
    position: relative;
    grid-template-columns: 1fr;
    gap: 46px;
    margin-top: 56px;
    width: calc(100% - var(--margem-lateral) * 2);
  }
  /* faixa decorativa atrás da chamada vermelha (só no mobile) */
  .chamadas::before{
    content: "";
    position: absolute;
    left: calc(var(--margem-lateral) * -1);
    right: calc(var(--margem-lateral) * -1);
    top: 26px;
    height: 250px;
    background: var(--grad-faixa);
    opacity: .55;
    z-index: 0;
  }
  .chamada{
    position: relative;
    z-index: 1;
    border-radius: 0 55px 0 55px;
  }
  .chamada--materiais{ min-height: 0; }
  .chamada--materiais{ padding-left: 0; }
  .chamada__foto{ display: none; }
  .chamada--materiais .chamada__conteudo{ padding: 30px 20px 34px; }
  .chamada__titulo{ font-size: 22px; }
  .chamada__lockup{ width: 240px; }
  .botao--lima{ width: min(100%, 300px); }

  .chamada--doacao{
    min-height: 0;
    border-radius: 0 55px 0 55px;
  }
  .chamada--doacao .chamada__conteudo{ padding: 42px 24px 46px; }
  .chamada__titulo--verde{ font-size: 28px; }

  /* ----------------------------- redes ---------------------------------- */
  .redes{ margin-top: 46px; }
  .redes__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 0;
    min-height: 0;
    width: calc(100% - var(--margem-lateral) * 2);
  }
  .redes__titulo{ font-size: 20px; }
  .redes__lista{ gap: 22px; }
  .redes__lista svg{ width: 30px; height: 30px; }

  /* ---------------------------- rodapé ---------------------------------- */
  .rodape__inner{
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 0 36px;
    width: calc(100% - var(--margem-lateral) * 2);
  }
  .rodape__marca{ flex: none; }
  .rodape__marca img{ width: 270px; }
  .rodape__nav{ flex: none; padding-top: 0; text-align: center; }
  .rodape__nav li + li{ margin-top: 16px; }
  .rodape__legal{ flex: none; padding-top: 0; max-width: 420px; }
}

/* --------------------------- movimento reduzido -------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
