/* ================= SOBRE (flyers) ================= */

.sobre {
  position: relative;
  padding: clamp(70px, 9vw, 130px) var(--pad);
  background: var(--navy) url('../../assets/img/textura-2.jpg') center / 900px auto;
  background-blend-mode: soft-light;
  color: var(--white);
}

.sobre__head {
  max-width: 1300px;
  margin: 0 auto clamp(30px, 5vw, 70px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.sobre__title {
  font-family: var(--font-borgy);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 170px);
  line-height: 1;
  color: var(--yellow);
}

.sobre__kicker {
  font-family: var(--font-pixel);
  font-size: clamp(15px, 1.9vw, 24px);
  letter-spacing: 0.06em;
}

/* ---------- revista de folhear ---------- */

.book {
  --paper: #efe9dc;
  --paper-2: #d2cbbd;
  --flip: 0.9s;
  width: min(1240px, 100%, 126vh);
  margin: 0 auto;
  transition: opacity 0.7s ease, translate 0.8s var(--ease-out);
}

/* Palco com 2 páginas de largura; as folhas ficam na metade direita e giram pela lombada.
   Cada página é 3:4, a proporção das artes do feed (810×1080) */
.book__sheets {
  position: relative;
  aspect-ratio: 3 / 2;
  perspective: 2600px;
  transition: transform var(--flip) var(--ease);
  touch-action: pan-y;
  user-select: none;
}

/* Fechada, a revista fica centralizada (capa sozinha ou contracapa sozinha) */
.book[data-state='closed'] .book__sheets { transform: translateX(-25%); }
.book[data-state='end'] .book__sheets { transform: translateX(25%); }

.sheet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform var(--flip) var(--ease);
}

.sheet.is-flipped {
  transform: rotateY(-180deg);
}

/* Cada página é o container dos cqi dos FILHOS; nas regras da própria página use % (cqi ali mediria a tela) */
.page {
  container-type: inline-size;
  overflow: hidden;
  color: var(--white);
  cursor: pointer;
}

.sheet > .face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.sheet > .face--back {
  transform: rotateY(180deg);
}

/* Bordas de páginas empilhadas */
.page--left {
  box-shadow: -3px 3px 0 var(--paper), -6px 6px 0 var(--paper-2), -9px 9px 0 var(--paper), -20px 34px 50px -10px rgba(0, 0, 0, 0.5);
}

.page--right {
  box-shadow: 3px 3px 0 var(--paper), 6px 6px 0 var(--paper-2), 9px 9px 0 var(--paper), 20px 34px 50px -10px rgba(0, 0, 0, 0.5);
}

.book__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
}

.book__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--pink);
  transition: translate 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.book__btn:hover:not(:disabled) {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--pink);
}

.book__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.book__label {
  min-width: 12ch;
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.1vw, 14px);
  text-align: center;
  text-transform: uppercase;
}

.book__hint {
  margin-top: 10px;
  font-family: var(--font-narrow);
  font-size: 14px;
  text-align: center;
  opacity: 0.6;
}

.book__hint--mob {
  display: none;
}

/* Dobra central: sombra na lombada + brilho do papel */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.page--left::before {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12) 4%, transparent 11%, rgba(255, 255, 255, 0.07) 16%, transparent 30%);
}

.page--right::before {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12) 4%, transparent 11%, rgba(255, 255, 255, 0.07) 16%, transparent 30%);
}

/* Páginas que são a própria arte do feed */
.page__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rodapé de revista: número da página + seção */
.page__folio {
  position: absolute;
  left: 4cqi;
  right: 4cqi;
  bottom: 3cqi;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  font-family: var(--font-pixel);
  font-size: max(8px, 1.7cqi);
  line-height: 1;
  text-transform: uppercase;
}

.page--right .page__folio {
  flex-direction: row-reverse;
}

.page__folio b,
.page__folio span {
  padding: 1.1cqi 1.6cqi 0.9cqi;
  font-weight: 400;
}

.page__folio b {
  background: var(--yellow);
  color: var(--navy);
}

.page__folio span {
  background: var(--navy);
  color: var(--white);
}

.flyer__caps,
.flyer__box,
.flyer__wave {
  font-family: var(--font-narrow);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  text-align: justify;
}

.flyer__caps p + p {
  margin-top: 0.8em;
}

.flyer__quote {
  font-family: var(--font-script);
  font-size: max(17px, 5cqi);
  line-height: 1.15;
}

/* 01 · origem */
.flyer--origem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3%;
  padding: 7% 6% 6%;
  background: var(--green);
}

.flyer__pixel {
  position: absolute;
  top: 5cqi;
  left: 8cqi;
  width: 66cqi;
  z-index: 0;
}

.flyer__logo {
  position: relative;
  z-index: 1;
  width: 92%;
  margin-top: 5cqi;
}

.flyer__box {
  position: relative;
  z-index: 1;
  padding: 3.4cqi 4cqi;
  background: #8f22ff;
  font-size: max(11px, 3.6cqi);
  rotate: -3.5deg;
  box-shadow: 1.2cqi 1.2cqi 0 rgba(0, 0, 0, 0.12);
}

.flyer__djprod {
  align-self: flex-end;
  width: 42%;
  margin-right: 4cqi;
}

