/* Fontes customizadas (assets/fonts) — woff2 primeiro (bem mais leve),
   com o arquivo original como fallback pra navegadores muito antigos */
@font-face {
  font-family: 'Alta';
  src: url('assets/fonts/alta-light.woff2') format('woff2'),
    url('assets/fonts/alta-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alta';
  src: url('assets/fonts/alta-regular.woff2') format('woff2'),
    url('assets/fonts/alta-regular.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Royalty Free';
  src: url('assets/fonts/royalty-free.woff2') format('woff2'),
    url('assets/fonts/royalty-free.otf') format('opentype'),
    url('assets/fonts/royalty-free.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #46608e;
  --blue-deep: #33465f;
  --cream: #fcfcfb;
  --white: #ffffff;
  --section-pad-y: 72px;
  --lightbox-photo-w: min(66vw, 440px);
  /* altura aproximada da nav fixa nos dois estados (normal / .ws-scrolled) —
     usada pra afastar as âncoras e posicionar o menu mobile por baixo dela */
  --nav-h: 72px;
  --nav-h-scrolled: 56px;
}

/* html fica solto de propósito: não dá pra prender a um wrapper (fica fora
   do <body>), mas scroll-behavior não tem efeito visual dentro do iframe do
   RSVP (scrolling="no", altura ajustada ao conteúdo via postMessage) */
html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--blue-deep);
  background-color: var(--cream);
  background-image: url('assets/bg-texture.png');
  background-size: contain;
  background-position: center top;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* deslocamento para as âncoras não ficarem sob a nav fixa */
[id] {
  scroll-margin-top: var(--nav-h);
}

.ws-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
}

.ws-script {
  font-family: 'Royalty Free', 'Segoe Script', cursive;
  color: var(--blue);
  line-height: 1;
}

.ws-divider {
  width: 44px;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
  margin: 22px auto;
}

/* NAV */
.ws-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.ws-nav.ws-scrolled {
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(70, 96, 142, 0.12);
  padding: 12px 28px;
}

.ws-nav-title {
  font-family: 'Alta', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: var(--blue);
  text-decoration: none;
}

.ws-nav-links {
  display: flex;
  gap: 26px;
}

.ws-nav-links a {
  display: block;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.ws-nav-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.ws-nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 800px) {
  .ws-nav-links {
    position: fixed;
    top: var(--nav-h-scrolled);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 0 30px;
    box-shadow: 0 8px 16px rgba(51, 70, 95, 0.08);
    display: none;
  }

  .ws-nav-links.ws-open {
    display: flex;
  }

  .ws-nav-burger {
    display: block;
    color: var(--blue);
    font-size: 22px;
  }
}

/* HERO */
.ws-hero {
  position: relative;
  min-height: 90vh;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 24px;
}

.ws-hero-church {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  animation: ws-hero-fade-in 1.3s ease forwards;
}

.ws-hero-church img {
  display: block;
  width: auto;
  height: auto;
  opacity: .4;
  max-width: 100%;
  max-height: 100%;
}

/* overlay translúcido entre a imagem e o texto — mais denso no centro, onde fica o texto */
.ws-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 46% at 50% 50%,
      rgba(245, 243, 239, 0.88) 0%,
      rgba(245, 243, 239, 0.62) 55%,
      rgba(245, 243, 239, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

.ws-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.ws-hero-names {
  font-size: clamp(46px, 8.6vw, 82px);
  font-weight: 500;
  color: var(--blue);
  margin: 10px 0 14px;
  opacity: 0;
  transform: translateX(-30px);
  animation: ws-hero-names-in 0.9s ease forwards;
  animation-delay: 0.3s;
}

.ws-hero-date,
.ws-hero-countdown {
  opacity: 0;
}

.ws-hero-date {
  font-family: 'Alta', Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 5.4vw, 60px);
  letter-spacing: 4px;
  color: var(--blue);
  margin: 14px 0;
  transform: translateY(18px);
  animation: ws-hero-date-in 0.7s ease forwards;
  animation-delay: 1.5s;
}

.ws-hero-countdown {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 40%;
  font-size: clamp(12px, 1.8vw, 18px);
  text-transform: uppercase;
  color: var(--blue);
  margin: 14px 0 0;
  animation: ws-hero-fade-in 0.7s ease forwards;
  animation-delay: 2s;
}

@keyframes ws-hero-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ws-hero-names-in {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ws-hero-date-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .ws-hero-church,
  .ws-hero-names,
  .ws-hero-date,
  .ws-hero-countdown {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.ws-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--blue);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.25s ease;
  animation: ws-bounce 2.4s ease-in-out infinite;
}

.ws-scroll-cue:hover {
  opacity: 0.9;
}

.ws-scroll-cue svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes ws-bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

/* SECTIONS */
.ws-section {
  padding: var(--section-pad-y) 16px;
  text-align: center;
}

.ws-section>.ws-reveal,
.ws-section-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* espaço entre subseções dentro de uma mesma seção (ex.: Cerimônia / Recepção) */
.ws-section-inner>.ws-reveal+.ws-reveal {
  margin-top: calc(var(--section-pad-y) * 1.5);
}

/* faixa clara: textura da página com um véu claro por cima (não é cor plana) */
.ws-section.ws-light {
  background: rgba(255, 255, 255, 0.5);
}

/* faixa clara de cor plana (esconde a textura) */
.ws-section.ws-solid {
  background: var(--cream);
}

/* faixa azul (texto claro) */
.ws-section.ws-blue {
  background: var(--blue);
  color: var(--cream);
}

.ws-section.ws-blue .ws-eyebrow,
.ws-section.ws-blue .ws-h2 {
  color: var(--cream);
}

.ws-section.ws-blue .ws-lead {
  color: rgba(245, 243, 239, 0.88);
}

.ws-section.ws-blue .ws-divider {
  background: var(--cream);
}

.ws-h2 {
  font-family: 'Alta', Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--blue);
  letter-spacing: 1px;
  margin: 10px 0 0;
}

