/* =============================================================
   VARIÁVEIS & RESET
============================================================= */
:root {
  --green:        #8b9372;
  --green-dark:   #5c6347;
  --green-light:  #c4ccb3;
  --green-faint:  #edf0e7;
  --cream:        #fefbf5;
  --cream-dark:   #f0e9dd;
  --text:         #595959;
  --text-dark:    #3a3a3a;
  --text-light:   #888;
  --white:        #ffffff;
  --border:       #ddd8cf;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.13);
  --radius:       16px;
  --radius-sm:    10px;
  --transition:   0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* =============================================================
   TIPOGRAFIA
============================================================= */
.great-vibes { font-family: 'Great Vibes', cursive; }
.cinzel      { font-family: 'Cinzel', serif; }


/* =============================================================
   LAYOUT
============================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 620px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--cream-dark);
}


/* =============================================================
   BOTÕES CTA
============================================================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.cta-btn--outline {
  border: 2px solid var(--green);
  color: var(--green-dark);
  background: transparent;
}
.cta-btn--outline:hover,
.cta-btn--outline:focus-visible {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,147,114,.35);
}

.cta-btn--filled {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.cta-btn--filled:hover,
.cta-btn--filled:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,99,71,.35);
}

.cta-btn--full {
  width: 100%;
}

.cta-btn:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}


/* =============================================================
   HERO
============================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Pontilhado decorativo de fundo sutil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(139,147,114,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green);
}

.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.2rem, 13vw, 6.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: .01em;
}

.amp {
  color: var(--green);
  font-size: .75em;
  vertical-align: middle;
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  margin: 4px auto;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-dark);
}

.hero-time {
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 500;
}

.hero-verse {
  max-width: 440px;
  margin: 8px auto;
  font-size: .9rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  border: none;
  padding: 0;
}

.hero-verse p { margin-bottom: 6px; }

.hero-verse cite {
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--green);
  text-transform: uppercase;
}

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

/* Ornamentos */
.hero-ornament {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  opacity: .6;
}
.hero-ornament--tl { top: -20px; left: -20px; }
.hero-ornament--br { bottom: -20px; right: -20px; transform: rotate(180deg); }

@media (max-width: 480px) {
  .hero-ornament { width: 100px; height: 100px; }
  .desktop-only { display: none; }
}


/* =============================================================
   CABEÇALHO DE SEÇÃO
============================================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--green-light);
  margin: 12px auto 0;
  border-radius: 1px;
}

.section-desc {
  margin-top: 16px;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.8;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* =============================================================
   LOCAL — VENUE CARD
============================================================= */
.venue-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@media (min-width: 700px) {
  .venue-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mapa */
.venue-map {
  min-height: 260px;
  background: var(--green-faint);
  position: relative;
}

/* Quando o iframe do Google Maps for inserido, ele preencherá a área */
.venue-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: none;
  display: block;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .05em;
}

/* Informações */
.venue-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.venue-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.venue-row dt {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.venue-row dd {
  font-size: .98rem;
  color: var(--text-dark);
  font-weight: 500;
}


/* =============================================================
   PRESENTES
============================================================= */
.gifts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.gift-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.gift-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.gift-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 4px;
}

.gift-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
}

.gift-card p {
  font-size: .9rem;
  color: var(--text-light);
}

/* PIX */
.pix-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  margin-top: 4px;
}

.pix-key {
  flex: 1;
  font-family: 'Quicksand', monospace;
  font-size: .88rem;
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-all;
  text-align: left;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}

.btn-copy:hover,
.btn-copy:focus-visible {
  background: var(--green-dark);
}

.btn-copy--copied {
  background: #5a7a5a;
}

.btn-copy:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}


/* =============================================================
   RSVP — FORMULÁRIO
============================================================= */
.rsvp-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: .02em;
}

.required {
  color: var(--green);
}

.optional {
  font-weight: 400;
  color: var(--text-light);
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(139,147,114,.18);
  background: var(--white);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #bbb;
  font-weight: 400;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9372' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

#submit-btn {
  margin-top: 4px;
  font-size: 1rem;
  padding: 16px;
  letter-spacing: .04em;
}

#submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Estado de sucesso */
.rsvp-success {
  text-align: center;
  padding: 48px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-checkmark {
  animation: popIn .5s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes popIn {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.rsvp-success h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
}

.rsvp-success p {
  color: var(--text-light);
  max-width: 360px;
}


/* =============================================================
   FOOTER
============================================================= */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}

.footer-date {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--green-light);
}

.footer-credit {
  font-size: .8rem;
  opacity: .55;
  margin-top: 4px;
}


/* =============================================================
   ANIMAÇÕES DE ENTRADA (scroll)
============================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================================
   TOAST DE NOTIFICAÇÃO (PIX copiado)
============================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 9999;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), opacity .3s ease;
  opacity: 0;
}

.toast.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* =============================================================
   RESPONSIVIDADE — AJUSTES ADICIONAIS
============================================================= */
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .rsvp-form { padding: 24px 16px; }
  .venue-info { padding: 24px 20px; }
  .gift-card { padding: 28px 20px; }
}
