/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Work Sans", sans-serif;
  color: white;
}

/* Plano de fundo e layout principal */
body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-content: end;

  height: 100vh;
  padding: 40px 64px;

  background-image: url("../images/wireframe-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Coluna da esquerda (main) */
main {
  display: grid;
  grid-template-columns: 300px 200px;
  justify-content: start;
  align-items: end;
  gap: 24px;
}

main h1 {
  font-size: 88px;
  font-weight: 200;
  line-height: 1;
}

.logo {
  width: 160px;
  transform: translateY(12px);
  transition: width 0.3s ease;
}

main p {
  font-size: 28px;
  font-weight: 400;
  grid-column: span 2;
}

/* Coluna da direita (section) */
section {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 24px;
}

.pattern {
  width: 56px;
  height: auto;
}

.texto {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.button {
  border: 1px solid white;
  padding: 16px 24px;
  background: transparent;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  display: inline-block;
  width: fit-content;
  height: fit-content;
  transition: background 0.3s, border 0.3s;
  border-radius: 8px;
}

.button:hover {
  border: 1px solid transparent;
  background: #da291c;
}

/* ========== Tablet (até 1024px) ========== */
@media (max-width: 1024px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c2340;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
  }

  body > * {
    position: relative;
    z-index: 1;
  }

  body {
    height: auto;
    align-content: start;
    grid-template-columns: 1fr;
    padding: 32px 48px;
    background-size: auto;
    background-position: 60%;
  }

  main::before {
    content: "";
    display: block;
    height: 80px;
  }
  main {
    grid-template-columns: 1fr;
    /* justify-content: start; */
    align-items: start;
    gap: 32px;
  }

  .logo {
    filter: brightness(0) saturate(100%) invert(23%) sepia(89%) saturate(6300%)
      hue-rotate(-4deg);
    width: 200px;
    transform: translateY(-12px);
  }

  main p {
    text-align: right;
    justify-self: flex-end;
    grid-column: span 1;
    font-size: 32px;
  }

  main .button {
    justify-self: end;
  }

  section::before {
    content: "";
    display: block;
    height: 120px;
  }
  section {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: start;
    gap: 40px;
  }

  .pattern {
    grid-column: 1;
    width: 100px;
  }

  .texto {
    grid-column: 2;
    font-size: 18px;
  }

  section .button {
    grid-column: 2;
    justify-self: end;
  }

  .button {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 4px;
  }
}

/* ========== Celular (até 600px) ========== */
@media (max-width: 600px) {
  body {
    padding: 24px;
    gap: 32px;
  }

  main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main h1 {
    color: white;
    font-size: 56px;
  }

  main p {
    font-size: 18px;
  }

  section {
    gap: 24px;
  }
  .logo {
    filter: brightness(0) saturate(100%) invert(23%) sepia(89%) saturate(6300%)
      hue-rotate(-4deg);
    width: 120px;
  }

  .texto {
    font-size: 16px;
  }

  .button {
    font-size: 16px;
    padding: 12px 20px;
  }

  .pattern {
    width: 60px;
  }
}
