:root {
  --fundo: #f2e8d9;
  --verde: #45482a;
  --botao: rgba(253, 239, 215, 0.5);
  --terracota: #b96b4c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;

  overflow-x: hidden;

  background-color: var(--fundo);

  font-family: "Poppins", sans-serif;
}

.pagina-links {
  position: relative;

  isolation: isolate;

  width: min(100%, 767px);

  aspect-ratio: 767 / 2000;

  overflow: hidden;

  background-color: var(--fundo);

  background-image:
    url("assets/fundo-ele-vive.png");

  background-repeat: no-repeat;

  background-position: center top;

  background-size: cover;
}

.sombra-topo {
  position: absolute;

  z-index: 0;

  top: 0;
  right: 0;
  left: 0;

  height: 20.5%;

  opacity: 0.62;

  background:
    linear-gradient(
      to bottom,
      var(--verde),
      rgba(69, 72, 42, 0)
    );

  pointer-events: none;
}

.marca {
  position: absolute;

  z-index: 1;

  top: 7.05%;
  left: 50%;

  width: 39.11%;

  margin: 0;

  transform: translateX(-50%);

  text-align: center;
}

.marca__logo {
  display: block;

  width: 100%;
  height: auto;
}

.marca__frase {
  margin: 0.47% 0 0;

  color: var(--verde);

  font-size:
    clamp(
      6px,
      1.958vw,
      15.019px
    );

  font-weight: 500;

  line-height: 1.53;

  letter-spacing: 0.2em;

  white-space: nowrap;
}

.lista-links {
  position: absolute;

  z-index: 1;

  top: 29.65%;
  left: 17.21%;

  display: flex;

  width: 65.58%;

  flex-direction: column;

  gap:
    clamp(
      23px,
      7.171vw,
      55px
    );
}

.item-link {
  display: grid;

  width: 100%;

  aspect-ratio: 503 / 98.895;

  grid-template-columns:
    18.983%
    78.984%;

  column-gap: 2.033%;

  color: var(--verde);

  text-decoration: none;

  -webkit-tap-highlight-color: transparent;

  transition: transform 180ms ease;
}

.item-link__icone {
  display: block;

  width: 100%;
  height: 100%;
}

.item-link__icone--email {
  display: flex;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border:
    clamp(
      1px,
      0.261vw,
      2px
    )
    solid
    var(--verde);

  border-radius:
    clamp(
      8px,
      2.668vw,
      20.461px
    );

  background-color: var(--botao);

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.item-link__icone--email img {
  display: block;

  width: 59%;
  height: 59%;

  object-fit: contain;
}

.item-link__botao {
  display: flex;

  min-width: 0;

  align-items: center;
  justify-content: center;

  border:
    clamp(
      1px,
      0.261vw,
      2px
    )
    solid
    var(--verde);

  border-radius:
    clamp(
      8px,
      2.668vw,
      20.461px
    );

  background-color: var(--botao);

  color: var(--verde);

  font-size:
    clamp(
      16px,
      5.172vw,
      39.667px
    );

  font-weight: 400;

  line-height: 1.5;

  white-space: nowrap;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.item-link:focus-visible {
  outline:
    clamp(
      2px,
      0.391vw,
      3px
    )
    solid
    var(--verde);

  outline-offset:
    clamp(
      3px,
      0.652vw,
      5px
    );

  border-radius:
    clamp(
      8px,
      2.668vw,
      20.461px
    );
}

/* ANIMAÇÃO AO CLICAR */

.item-link:active {
  transform: scale(0.97);
}

.item-link:active .item-link__botao {
  color: var(--terracota);

  border-color: var(--terracota);

  background-color: rgba(185, 107, 76, 0.16);

  box-shadow:
    0 0 0 4px
    rgba(185, 107, 76, 0.13);
}

.item-link:active .item-link__icone--email {
  border-color: var(--terracota);

  background-color: rgba(185, 107, 76, 0.16);

  box-shadow:
    0 0 0 4px
    rgba(185, 107, 76, 0.13);
}

@media (hover: hover) {
  .item-link:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-link,
  .item-link__botao,
  .item-link__icone--email {
    transition: none;
  }
}