/* 02 · pioneire */
.flyer--pioneire {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  background: var(--red);
}

.flyer__heads {
  display: contents;
}

.head {
  overflow: hidden;
  min-height: 0;
}

.head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.head--yellow img { filter: url(#tint-yellow); }
.head--pink img { filter: url(#tint-pink); }
.head--purple img { filter: url(#tint-purple); }
.head--green img { filter: url(#tint-green); }
.head--navy img { filter: url(#tint-navy); }

.flyer__center {
  grid-area: 2 / 2 / 6 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5cqi;
  padding: 4cqi 2cqi;
}

.flyer__wave {
  font-size: max(11px, 3.3cqi);
  transform: perspective(70cqi) rotateY(-10deg) rotate(-7deg) skewY(-4deg);
}

.flyer--pioneire .flyer__quote {
  color: var(--yellow);
  rotate: -7deg;
}

.flyer--pioneire .flyer__quote .hl {
  display: inline-block;
  letter-spacing: 0.18em;
  border-bottom: 2px solid currentColor;
}

/* 03 · pulso / paixão */
.flyer--pulso {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--purple);
}

.flyer__onca {
  width: 100%;
  flex-shrink: 0;
}

.flyer__onca--bottom {
  rotate: 180deg;
}

.flyer__stack {
  display: flex;
  flex-direction: column;
  gap: 5cqi;
  padding: 3cqi 12cqi;
}

.flyer--pulso .flyer__caps {
  font-size: max(10px, 2.6cqi);
}

.flyer--pulso .flyer__quote {
  text-align: center;
  font-size: max(16px, 4.4cqi);
}

.flyer--pulso .flyer__quote .hl:last-of-type {
  color: var(--green);
}

/* 04 · open format */
.flyer--open {
  display: flex;
  flex-direction: column;
  background: linear-gradient(100deg, var(--purple) 0 22%, var(--navy) 22%);
}

.flyer__shape {
  position: relative;
  padding: 6cqi 8cqi;
}

.flyer__shape--yellow {
  margin-right: 10cqi;
  padding-top: 9cqi;
  background: var(--yellow);
  color: var(--navy);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 92%);
}

.flyer__shape--yellow .flyer__caps {
  font-size: max(10px, 2.5cqi);
}

.flyer__shape--red {
  margin: -3cqi 4cqi 0 12cqi;
  padding: 7cqi 8cqi;
  background: var(--red);
  clip-path: polygon(6% 0, 100% 8%, 92% 100%, 0 90%);
}

.flyer__shape--red .flyer__quote {
  color: var(--white);
  font-size: max(15px, 4.2cqi);
}

.flyer__shape--red .hl {
  letter-spacing: 0.14em;
}

.flyer__shape--green {
  flex: 1;
  display: grid;
  place-items: center;
  margin: -2cqi 0 0 6cqi;
  background: var(--green);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 8% 100%);
}

.flyer__big {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: max(15px, 4.6cqi);
  line-height: 1.02;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0.4cqi 0 var(--navy);
}

/* ---------- capa ---------- */
.cover {
  background: var(--navy);
}

.cover__heads {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
}

.cover__heads .head img {
  object-position: 50% 25%;
}

.cover__mast {
  position: absolute;
  top: 3cqi;
  left: 4cqi;
  width: 92cqi;
  z-index: 2;
  filter: drop-shadow(0 1.2cqi 0 rgba(33, 0, 175, 0.55));
}

.cover__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 2.4cqi 4cqi 2.2cqi;
  background: var(--red);
  font-family: var(--font-pixel);
  font-size: max(8px, 2cqi);
  text-transform: uppercase;
}

/* ---------- contracapa ---------- */
/* Fundo no tom da pele que aparece por baixo da calcinha */
.backcover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 8% 8% 50%;
  background: #e2862c;
}

.backcover__logo {
  width: 78cqi;
  filter: drop-shadow(0 1cqi 0 rgba(0, 0, 0, 0.18));
}

/* Calcinha encostada embaixo, de lateral a lateral */
.backcover__bunda {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.backcover__contact {
  display: grid;
  justify-items: center;
  gap: 1.4cqi;
  color: var(--navy);
  text-decoration: none;
  text-align: center;
}

.backcover__contact span {
  font-family: var(--font-borgy);
  font-size: max(26px, 11cqi);
  line-height: 1;
  color: var(--navy);
}

.backcover__contact b {
  padding: 1.4cqi 3cqi 1.2cqi;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-size: max(11px, 3.4cqi);
}

/* No celular a revista vira um carrossel: uma página por vez, deslizando pro lado */
@media (max-width: 700px) {
  .book__sheets,
  .book[data-state] .book__sheets {
    display: flex;
    aspect-ratio: auto;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: none;
    perspective: none;
    touch-action: auto;
  }

  .book__sheets::-webkit-scrollbar {
    display: none;
  }

  .sheet {
    display: contents;
  }

  .sheet > .face,
  .sheet > .face--back {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    aspect-ratio: 3 / 4;
    transform: none;
    backface-visibility: visible;
    scroll-snap-align: center;
    box-shadow: none;
  }

  .page::before {
    display: none;
  }

  .page--right .page__folio {
    flex-direction: row;
  }

  .book__hint--desk {
    display: none;
  }

  .book__hint--mob {
    display: inline;
  }
}
