/* ═══════════════════════════════════════════════
   JOÃO & BRENDA · 17.10.26
   CSS Principal
═══════════════════════════════════════════════ */

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

:root {
  --bg:       #0a0a0a;
  --card:     #111111;
  --card2:    #161616;
  --text:     #f0ede8;
  --hi:       rgba(240,237,232,0.95);
  --mid:      rgba(240,237,232,0.70);
  --low:      rgba(240,237,232,0.45);
  --line:     rgba(240,237,232,0.12);
  --gold:     #c9a96e;
  --gold-low: rgba(201,169,110,0.20);
  --radius:   4px;
  --max-w:    900px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ─── REMOVE LEGACY ABERTURA ─── */
.act-abertura { display: none !important; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ─── SELECTION ─── */
::selection { background: var(--gold-low); color: var(--text); }

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════════ */
#lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 6px 10px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.2s;
  padding: 2px 4px;
  border-radius: 50%;
  line-height: 1;
}
.lang-btn:hover { opacity: 0.8; transform: scale(1.15); }
.lang-btn.active { opacity: 1; }

/* ═══════════════════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════════════════ */
#music-player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 8px 16px 8px 10px;
}

#music-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--mid);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
#music-toggle:hover { border-color: var(--gold); color: var(--gold); }
#music-toggle svg { pointer-events: none; }

#music-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--low);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   ACTS — BASE
═══════════════════════════════════════════════ */
.act {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  position: relative;
}

.section-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   ARAUCÁRIA SVG
═══════════════════════════════════════════════ */
.araucaria-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.araucaria-img {
  width: min(60vw, 400px);
  opacity: 0.07;
  filter: invert(1);
}
.araucaria-small {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.araucaria-small img {
  width: 80px;
  opacity: 0.25;
  filter: invert(1);
}

/* ═══════════════════════════════════════════════
   ATO I — ABERTURA
═══════════════════════════════════════════════ */
.act-abertura {
  background: var(--bg);
  text-align: center;
}

.abertura-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.abertura-text .fade-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.04em;
}

.names-reveal .name-tag {
  font-family: 'Aboreto', serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  color: var(--low);
  text-transform: uppercase;
}

/* .act-poema legado — removido, substituído por scrollytelling */

/* ═══════════════════════════════════════════════
   ATO III — CONVITE
═══════════════════════════════════════════════ */
.act-convite {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.convite-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.convite-blessing {
  font-style: italic;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: var(--low);
  letter-spacing: 0.06em;
}

.convite-names {
  font-family: 'Aboreto', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--hi);
  line-height: 1.1;
}

.convite-invite {
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
}

.convite-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.detail-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-value {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--hi);
  font-style: italic;
}

.detail-sub {
  font-size: 0.85rem;
  color: var(--mid);
}

.convite-note {
  font-style: italic;
  color: var(--mid);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
}

.btn-convite {
  display: inline-block;
  margin: 0 auto;
  padding: 14px 40px;
  border: 1px solid var(--line);
  color: var(--mid);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: pointer;
  background: none;
}
.btn-convite:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-low);
}

/* ═══════════════════════════════════════════════
   ATO IV — DRESS CODE
═══════════════════════════════════════════════ */
.act-dresscode { background: var(--bg); }

.section-title {
  font-family: 'Aboreto', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 40px;
}

.dresscode-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  color: var(--mid);
  font-style: italic;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.9;
}

.dresscode-rules {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.rule-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 500px;
}

.rule-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule-value {
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  color: var(--hi);
  font-style: italic;
}

.rule-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.rule-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-gender {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.rule-col p {
  color: var(--mid);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
}

.rule-note em {
  font-style: italic;
  color: var(--low);
  font-size: 0.95rem;
}

/* CAROUSEL */
.carousel-section { width: 100%; }
.carousel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.carousel-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--low);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  padding: 10px 28px;
  transition: background 0.3s, color 0.3s;
}
.tab-btn:not(:last-child) { border-right: 1px solid var(--line); }
.tab-btn.active { background: var(--gold-low); color: var(--gold); }
.tab-btn:hover:not(.active) { background: var(--line); color: var(--mid); }

.carousel-wrapper {
  display: none;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.carousel-wrapper.active { display: block; }

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 200px;
}

.carousel-img-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--card2);
  border: 1px solid var(--line);
}

.carousel-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.5s, filter 0.3s;
}
.carousel-card:hover .carousel-img-placeholder img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.carousel-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--low);
  font-style: italic;
  letter-spacing: 0.05em;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--line);
  color: var(--mid);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.3s, color 0.3s;
  z-index: 2;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ═══════════════════════════════════════════════
   ATO V — PRESENTES
