@font-face {
  font-family: "CormorantCustom";
  src: local("Cormorant Garamond");
}

@font-face {
  font-family: "InterCustom";
  src: local("Inter");
}

@font-face {
  font-family: 'Editorial Regular';
  src: url('Fonts/New-PP-Editorial/PPEditorialNew-Regular-BF644b214ff145f.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f3dfbd;
  color: #111;
  min-height: 100vh;
  font-family: "InterCustom", Arial, sans-serif;
}

.hero {
  width: 100%;
  min-height: 100vh;
  background: #f3dfbd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 34px;
  overflow: hidden;
}

.top,
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: clamp(8px, 0.8vw, 12px);
  letter-spacing: 7px;
  font-weight: 500;
}

.top span,
.bottom span {
  letter-spacing: 0.5px;
  font-size: 8px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
}

.title-image {
  width: 100%;
  max-width: 700px;
  min-width: 280px;
  height: auto;
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: minmax(180px, 360px) 70px minmax(180px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 70px);
  width: 100%;
}

.card {
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  filter: brightness(1.05);
}

.card > img:not(.estacas) {
  width: 100%;
  display: block;
}

.logo-y {
  width: clamp(22px, 3vw, 45px);
  height: auto;
  justify-self: center;
}

.bottom {
  align-items: flex-end;
}

.card {
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  background-image: url("img/estacas.webp");
  background-repeat: no-repeat;
  background-size: 420px auto;
  pointer-events: none;
  z-index: 5;
  animation: flutuarEstacas 2.6s ease-in-out infinite;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.card::before {
  top: -46px;
  right: -58px;
  background-position: right top;
}

.card::after {
  bottom: -46px;
  left: -58px;
  background-position: left bottom;
}

@keyframes estacasMove {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ESTACAS */
.estacas {
  position: absolute;
  width: 105px !important;
  height: 105px;
  z-index: 5;
  pointer-events: none;

  background-image: url("img/estacas.webp");
  background-repeat: no-repeat;
  background-size: 420px auto;

  object-fit: unset;
  animation: flutuarEstacas 2.6s ease-in-out infinite;
}

/* esconde a imagem original para evitar borrado */
.estacas {
  content: url("");
}

/* superior direita */
.estacas-right {
  top: -46px;
  right: -58px;
  background-position: right top;
}

/* inferior esquerda */
.estacas-left {
  bottom: -46px;
  left: -58px;
  background-position: left bottom;
}

@keyframes flutuarEstacas {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .hero {
    min-height: 100vh;
    padding: 28px 18px;
  }

  .content {
  flex: 1;
  justify-content: center;
  gap: 24px;
  transform: none;
  padding: 14px 18px 28px;
}


.cards {
  gap: 10px !important;
  transform: translateY(25px);
}

  .title-image {
    width: 90%;
    max-width: 370px;
    min-width: 280px;
    transform: translateX(15px);
  
  }


 .card::before,
  .card::after {
    width: 42px;
    height: 42px;
    background-size: 180px auto;
  }

  .card::before {
    top: -18px;
    right: -18px;
  }

  .card::after {
    bottom: -18px;
    left: -18px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "youdka petroquiz"
      "logo logo";
    gap: 50px 55px;
    max-width: 370px;
  }

  .youdka {
    grid-area: youdka;
    transform: translateX(15px);
  }

  .petroquiz {
    grid-area: petroquiz;
    transform: translateX(10px);
  }

 .logo-y {
  grid-area: logo;
  width: 26px;
  justify-self: center;
  margin-top: 35px;
    transform: translateY(35px);
}
  .card {
    max-width: none;
  }

     .estacas {
    width: 52px !important;
    height: 52px;
    background-size: 220px auto;
  }

  .estacas-right {
    top: -25px;
    right: -28px;
  }

  .estacas-left {
    bottom: -25px;
    left: -28px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 26px 14px;
  }

  .top,
  .bottom {
    font-size: 7px;
    letter-spacing: 3px;
  }

  .top span,
  .bottom span {
    font-size: 6px;
  }

  .content {
    gap: 32px;
    transform: translateY(-10px);
  }

  .title-image {
    width: 92%;
    max-width: 340px;
  }

  .cards {
    max-width: 340px;
    gap: 48px 20px;
  }

  .logo-y {
    width: 24px;
    margin-top: 4px;
  }

   .estacas {
    width: 36px !important;
    height: 36px;
  }
}