/* =========================================================
   LAURA & JOÃO VITOR — LANDING PAGE DE CASAMENTO
   Todas as cores, fontes e espaçamentos ficam nas variáveis
   abaixo. Para mudar o "tema" para outro casal, basta editar
   este bloco :root — o resto do CSS não precisa ser tocado.
   ========================================================= */

:root {
  /* ---- Cores ---- */
  --color-bg: #efe4d3;          /* creme claro (fundo hero) */
  --color-bg-soft: #f6efe3;     /* creme mais claro (seção meio) */
  --color-bg-card: #ffffff;     /* fundo dos cartões de info */
  --color-green: #7c8563;       /* verde oliva (seção RSVP) */
  --color-green-dark: #656d4f;
  --color-text: #3a3226;        /* marrom escuro (texto principal) */
  --color-text-soft: #6b6152;   /* marrom acinzentado (texto de apoio) */
  --color-text-light: #f6efe3;  /* texto claro sobre fundo escuro */
  --color-accent: #9a5a44;      /* terracota (detalhes / “&”) */
  --color-burgundy: #87081b;    /* bordô (cor das madrinhas) */
  --color-border: #d8cab0;      /* linhas e divisores */
  --color-placeholder: #d9cdb8; /* fundo dos placeholders de foto */

  /* ---- Tipografia ---- */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  /* ---- Layout ---- */
  --container-width: 1180px;
  --radius: 6px;
  --header-height: 84px;
}

/* =========================================================
   RESET BÁSICO
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-burgundy);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background: var(--color-bg);
  overflow: hidden;
}

.hero__panel {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
}

/* Curva suave que separa o painel do texto da foto — o preenchimento
   acompanha a cor de fundo do hero, então some/aparece junto se a
   paleta mudar. */
.hero__panel-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__panel-shape path {
  fill: var(--color-bg);
}

.hero__text {
  position: relative;
  z-index: 1;
  width: 44%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 40px 64px 64px;
}

.hero__monogram {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 24px;
}

.hero__names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 20px;
}

.hero__divider span:not(.hero__divider-icon) {
  width: 48px;
  height: 1px;
  background: var(--color-text-soft);
  display: block;
}

.hero__divider-icon {
  height: 33px;
  width: auto;
  display: block;
}

.hero__date {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--color-text-soft);
}

.welcome__countdown {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 56px;
}

