/* --------------------------------------------------
 * LUXURY EDITORIAL DESIGN SYSTEM & VARIABLES
 * -------------------------------------------------- */
:root {
  /* Colors — Paleta oficial do casamento (Chácara Bosque dos Eucaliptos) */
  --color-bg: #FDF6F3;          /* Papel blush-pêssego suave */
  --color-bg-alt: #F8ECE7;      /* Blush levemente mais profundo */
  --color-surface: #FFFFFF;     /* Branco suave */
  --color-surface-glass: rgba(255, 255, 255, 0.7);
  --color-primary: #B5484A;     /* Rosa queimado (AA): links, navegação, ícones, hover de botão */
  --color-primary-light: #D96C6C; /* Rosa Queimado puro: botânicos, realces, gradiente */
  --color-primary-dark: #9A3C3E;  /* Rosa profundo: títulos, botão sólido (repouso) */
  --color-coral: #F28C7B;       /* Coral Suave */
  --color-peach: #F6B8A6;       /* Pêssego Claro */
  --color-blush: #F4C7C3;       /* Rosa Blush */
  --color-butter: #F6E27F;      /* Amarelo Manteiga */
  --color-accent: #5E7A63;      /* Eucalipto — fio condutor */
  --color-accent-light: #9DB39C; /* Eucalipto claro */
  --color-gold: #5E7A63;        /* Eucalipto: bordas delicadas, divisores, setas (fio condutor) */
  --color-text-main: #4A3C3B;   /* Tinta morna escura (AA) */
  --color-text-muted: #80665F;  /* Taupe-rosado suave (AA) */
  --color-border: rgba(94, 122, 99, 0.28); /* Bordas delicadas tingidas de eucalipto */
  --color-overlay: rgba(74, 60, 59, 0.35);

  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-cursive: 'Pinyon Script', cursive; /* Ultra-luxurious calligraphy */

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(63, 55, 48, 0.03);
  --shadow-md: 0 10px 28px rgba(63, 55, 48, 0.06);
  --shadow-lg: 0 20px 45px rgba(63, 55, 48, 0.1);

  /* Borders */
  --border-radius-arch: 240px 240px 0 0; /* Boho arch frame */
  --border-radius-card: 20px 0 20px 0;    /* Asymmetric sharp cards */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;

  /* Ramos de eucalipto nos cantos — regule a leveza aqui (0 = sem folhas) */
  --leaf-opacity: 0.16;
}

/* --------------------------------------------------
 * RESET & ORGANIC BASE STYLES
 * -------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(at 10% 20%, rgba(246, 184, 166, 0.18) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(94, 122, 99, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(217, 108, 108, 0.08) 0px, transparent 50%);
  color: var(--color-text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}

.bg-alt {
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.4) 0px, transparent 100%);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------
 * FLOATING BACKGROUND BOTANICALS
 * -------------------------------------------------- */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Ramos de eucalipto em aquarela, fixos nos cantos (sangram para fora de
   propósito). Regule a presença com --leaf-opacity. */
.leaf-deco {
  position: fixed;
  width: clamp(160px, 24vw, 340px);
  height: auto;
  opacity: var(--leaf-opacity);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.leaf-tl { top: -50px; left: -70px; transform: rotate(-14deg); }
.leaf-br { bottom: -50px; right: -70px; transform: rotate(166deg); }
.leaf-tr { top: -40px; right: -80px; transform: scaleX(-1) rotate(-10deg); }
.leaf-bl { bottom: -40px; left: -80px; transform: scaleX(-1) rotate(166deg); }

@media (max-width: 768px) {
  /* No celular, mantém só dois cantos, porém maiores e mais visíveis */
  .leaf-tr, .leaf-bl { display: none; }
  .leaf-deco {
    width: clamp(180px, 52vw, 300px);
    opacity: 0.24;
  }
}

/* --------------------------------------------------
 * LUXURIOUS TYPOGRAPHY
 * -------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 400;
  letter-spacing: 1px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: -5px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary-dark);
  margin-top: -5px;
}

.divider {
  width: 120px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 15px auto 0 auto;
  position: relative;
}

.divider::after {
  content: "✧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg);
  padding: 0 15px;
  color: var(--color-gold);
  font-size: 0.9rem;
}

.bg-alt .divider::after {
  background-color: #F6E3DD; /* Matches blend of bg-alt */
}