═══════════════════════════════════════════════ */
.act-presentes {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.presentes-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
  font-style: italic;
  color: var(--mid);
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  line-height: 1.9;
}
.presentes-intro p:first-child {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--hi);
}

.presentes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.presente-card {
  background: var(--card2);
  border: 1px solid var(--line);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: border-color 0.3s;
}
.presente-card:hover { border-color: var(--gold-low); }

.presente-icon {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.7;
}

.presente-card h3 {
  font-family: 'Aboreto', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hi);
  font-weight: 400;
}

.presente-card p {
  color: var(--mid);
  font-style: italic;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  line-height: 1.8;
}

.presente-card em {
  color: var(--low);
  font-size: 0.9em;
}

.btn-presente {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 32px;
  border: 1px solid var(--line);
  color: var(--mid);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: pointer;
  background: none;
}
.btn-presente:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-low);
}

/* ═══════════════════════════════════════════════
   ATO VI — PARA QUEM VEM DE LONGE
═══════════════════════════════════════════════ */
.act-longe { background: var(--bg); padding-bottom: 120px; }

.longe-opening {
  max-width: 560px;
  margin: 0 auto 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: italic;
  color: var(--mid);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.9;
}
.longe-opening p:first-child {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--hi);
}

.longe-subsection { margin-bottom: 80px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.cards-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s;
}
.info-card:hover { border-color: var(--gold-low); }

.info-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.info-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s, filter 0.3s;
}
.info-card:hover .info-card-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.info-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: var(--hi);
}

.info-card-address,
.info-card-contact {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: var(--low);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.info-card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--low);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}
.info-card-link:hover { color: var(--hi); }

/* ─── Hotels "Ver mais" button ─── */
.hotels-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-ver-mais {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-low);
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  border-radius: 0;
  outline: none;
}

.btn-ver-mais:hover {
  background: var(--gold-low);
  border-color: var(--gold);
  color: var(--hi);
  transform: translateY(-1px);
}

.btn-ver-mais:active {
  transform: translateY(0);
}

.btn-ver-mais.hidden {
  display: none;
}

.longe-transport {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 auto 48px;
  max-width: 600px;
}
.longe-transport p {
  color: var(--mid);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
}
.longe-transport strong { color: var(--hi); font-style: normal; }

.longe-contact {
  text-align: center;
  padding-top: 32px;
}
.longe-contact p {
  font-style: italic;
  color: var(--low);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* ═══════════════════════════════════════════════
   ATO RSVP
═══════════════════════════════════════════════ */
.act-rsvp {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.rsvp-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
}

.form-group input[type="text"],
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  width: 100%;
  transition: border-color 0.3s;
  resize: vertical;
  outline: none;
  border-radius: var(--radius);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: var(--low);
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── Seletor numérico elegante ─── */
.num-elegant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
  transition: border-color 0.3s;
}
.num-elegant:hover {
  border-color: rgba(240,237,232,0.28);
}

/* Número exibido */
.num-display {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 300;
  color: var(--hi);
  letter-spacing: 0.04em;
  min-width: 32px;
  text-align: center;
  line-height: 1;
  transition: color 0.2s, transform 0.15s;
  user-select: none;
}
.num-display.bump {
  transform: scale(1.18);
  color: var(--gold);
}

/* Coluna de setas */
.num-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Cada seta */
.num-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--low);
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s;
  line-height: 1;
}
.num-arrow svg {
  width: 10px;
  height: 6px;
  display: block;
  pointer-events: none;
}
.num-arrow:hover {
  color: var(--gold);
}
.num-arrow:active {
  transform: scale(0.88);
}
/* Seta desabilitada */
.num-arrow.disabled {
  opacity: 0.18;
  cursor: default;
  pointer-events: none;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  background: none;
  color: var(--mid);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  margin-top: 8px;
  border-radius: var(--radius);
}
.btn-submit:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-low);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rsvp-success {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}

.success-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--hi);
  font-style: italic;
}