.countdown__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hero__countdown {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.countdown__done {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-top: 4px;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Só o setor da direita — a foto é vertical (retrato), então
     esticar ela pela largura toda do hero forçava um zoom enorme
     e cortava boa parte da imagem. Aqui ela fica mais próxima da
     proporção original, cobrindo com folga a curva do painel. */
  left: 40%;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   BEM-VINDOS / DETALHES
   ========================================================= */

.welcome {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.welcome__leaf {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: clamp(90px, 11vw, 160px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.welcome__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.section-title--light {
  color: var(--color-text-light);
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--color-burgundy);
  margin: 24px 0;
}

.rule--light {
  background: var(--color-text-light);
  opacity: 0.6;
}

.welcome__text {
  color: var(--color-text-soft);
  max-width: 420px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--color-burgundy);
  color: var(--color-text-light);
}

.btn--primary:hover {
  background: #6e0a17;
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-bg-card);
  transform: translateY(-2px);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.info-card {
  display: block;
  padding: 32px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.info-card--link {
  cursor: pointer;
  transition: background 0.2s ease;
  /* Reset do visual padrão de <button>, já que este cartão também
     é usado como botão clicável (abre o modal de mensagem). */
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.info-card--link:hover {
  background: var(--color-bg-card);
}

.info-card--link:hover .info-card__title {
  color: var(--color-accent);
}

.info-card__map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.map-link svg {
  flex-shrink: 0;
}

.map-link:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
  background: var(--color-bg-card);
}

.info-card__icon {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.info-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-card__text {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* =========================================================
   NOSSA HISTÓRIA
   ========================================================= */

.story {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--color-bg-card);
}

.story__leaf {
  position: absolute;
  top: 50%;
  right: 0;
  height: auto;
  transform: translateY(-50%) scaleX(-1) rotate(20deg);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.story__header {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 72px;
  text-align: center;
}

.story__header .rule {
  margin-left: auto;
  margin-right: auto;
}

.story__intro {
  color: var(--color-text-soft);
  margin-top: 20px;
}

.timeline {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 52px 64px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline__item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline__dot {
  position: absolute;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-burgundy);
}

.timeline__item:nth-child(odd) .timeline__dot {
  right: -6px;
}

.timeline__item:nth-child(even) .timeline__dot {
  left: -6px;
}

.timeline__date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: 8px;
}

.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.timeline__text {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

/* =========================================================
   PRESENTES (página própria)
   ========================================================= */

.gifts {
  padding: 56px 0 100px;
  text-align: center;
  background: var(--color-bg-soft);
}

.gifts .rule {
  margin-left: auto;
  margin-right: auto;
}

/* Espaço só ENTRE categorias — a primeira encosta no padding da
   seção, sem sobra de espaço extra no topo da página. */
.gifts__category + .gifts__category {
  margin-top: 72px;
}

.gifts__category-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.gift-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.gift-card__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 16px;
}

.gift-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.gift-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 18px;
}

.gift-card__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent);
}

/* =========================================================
   SUGESTÃO DE MÚSICA (página própria)
   ========================================================= */

.music-suggestion {
  padding: 56px 0 100px;
  background: var(--color-bg-soft);
}

.music-form {
  max-width: 560px;
  margin: 0 auto 56px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.music-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.music-form__row input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.music-form__row input::placeholder {
  color: var(--color-text-soft);
  opacity: 0.8;
}

.music-form__row input:focus {
  outline: none;
  border-color: var(--color-burgundy);
  background: var(--color-bg-card);
}

.music-form__nome {
  display: block;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.music-form__nome::placeholder {
  color: var(--color-text-soft);
  opacity: 0.8;
}

.music-form__nome:focus {
  outline: none;
  border-color: var(--color-burgundy);
  background: var(--color-bg-card);
}

.music-form .btn {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font: inherit;
}

.music-form__feedback {
  margin-top: 14px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--color-green-dark);
  min-height: 1.2em;
}

.music-form__feedback.is-error {
  color: var(--color-burgundy);
}

.music-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow 0.2s ease;
}

.music-item:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.music-item__info {
  flex: 1;
  min-width: 0;
}

.music-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.music-item__author {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  overflow-wrap: break-word;
}

.music-item__suggested-by {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-text-soft);
  opacity: 0.85;
  margin-top: 4px;
  overflow-wrap: break-word;
}

.music-item__votes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  padding: 8px 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  color: var(--color-text-soft);
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vote-btn svg {
  display: block;
}

.vote-btn__count {
  font-size: 0.78rem;
  font-weight: 600;
}

.vote-btn--up:hover,
.vote-btn--up.is-voted {
  color: var(--color-green-dark);
  border-color: var(--color-green-dark);
  background: rgba(101, 109, 79, 0.08);
}

.vote-btn--down:hover,
.vote-btn--down.is-voted {
  color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  background: rgba(135, 8, 27, 0.08);
}

.vote-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.music-list__empty,
.music-list__error {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  padding: 24px;
}

/* =========================================================
   RSVP
   ========================================================= */

.rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-green-dark);
}

.rsvp__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  color: var(--color-text-light);
}

.rsvp__subtext {
  color: var(--color-text-light);
  opacity: 0.85;
  margin-bottom: 32px;
}

.rsvp__media {
  overflow: hidden;
}

.rsvp__image {
  height: 100%;
  min-height: 320px;
  width: 100%;
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.rsvp__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rsvp__image span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  max-width: 220px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--color-bg-soft);
  padding: 40px 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer__social {
  display: flex;
  gap: 18px;
}

.footer__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer__icon:hover {
  background: var(--color-green-dark);
  color: var(--color-text-light);
  border-color: var(--color-green-dark);
}

.footer__names {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* =========================================================
   MODAL — MENSAGEM PARA OS NOIVOS
   ========================================================= */

body.no-scroll {
  overflow: hidden;
}

.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.msg-modal[hidden] {
  display: none;
}

.msg-modal.is-active {
  opacity: 1;
}

.msg-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(58, 50, 38, 0.55);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.msg-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.25);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.3s ease;
}

.msg-modal.is-active .msg-modal__content {
  transform: translateY(0) scale(1);
}

.msg-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.msg-modal__close:hover {
  color: var(--color-text);
}

.msg-modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  padding-right: 24px;
  margin-bottom: 20px;
}

.msg-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-modal__form input,
.msg-modal__form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.msg-modal__form input::placeholder,
.msg-modal__form textarea::placeholder {
  color: var(--color-text-soft);
  opacity: 0.8;
}