.section-intro {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  max-width: 750px;
  margin: 0 auto 50px auto;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Connective Cursive Text */
.cursive-and {
  font-family: var(--font-cursive);
  text-transform: lowercase;
  font-size: 3rem;
  color: var(--color-primary-light);
  vertical-align: middle;
  margin: 0 8px;
}

/* --------------------------------------------------
 * PREMIUM BUTTONS
 * -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 4px; /* Sophisticated squared corners over pill shape */
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-luxury-solid {
  background-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 15px rgba(154, 60, 62, 0.15);
}

.btn-luxury-solid:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(154, 60, 62, 0.25);
}

.btn-luxury {
  background-color: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-luxury:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: var(--color-gold);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.75rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------
 * ENVELOPE Convite Virtual
 * -------------------------------------------------- */
.overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f6f0e6;
  background-image: radial-gradient(circle, #FDF6F3 0%, #F4DCD6 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
  overflow: hidden;
}

.overlay-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Full-screen video layout */
.video-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
  outline: none;
  background-color: #000;
  overflow: hidden;
  z-index: 5;
}

#invitation-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* --------------------------------------------------
 * HEADER & STICKY NAVIGATION
 * -------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* Scrolled visual transition */
.main-header.scrolled {
  background-color: rgba(250, 245, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 5px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-primary-dark);
  letter-spacing: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-primary-dark);
  position: relative;
  transition: background-color 0.3s;
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-primary-dark);
  position: absolute;
  transition: transform 0.3s, top 0.3s, bottom 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-main);
  letter-spacing: 2px;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* --------------------------------------------------
 * HERO SECTION
 * -------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #FDF6F3 0%, #FBE9E2 45%, #F6C9BC 80%, #F1B6A6 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px 24px;
  position: relative;
  z-index: 2;
}

/* Giant background initial watermarks */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-cursive);
  font-size: 16rem;
  color: rgba(154, 60, 62, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 15px;
}

.hero-title {
  font-family: var(--font-cursive);
  font-size: 5.8rem; /* Make it large and striking */
  font-weight: 400;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-main);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-venue {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-bottom: 50px;
}

/* Luxury Line Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px auto;
  max-width: 600px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  min-width: 90px;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--color-primary-dark);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.countdown-divider {
  width: 1px;
  height: 45px;
  background-color: var(--color-gold);
  opacity: 0.5;
}

.hero-arrow-down {
  margin-top: 60px;
  animation: bounce 2s infinite;
}

.hero-arrow-down svg {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero-arrow-down:hover svg {
  opacity: 1;
}

/* --------------------------------------------------
 * SECTION 2: O CASAL (EDITORIAL LAYOUT)
 * -------------------------------------------------- */
.editorial-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.couple-photo-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

/* Decorative backdrop block shifting behind arch photo */
.couple-photo-background-shape {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-gold);
  border-radius: var(--border-radius-arch);
  z-index: 1;
}

.couple-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-surface);
  padding: 8px;
}

.couple-photo {
  width: 100%;
  height: auto;
  border-radius: 230px 230px 0 0;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.couple-photo-container:hover .couple-photo {
  transform: scale(1.04);
}

.couple-text-box {
  padding-right: 20px;
}

.couple-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 30px;
  position: relative;
}

.couple-welcome {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --------------------------------------------------
 * SECTION 3: O CASAMENTO (ASYMMETRIC GRID)
 * -------------------------------------------------- */
.casamento-asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Offset cards so they are not vertically aligned */
.local-card {
  transform: translateY(0);
}

.reception-card {
  transform: translateY(35px); /* Stagger effect */
}

.dress-card {
  transform: translateY(0);
}

.casamento-card {
  background-color: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-card);
  padding: 55px 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card-glass-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
  transition: transform 1s;
}

.casamento-card:hover {
  transform: translateY(-5px); /* Note: dress-card hover will calculate from its staggered base */
  box-shadow: var(--shadow-lg);
  border-color: rgba(181, 72, 74, 0.25);
}

.reception-card:hover {
  transform: translateY(30px);
}

.casamento-card:hover .card-glass-glow {
  transform: translate(10px, 10px);
}

.card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  background-color: #fff;
}

