/* ══════════════════════════════════════════════════════
   Convite de Casamento — André & Nathália
   Premium Physical Invitation — Compacto
   Fontes: Cormorant Garamond + DM Sans
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg:         #FAF8F5;
  --paper:      #FDFBF7;
  --paper-warm: #FAF6F0;
  --white-card: #FFFFFF;
  --ink:        #2c2c2c;
  --ink-soft:   #4a4a4a;
  --ink-light:  #7a7a7a;
  --gold:       #C4A464;
  --gold-light: #D8C48E;
  --gold-dark:  #A88A4A;
  --green:      #2F3E32;
  --green-soft: #3d5c4a;
  --green-deep: #24332A;
  --linen:      #EDE8DD;
  --border:     #E5DFD4;

  --serif:  'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  min-height: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════
   PÁGINA
   ══════════════════════════════════════════════ */
.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 3vw, 48px);
}

/* ══════════════════════════════════════════════
   O CONVITE
   ══════════════════════════════════════════════ */
.invite {
  position: relative;
  width: min(600px, 100%);
  padding: clamp(60px, 10vw, 90px) clamp(46px, 9vw, 72px);
  text-align: center;
  overflow: hidden;

  /* Fundo com imagem do convite (moldura + folhas)
     100% 100% garante que a moldura inteira fique visível
     em qualquer tamanho de ecrã, sem cortar folhas/bordas. */
  background-color: var(--paper-warm);
  background-image: url("/fundo-convite.jpg");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;

  /* Sombra — papel pousado sobre a mesa */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.025),
    0 4px 10px rgba(0,0,0,0.03),
    0 10px 30px rgba(0,0,0,0.04),
    0 24px 56px rgba(0,0,0,0.045);
}

/* Moldura dourada — desativada (a imagem de fundo já tem moldura)
.invite::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
.invite::after {
  content: '';
  position: absolute;
  inset: 17px;
  border: 0.5px solid var(--gold-light);
  pointer-events: none;
  opacity: 0.5;
}
*/

/* ══════════════════════════════════════════════
   CABEÇALHO
   ══════════════════════════════════════════════ */
.head {
  margin-bottom: 12px;
}

.monogram {
  font-family: var(--serif);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.amp {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-dark);
}

.names {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 10px 0;
}

.names .amp {
  font-size: 0.75em;
  vertical-align: 2px;
  color: var(--gold);
}

/* Filete decorativo */
.rule {
  width: 40%;
  max-width: 110px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ══════════════════════════════════════════════
   SUBTÍTULO
   ══════════════════════════════════════════════ */
.subtitle {
  font-family: var(--serif);
  font-size: clamp(14px, 2.6vw, 18px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: 14px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   CARD DE INFORMAÇÕES (texturizado)
   ══════════════════════════════════════════════ */
.info {
  position: relative;
  border: none;
  border-radius: 0;
  padding: 22px 0 16px;
  margin-bottom: 16px;
  overflow: hidden;

  /* Fundo transparente — herda o fundo do convite */
  background: transparent;
  box-shadow: none;
}

.info-block {
  padding: 8px 0;
}

.info-block:first-child { padding-top: 0; }

.info-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.info-value {
  font-family: var(--serif);
  font-size: clamp(14px, 2.4vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Divisor dourado */
.info-divider {
  width: 40%;
  max-width: 70px;
  height: 1px;
  margin: 4px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════
   RECEPÇÃO (com ornamentos laterais)
   ══════════════════════════════════════════════ */
.reception-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.reception-leaf {
  font-size: 14px;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 2px;
}

.reception {
  font-family: var(--serif);
  font-size: clamp(10px, 2vw, 12.5px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  line-height: 1.55;
  max-width: 320px;
}

/* ══════════════════════════════════════════════
   INTRO CTA
   ══════════════════════════════════════════════ */
.cta-intro {
  font-family: var(--serif);
  font-size: clamp(12px, 2.2vw, 14px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  margin-top: 14px;
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════
   BOTÕES CARD (com ícone acima do texto)
   ══════════════════════════════════════════════ */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 12px auto 8px;
}

.btn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.btn-card:active { transform: translateY(1px); }

.btn-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-card__icon {
  font-size: 24px;
  line-height: 1;
}

.btn-card__label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Primário: verde escuro, texto creme, ícone acima */
.btn-card--primary {
  color: var(--paper);
  background: var(--green);
  border: none;
  box-shadow: 0 2px 10px rgba(47,62,50,0.15);
}

.btn-card--primary:hover {
  background: var(--green-soft);
  box-shadow: 0 4px 16px rgba(47,62,50,0.22);
}

/* Secundário: creme/branco, texto verde, sombra leve */
.btn-card--secondary {
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.btn-card--secondary:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  border-color: var(--gold-light);
}

/* ══════════════════════════════════════════════
   PÍLULAS
   ══════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--green-soft);
  background: rgba(253,251,247,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.pill:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--gold-light);
}

.pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════
   FEEDBACK CÓPIA
   ══════════════════════════════════════════════ */
.copy-feedback {
  min-height: 1rem;
  margin-top: 6px;
  font-size: 11px;
  color: var(--green-soft);
}

/* ══════════════════════════════════════════════
   ALIANÇAS
   ══════════════════════════════════════════════ */
.aliancas {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin: 14px auto 8px;
  opacity: 0.85;
  user-select: none;
}

/* ══════════════════════════════════════════════
   RODAPÉ
   ══════════════════════════════════════════════ */
.foot {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   RESPONSIVO — Compactar para caber no celular
   ══════════════════════════════════════════════ */

/* Celular padrão (iPhone SE até ~428px) */
@media (max-width: 480px) {
  .page {
    padding: 6px;
    align-items: flex-start;
  }

  .invite {
    padding: 48px 36px;
  }

  .head { margin-bottom: 8px; }

  .monogram {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .names {
    font-size: clamp(28px, 9vw, 38px);
    margin: 6px 0;
  }

  .rule { width: 30%; max-width: 70px; }

  .subtitle {
    font-size: clamp(13px, 3.4vw, 15px);
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .info {
    padding: 16px 16px 12px;
    margin-bottom: 12px;
  }

  .info-block { padding: 6px 0; }

  .info-label {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .info-value {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .info-divider { margin: 2px auto; }

  .actions { margin-top: 10px; gap: 6px; }

  .pill {
    padding: 5px 10px;
    font-size: 10.5px;
  }

  .reception-wrap { gap: 8px; }

  .reception {
    font-size: clamp(9.5px, 2.6vw, 11.5px);
    max-width: 240px;
  }

  .reception-leaf { font-size: 11px; letter-spacing: 1px; }

  .cta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px auto 6px;
  }

  .btn-card {
    padding: 14px 10px;
    gap: 4px;
  }

  .btn-card__icon { font-size: 20px; }
  .btn-card__label { font-size: 11px; }

  .foot { font-size: 11.5px; margin-top: 4px; }
}

/* Celular muito pequeno */
@media (max-width: 340px) {
  .page { padding: 4px; }

  .invite {
    padding: 38px 28px;
  }

  .monogram { font-size: 14px; margin-bottom: 4px; }
  .names { font-size: clamp(24px, 9vw, 32px); }

  .subtitle { margin-top: 8px; margin-bottom: 10px; }

  .info { padding: 12px 12px 10px; }

  .cta { gap: 6px; }

  .btn-card {
    padding: 12px 14px;
    gap: 3px;
  }

  .btn-card__icon { font-size: 18px; }
  .btn-card__label { font-size: 11px; }
}
