:root {
  --navy: #0f1f37;
  --navy-soft: #0f2034;
  --cream: #eeeae9;
  --light-copy: #e8e3e0;
  --beige: #bfb3a3;
  --muted-beige: #b8ac9c;
  --font-display: "pf-marlet-display", "Times New Roman", serif;
  --font-sans: "comma-base", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--cream);
  font-family: var(--font-sans);
  font-synthesis: none;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
}

.panel--textured {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.display-copy {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

.sans-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.65;
  text-transform: uppercase;
}

.mobile-copy {
  display: none;
}

.arrow {
  display: block;
  width: 1.25vw;
  height: auto;
}

.panel__next {
  position: absolute;
  right: 5.6vw;
  bottom: 10.2vh;
  z-index: 5;
  display: block;
  text-decoration: none;
}

.panel__next--navy {
  color: var(--navy);
}

.panel__next--beige {
  color: var(--beige);
}

.panel__next--beige .arrow {
  filter: brightness(0) saturate(100%) invert(78%) sepia(9%) saturate(476%) hue-rotate(355deg) brightness(92%) contrast(87%);
}

/* 01 — abertura */
.hero {
  background-image: url("../Desktop/fundo-desktop-01.jpg");
}

.hero__logo {
  position: absolute;
  bottom: -1.8vh;
  left: -0.9%;
  display: block;
  width: 71.8vw;
  height: auto;
}

.hero__cue {
  position: absolute;
  top: 11.7vh;
  right: 5.55vw;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  color: var(--navy-soft);
  font-size: clamp(0.4rem, 0.76vw, 0.82rem);
  letter-spacing: 0.22em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__cue span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* 02 — mensagem */
.message {
  color: var(--navy-soft);
  background: var(--cream);
}

.message .panel__next,
.date-panel .panel__next {
  color: var(--navy-soft);
}

.message__art {
  position: absolute;
  top: 26.86%;
  left: 50.5%;
  display: block;
  width: 45.81vw;
  transform: translateX(-50%);
}

.message__art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* 03 — data */
.date-panel {
  color: var(--navy-soft);
  background-image: url("../Desktop/fundo-desktop-03.jpg");
}

.date-panel__copy {
  position: absolute;
  top: 42.8%;
  left: 16.9vw;
  font-size: clamp(0.7rem, 1.55vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.55;
  text-transform: uppercase;
}

.date-panel__copy p {
  margin: 0;
}

.date-panel__copy p + p {
  margin-top: 4.8vh;
}

.date-panel__numbers {
  position: absolute;
  top: 22.1%;
  right: 19.1vw;
  display: block;
  width: auto;
  height: 57.8vh;
}

/* 04 — locais */
.locations {
  background: var(--cream);
}

.locations__ceremony,
.locations__reception {
  position: absolute;
}

.locations__ceremony {
  top: 20.1%;
  right: 13.3vw;
  width: 46.2vw;
  text-align: center;
}

.locations__reception {
  top: 64.3%;
  left: 11.65vw;
  text-align: left;
}

.locations .sans-copy {
  font-size: clamp(0.7rem, 1.55vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
}

.locations .sans-copy strong {
  font-weight: 700;
}

.locations__ceremony > .sans-copy {
  padding-right: 0.6vw;
  text-align: right;
}

.locations__ceremony > h2.desktop-copy {
  width: 100%;
  text-align: right;
}

.locations h2 {
  margin-top: 5.4vh;
  font-size: clamp(1.6rem, 3.6vw, 4.5rem);
  line-height: 1.46;
}

.locations__reception h2 {
  margin-top: 4.5vh;
}

.locations__divider {
  position: absolute;
  top: 0;
  right: 10vw;
  width: 1px;
  height: 50.5%;
  background: var(--beige);
}

.locations__reception::before {
  position: absolute;
  top: -3.9vh;
  left: -3.65vw;
  width: 1px;
  height: 39.6vh;
  background: var(--beige);
  content: "";
}

/* 05 — orientações */
.guidance {
  color: var(--light-copy);
  background: var(--navy);
}

.guidance .sans-copy {
  font-size: clamp(0.7rem, 1.5vw, 2rem);
  line-height: 1.75;
}

.guidance__dress,
.guidance__colors,
.guidance__gift {
  position: absolute;
}

.guidance__dress {
  top: 19.7%;
  left: 12.7vw;
}

.guidance__colors {
  top: 44.9%;
  right: 10.75vw;
  text-align: right;
}

.guidance__gift {
  top: 65.7%;
  left: 12.7vw;
}

.pix-button {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  width: 23.9vw;
  min-height: 4.8vh;
  margin-top: 3.1vh;
  margin-left: -0.3vw;
  padding: 0.55vh 1.25vw;
  border: 0;
  border-radius: 0.6vw;
  color: var(--navy);
  background: var(--beige);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pix-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.pix-button__icon {
  display: block;
  flex: 0 0 auto;
  width: 1.5vw;
  height: auto;
}

.pix-feedback {
  position: absolute;
  top: calc(100% + 0.7vh);
  left: -0.3vw;
  width: 23.9vw;
  color: var(--beige);
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 0.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pix-feedback.is-visible {
  opacity: 1;
}

/* 06 — confirmação */
.confirmation {
  background-image: url("../Desktop/fundo-desktop-06.jpg");
}

.confirmation__monogram {
  position: absolute;
  top: 27%;
  left: 50%;
  display: block;
  width: auto;
  height: 14.8vh;
  transform: translateX(-50%);
}

.confirmation__copy {
  position: absolute;
  top: 51.7%;
  left: 50%;
  width: 60vw;
  font-size: clamp(0.7rem, 1.42vw, 2rem);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  transform: translateX(-50%);
}

.confirmation__copy p {
  margin: 0;
}

.confirmation__copy p + p {
  margin-top: 5.45vh;
}

.confirmation__wordmark {
  position: absolute;
  bottom: -0.8vw;
  left: -1.4vw;
  display: block;
  width: 102.8vw;
  height: auto;
  opacity: 0.12;
  filter: brightness(0) invert(1);
}

@media (orientation: portrait) and (max-width: 1024px) {
  .desktop-copy {
    display: none !important;
  }

  .mobile-copy {
    display: block;
  }

  .panel {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .panel__next {
    right: auto;
    bottom: 6.25vh;
    left: 11.8vw;
  }

  .arrow {
    width: 3.45vw;
    height: auto;
  }

  /* 01 */
  .hero {
    background-image: url("../Mobile/fundo-mobile-01.jpg");
  }

  .hero__logo {
    top: 61%;
    bottom: auto;
    left: 74.5%;
    width: 88.9svh;
    max-width: none;
    transform: translate(-50%, -60%) rotate(-90deg);
  }

  .hero__cue {
    top: auto;
    right: auto;
    bottom: 6.15vh;
    left: 11.8vw;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 3.45vw;
    font-size: 14px;
  }

  .hero__cue span {
    position: static;
    width: max-content;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  /* 02 */
  .message__art {
    top: 28.76%;
    left: 50.75%;
    width: 68.92vw;
    transform: translateX(-50%);
  }

  /* 03 */
  .date-panel {
    background-image: url("../Mobile/fundo-mobile-03.jpg");
  }

  .date-panel__copy {
    top: 14.4%;
    left: 50%;
    width: 82%;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    transform: translateX(-50%);
  }

  .date-panel__copy p + p {
    margin-top: 3vh;
  }

  .date-panel__numbers {
    top: 36.2%;
    right: auto;
    left: 50%;
    width: 43.6vw;
    height: auto;
    transform: translateX(-50%);
  }

  /* 04 */
  .locations__ceremony,
  .locations__reception {
    right: auto;
    left: 50%;
    width: 92%;
    text-align: center;
    transform: translateX(-50%);
  }

  .locations__ceremony {
    top: 15.3%;
  }

  .locations__reception {
    top: 65.9%;
  }

  .locations .sans-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .locations__ceremony > .sans-copy {
    padding-right: 0;
    text-align: center;
  }

  .locations h2 {
    margin-top: 2rem;
    font-size: clamp(1.71rem, 7.2vw, 2.25rem);
    line-height: 1.17;
  }

  .locations__reception h2 {
    margin-top: 1.75rem;
  }

  .locations .panel__next {
    color: var(--beige);
  }

  .locations .panel__next .arrow {
    filter: brightness(0) saturate(100%) invert(78%) sepia(9%) saturate(476%) hue-rotate(355deg) brightness(92%) contrast(87%);
  }

  .locations__divider {
    top: 45.25%;
    right: auto;
    left: 50%;
    height: 14.75%;
  }

  .locations__reception::before {
    display: none;
  }

  /* 05 */
  .guidance .sans-copy {
    font-size: 15px;
    letter-spacing: 0.065em;
    line-height: 1.5;
  }

  .guidance__dress,
  .guidance__colors,
  .guidance__gift {
    right: auto;
    left: 50%;
    width: 92%;
    text-align: center;
    transform: translateX(-50%);
  }

  .guidance__dress {
    top: 19.3%;
  }

  .guidance__colors {
    top: 40.1%;
  }

  .guidance__gift {
    top: 54.9%;
  }

  .pix-button {
    gap: 1rem;
    width: 65%;
    min-height: 2.15rem;
    margin: 3.15rem auto 0;
    padding: 0.3rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 15px;
  }

  .pix-button__icon {
    width: 3.55vw;
    height: auto;
  }

  .pix-feedback {
    top: calc(100% + 0.55rem);
    left: 17.5%;
    width: 65%;
    font-size: 15px;
  }

  .guidance__next {
    display: none;
  }

  /* 06 */
  .confirmation {
    background-image: url("../Mobile/fundo-mobile-06.jpg");
  }

  .confirmation__monogram {
    top: 32.6%;
    left: 51.1%;
    width: 22.2vw;
    height: auto;
  }

  .confirmation__copy {
    top: 53.5%;
    width: 86%;
    font-size: 15px;
    line-height: 1.55;
  }

  .confirmation__copy p + p {
    margin-top: 1.1rem;
  }

  .confirmation__wordmark {
    bottom: 0;
    left: 0;
    width: 100vw;
    opacity: 0.21;
  }

  .hero__cue {
    font-size: 14px;
  }
}

@media (orientation: portrait) and (max-width: 360px) {
  .pix-button {
    width: 80%;
  }

  .pix-feedback {
    left: 10%;
    width: 80%;
  }
}

@media (max-height: 560px) and (min-aspect-ratio: 2 / 1) {
  .message__art {
    top: 19%;
  }

  .locations h2 {
    margin-top: 1.5rem;
  }

  .locations__reception h2 {
    margin-top: 1.25rem;
  }

  .guidance__dress {
    top: 14%;
  }

  .guidance__colors {
    top: 40%;
  }

  .guidance__gift {
    top: 63%;
  }

  .pix-button {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
