/* WA Consórcio — landing page v1. Celular primeiro; ajustes em 768 px e 1024 px. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fontes/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fontes/outfit-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --marinho: #124058;
  --marinho-escuro: #0d2b40;
  --branco: #ffffff;
  --gelo: #eef3f7;
  --ardosia: #45596b;
  --whatsapp: #1e7f47;
  --whatsapp-escuro: #186a3b;
  --texto-claro: #d7e4ee;
  --linha: #c9d4dd;
  --margem: max(1.25rem, calc((100% - 68rem) / 2));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--marinho-escuro);
  background: var(--branco);
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  color: var(--marinho);
}

h3 {
  font-size: 1.1875rem;
}

p {
  text-wrap: pretty;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Topo: marca WA, divisória e assinatura Servopa (medidas em px para a marca
   ficar do mesmo tamanho mesmo com a fonte do sistema aumentada). */

header {
  background: #ffffff;
  border-bottom: 1px solid var(--linha);
}

.topo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--margem);
}

.marca-wa {
  width: 52px;
  height: 52px;
  flex: none;
}

.divisoria {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--linha);
  flex: none;
}

.assinatura-area {
  padding: 16px;
  flex: none;
}

.assinatura-servopa {
  width: 150px;
  min-width: 75px;
  height: auto;
}

/* Quem sou */

#quem-sou {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  grid-template-areas:
    "foto nome"
    "foto funcao"
    "apoio apoio"
    "texto texto"
    "botao botao";
  column-gap: 1rem;
  padding: 1.5rem var(--margem) 1.75rem;
  background: var(--marinho);
  color: var(--branco);
}

#quem-sou .foto {
  grid-area: foto;
  width: 100%;
  border-radius: 6px;
}

#quem-sou h1 {
  grid-area: nome;
  align-self: end;
  font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

#quem-sou .funcao {
  grid-area: funcao;
  align-self: start;
  margin-top: 0.5rem;
  color: var(--texto-claro);
  line-height: 1.35;
}

#quem-sou .apoio {
  grid-area: apoio;
  margin-top: 1.25rem;
  font-weight: 600;
}

#quem-sou .texto {
  grid-area: texto;
  margin-top: 0.5rem;
  color: var(--texto-claro);
}

#quem-sou .botao {
  grid-area: botao;
  margin-top: 1.25rem;
}

/* Botões */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.botao-whatsapp {
  background: var(--whatsapp);
  color: var(--branco);
}

.botao-whatsapp:hover {
  background: var(--whatsapp-escuro);
}

.botao-contorno {
  border: 2px solid var(--branco);
  color: var(--branco);
}

.botao-contorno:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Seções de conteúdo */

#trajetoria,
#o-que-fazemos,
#como-funciona,
#contato {
  padding: 3rem var(--margem);
}

#trajetoria h2,
#o-que-fazemos h2,
#como-funciona h2,
#contato h2 {
  margin-bottom: 1.5rem;
}

/* Trajetória: linha do tempo vertical */

.linha-do-tempo {
  list-style: none;
  padding: 0;
  max-width: 40rem;
}

.linha-do-tempo li {
  position: relative;
  padding: 0 0 1.125rem 1.75rem;
  font-size: 1.0625rem;
}

.linha-do-tempo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--marinho);
}

.linha-do-tempo li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.45em + 11px);
  bottom: 0;
  width: 1px;
  background: var(--linha);
}

.linha-do-tempo li:last-child {
  padding-bottom: 0;
}

.linha-do-tempo li:last-child::after {
  display: none;
}

/* O que fazemos */

#o-que-fazemos {
  background: var(--gelo);
}

.servicos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.servicos li {
  border-top: 3px solid var(--marinho);
  padding-top: 0.875rem;
}

.servicos h3 {
  color: var(--marinho);
  margin-bottom: 0.375rem;
}

.servicos p {
  color: var(--ardosia);
}

/* Como funciona: passos numerados */

.passos {
  list-style: none;
  padding: 0;
  counter-reset: passo;
  display: grid;
  gap: 1.25rem;
}

.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: baseline;
  font-size: 1.0625rem;
}

.passos li::before {
  content: counter(passo);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--marinho);
}

.custos {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.375rem;
  background: var(--gelo);
  border-left: 4px solid var(--marinho);
}

.custos h3 {
  color: var(--marinho);
  margin-bottom: 0.5rem;
}

.custos p + p {
  margin-top: 0.5rem;
}

.custos p {
  color: var(--ardosia);
}

/* Contato */

#contato {
  background: var(--marinho-escuro);
  color: var(--branco);
}

#contato h2 {
  color: var(--branco);
}

.contato-texto {
  max-width: 36rem;
  color: var(--texto-claro);
  font-size: 1.0625rem;
}

/* O número do WhatsApp fica numa linha só. */
.telefone {
  white-space: nowrap;
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.botoes .botao {
  flex: 1 1 14rem;
}

/* Rodapé */

footer {
  padding: 2rem var(--margem) 2.25rem;
  background: var(--gelo);
  color: var(--ardosia);
}

footer p + p {
  margin-top: 0.5rem;
}

footer p {
  max-width: 48rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--marinho);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

footer a:hover {
  text-decoration-thickness: 2px;
}

/* Tablet */

@media (min-width: 768px) {
  .topo {
    gap: 20px;
  }

  .marca-wa {
    width: 60px;
    height: 60px;
  }

  .divisoria {
    height: 52px;
  }

  .assinatura-servopa {
    width: 180px;
  }

  #quem-sou {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    column-gap: 2rem;
    padding-block: 2.5rem;
  }

  #quem-sou .botao {
    justify-self: start;
    align-self: start;
  }

  #quem-sou .apoio,
  #quem-sou .texto {
    max-width: 36rem;
  }

  .servicos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .botoes .botao {
    flex: 0 1 auto;
  }

  #trajetoria,
  #o-que-fazemos,
  #como-funciona,
  #contato {
    padding-block: 4rem;
  }
}

/* Computador: título numa coluna, conteúdo na outra; foto à direita no topo */

@media (min-width: 1024px) {
  .assinatura-servopa {
    width: 200px;
  }

  #quem-sou {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas:
      ". foto"
      "nome foto"
      "funcao foto"
      "apoio foto"
      "texto foto"
      "botao foto";
    column-gap: 4rem;
    padding-block: 4rem;
  }

  #quem-sou .funcao {
    font-size: 1.25rem;
  }

  #quem-sou .apoio,
  #quem-sou .texto {
    max-width: 34rem;
    font-size: 1.125rem;
  }

  #trajetoria,
  #o-que-fazemos,
  #como-funciona,
  #contato {
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: start;
  }

  #trajetoria > *,
  #o-que-fazemos > *,
  #como-funciona > *,
  #contato > * {
    grid-column: 2;
  }

  #trajetoria h2,
  #o-que-fazemos h2,
  #como-funciona h2,
  #contato h2 {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
}