.success-sub {
  color: var(--low);
  font-style: italic;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   ATO VII — ENCERRAMENTO
═══════════════════════════════════════════════ */
.act-encerramento {
  background: var(--bg);
  padding-top: 120px;
  padding-bottom: 120px;
}

.encerramento-container {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.enc-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Foto após o bloco de texto do encerramento ─── */
.enc-photo-block {
  width: 100%;
  margin: 32px 0;
}

.enc-photo {
  display: block;
  width: calc(100% - 96px);
  max-width: 480px;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.enc-photo.visible {
  opacity: 1;
  transform: translateY(0);
}

.enc-block p {
  font-style: italic;
  color: var(--mid);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 2;
}

.enc-quote {
  padding: 40px;
  border: 1px solid var(--line);
  position: relative;
}
.enc-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-style: italic;
  color: var(--hi);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 2;
}

.quote-author {
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
}

.enc-closing {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enc-closing p {
  font-style: italic;
  color: var(--low);
  font-size: 0.95rem;
}

.enc-names {
  font-family: 'Aboreto', serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  color: var(--hi) !important;
  letter-spacing: 0.15em;
  font-style: normal !important;
}

.enc-tagline {
  font-family: 'Aboreto', serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--low) !important;
  font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   MODAL PIX
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--low);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--hi); }

.modal-title {
  font-family: 'Aboreto', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hi);
  font-weight: 400;
  margin-bottom: 8px;
}

.modal-sub {
  font-style: italic;
  color: var(--low);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.pix-qr-container {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pix-qr {
  width: 200px;
  height: 200px;
  display: block;
}

.pix-instruction {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--low);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════ */
.fade-line,
.fade-stanza,
.fade-in-section,
.fade-line-convite {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-line.visible,
.fade-stanza.visible,
.fade-in-section.visible,
.fade-line-convite.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger for poem */
.fade-stanza:nth-child(2) { transition-delay: 0.1s; }
.fade-stanza:nth-child(3) { transition-delay: 0.15s; }
.fade-stanza:nth-child(4) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .presentes-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rule-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .convite-details {
    gap: 28px;
  }

  .carousel-card {
    flex: 0 0 calc(50% - 10px);
  }

  #lang-switcher {
    top: 12px;
    right: 12px;
  }

  #music-player {
    bottom: 12px;
    left: 12px;
  }

  .act {
    padding: 60px 20px;
  }

  .enc-quote {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 calc(85% - 10px);
  }

  .convite-names {
    font-size: 2.8rem;
    letter-spacing: 0.08em;
  }
}

/* ═══════════════════════════════════════════════
   SCROLLYTELLING — POEMA
═══════════════════════════════════════════════ */

#scrolly-poema {
  position: relative;
}

#poema-spacer {
  height: 900vh;
  pointer-events: none;
}

#poema-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* Fundo sutil — levíssimo gradiente diferente do bg padrão */
#poema-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #0d0d10 0%, #060608 70%);
  pointer-events: none;
}

/* Área de texto central */
#poema-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 620px;
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Bloco / cena ─── */
.poema-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.poema-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.poema-scene.is-exit {
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 1, 1),
    transform 0.5s cubic-bezier(0.4, 0, 1, 1);
}

/* Linhas do bloco — entram em cascata */
.poema-scene p,
.poema-scene span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  color: rgba(240, 237, 232, 0.68);
  letter-spacing: 0.03em;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Cada linha da cena ativa entra com delay escalonado */
.poema-scene.is-active p:nth-child(1),
.poema-scene.is-active span { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.poema-scene.is-active p:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.poema-scene.is-active p:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.31s; }
.poema-scene.is-active p:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.44s; }
.poema-scene.is-active p:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.57s; }

/* ─── Imagem mobile — cena 0 do poema ─── */
.poema-scene0-img {
  display: none; /* oculta no desktop */
}

@media (max-width: 768px) {
  .poema-scene0-img {
    display: block;
    width: 100%;
    max-width: 100%;
    /* mesmas margens laterais do texto da cena */
    padding: 0 32px;
    box-sizing: border-box;
    border-radius: 6px;
    object-fit: cover;
    max-height: 38vh;
    object-position: center top;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .poema-scene.is-active .poema-scene0-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

/* ─── Imagens mobile — cenas do poema (padrão) ─── */
.poema-scene-img {
  display: none; /* oculta no desktop */
}

@media (max-width: 768px) {
  .poema-scene-img {
    display: block;
    width: 100%;
    padding: 0 32px;
    box-sizing: border-box;
    border-radius: 6px;
    object-fit: cover;
    max-height: 38vh;
    object-position: center center;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .poema-scene.is-active .poema-scene-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  /* Variante "full" — mostra a imagem inteira, sem crop */
  .poema-scene-img--full {
    object-fit: contain;
    max-height: 45vh;
    background: transparent;
  }
}

/* ─── Variante eco: texto levemente maior e mais claro ─── */
.poema-scene--echo p {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  color: rgba(240, 237, 232, 0.88);
  letter-spacing: 0.04em;
}

/* ─── Variante tagline final ─── */
.poema-scene--tagline p {
  font-family: 'Aboreto', serif;
  font-style: normal;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  color: var(--hi);
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(10px);
}
.poema-scene--tagline span {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s 0.4s ease, transform 0.8s 0.4s ease;
}
.poema-scene--tagline.is-active p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.poema-scene--tagline.is-active span {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Dots indicadores de progresso ─── */
#poema-counter {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#poema-dots {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.poema-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid rgba(240,237,232,0.18);
  transition: background 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.poema-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.5);
}

/* ─── Barra de progresso inferior ─── */
#poema-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 4;
  pointer-events: none;
}

/* ─── Responsivo ─── */
@media (max-width: 640px) {
  #poema-counter { display: none; }
  #poema-content { padding: 0 24px; }
  .poema-scene p { font-size: 1.1rem; }
  .poema-scene--echo p { font-size: 1.25rem; }
  #poema-spacer { height: 750vh; }
}
═══════════════════════════════════════════════ */

/* Container externo — define o tamanho total do scroll */
#scrolly-abertura {
  position: relative;
}

