html {
  scroll-behavior: smooth;
}

:root {
  --primary: #C96A4B;
  --dark: #1a1a1a;
  --light: #f8f8f8;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
}

h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.subtitle {
  max-width: 500px;
  margin: 0 auto 50px;
  font-size: 15px;
  color: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

body {
  background: var(--light);
  color: var(--dark);
  font-weight: 300;
  letter-spacing: 0.3px;
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.5px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-weight: 500;
}

button, .cta {
  font-weight: 400;
}

.nav-links a {
  font-weight: 400;
}

/* HEADER */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1000;
  transition: 0.4s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.header.scrolled .nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.cta {
  position: relative;
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.5px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(201,106,75,0.35);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #C96A4B, #ff9a7a);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(201,106,75,0.5);
}

.cta:hover::before {
  opacity: 1;
}

.cta:active {
  transform: scale(0.98);
}

.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url('images/Davi\ e\ Milena.jpeg');
  background-size: cover;
  background-position: center 60%;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 60px;
}

.date {
  margin: 10px 0;
}

#countdown {
  margin-top: 20px;
  font-size: 20px;
}

/* SECTIONS */
.section {
  padding: 120px 20px;
  text-align: center;
}

.section.dark {
  background: #f1f1f1;
}

.section h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.countdown-section,
.rsvp-section,
.recados-premium {
  padding: 120px 20px;
}

.section h2 {
  margin-bottom: 16px;
}

.section p {
  margin-bottom: 50px;
}

/* CARDS */
.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ================================= */
/* HISTÓRIA PREMIUM */
/* ================================= */

.historia-premium {
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}

.historia-container {
  max-width: 800px;
}

.historia-content {
  text-align: left;
  margin-top: 40px;
}

/* INTRO (DESTACADA) */
.historia-intro {
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* PARÁGRAFOS */
.historia-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* DESTAQUE */
.historia-content strong {
  color: var(--primary);
  font-weight: 500;
}

/* VERSÍCULO */
.historia-versiculo {
  margin-top: 40px;
  padding: 30px;
  border-left: 4px solid var(--primary);
  background: rgba(201,106,75,0.05);
  border-radius: 12px;

  font-style: italic;
  color: #333;
  line-height: 1.7;
}

.historia-versiculo span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

/* ================================= */
/* DETALHES PREMIUM */
/* ================================= */

.detalhes-premium {
  background: linear-gradient(to bottom, #f1f1f1, #f8f8f8);
}

/* TÍTULO */
.detalhes-premium h2 {
  font-size: 28px;
  letter-spacing: 1px;
}

.detalhes-premium h2 span {
  color: var(--primary);
}

/* GRID */
.detalhes-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
  align-items: center;
}

/* INFO */
.detalhes-info {
  text-align: left;
}

/* ITEM */
.detalhe-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 18px;
}

/* TÍTULO PEQUENO */
.detalhe-item h3 {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* TEXTO */
.detalhe-item p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

/* BOTÃO */
.btn-maps {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  box-shadow: 0 12px 30px rgba(201,106,75,0.35);
  transition: all 0.3s ease;
}

.btn-maps:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(201,106,75,0.45);
}

/* MAPA COM BORDA */
.detalhes-mapa {
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  padding: 3px;
  background: linear-gradient(135deg, #C96A4B, #ff9a7a);

  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: 0.4s ease;
}

/* IFRAME INTERNO */
.detalhes-mapa iframe {
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

/* HOVER SUAVE */
.detalhes-mapa:hover {
  transform: scale(1.01);
}

/* ================================= */
/* RSVP*/
/* ================================= */

.rsvp-container.center {
  text-align: center;
  max-width: 600px;
}

.rsvp-subtitle {
  margin-bottom: 40px;
  color: #666;
  font-size: 15px;
}

.rsvp-form.minimal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* INPUT GRANDE PROTAGONISTA */
.rsvp-form.minimal input {
  padding: 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 16px;
  text-align: center;
  transition: 0.3s;
}

.rsvp-form.minimal input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,106,75,0.15);
}

/* BOTÃO */
.btn-rsvp {
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-rsvp:hover {
  transform: translateY(-2px);
}

/* ================================= */
/* PRESENTES PREMIUM */
/* ================================= */

.gifts {
  background: #f8f8f8;
}

.gifts-subtitle {
  margin-bottom: 50px;
  color: #666;
  font-size: 15px;
}

/* GRID */
.gifts-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD */
.gift-card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  width: 260px;
  text-align: center;
  position: relative;

  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.gift-card strong {
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--primary);
  font-weight: 500;
}

.gift-card:hover {
  transform: translateY(-6px);
}

