@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --color-primary: #1b3d2f;      /* Verde Esmeralda Nobre */
  --color-secondary: #c5a059;    /* Dourado Champagne */
  --color-secondary-hover: #b38d47;
  --color-bg-light: #fdfcf9;     /* Creme Quente / Off-white */
  --color-text-dark: #2a332f;    /* Grafite Escuro */
  --color-text-muted: #626c67;   /* Cinza Verde Muted */
  --color-white: #ffffff;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(27, 61, 47, 0.08), 0 4px 6px -2px rgba(27, 61, 47, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(27, 61, 47, 0.15), 0 10px 10px -5px rgba(27, 61, 47, 0.08);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(197, 160, 89, 0.2);
  --glass-blur: blur(12px);
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '✦';
  display: block;
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-top: 10px;
  letter-spacing: 2px;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 252, 249, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 5%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: clamp(12px, 1.8vw, 24px);
  align-items: center;
}

.nav-links li {
  display: inline-block;
  white-space: nowrap;
}

.nav-links a {
  display: inline-block;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  padding: 8px 0;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-fast);
}

.nav-links a.active {
  color: var(--color-secondary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(27, 61, 47, 0.85), rgba(27, 61, 47, 0.45)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  padding: 120px 20px 40px 20px;
  position: relative;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInDown 1.2s ease-out both;
}

.hero-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-names span {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-secondary);
  display: inline-block;
  padding: 0 10px;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Countdown Timer */
.countdown {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  min-width: 80px;
  box-shadow: var(--shadow-md);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  opacity: 0.9;
}

.scroll-btn {
  position: absolute;
  bottom: 40px;
  animation: bounce 2s infinite;
  color: var(--color-secondary);
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   COUPLE SECTION (O CASAL)
   ========================================================================== */
.couple-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.couple-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.couple-img-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-white);
  transition: var(--transition-smooth);
}

.couple-img-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.couple-img-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.couple-story {
  padding-right: 20px;
}

.couple-story h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.couple-story p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.moto-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================================
   CEREMONY SECTION (CERIMÔNIA & PIZZARIA)
   ========================================================================== */
.ceremony-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(27, 61, 47, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card-detail {
  list-style: none;
  margin-bottom: 30px;
}

.card-detail li {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-detail li strong {
  color: var(--color-text-dark);
}

.card-detail svg {
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 10px;
  margin-top: auto;
}

.btn:hover {
  background-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.alert-box {
  background-color: rgba(197, 160, 89, 0.08);
  border-left: 4px solid var(--color-secondary);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 25px;
  font-size: 0.92rem;
  color: var(--color-text-dark);
}

/* ==========================================================================
   WITNESSES SECTION (TESTEMUNHAS)
   ========================================================================== */
.witness-banner {
  background: linear-gradient(rgba(27, 61, 47, 0.9), rgba(27, 61, 47, 0.9)), url('https://images.unsplash.com/photo-1469371670807-013ccf25f16a?q=80&w=2070&auto=format&fit=crop') center/cover;
  border-radius: 20px;
  padding: 60px 40px;
  color: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.witness-banner h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.witness-banner p {
  max-width: 700px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
}

.witness-instructions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
  margin-top: 40px;
}

.instruction-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 10px;
}

.instruction-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-white);
}

.instruction-step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   GIFTS SECTION (LISTA DE PRESENTES)
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--glass-border);
  color: var(--color-text-dark);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.gift-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 160, 89, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.gift-img-container {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(197, 160, 89, 0.1);
  background-color: var(--color-bg-light);
}

.gift-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gift-card:hover .gift-img-container img {
  transform: scale(1.06);
}

.gift-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.gift-price {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.gift-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  min-height: 60px;
}

.gift-card .btn {
  width: 100%;
  padding: 10px;
}

/* ==========================================================================
   RSVP SECTION (CONFIRMAÇÃO DE PRESENÇA)
   ========================================================================== */
.rsvp-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

/* Custom Autocomplete Guest Dropdown */
.autocomplete {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(27, 61, 47, 0.15);
  border-radius: 8px;
  outline: none;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
  background-color: var(--color-white);
}

.autocomplete-items {
  position: absolute;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background-color: var(--color-white);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-md);
}

.autocomplete-items div {
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.autocomplete-items div:hover {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-primary);
}

