@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400..800&display=swap");

:root {
  --navy: #144365;
  --deep-navy: #0c2a40;
  --gold: #9c7141;
  --mist: #eef2f5;
  --line: #c5d1da;
  --radius: 0.5rem;
  --gap: 4rem;
}

/* o reset fixa height: 100svh; deixa a página crescer com o conteúdo */
html,
body {
  height: auto;
  min-height: 100svh;
}

html {
  background: var(--mist);
  /* sem o "elástico" ao rolar além do topo/rodapé no celular */
  overscroll-behavior-y: none;
}

body {
  /* rodapé sempre no fim da tela, mesmo com pouco conteúdo */
  display: flex;
  flex-direction: column;
  font-family: Montserrat, sans-serif;
  color: var(--navy);
  background: var(--mist);
}

main {
  flex: 1;
}

/* coluna central compartilhada por todas as seções */
.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.2s;

  &:hover {
    filter: brightness(1.1);
  }
}

header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.5rem;

  & #logo_header {
    width: 12rem;
    margin-right: auto;
  }
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1rem 2rem;

  /* símbolo da marca ao lado do título */
  & .hero_mark {
    flex-shrink: 0;
    width: clamp(3.5rem, 7vw, 5rem);
  }

  & h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  & p {
    margin-top: 0.4rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #3d5568;
  }
}

.services {
  padding-bottom: var(--gap);

  & h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
  }

  & li {
    border-top: 1px solid var(--line);

    &:last-child {
      border-bottom: 1px solid var(--line);
    }
  }

  /* a linha inteira é o link */
  & li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.25rem;
  }

  & .service_text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  & strong {
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-decoration: underline 3px transparent;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.25s;
  }

  & .service_text > span {
    font-size: 1.1rem;
    color: #3d5568;
  }

  & em {
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
  }

  & img {
    flex-shrink: 0;
    width: 8rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
  }

  & li > a:hover strong {
    text-decoration-color: var(--gold);
  }
}

footer {
  background: var(--deep-navy);
  color: #d6e0e8;

  & .contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3rem;

    & h2 {
      font-size: 2rem;
      font-weight: 800;
      color: #fff;
    }

    & p {
      max-width: 36rem;
      margin-top: 0.5rem;
      line-height: 1.6;
    }

    & p a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  & .legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.85rem;

    & a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }

    /* logo em branco sobre o fundo escuro */
    & img {
      width: 8rem;
      filter: brightness(0) invert(1);
    }
  }
}

a.whatsapp_float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  transition: filter 0.2s;

  &:hover {
    filter: brightness(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 600px) {
  :root {
    --gap: 2.5rem;
  }

  .mobile_hidden {
    display: none;
  }

  header {
    justify-content: center;

    & #logo_header {
      width: min(55vw, 14rem);
      margin-right: 0;
    }
  }

  .services {
    & li > a {
      gap: 1rem;
      padding-block: 1rem;
    }

    & .service_text > span {
      font-size: 0.95rem;
    }

    & img {
      width: 5.5rem;
    }
  }

  footer {
    & .contact,
    & .legal {
      flex-direction: column;
      align-items: flex-start;
    }

    /* espaço para o botão flutuante do WhatsApp */
    & .legal {
      padding-bottom: 6rem;
    }
  }
}