.casamento-card h3 {
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

.card-highlight {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card-time {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.card-location-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.card-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.card-palette-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-main);
  margin-bottom: 12px;
  font-weight: 600;
}

.color-palette {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: help;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch:hover {
  transform: scale(1.2) translateY(-2px);
}

/* Paleta sugerida para convidados — tons profundos/sóbrios que evitam as cores
   reservadas aos padrinhos e madrinhas e o branco. */
.swatch-marinho { background-color: #2F3E5B; }
.swatch-vinho { background-color: #6E2A3A; }
.swatch-petroleo { background-color: #245B63; }
.swatch-lavanda { background-color: #8E82A8; }
.swatch-grafite { background-color: #44464B; }

.card-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 250px;
}

/* --------------------------------------------------
 * SECTION 4: HOSPEGAGEM (DICAS EDITORIAL LIST)
 * -------------------------------------------------- */
.dicas-asymmetric-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.dica-luxury-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 45px;
}

.dica-luxury-item:last-child {
  border-bottom: none;
}

.dica-luxury-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dica-luxury-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  font-weight: 300;
}

.distance-luxury-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  font-weight: 600;
}

.dica-luxury-body h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.dica-luxury-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  max-width: 600px;
}

.dica-whatsapp-text {
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.link-luxury {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-primary);
}

.link-luxury:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
  transform: translateX(4px);
}

/* --------------------------------------------------
 * SECTION 5: LISTA DE PRESENTES (COTAS)
 * -------------------------------------------------- */
.cotas-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* Overlapping offset cards style */
.cota-offset-up {
  transform: translateY(-25px);
}

.cota-luxury-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.cota-luxury-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

/* Compensate hover on offset elements */
.cota-offset-up:hover {
  transform: translateY(-30px);
}

.cota-luxury-tag {
  position: absolute;
  top: 15px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}

.cota-luxury-icon {
  font-size: 2rem;
  margin: 20px 0 10px 0;
}

.cota-luxury-card h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.cota-luxury-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.cota-luxury-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 25px;
}

/* Handle grid columns on desktop */
@media (min-width: 992px) {
  .cota-luxury-card:nth-child(5) {
    grid-column: span 4;
    max-width: 400px;
    margin: 30px auto 0 auto;
    width: 100%;
  }
}

/* --------------------------------------------------
 * SECTION 6: RSVP (CONFIRMAR PRESENÇA)
 * -------------------------------------------------- */
.rsvp-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 50px 45px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.rsvp-form .form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 2px;
  border: 1px solid var(--color-gold);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(181, 72, 74, 0.12);
}

/* Custom Styled Select */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  color: var(--color-gold);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group select {
  width: 100%;
  padding: 15px;
  border-radius: 2px;
  border: 1px solid var(--color-gold);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-main);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-group select:focus {
  border-color: var(--color-primary);
  background-color: #fff;
}

/* Radio groups */
.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 8px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: 0.85rem;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
}

.radio-label input[type="radio"] {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
  position: relative;
  transition: var(--transition-fast);
  background-color: #fff;
}

.radio-label input[type="radio"]:checked + .custom-radio {
  border-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked + .custom-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------
 * SECTION 7: MURAL DE RECADOS (COLLAGE BOARD)
 * -------------------------------------------------- */
.mural-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
}

.mural-form-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 35px 30px;
  align-self: start;
}

.mural-form-box h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mural-form-intro {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  line-height: 1.5;
}

.mural-board-container {
  max-height: 520px;
  overflow-y: auto;
  padding: 10px 15px 10px 5px;
}

.mural-board-container::-webkit-scrollbar {
  width: 5px;
}
.mural-board-container::-webkit-scrollbar-track {
  background: transparent;
}
.mural-board-container::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

.mural-collage-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Polaroids / physical notes styled message cards */
.message-card {
  background-color: var(--color-surface);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.4s;
}

/* Stagger rotations to simulate physical board */
.message-card:nth-child(even) {
  transform: rotate(1.5deg) translateY(5px);
}
.message-card:nth-child(odd) {
  transform: rotate(-1.2deg) translateY(-5px);
}
.message-card:nth-child(3n) {
  transform: rotate(0.8deg) translateY(2px);
}

.message-card:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: var(--shadow-md);
  z-index: 5;
  border-color: var(--color-gold);
}

.message-card p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.message-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding-top: 12px;
}

.message-author {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
}

