/* =========================
   PALETA OFICIAL
========================= */
:root {
  --branco: #F5F5F5;
  --bege: #E8DCC6;
  --dourado: #C5A25D;
  --dourado-suave: #D8B97A;
  --verde-oliva: #4E5B3C;
  --marsala: #8C1D2C;
  --marsala-escuro: #6E1622;
  --texto-principal: #2B2B2B;
  --fundo-principal: var(--branco);
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--texto-principal);
  background: var(--fundo-principal);
  background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bege);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display';
  color: var(--marsala);
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons a {
  border: 1px solid var(--dourado);
  padding: 8px 15px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--marsala);
  transition: 0.3s;
}

.nav-buttons a:hover {
  background: var(--dourado);
  color: white;
}

/* =========================
   HERO
========================= */
.hero {
  height: 90vh;
  background: url('pictures/capa.jpg') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  text-align: center;
}

/* =========================
   BOTÕES
========================= */
.btn,
.cartao-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--dourado), var(--dourado-suave));
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover,
.cartao-link:hover {
  background: var(--marsala);
  transform: translateY(-3px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================
   CONTADOR
========================= */
.hero-countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 25px 0;
}

.hero-countdown div {
  background: rgba(255,255,255,0.15);
  border: 1px solid var(--dourado);
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  backdrop-filter: blur(5px);
  min-width: 70px;
}

.hero-countdown span {
  display: block;
  font-size: 12px;
  color: var(--dourado);
  margin-top: 5px;
}

/* =========================
   SEÇÕES
========================= */
section {
  text-align: center;
  padding: 60px 20px;
}

section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--marsala);
}

section p {
  font-size: 18px;
  max-width: 700px;
  margin: 10px auto;
}

.reveal h2 {
  color: var(--dourado);
}

.reveal p {
  color: #555;
}

.map-container {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
}

/* =========================
   RSVP BACKGROUND
========================= */
.rsvp-bg {
  position: relative;
  padding: 120px 20px;
  background-image: url('pictures/confirmacao1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 60% center;
}

.rsvp-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.rsvp-bg * {
  position: relative;
  z-index: 1;
}

/* =========================
   GALERIA
========================= */
.gallery {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(0,0,0,0.3);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: white;
  opacity: 0;
  transition: opacity 1s ease, transform 6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1.02);
}

/* =========================
   FORMULÁRIO
========================= */
form,
.form-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-box {
  max-width: 500px;
  margin: 40px auto;
}

.form-box input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.form-box input:focus {
  border-color: var(--dourado);
  box-shadow: 0 0 8px rgba(201,169,106,0.3);
}

.form-box label {
  font-size: 15px;
  color: var(--dourado);
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-box .btn {
  align-self: center;
  margin-top: 10px;
}

/* =========================
   PRESENTES
========================= */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gift-card,
.gift-card-premium {
  background: white;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
}

.gift-card {
  padding: 20px;
  border: 1px solid #eee;
}

.gift-card-premium {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.gift-card:hover {
  transform: translateY(-5px);
  border-color: var(--dourado);
}

.gift-card-premium:hover {
  transform: translateY(-8px);
}

.gift-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gift-card-premium:hover img {
  transform: scale(1.08);
}

.gift-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.gift-content {
  padding: 18px;
  text-align: center;
}

.gift-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--marsala);
}

.gift-price {
  font-size: 16px;
  color: var(--dourado);
  font-weight: bold;
  margin-bottom: 12px;
}

.gift-btn {
  background: var(--dourado);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.gift-btn:hover {
  background: var(--marsala);
}

/* =========================
   PIX / QR CODE
========================= */
.pix-box {
  text-align: center;
  margin-top: 40px;
}

.pix-box img {
  width: 420px;
  max-width: 90%;
  margin: 25px auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 9999;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalFade 0.4s ease;
  border-top: 5px solid var(--dourado);
}

.modal-content h2 {
  color: var(--marsala);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--verde-oliva);
  margin-bottom: 20px;
}

.modal-content button {
  background: var(--marsala);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
}

.modal-content button:hover {
  background: var(--marsala-escuro);
}

#modalPix .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 95%;
}

#modalPix .modal-content img {
  width: 500px !important;
  max-width: 95%;
  margin: 20px auto;
  display: block;
  border-radius: 16px;
  padding: 12px;
  background: white;
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

@keyframes modalFade {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   FOOTER FIXO
========================= */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  text-align: center;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-fixed p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.75);
  font-family: 'Poppins', sans-serif;
}

/* =========================
   MANUAL DOS CONVIDADOS
========================= */
.manual-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96));
}