.autocomplete-active {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* Radio buttons styled */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-option {
  flex: 1;
}

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

.radio-label {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: var(--color-bg-light);
  border: 1px solid rgba(27, 61, 47, 0.15);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.radio-option input[type="radio"]:checked + .radio-label {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* RSVP Conditional Message Panel */
.rsvp-feedback-panel {
  background-color: rgba(27, 61, 47, 0.05);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px dashed var(--color-primary);
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.rsvp-feedback-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.rsvp-feedback-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

.rsvp-wrapper button[type="submit"] {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

/* ==========================================================================
   PIX MODAL (PRESENTE / PAGAMENTO)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 61, 47, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  background: var(--color-white);
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-secondary);
  z-index: 2001;
  position: relative;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 25px 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.modal-close:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.modal-body {
  padding: 30px;
}

/* Modal Steps */
.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.gift-summary-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: rgba(197, 160, 89, 0.08);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
}

.gift-summary-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gift-summary-icon svg {
  width: 24px;
  height: 24px;
}

.gift-summary-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
}

.gift-summary-info p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Pix display */
.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.pix-qr-code {
  width: 200px;
  height: 200px;
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
}

.pix-qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-copy-box {
  width: 100%;
  display: flex;
  margin-bottom: 25px;
}

.pix-payload-input {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(27, 61, 47, 0.15);
  border-radius: 8px 0 0 8px;
  outline: none;
  background-color: var(--color-bg-light);
  font-family: monospace;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  border-radius: 0 8px 8px 0;
  padding: 0 18px;
}

.pix-instructions {
  background-color: rgba(27, 61, 47, 0.05);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.pix-instructions ol {
  padding-left: 20px;
}

.pix-instructions li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions .btn {
  width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-secondary);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--color-secondary);
}

.footer-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: 25px;
}

.footer-message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 30px auto;
  opacity: 0.8;
}

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

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* SPA Page Transitions */
.spa-section {
  display: none;
}

.spa-section.active-route {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1150px) {
  .nav-container {
    height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    box-shadow: inset 0 10px 15px -10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-names {
    font-size: 2.8rem;
  }
  
  .couple-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .couple-images {
    order: 2;
  }
  
  .ceremony-grid {
    grid-template-columns: 1fr;
  }
  
  .witness-instructions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-names {
    font-size: 2.2rem;
  }
  
  .countdown {
    gap: 10px;
  }
  
  .countdown-item {
    min-width: 65px;
    padding: 10px 8px;
  }
  
  .countdown-num {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .rsvp-wrapper {
    padding: 30px 20px;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   COUPLE ADDITIONS: TIMELINE & CHAT
   ========================================================================== */

.couple-timeline-section, .couple-chat-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.subsection-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 10px;
}

.subsection-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
}

/* Stats Bar */
.moto-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 2rem;
  background: rgba(197, 160, 89, 0.1);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-primary);
}

.stat-card strong {
  font-size: 1.1rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.3;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* The Highway Line */
.timeline-road {
  position: absolute;
  width: 4px;
  background: var(--color-secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-road::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dashed var(--color-bg-light);
  opacity: 0.8;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Marker (Circle on the line) */
.timeline-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border: 3px solid var(--color-secondary);
  border-radius: 50%;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.timeline-item.left .timeline-marker {
  right: -22px;
}

.timeline-item.right .timeline-marker {
  left: -22px;
}

.timeline-item:hover .timeline-marker {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.15);
}

/* Card Content */
.timeline-content {
  background: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(27, 61, 47, 0.04);
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.3);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Timeline Arrow pointers */
.timeline-content::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item.left .timeline-content::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--color-white);
}

.timeline-item.right .timeline-content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--color-white) transparent transparent;
}

/* Highlighted Milestones */
.timeline-item.milestone-apartment, 
.timeline-item.milestone-transition,
.timeline-item.milestone-wedding,
.timeline-item.milestone-generic {
  width: 100%;
  left: 0;
  padding: 15px 40px;
  text-align: center;
}

.timeline-item.milestone-apartment .timeline-marker,
.timeline-item.milestone-transition .timeline-marker,
.timeline-item.milestone-wedding .timeline-marker,
.timeline-item.milestone-generic .timeline-marker {
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border-width: 4px;
  top: 15px;
}

.timeline-item.milestone-apartment:hover .timeline-marker,
.timeline-item.milestone-transition:hover .timeline-marker,
.timeline-item.milestone-wedding:hover .timeline-marker,
.timeline-item.milestone-generic:hover .timeline-marker {
  transform: translateX(-50%) scale(1.1);
}

.timeline-item.milestone-apartment .timeline-content,
.timeline-item.milestone-transition .timeline-content,
.timeline-item.milestone-wedding .timeline-content,
.timeline-item.milestone-generic .timeline-content {
  max-width: 600px;
  margin: 45px auto 0 auto;
  border: 2px solid var(--color-secondary);
  background: linear-gradient(to bottom, var(--color-white), rgba(197, 160, 89, 0.04));
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
}