.message-date {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.no-messages {
  grid-column: span 2;
  text-align: center;
  padding: 50px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
}

/* --------------------------------------------------
 * FOOTER
 * -------------------------------------------------- */
.main-footer {
  background-color: #3A4A3E; /* Eucalipto profundo */
  color: #fcfbf9;
  padding: 34px 24px;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 6px;
  letter-spacing: 2px;
  font-weight: 300;
}

.footer-date {
  font-size: 0.78rem;
  opacity: 0.7;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-ornament {
  margin-bottom: 14px;
}

.footer-copyright {
  font-size: 0.7rem;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------
 * LUXURY MODAL (PIX)
 * -------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(63, 55, 48, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  transition: opacity 0.3s ease;
}

.modal-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-gold);
  width: 100%;
  max-width: 480px;
  padding: 45px 35px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-gift-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-value-tag {
  display: inline-block;
  background-color: #faf6f0;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  padding: 8px 30px;
  border: 1px solid var(--color-gold);
  margin-bottom: 25px;
}

/* Dynamic custom value inputs */
.label-custom-value {
  margin-bottom: 12px !important;
}

.input-prefix-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  margin: 0 auto 5px auto;
}

.currency-prefix {
  position: absolute;
  left: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.input-custom-value {
  padding: 12px 12px 12px 42px !important;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0;
  border: 1px solid var(--color-gold);
  width: 100%;
}

.qr-code-wrapper {
  background-color: #fff;
  border: 1px solid var(--color-border);
  padding: 15px;
  display: inline-block;
  margin: 10px auto 25px auto;
  box-shadow: var(--shadow-sm);
}

.pix-key-container {
  background-color: #fbf9f6;
  border: 1px solid var(--color-border);
  padding: 18px;
  margin-bottom: 25px;
  text-align: left;
}

.pix-key-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.pix-key-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.pix-key-text {
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--color-text-main);
  user-select: all;
  font-weight: 500;
}

/* --------------------------------------------------
 * TOAST NOTIFICATIONS
 * -------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 340px;
  width: calc(100% - 60px);
}

.toast {
  background-color: #3A4A3E;
  color: #FDF6F3;
  padding: 15px 24px;
  border: 1px solid var(--color-gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  border-left: 3px solid var(--color-primary);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  color: var(--color-gold);
  font-weight: bold;
}

/* --------------------------------------------------
 * SCROLL REVEAL STYLES
 * -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
 * RESPONSIVENESS (MOBILE DIRECTIVES)
 * -------------------------------------------------- */

@media (max-width: 992px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .couple-photo-container {
    justify-self: center;
    max-width: 380px;
  }
  .couple-text-box {
    padding-right: 0;
  }
  .casamento-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
  }
  .dress-card, .reception-card {
    transform: translateY(0) !important; /* Remove offset on mobile stack */
  }
  .dress-card:hover, .reception-card:hover {
    transform: translateY(-5px) !important;
  }
  .dica-luxury-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .cotas-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cota-offset-up {
    transform: translateY(0); /* Remove offset on mobile */
  }
  .cota-offset-up:hover {
    transform: translateY(-5px);
  }
  .mural-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -10px 0 40px rgba(63, 55, 48, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    width: 100%;
    padding: 0 40px;
  }

  .nav-link {
    font-size: 1rem;
    display: block;
    padding: 10px 0;
  }

  .container {
    padding: 70px 20px;
  }

  .hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
  }

  .hero-watermark {
    font-size: 11rem;
  }

  .countdown-container {
    flex-wrap: wrap;
    gap: 5px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 5px 10px;
  }

  .countdown-num {
    font-size: 2.2rem;
  }

  .countdown-divider {
    display: none; /* Hide vertical dividers on mobile wrapping */
  }

  .section-title {
    font-size: 2rem;
  }

  .cotas-editorial-grid {
    grid-template-columns: 1fr;
  }

  .cota-full-width-mobile {
    grid-column: span 1 !important;
    max-width: none !important;
  }

  .mural-collage-board {
    grid-template-columns: 1fr;
  }

  .message-card {
    transform: none !important; /* Flatten rotations on mobile viewports */
  }

  .message-card:hover {
    transform: translateY(-3px) !important;
  }

  .no-messages {
    grid-column: span 1;
  }

  .modal-container {
    padding: 35px 20px;
  }
}

/* --------------------------------------------------
 * REDUCED MOTION SUPPORT
 * -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-arrow-down {
    animation: none !important;
  }
}