.manual-section h2 {
  color: var(--dourado);
  font-size: 38px;
  margin-bottom: 50px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.manual-item {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(197,162,93,0.2);
  border-radius: 18px;
  padding: 25px 20px;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.manual-item:hover {
  transform: translateY(-5px);
  border-color: var(--dourado);
  box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.manual-item span {
  font-size: 34px;
  display: block;
  margin-bottom: 15px;
}

.manual-item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--marsala);
  font-weight: 500;
}

.manual-footer {
  margin-top: 50px;
  color: var(--dourado);
  font-size: 20px;
  font-style: italic;
}

/* =========================
   CAIXA PAGAMENTO CARTÃO
========================= */
.cartao-box {
  margin: 25px auto 0;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(197,162,93,0.35);
  border-radius: 18px;
  padding: 20px;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.cartao-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.08);
  border-color: var(--dourado);
}

.cartao-box h4 {
  margin-top: 0;
  color: var(--marsala);
  font-size: 20px;
}

.cartao-box p {
  color: #666;
  margin-bottom: 18px;
  font-size: 15px;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 600px) {
  .form-box {
    max-width: 90%;
  }

  .form-box input {
    font-size: 15px;
  }

  .rsvp-bg {
    background-position: 70% center;
  }

  #modalPix .modal-content img {
    width: 90% !important;
  }
}
/* =========================
   RESPONSIVIDADE MOBILE
========================= */

@media (max-width: 768px) {

  body {
    padding-bottom: 55px;
    overflow-x: hidden;
  }

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    gap: 14px;
    padding: 18px 15px;
    text-align: center;
  }

  .logo {
    font-size: 26px;
    margin: 0;
  }

  .nav-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-buttons a {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* HERO */
  .hero {
    height: 82vh;
    padding: 0 20px;
    background-position: center;
  }

  .hero-content h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 16px;
    padding: 0 10px;
  }

  /* CONTADOR */
  .hero-countdown {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-countdown div {
    min-width: 65px;
    padding: 12px 10px;
    font-size: 18px;
  }

  /* SEÇÕES */
  section {
    padding: 45px 15px;
  }

  section h2 {
    font-size: 28px;
  }

  section p {
    font-size: 16px;
    max-width: 100%;
  }

  /* GALERIA */
  .gallery {
    margin-top: 20px;
    padding: 30px 10px;
  }

  .slider {
    max-width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .slide {
    object-fit: contain !important;
    background: rgba(0,0,0,0.15);
  }

  /* RSVP */
  .rsvp-bg {
    padding: 80px 15px;
    background-position: center;
  }

  .form-box {
    width: 100%;
    max-width: 88%;
    margin: 30px auto;
    gap: 12px;
  }

  .form-box input {
    box-sizing: border-box;
    width: 100%;
    font-size: 16px;
  }

  .form-box .btn {
    width: 100%;
    text-align: center;
  }

  /* PRESENTES */
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 10px;
  }

  .gift-card-premium {
    max-width: 360px;
    margin: 0 auto;
  }

  .gift-image {
    height: 210px;
  }

  .gift-content h3 {
    font-size: 17px;
  }

  .gift-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  /* PIX */
  .pix-box img {
    width: 300px;
    max-width: 95%;
  }

  /* MODAL */
  .modal-content {
    width: 88%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px 18px;
  }

  #modalPix .modal-content {
    width: 90%;
    max-width: 420px;
  }

  #modalPix .modal-content img {
    width: 90% !important;
    max-width: 330px;
    padding: 8px;
  }

  /* CARTÃO */
  .cartao-box {
    max-width: 90%;
    padding: 18px;
  }

  .cartao-link {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
  }

  /* MANUAL */
  .manual-section {
    padding: 60px 15px;
  }

  .manual-section h2 {
    font-size: 30px;
  }

  .manual-grid {
    grid-template-columns: 1fr;
  }

  .manual-item {
    padding: 22px 16px;
  }

  /* FOOTER */
  .footer-fixed {
    padding: 8px 10px;
  }

  .footer-fixed p {
    font-size: 11px;
  }
}
/* =========================
   CORREÇÃO FULL WIDTH MOBILE
========================= */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

section,
div,
img,
form,
input,
iframe {
  max-width: 100%;
}

/* REMOVE SOBRA LATERAL */
body {
  margin: 0;
  padding: 0;
}

/* HERO */
.hero {
  width: 100%;
  overflow: hidden;
}

/* GALERIA */
.gallery,
.slider {
  width: 100%;
}

/* FORMULÁRIO */
.form-box {
  width: 100%;
}

/* PRESENTES */
.gift-grid {
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

/* NAVBAR */
.navbar {
  width: 100%;
}

/* IMAGENS */
img {
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .hero,
  .gallery,
  section,
  .slider,
  .gift-grid,
  .manual-section,
  .rsvp-bg {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .slider {
    border-radius: 0;
  }

  .gallery {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    width: 100%;
    padding: 0 15px;
  }

  .form-box {
    max-width: 100%;
    padding: 0 15px;
  }
}