/* ============================================================
   João & Sofia — 10.10.2026
   Convite de ecrã único (sem scroll de página)
   Paleta: marfim · salva · dourado · carvão
   ============================================================ */

:root {
  --ivory: #faf7f2;
  --ivory-deep: #f3eee4;
  --white: #fffdf9;
  --charcoal: #3e3a35;
  --charcoal-soft: #6d675e;
  --sage: #8a9a7b;
  --sage-deep: #6f8060;
  --sage-mist: #e7ebe1;
  --gold: #c5a572;
  --gold-soft: #dcc9a6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", sans-serif;
  --script: "Great Vibes", cursive;
  --shadow: 0 18px 45px -18px rgba(62, 58, 53, 0.18);
}

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

html, body {
  height: 100%;
  overflow: hidden;            /* a página nunca desliza */
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ===== Estrutura do convite ===== */
.invite {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 42% 58%;
}

/* --- Fotografias (coluna esquerda em desktop) --- */
.invite__photos {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.invite__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: photoFade 24s infinite;
  will-change: opacity, transform;
}

.invite__photo--1 { background-image: url("../img/momento-beijo.jpg"); background-position: center 30%; animation-delay: 0s; }
.invite__photo--2 { background-image: url("../img/momento-fuji.jpg");  background-position: center 32%; animation-delay: 8s; }
.invite__photo--3 { background-image: url("../img/momento-neve.jpg");  background-position: center 42%; animation-delay: 16s; }

@keyframes photoFade {
  0%   { opacity: 0; transform: scale(1.03); }
  4%   { opacity: 1; }
  29%  { opacity: 1; transform: scale(1.07); }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* véu subtil sobre a foto para harmonizar com o marfim */
.invite__photos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 60%, rgba(250, 247, 242, 0.55));
  pointer-events: none;
}

/* --- Conteúdo (coluna direita) --- */
.invite__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(138, 154, 123, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(197, 165, 114, 0.10), transparent 70%),
    var(--ivory);
}

/* ramos botânicos discretos nos cantos */
.invite__content::before,
.invite__content::after {
  content: "";
  position: absolute;
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%238a9a7b' stroke-width='1.4' stroke-linecap='round' opacity='0.45'%3E%3Cpath d='M10 190 Q60 150 90 95 Q115 50 170 25'/%3E%3Cpath d='M52 152 q-26 -10 -34 -34 q26 2 34 34z' fill='%23a8b598' stroke='none' opacity='.5'/%3E%3Cpath d='M75 116 q-26 -8 -36 -30 q26 0 36 30z' fill='%23c5cdb4' stroke='none' opacity='.5'/%3E%3Cpath d='M97 82 q-22 -12 -28 -34 q24 4 28 34z' fill='%23a8b598' stroke='none' opacity='.45'/%3E%3Cpath d='M60 168 q22 16 46 12 q-12 -24 -46 -12z' fill='%23c5cdb4' stroke='none' opacity='.45'/%3E%3Cpath d='M88 132 q22 14 44 8 q-14 -22 -44 -8z' fill='%23a8b598' stroke='none' opacity='.4'/%3E%3Ccircle cx='170' cy='25' r='5' fill='%23d9b98a' stroke='none' opacity='.6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.invite__content::before { bottom: -6px; left: -6px; }
.invite__content::after  { top: -6px; right: -6px; transform: rotate(180deg); }

.invite__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.eyebrow {
  font-family: var(--script);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--sage-deep);
  line-height: 1;
}

.names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1.08;
  margin-top: 0.2rem;
}

.amp { font-family: var(--script); font-size: 0.62em; color: var(--gold); margin: 0 0.06em; }

/* segundo bloco (Baptizado) — mesmo destaque que o casamento */
.eyebrow--baptism { margin-top: clamp(0.6rem, 1.8vh, 1.1rem); }
.names--baptism { margin-top: 0.2rem; }

.date {
  font-size: clamp(0.66rem, 1.4vw, 0.82rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

/* divisor ornamental */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: clamp(0.8rem, 2vh, 1.4rem) auto;
  max-width: 300px;
}
.divider__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider__diamond { color: var(--gold); font-size: 0.6rem; line-height: 1; }

/* ===== Contagem decrescente (compacta) ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  margin: clamp(0.9rem, 2.5vh, 1.6rem) 0;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.countdown__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: clamp(0.55rem, 1vw, 0.64rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.countdown__done {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--sage-deep);
  margin: 1rem 0;
}

/* ===== Locais ===== */
.venues {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin: clamp(0.8rem, 2.2vh, 1.4rem) 0 clamp(1.1rem, 3vh, 1.8rem);
}
.venue { display: flex; flex-direction: column; gap: 0.12rem; max-width: 230px; }
.venue__label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.venue__name { font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; line-height: 1.25; }
.venue__meta { font-size: 0.74rem; color: var(--charcoal-soft); }
.venue__map {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  align-self: center;
  margin-top: 0.35rem;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.venue__map:hover { color: var(--gold); border-color: var(--gold); }
.venues__sep { color: var(--gold-soft); font-size: 0.55rem; align-self: center; }

/* ===== Botões de ação ===== */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.1rem);
}
.action {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal-soft);
  padding: 0.7em 1.4em;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.action:hover { color: var(--sage-deep); border-color: var(--sage); }
.action--primary {
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
}
.action--primary:hover { color: var(--white); background: var(--sage-deep); border-color: var(--sage-deep); }