.ws-lead {
  max-width: 640px;
  margin: 22px auto 0;
  font-weight: 300;
  font-size: 16px;
  color: var(--blue-deep);
}

.ws-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ws-reveal.ws-visible {
  opacity: 1;
  transform: translateY(0);
}

/* GALERIA (O Casal) — molduras estilo polaroid, 4 linhas de 3 */
.ws-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 48px;
  align-items: start;
}

@media (max-width: 980px) {
  .ws-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 670px) {
  .ws-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 350px) {
  .ws-gallery {
    grid-template-columns: 1fr;
  }
}

/* moldura polaroid — compartilhada entre a miniatura da galeria e a foto ampliada */
.ws-polaroid,
.ws-lightbox-card {
  margin: 0;
  background: #fff;
  padding: 10px 10px 12px;
  border-radius: 2px;
}

.ws-polaroid {
  box-shadow: 0 16px 34px rgba(51, 70, 95, 0.22);
  transition: transform 0.3s ease;
}

/* sem sombra dupla na foto dentro da moldura */
.ws-polaroid img,
.ws-lightbox-card img {
  box-shadow: none;
}

/* botão que envolve cada foto clicável da galeria */
.ws-gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

/* legenda na área branca da polaroid */
.ws-polaroid figcaption,
.ws-lightbox-card figcaption {
  margin-top: 10px;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Royalty Free', 'Segoe Script', cursive;
  color: #333333;
  text-align: center;
  line-height: 1;
}

.ws-polaroid figcaption {
  font-size: 24px;
}

@media (max-width: 480px) {
  .ws-polaroid figcaption {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .ws-polaroid figcaption {
    font-size: 20px;
  }
}

@media (max-width: 350px) {
  .ws-polaroid figcaption {
    font-size: 28px;
  }
}

.ws-lightbox-card figcaption {
  font-size: 36px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 400px) {
  .ws-lightbox-card figcaption {
    font-size: 32px;
  }
}

@media (max-width: 350px) {
  .ws-lightbox-card figcaption {
    font-size: 28px;
  }
}

/* fotos do casal são retrato — proporção mais próxima da polaroid real (a foto de local continua 4:3) */
.ws-gallery .ws-venue-photo {
  aspect-ratio: 4 / 5;
}

/* inclinação variada (ciclo de 5 não alinha com as 4 colunas → parece espalhado) */
.ws-polaroid:nth-child(5n+1) {
  transform: rotate(-2.5deg);
}

.ws-polaroid:nth-child(5n+2) {
  transform: rotate(1.5deg);
}

.ws-polaroid:nth-child(5n+3) {
  transform: rotate(-0.5deg);
}

.ws-polaroid:nth-child(5n+4) {
  transform: rotate(2deg);
}

.ws-polaroid:nth-child(5n+5) {
  transform: rotate(-1.5deg);
}

.ws-polaroid:hover {
  transform: rotate(0) scale(1.03);
  position: relative;
  z-index: 1;
}

/* LOCAIS (cerimônia / recepção) */
.ws-venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 50px;
  text-align: left;
}