.msg-modal__form input:focus,
.msg-modal__form textarea:focus {
  outline: none;
  border-color: var(--color-burgundy);
  background: var(--color-bg-card);
}

.msg-modal__form .btn {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font: inherit;
}

.msg-modal__feedback {
  font-size: 0.82rem;
  text-align: center;
  color: var(--color-green-dark);
  min-height: 1.2em;
}

.msg-modal__feedback.is-error {
  color: var(--color-burgundy);
}

.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Garante que o atributo nativo "hidden" sempre vença, mesmo com
   o display:flex definido acima (sem isso, alguns navegadores
   mostrariam o overlay mesmo escondido). */
.easter-egg[hidden] {
  display: none;
}

.easter-egg.is-active {
  opacity: 1;
}

.easter-egg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.easter-egg__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 480px);
  margin: 0;
  cursor: pointer;
  transform: scale(0.94);
  transition: transform 0.35s ease;
}

.easter-egg.is-active .easter-egg__content {
  transform: scale(1);
}

.easter-egg__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-soft);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    /* Enquanto fechado, o menu fica "escondido" só visualmente (opacity),
       mas continua ocupando espaço acima da tela e pode encostar no
       cabeçalho, tampando o toque no botão do hambúrguer. pointer-events
       tira ele da jogada até ser aberto de verdade. */
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 16px 32px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: flex;
  }

  /* No mobile a foto e o texto ficam empilhados, então a curva
     do SVG (pensada para duas colunas lado a lado) sai de cena e
     o painel do texto volta a ser um bloco sólido comum. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero__media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: 280px;
    order: 2;
  }

  .hero__panel {
    width: 100%;
    min-height: auto;
    order: 1;
  }

  .hero__panel-shape {
    display: none;
  }

  .hero__text {
    width: 100%;
    min-height: auto;
    padding: 48px 32px;
  }

  .welcome__grid {
    grid-template-columns: 1fr;
  }

  .welcome__leaf {
    max-width: 70px;
    opacity: 0.6;
  }

  .story {
    padding: 72px 0;
  }

  .story__leaf {
    max-width: 70px;
    opacity: 0.6;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 44px 36px;
  }

  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    left: 1px;
    right: auto;
  }

  .rsvp {
    grid-template-columns: 1fr;
  }

  .rsvp__text {
    padding: 64px 32px;
    text-align: center;
    align-items: center;
  }

  .rsvp__image {
    min-height: 280px;
  }

  .music-form__row {
    grid-template-columns: 1fr;
  }

  .music-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .hero__monogram {
    font-size: 3.4rem;
  }

  .hero__amp {
    font-size: 2.6rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .welcome {
    padding: 64px 0;
  }

  .hero__countdown {
    gap: 14px;
  }

  .countdown__item {
    min-width: 42px;
  }

  .countdown__value {
    font-size: 1.5rem;
  }
}

/* =========================================================
   GALERIA DE FOTOS
   ========================================================= */

.gallery {
  padding: 100px 0;
  background: var(--color-bg-soft);
}

/* As colunas da galeria são montadas via JS (script.js), não com
   "column-count" do CSS puro — assim, quando mais fotos são carregadas
   (rolando a página), elas só são adicionadas ao final da coluna mais
   curta, sem reorganizar as fotos que já estavam na tela. */
.gallery__grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.gallery__column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

.gallery__item {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery__sentinel {
  height: 1px;
}

.gallery__empty {
  text-align: center;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  padding: 24px 0;
}

@media (max-width: 560px) {
  .gallery {
    padding: 72px 0;
  }
}

/* =========================================================
   LIGHTBOX — GALERIA DE FOTOS
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-active {
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 720px);
  max-height: 85vh;
  margin: 0;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.is-active .lightbox__content {
  transform: scale(1);
}

.lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

/* =========================================================
   BOTÃO DE MÚSICA DE FUNDO
   ========================================================= */

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  background: var(--color-bg-soft);
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 14px rgba(58, 50, 38, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.music-toggle:hover {
  background: var(--color-green-dark);
  color: var(--color-text-light);
  border-color: var(--color-green-dark);
}

/* Navegadores não aplicam o display:none padrão do atributo
   "hidden" a elementos <svg> — forçamos aqui para os ícones
   trocarem corretamente. */
.music-toggle__icon[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .music-toggle {
    right: 16px;
    bottom: 16px;
  }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