.timeline-item.milestone-apartment .timeline-content::before,
.timeline-item.milestone-transition .timeline-content::before,
.timeline-item.milestone-wedding .timeline-content::before,
.timeline-item.milestone-generic .timeline-content::before {
  display: none;
}

.milestone-desc {
  font-weight: 500;
  color: var(--color-text-dark) !important;
}

/* Chat Section */
.instagram-chat-container {
  max-width: 550px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid rgba(27, 61, 47, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 550px;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-white);
  z-index: 10;
}

.chat-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c5a059, #1b3d2f);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  margin-right: 12px;
}

.chat-user-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chat-user-name {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.chat-user-status {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-header-actions {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.chat-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fafaf9; /* Warm off-white chat canvas */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-date {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 15px 0;
  letter-spacing: 0.5px;
}

.msg-row {
  display: flex;
  width: 100%;
}

.msg-row.sender-fran {
  justify-content: flex-start;
}

.msg-row.sender-andre {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 75%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-row.sender-fran .msg-bubble {
  background: #f1f0ea;
  color: var(--color-text-dark);
  border-bottom-left-radius: 4px;
}

.msg-row.sender-andre .msg-bubble {
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.msg-time {
  display: block;
  font-size: 0.68rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.6;
}

.msg-row.sender-fran .msg-time {
  color: var(--color-text-muted);
}

.msg-row.sender-andre .msg-time {
  color: rgba(255,255,255,0.8);
}

.msg-reaction {
  position: absolute;
  bottom: -10px;
  right: 12px;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 0.72rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 5;
}

.chat-footer {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-white);
}

.chat-input-placeholder {
  flex-grow: 1;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  opacity: 0.7;
}

.chat-footer-icons {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  opacity: 0.8;
  cursor: pointer;
}

/* Responsive adjustments for Timeline and Chat */
@media (max-width: 768px) {
  .timeline-road {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item.left, .timeline-item.right {
    left: 0;
    text-align: left;
  }
  
  .timeline-marker {
    left: 8px !important;
    right: auto !important;
  }
  
  .timeline-content::before {
    left: -10px !important;
    right: auto !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent var(--color-white) transparent transparent !important;
  }
  
  .timeline-item.milestone-apartment,
  .timeline-item.milestone-transition,
  .timeline-item.milestone-wedding,
  .timeline-item.milestone-generic {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }
  
  .timeline-item.milestone-apartment .timeline-marker,
  .timeline-item.milestone-transition .timeline-marker,
  .timeline-item.milestone-wedding .timeline-marker,
  .timeline-item.milestone-generic .timeline-marker {
    display: none; /* Hide timeline line marker to make layout cleaner */
  }
  
  .timeline-item.milestone-apartment .timeline-content,
  .timeline-item.milestone-transition .timeline-content,
  .timeline-item.milestone-wedding .timeline-content,
  .timeline-item.milestone-generic .timeline-content {
    margin-top: 10px;
  }
}

/* ==========================================================================
   TIMELINE MEDIA & GALLERY STYLES
   ========================================================================== */

.timeline-media-main {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: var(--shadow-sm);
  max-height: 350px;
}

.timeline-img-zoomable {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-img-zoomable:hover {
  transform: scale(1.04);
}

.timeline-media-gallery {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.timeline-gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.timeline-gallery-thumb:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   LIGHTBOX MODAL STYLES
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 15, 0.92); /* Escuro esmeralda profundo */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  z-index: 10;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-secondary);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-secondary);
  transform: scale(1.15);
}

/* Video timeline & thumbnail styles */
.timeline-video-container {
  position: relative;
  overflow: hidden;
  max-height: 350px;
}

.timeline-media-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb {
  position: relative;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 1.4rem;
  background: rgba(27, 61, 47, 0.7);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  transition: var(--transition-fast);
}

.video-thumb:hover .play-icon {
  background: var(--color-secondary);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox Slider Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 61, 47, 0.65);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--color-white);
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Injected / handled dynamically by JS */
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: var(--transition-fast);
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
  .lightbox-nav.prev {
    left: 10px;
  }
  .lightbox-nav.next {
    right: 10px;
  }
}

/* Custom styling for play icon on main media video cards */
.timeline-media-main.video-thumb .play-icon {
  width: 65px;
  height: 65px;
  font-size: 2.2rem;
  background: rgba(27, 61, 47, 0.75);
  border: 2px solid rgba(197, 160, 89, 0.35);
}

.timeline-media-main.video-thumb:hover .play-icon {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}
