:root {
  --primary: #6c7450;
  --primary-hover: #586040;
  --secondary: #b5954a;
  --bg-cream: #faf9f5;
  --surface: rgba(255, 255, 255, 0.95);
  --text-main: #3b4231;
  --text-muted: #727b68;
  --border-light: rgba(108, 116, 80, 0.2);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-popup: 0 20px 40px rgba(45, 52, 35, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-cream);
  background-image: url('./assets/folha2.jpg');
  background-repeat: repeat-y;
  background-size: 100% auto;
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ENVELOPE / CAPA TOTALMENTE LIMPA */
.hero {
  min-height: 100vh;
  width: 100%;
  background: url('./assets/folha-1.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.envelope-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 50px;
}

.seal-hint {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: pulseHint 2s infinite ease-in-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

@keyframes pulseHint {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; box-shadow: 0 6px 20px rgba(108, 116, 80, 0.2); }
}

/* CORPO DO CONVITE */
#convite {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  animation: fadeIn 0.9s ease;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

.names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.1;
}

.and-symbol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--secondary);
  margin: 0.2rem 0;
}

.quote-container {
  margin: 2.2rem auto 1.5rem;
  max-width: 480px;
}

.versiculo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
}

.versiculo-ref {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.family-text {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.family-text .highlight {
  font-weight: 600;
  color: var(--primary);
}

/* DATA */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.date-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.2rem 0;
  margin: 1rem 0;
}

.day {
  font-size: 5.5rem;
  line-height: 1;
  color: var(--primary);
}

.month {
  font-size: 1.4rem;
  letter-spacing: 5px;
}

.year {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hour {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* TEMPORIZADOR */
.countdown-container {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-light);
}

.countdown-title {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.countdown-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--secondary);
  align-self: flex-start;
  margin-top: -2px;
}

/* BOTÕES DE AÇÃO */
.action-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(108, 116, 80, 0.15);
}

.action-btn .icon { font-size: 1.6rem; }
.action-btn strong { display: block; font-size: 1rem; color: var(--primary); }
.action-btn small { color: var(--text-muted); font-size: 0.8rem; }

/* MODAIS */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 35, 25, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-box {
  background: white;
  padding: 2.2rem 1.8rem;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-popup);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* ÁREA DE PRESENTES & TAGS */
.gift-custom-form {
  text-align: left;
}

.quick-tags {
  margin-bottom: 1.2rem;
}

.tag-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-btn {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.payment-card {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px dashed var(--border-light);
  text-align: center;
}

.payment-instruction {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.qr-code {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0.5rem auto;
  display: block;
  background: white;
  padding: 6px;
  border-radius: 8px;
}

.input-pix {
  width: 100%;
  font-size: 0.75rem;
  padding: 8px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.btn-group {
  display: flex;
  gap: 0.6rem;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: .3s;
}

.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: white; color: var(--primary); border: 1px solid var(--primary); }

.copy-feedback {
  display: none;
  font-size: 0.75rem;
  color: #3b6b29;
  margin-top: 0.5rem;
}

/* FORMULÁRIO RSVP E INPUTS */
.input-group {
  text-align: left;
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.submit-btn, .btn-route {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.rsvp-success {
  margin-top: 1rem;
  padding: 1rem;
  background: #eaf3e6;
  border-radius: 8px;
  color: #3b6b29;
  font-size: 0.85rem;
}

.location-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .names { font-size: 2.7rem; }
  .day { font-size: 4.5rem; }
  .btn-group { flex-direction: column; }
}