/* RESET SIMPLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --olive: #2f3e2f;
  --beige: #f6f1eb;
  --terra: #c26a45;
  --white: #ffffff;

  --text: var(--olive);
  --muted: rgba(47, 62, 47, 0.70);
  --border: rgba(47, 62, 47, 0.12);
  --shadow: 0 18px 40px rgba(0,0,0,0.10);
  --radius: 18px;
}

/* BASE */
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--beige);
  color: var(--text);
  line-height: 1.6;
}

/* HERO (CAPA) */
.hero {
  position: relative;
  min-height: 78vh;
  padding: 3.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("imagens/hero-local.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(47, 62, 47, 0.72),
    rgba(47, 62, 47, 0.40)
  );
}

.hero-content {
  position: relative;
  z-index: 1;

  width: min(820px, 100%);
  background: rgba(246, 241, 235, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.45);

  padding: 2.2rem 2rem;
  border-radius: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* FOTO DO CASAL (maior) */
.hero-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: 65% 15%;
  border-radius: 22px;
  margin: 0 auto 1.2rem;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}
@media (max-width: 600px) {
  .hero-photo {
    width: 220px;
    height: 220px;
    object-position: 65% 12%;
  }
}


.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: rgba(47, 62, 47, 0.75);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--olive);
}

.hero-date {
  font-size: 1rem;
  color: rgba(47, 62, 47, 0.80);
  margin-bottom: 1.4rem;
}

/* BOTÃO PRINCIPAL */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  background-color: var(--terra);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 14px 26px rgba(194, 106, 69, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
  box-shadow: 0 18px 34px rgba(194, 106, 69, 0.40);
}

/* SEÇÕES */
.section {
  max-width: 960px;
  margin: 3.2rem auto;
  padding: 0 1.5rem;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  color: #3a2e27;
}

.section p {
  margin-bottom: 0.75rem;
}

/* CARD PARA SEÇÕES */
.section-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

/* FILTROS (CHIPS) */
.filtros {
  margin: 1.8rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(47, 62, 47, 0.85);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.chip.active {
  background-color: var(--olive);
  color: var(--white);
  border-color: rgba(47,62,47,0.0);
}

/* GRID DE PRESENTES */
.grid-presentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.card-presente {
  background-color: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(164, 106, 63, 0.05);
}

/* IMAGEM DO CARD */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f3ebe3;
  margin-bottom: 0.75rem;
}

.card-presente-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-presente h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #3a2e27;
}

.card-presente .categoria {
  font-size: 0.85rem;
  color: #8b7668;
}

.valores { font-size: 0.9rem; color: #5a4332; }
.progresso-texto { font-size: 0.85rem; color: #6e5a4b; }

/* BARRA DE PROGRESSO */
.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: #f0e4d8;
  overflow: hidden;
  margin: 0.15rem 0 0.6rem;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #a46a3f, #c88a5c);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-bar-inner.completo {
  background: linear-gradient(90deg, #2f7c4b, #4caf6b);
}

/* BOTÃO DOS CARDS */
.btn-contribuir {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #a46a3f;
  background-color: transparent;
  color: #a46a3f;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-contribuir:hover {
  background-color: #a46a3f;
  color: #fff;
  transform: translateY(-1px);
}

.btn-contribuir[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #d9c8ba;
  color: #7a6658;
  border-color: #d9c8ba;
  box-shadow: none;
  transform: none;
}

.btn-contribuir[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* LISTA DE PASSOS */
.lista-passos {
  margin: 1rem 0 0.5rem;
  padding-left: 1.3rem;
}

.lista-passos li { margin-bottom: 0.4rem; }

/* CAIXA PIX */
.pix-box {
  margin-top: 1.2rem;
  padding: 1.4rem 1.3rem;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #a46a3f;
}

.pix-box p + p { margin-top: 0.4rem; }

/* DRESS CODE */
.dress-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: rgba(47, 62, 47, 0.85);
}

.dress-list li { margin-bottom: 0.5rem; }

/* INFO GRID */
.info-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  background: rgba(246, 241, 235, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.1rem;
}

.info-title {
  font-weight: 800;
  color: var(--olive);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.info-text {
  color: rgba(47, 62, 47, 0.78);
  font-size: 0.95rem;
}

.info-meta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(47, 62, 47, 0.60);
}

/* RODAPÉ */
.footer {
  text-align: center;
  padding: 1.6rem 1rem 2rem;
  font-size: 0.9rem;
  color: #8c7a6d;
}

/* MODAL DE CONTRIBUIÇÃO */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal-backdrop.hidden { display: none; }

.modal {
  max-width: 480px;
  width: 100%;
  background-color: #fff;
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-presente-nome {
  font-size: 0.95rem;
  color: #7a5f4a;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9b8675;
}

/* FORMULÁRIO */
.form-group {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.9rem;
  color: #4c3d34;
}

.form-group input,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid #d5c6b8;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a46a3f;
  box-shadow: 0 0 0 1px rgba(164, 106, 63, 0.35);
}

.btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.mensagem-sucesso {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #2f7c4b;
  text-align: center;
}

.hidden { display: none; }

/* RESPONSIVO */
@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 2.5rem 1.2rem; }
  .hero-content { padding: 2rem 1.5rem; }
  .hero-photo { width: 160px; height: 160px; }
  .section { margin: 2.5rem auto; }
}
.pix-mini-box {
  background: #f6f1eb;
  border: 1.5px solid rgba(194, 106, 69, 0.75);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0 1.2rem;
  text-align: left;
}

.pix-mini-title {
  font-weight: 700;
  color: #2f3e2f;
  margin-bottom: 0.7rem;
}

.pix-mini-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.35rem 0;
  color: #2f3e2f;
  align-items: baseline;
  flex-wrap: wrap;
}

.pix-mini-label {
  font-weight: 700;
  min-width: 58px;
}

.pix-mini-value {
  word-break: break-word;
}

.pix-copiado-msg {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #2f3e2f;
}

.map-actions {
  display: flex;
  flex-direction: column; /* deixa um embaixo do outro */
  gap: 12px;              /* espaço entre eles */
  margin-top: 14px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
}

/* Card de largura total dentro do grid */
.info-card-full {
  grid-column: 1 / -1;
}

/* Botões/links do mapa dentro do card */
.map-actions.compact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.map-actions.compact .map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(47, 62, 47, 0.18);
  color: #2f3e2f;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.1s ease;
}

.map-actions.compact .map-link:hover {
  background: #f6f1eb;
  transform: translateY(-1px);
}