/* ===== Nota discreta da prenda (lua de mel) ===== */
.giftnote {
  position: relative;
  margin-top: clamp(1.1rem, 3vh, 1.7rem);
  padding-top: clamp(1rem, 2.6vh, 1.4rem);
}
.giftnote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 1px;
  background: var(--gold-soft);
}
.giftnote__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--charcoal-soft);
  margin-bottom: 0.55rem;
}
.giftnote__methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem 1.6rem;
}
.giftnote__method {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.8vw, 1.02rem);
  color: var(--charcoal);
  white-space: nowrap;
}
.giftnote__label {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.5rem;
}

/* ===== Sobreposições (modais) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 37, 33, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.overlay__panel {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: 90svh;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  box-shadow: 0 30px 70px -25px rgba(40, 37, 33, 0.5);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.overlay.is-open .overlay__panel { transform: none; }

.overlay__scroll {
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.4rem, 5vw, 2.8rem);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.overlay__close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  z-index: 2;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--charcoal-soft);
  text-decoration: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.overlay__close:hover { color: var(--charcoal); background: var(--ivory-deep); }

/* títulos partilhados dentro das sobreposições */
.section__eyebrow {
  font-family: var(--script);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
}

/* ===== Programa / timeline ===== */
.timeline {
  list-style: none;
  max-width: 460px;
  margin: 1rem auto 0;
  text-align: left;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 86px;
  width: 1px;
  background: linear-gradient(var(--gold-soft), var(--gold), var(--gold-soft));
}
.timeline__item { display: flex; gap: 2rem; padding: 0.9rem 0; position: relative; }
.timeline__item::before {
  content: "◆";
  position: absolute;
  left: 86px; top: 1.2rem;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: var(--gold);
  background: var(--white);
  line-height: 1;
}
.timeline__time {
  width: 54px; flex-shrink: 0;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.4;
}
.timeline__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.4; }
.timeline__body p { font-size: 0.84rem; color: var(--charcoal-soft); }

/* ===== Lua de Mel ===== */
.honeymoon__intro {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal-soft);
}
.route {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 auto 2.6rem;
}
.route__stop {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 1.8rem 1rem 1.4rem;
  text-align: center;
}
.route__num {
  position: absolute; top: 0.7rem; right: 0.9rem;
  font-family: var(--serif); font-size: 0.85rem;
  letter-spacing: 0.12em; color: var(--gold);
}
.route__icon { display: block; width: 40px; height: 40px; margin: 0 auto 0.8rem; color: var(--sage); }
.route__icon svg { width: 100%; height: 100%; }
.route__place { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.35rem; }
.route__note { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-soft); }

.gift {
  max-width: 560px;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 2.4rem 1.8rem 2rem;
  position: relative;
}
.gift::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(197, 165, 114, 0.35);
  border-radius: 2px; pointer-events: none;
}
.gift__lead { font-size: 0.94rem; line-height: 1.7; color: var(--charcoal-soft); margin-bottom: 1.8rem; }
.gift__methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; margin-bottom: 1.8rem; }
.gift__method { padding: 1.2rem 1rem; background: var(--white); border: 1px solid var(--sage-mist); border-radius: 3px; }
.gift__label { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.gift__value { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--charcoal); word-break: break-word; line-height: 1.4; }
.gift__holder { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal-soft); margin-top: 0.4rem; }
.gift__thanks { font-family: var(--script); font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--sage-deep); }

/* ===== RSVP ===== */
.rsvp__note { margin-bottom: 1.8rem; font-size: 0.92rem; color: var(--charcoal-soft); }
.rsvp__note strong { color: var(--sage-deep); font-weight: 500; }
.form { text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { margin-bottom: 1.2rem; }
.form__field label, .form__legend {
  display: block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal-soft); margin-bottom: 0.4rem;
}
.form__field input, .form__field textarea {
  width: 100%; font-family: var(--sans); font-weight: 300;
  font-size: 0.95rem; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--gold-soft);
  border-radius: 3px; padding: 0.7em 0.9em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 154, 123, 0.15);
}
.form__field textarea { resize: vertical; }
.form__radios { display: flex; gap: 1.3rem; flex-wrap: wrap; padding-top: 0.5em; }
.form__radio { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; letter-spacing: normal; text-transform: none; color: var(--charcoal); cursor: pointer; }
.form__radio input { accent-color: var(--sage-deep); width: auto; }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 999px; padding: 0.85em 2.2em; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn--solid { color: var(--white); background: var(--sage); border: 1px solid var(--sage); width: 100%; margin-top: 0.4rem; }
.btn--solid:hover { background: var(--sage-deep); border-color: var(--sage-deep); }

/* ===== Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
  .invite__photo { animation: none; }
  .invite__photo--1 { opacity: 1; }
  .invite__photo--2, .invite__photo--3 { opacity: 0; }
  .overlay, .overlay__panel { transition: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .invite { grid-template-columns: 1fr; }

  /* fotos passam a fundo de ecrã inteiro */
  .invite__photos { position: absolute; inset: 0; z-index: 0; }
  .invite__photos::after {
    background: linear-gradient(180deg, rgba(250, 247, 242, 0.9), rgba(250, 247, 242, 0.82) 45%, rgba(250, 247, 242, 0.94));
  }

  .invite__content {
    position: relative;
    z-index: 1;
    background: transparent;
  }
  .invite__content::before, .invite__content::after { display: none; }

  .venues { flex-direction: column; align-items: center; gap: 0.9rem; }
  .venue { align-items: center; text-align: center; }
  .venues__sep { display: none; }
}

@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
}