.ws-venue-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(51, 70, 95, 0.14);
}

.ws-details {
  margin: 0 0 6px;
  display: grid;
  gap: 12px;
}

.ws-details dt {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  /* opacity: 0.8; */
  margin-bottom: 3px;
  font-weight: 300;
}

.ws-details dd {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--blue-deep);
}

.ws-venue-note {
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--blue-deep);
  opacity: 0.65;
}

/* forma de "pílula" compartilhada pelos botões ghost — cada um só
   sobrescreve cor/borda/margem, pra não repetir a mesma meia-dúzia de
   propriedades em cada variante */
.ws-btn-ghost,
.ws-btn-ghost-inverse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.ws-btn-ghost {
  margin-top: 18px;
  border: 1px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.ws-btn-ghost:hover {
  background: var(--blue);
  color: var(--cream);
}

/* mesma ideia do .ws-btn-ghost, invertida pra usar sobre fundo azul (.ws-section.ws-blue) */
.ws-btn-ghost-inverse {
  margin-top: 28px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--blue);
  text-decoration: none;
}

.ws-btn-ghost-inverse:hover {
  background: var(--white);
  color: var(--blue-deep);
}

.ws-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ws-pix {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ws-pix-key {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  border: none;
  background: none;
  color: var(--cream);
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.ws-pix-key-label,
.ws-pix-key .ws-btn-icon {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.ws-pix-key:hover .ws-pix-key-label,
.ws-pix-key:hover .ws-btn-icon {
  opacity: 0.75;
}

.ws-copy-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, 4px);
  margin-top: 4px;
  padding: 4px 10px;
  background: var(--cream);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(51, 70, 95, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ws-copy-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ws-pix-name {
  margin-top: 4px;
  color: var(--cream);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

.ws-map {
  margin-top: 36px;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 14px 34px rgba(51, 70, 95, 0.14);
}

.ws-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .ws-venue-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ws-venue-photo {
    order: -1;
  }

  .ws-map iframe {
    height: 260px;
  }
}

/* FOOTER */
.ws-footer {
  padding: 60px 24px 40px;
  text-align: center;
  background: var(--cream);
  color: var(--blue-deep);
}

.ws-footer .ws-script {
  color: var(--blue);
  font-size: 30px;
}

.ws-footer p {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 10px;
}

/* LIGHTBOX (galeria "O Casal") */
.ws-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 58, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ws-lightbox.ws-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* preenche o overlay inteiro — os cards se posicionam dentro dela via transform (JS) */
.ws-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.ws-lightbox-stage:active {
  cursor: grabbing;
}

/* cada card (foto atual ou vizinha) — mesmo estilo da miniatura, sem inclinação,
   sempre ancorado ao centro do palco; posição/escala/opacidade vêm do transform via JS */
.ws-lightbox-card {
  position: absolute;
  top: 50%;
  left: 50%;
  /* largura travada no tamanho da foto (+ padding horizontal) — sem isso, uma
     legenda comprida faz o card (position:absolute, sem largura própria)
     crescer pra caber o texto numa linha só, "vazando" pra fora da moldura */
  width: calc(var(--lightbox-photo-w) + 20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
}

.ws-lightbox-card.ws-is-neighbor {
  cursor: pointer;
}

.ws-lightbox-img {
  display: block;
  width: var(--lightbox-photo-w);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.ws-lightbox-close,
.ws-lightbox-nav {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ws-lightbox-close:hover,
.ws-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.ws-lightbox-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.ws-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.ws-lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.ws-lightbox-prev {
  left: 14px;
}

.ws-lightbox-next {
  right: 14px;
}

@media (max-width: 640px) {

  .ws-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .ws-lightbox-prev {
    left: 6px;
  }

  .ws-lightbox-next {
    right: 6px;
  }
}