/* Spacer — altura controlada via JS (400vh padrão) */
#scrolly-spacer {
  height: 400vh;
  pointer-events: none;
}

/* Sticky container — fica colado enquanto o scroll passa */
#scrolly-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* ─── Background com gradiente animado ─── */
#scrolly-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, #0e0e12 0%, #060608 60%, #020203 100%);
  transition: opacity 0.8s ease;
  will-change: opacity;
}

/* Partícula de luz central — cresce com o progresso */
#scrolly-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--glow-scale, 0));
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.06) 0%, transparent 70%);
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   SCROLLYTELLING — ABERTURA (ESTILO APPLE)
═══════════════════════════════════════════════ */

#scrolly-abertura {
  position: relative;
}

#scrolly-spacer {
  height: 500vh;
  pointer-events: none;
}

/* Container sticky — flex, centraliza a coluna */
#scrolly-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fundo escuro base */
#scrolly-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, #0e0e12 0%, #060608 65%, #020203 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Fundo fotográfico — aparece na fase dos Nomes ─── */
#scrolly-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/wedding-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  z-index: 1;
  /* Overlay escuro sobre a foto para manter legibilidade do texto */
  /* JS controla a opacity deste elemento */
}
/* Overlay semi-escuro por cima da foto */
#scrolly-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.35) 40%,
    rgba(10,10,10,0.50) 100%
  );
}

/* ─── COLUNA CENTRAL ───────────────────────────
   Container de referência — todos os 3 blocos ficam
   absolutamente centrados dentro dele, sem empurrar nada. */
#scrolly-col {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ─── Bloco 1: Logo ─── */
#scrolly-logo-wrap {
  position: absolute;
  top: 35%;
  left: 50%;
  /* JS aplica: translate(-50%,-50%) scale(x) */
  will-change: transform, opacity;
  line-height: 0;
}

#scrolly-logo {
  display: block;
  width: clamp(140px, 22vw, 230px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* ─── Bloco 2: Frases ─── */
#scrolly-text-wrap {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 660px;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.scrolly-phrase {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.4rem);
  color: rgba(240, 237, 232, 0.78);
  letter-spacing: 0.04em;
  line-height: 1.5;
  will-change: opacity, transform;
}

.scrolly-phrase--secondary {
  font-size: clamp(1.05rem, 2.8vw, 1.9rem);
  color: rgba(240, 237, 232, 0.52);
}

/* ─── Bloco 3: Nomes ─── */
#scrolly-names-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 660px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity, transform;
  pointer-events: none;
}

.scrolly-names {
  font-family: 'Aboreto', serif;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--hi);
  line-height: 1;
}

.scrolly-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

/* ─── Hint de scroll ─── */
#scrolly-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.6s ease;
}
#scrolly-hint.hidden  { opacity: 0; pointer-events: none; }
#scrolly-hint span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--low);
  font-weight: 300;
}
#scrolly-hint svg {
  width: 18px; height: 18px;
  color: var(--low);
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ─── Barra de progresso ─── */
#scrolly-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  width: 0%;
  z-index: 4;
  pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  #scrolly-logo   { width: clamp(110px, 44vw, 180px); }
  .scrolly-names  { font-size: 2rem; letter-spacing: 0.08em; }
  .scrolly-phrase { font-size: 1.2rem; }
  #scrolly-col    { gap: 24px; }
  #scrolly-spacer { height: 450vh; }
}

