* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f2ee;
  color: #2d2d2d;
  overflow-x: hidden;
}

/* HERO */

.hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  background-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.35),
      rgba(245,242,238,0.88)
    ),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1974&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 720px;
  color: white;
}

.hero-date {
  font-size: 0.82rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  margin-bottom: 28px;
}

.hero-text {
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 620px;
  margin: auto auto 38px;
}

/* BOTÕES */

.hero-button,
.btn,
.upload-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 34px;
  border-radius: 999px;
  background: #c9ab79;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* SEÇÕES */

section {
  padding: 90px 22px;
  text-align: center;
}

section:nth-child(even) {
  background: #f8f6f3;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 30px;
}

/* CONTAGEM */

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 520px;
  margin: 45px auto 0;
}

.countdown div {
  background: white;
  padding: 28px 10px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: bold;
}

.countdown span {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
}

/* TEXTOS */

.historia p,
.presentes p,
.upload-text {
  max-width: 760px;
  margin: auto;
  line-height: 2;
  color: #555;
}

/* CARD */

.card {
  background: white;
  max-width: 500px;
  margin: auto;
  padding: 46px 28px;
  border-radius: 32px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.card p {
  margin: 18px 0 24px;
  line-height: 1.8;
}

/* UPLOAD */

.upload-box {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.upload-area {
  width: 100%;
  max-width: 360px;
  background: white;
  border: 2px dashed #d7c2a0;
  border-radius: 24px;
  padding: 40px 24px;
  cursor: pointer;
}

.upload-area input {
  display: none;
}

.upload-area span {
  color: #777;
  line-height: 1.7;
}

/* PREVIEW */

.preview-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-video-badge,
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.upload-info {
  color: #777;
}

.progress-bar {
  width: 100%;
  max-width: 360px;
  height: 10px;
  background: #e5ddd2;
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  width: 0%;
  height: 100%;
  background: #c9ab79;
  transition: width 0.3s ease;
}

.hidden {
  display: none;
}

/* GALERIA */

.galeria-section {
  overflow: hidden;
}

.thumb-container {
  width: 100%;
  overflow: hidden;
  margin-top: 34px;
}

.thumb-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 6px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.thumb-carousel::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  flex: 0 0 auto;
  width: 115px;
  height: 115px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #ddd;
  cursor: pointer;
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* MODAL */

.modal-galeria {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: none;
}

.modal-scroll {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.modal-item {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: 20px;
}

.modal-item img,
.modal-item video {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 24px;
}

.fechar-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* PIX */

.pix-box {
  background: white;
  max-width: 380px;
  margin: 42px auto 0;
  padding: 34px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.pix-box img {
  width: 180px;
  max-width: 100%;
  margin-bottom: 22px;
}

footer {
  padding: 60px 24px;
  text-align: center;
  color: #777;
}

/* RESPONSIVO */

@media(max-width: 768px) {

  section {
    padding: 70px 18px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero h1 {
    line-height: 1.1;
  }

  .hero-text {
    font-size: 1rem;
  }

  .countdown {
    gap: 10px;
  }

  .countdown div {
    padding: 20px 6px;
  }

  .thumb-item {
    width: 105px;
    height: 105px;
  }

  .modal-item {
    padding: 10px;
  }

  .modal-item img,
  .modal-item video {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 18px;
  }

}
/* BOTÃO PIX */

.pix-chave {

  word-break: break-word;

  line-height: 1.8;

  color: #555;

  margin: 18px 0 22px;
}

.pix-copy-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 14px 24px;

  border-radius: 999px;

  border: none;

  background: #c9ab79;

  color: white;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.pix-copy-btn:hover {

  opacity: 0.92;

  transform: translateY(-2px);
}

.pix-copiado {

  background: #57a773 !important;
}