/* DESTAQUE */
.gift-card.destaque {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

/* BADGE */
.badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

/* TÍTULO */
.gift-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

/* TEXTO */
.gift-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* BOTÃO */
.gift-card button {
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

.gift-card button:hover {
  transform: translateY(-2px);
}

/* PIX BOX */
.pix-box {
  margin-top: 60px;
  background: white;
  padding: 25px;
  border-radius: 14px;
  display: inline-block;

  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.pix-box strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

/* IMAGENS */
.gift-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ================================= */
/* RECADOS */
/* ================================= */

.recados-premium {
  background: linear-gradient(to bottom, #f8f8f8, #f1f1f1);
}

.recados-subtitle {
  margin-bottom: 40px;
  color: #666;
  font-size: 15px;
}

/* FORM */
.recados-form {
  max-width: 500px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recados-form input,
.recados-form textarea {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.3s;
}

.recados-form textarea {
  min-height: 120px;
  resize: none;
}

.recados-form input:focus,
.recados-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,106,75,0.1);
}

.recados-form button {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.recados-form button:hover {
  transform: translateY(-2px);
}

/* GRID DE RECADOS */
.recados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  gap: 24px;
}

/* CARD */
.recado-card {
  width: 100%;
  max-width: 320px;

  background: white;
  padding: 20px;
  border-radius: 16px;

  text-align: left;

  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.recado-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* HEADER DO CARD */
.recado-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* AVATAR */
.recado-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: linear-gradient(135deg, #C96A4B, #ff9a7a);
  color: white;

  font-weight: 500;
  font-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 15px rgba(201,106,75,0.4);
}

/* NOME */
.recado-nome {
  font-weight: 500;
  font-size: 14px;
}

/* DATA */
.recado-data {
  font-size: 11px;
  color: #aaa;
}

/* TEXTO */
.recado-texto {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-top: 8px;
  text-align: left;
}

.load-more-btn {
  margin-top: 30px;
  margin-right: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;

  cursor: pointer;
  transition: 0.3s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
}

.load-less-btn {
  margin-top: 30px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;

  cursor: pointer;
  transition: 0.3s;
}

.load-less-btn:hover {
  transform: translateY(-2px);
}



/* ================================= */
/* COUNTDOWN PREMIUM TERRACOTA */
/* ================================= */

.countdown-section {
  padding: 120px 20px;
  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  text-align: center;
  color: white;
}

/* TÍTULO */
.countdown-section h2 {
  margin-bottom: 50px; /* MAIS RESPIRO AQUI */
  letter-spacing: 0.5px;
}

/* GRID */
.countdown {
  display: flex;
  justify-content: center;
  gap: 40px; /* MAIS ESPAÇO ENTRE NÚMEROS */
  flex-wrap: wrap;
}

/* REMOVE CARD TOTAL */
.time-box {
  background: none;
  border: none;
  padding: 0;
  min-width: auto;
  box-shadow: none;
}

/* NÚMERO (PROTAGONISTA) */
.time-box span {
  font-size: 42px;
  font-weight: 300;
  color: #ffffff;
  display: block;
}

/* TEXTO */
.time-box small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

footer {
  text-align: center;
  padding: 40px;
  background: var(--dark);
  color: white;
}

/* ================================= */
/* MODAL PIX */
/* ================================= */

.pix-modal {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition: 0.4s ease;
}

.pix-modal.active {
  opacity: 1;
  visibility: visible;
}

.pix-card {
  width: 90%;
  max-width: 420px;

  background: white;
  border-radius: 24px;

  padding: 40px 30px;

  text-align: center;
  position: relative;

  transform: translateY(30px);
  transition: 0.4s ease;

  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.pix-modal.active .pix-card {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 18px;

  background: none;
  border: none;

  font-size: 28px;
  cursor: pointer;

  color: #999;
}

.pix-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #222;
}

.pix-value {
  font-size: 42px;
  font-weight: 500;
  color: var(--primary);

  margin-bottom: 25px;
}

.pix-label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #999;

  margin-bottom: 10px;
}

.pix-key {
  background: #f5f5f5;

  padding: 18px;
  border-radius: 14px;

  font-size: 15px;
  word-break: break-word;

  margin-bottom: 25px;
}

.copy-pix-btn {
  width: 100%;

  border: none;
  border-radius: 999px;

  padding: 16px;

  background: linear-gradient(135deg, #C96A4B, #b85a3d);
  color: white;

  cursor: pointer;

  transition: 0.3s;
}

.copy-pix-btn:hover {
  transform: translateY(-2px);
}

.pix-feedback {
  display: block;
  margin-top: 18px;

  font-size: 14px;
  color: #4CAF50;
}

/* MOBILE */
@media(max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  /* HEADER */
  .header ul {
    display: none;
  }

   .cta {
    display: none;
  }

  .nav {
    justify-content: center;
  }

  .logo {
    text-align: center;
    font-size: 20px;
    letter-spacing: 1px;
  }

  .nav-links {
    display: none;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 999;

    background: linear-gradient(135deg, #C96A4B, #b85a3d);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;

    box-shadow: 0 10px 30px rgba(201,106,75,0.4);
  }

  .detalhes-grid {
    grid-template-columns: 1fr;
  }

  .detalhes-mapa {
    height: 250px;
  }

  .detalhes-info {
    text-align: left;
  }

  .countdown {
    gap: 25px;
  }

  .time-box span {
    font-size: 32px;
  }

  /* PRESENTES */
  .gifts-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;

    scroll-snap-type: x mandatory;
  }

  .gifts-grid {
    flex-wrap: nowrap; /* 👈 ESSENCIAL */
    overflow-x: auto;
    justify-content: flex-start; /* 👈 ESSENCIAL */
  }

  .gift-card {
    min-width: 260px;
    flex: 0 0 auto;

    scroll-snap-align: start;
  }

  /* esconder scrollbar (opcional premium) */
  .gifts-grid::-webkit-scrollbar {
    display: none;
  }

  .gifts-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

}