/* ==========================================================================
   Mônica Fidelis • 50 Anos — Design System & Estilos Canônicos
   Paleta: Rosé (#A05465), Vinho, Preto Profundo & Branco Quente
   Tipografia: Cormorant Garamond (Serif de Luxo) + Plus Jakarta Sans (UI)
   ========================================================================== */

:root {
  /* Cores Principais */
  --rose-primary: #A05465;
  --rose-light: #F2C4CE;
  --rose-soft: #D48C9D;
  --rose-deep: #702C3B;
  --wine-dark: #3F131E;
  --wine-deepest: #20080E;
  
  /* Fundos e Superfícies (Site 1 só, sem caixas cinzas de sistema) */
  --bg-deep: #090608;
  --bg-elevated: rgba(26, 14, 19, 0.72);
  --bg-surface-glass: rgba(36, 18, 25, 0.55);
  --border-subtle: rgba(160, 84, 101, 0.28);
  --border-highlight: rgba(242, 196, 206, 0.38);

  /* Texto e Contraste AA (Branco Quente e Marfim Suave) */
  --text-main: #FCF8F9;
  --text-muted: #E2CCD1;
  --text-dimmed: #BFA5AC;
  --text-on-rose: #FFFFFF;

  /* Luz e Efeitos */
  --glow-rose: rgba(160, 84, 101, 0.45);
  --glow-soft: rgba(242, 196, 206, 0.25);
  --shadow-card: 0 20px 48px -12px rgba(0, 0, 0, 0.85);

  /* Tipografia */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamento e Transições */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global & Acessibilidade */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden !important;
  min-height: 100vh;
  position: relative;
}

/* Foco Visível para Acessibilidade */
:focus-visible {
  outline: 2px solid var(--rose-light);
  outline-offset: 3px;
}

/* Fundo Floral Contínuo com Luz e Profundidade */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-floral {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/fundo-floral-mobile.webp');
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
  opacity: 0.85;
  filter: contrast(105%) brightness(95%);
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .ambient-floral {
    background-image: url('../assets/images/fundo-floral-desktop.webp');
    background-position: left top;
    background-size: contain;
    width: 65vw;
    opacity: 0.9;
  }
}

/* Gradientes de Fusão e Leitura (Garante Contraste AA no Texto) */
.ambient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(160, 84, 101, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(63, 19, 30, 0.4) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(9, 6, 8, 0.4) 0%, rgba(9, 6, 8, 0.75) 50%, var(--bg-deep) 100%);
  mix-blend-mode: normal;
}

/* Container Estrutural */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 1. Header Minimalista */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  max-height: 56px;
  padding: 0 16px;
  margin: 0 -20px 24px;
  background: rgba(9, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(160, 84, 101, 0.18);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-primary), var(--wine-dark));
  border: 1px solid var(--border-highlight);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-on-rose);
  box-shadow: 0 0 12px var(--glow-rose);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--rose-light);
  white-space: nowrap;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: rgba(160, 84, 101, 0.15);
  border: 1px solid var(--rose-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  background: var(--rose-primary);
  color: #fff;
  box-shadow: 0 0 16px var(--glow-rose);
  transform: translateY(-1px);
}

/* 2. Hero Section Monumental */
.hero-section {
  padding: 32px 0 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(160, 84, 101, 0.14);
  border: 1px solid rgba(242, 196, 206, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 0 35px rgba(160, 84, 101, 0.35);
  margin-bottom: 8px;
}

.hero-age-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.age-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-primary), transparent);
}

.hero-age {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
  margin: 0 auto 36px;
  padding: 0 12px;
}

/* Pílula de Destaque Rápido dos Dados */
.hero-quick-data {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  max-width: 780px;
}

.quick-data-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(26, 14, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.quick-data-item svg {
  color: var(--rose-light);
  flex-shrink: 0;
}

/* Botão Canônico com Shiny Sweep Glow */
.btn-canonical {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  min-height: 54px;
  background: linear-gradient(135deg, #B25D70 0%, #A05465 50%, #823C4D 100%);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px var(--glow-rose), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-canonical::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
  pointer-events: none;
}

.btn-canonical:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(160, 84, 101, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-canonical:hover::before {
  left: 130%;
}

.btn-canonical:active {
  transform: translateY(0) scale(0.99);
}

/* 3. Seção Detalhes & Informações Práticas */
.details-section {
  padding: 40px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rose-light);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-card {
  position: relative;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.95), 0 0 24px var(--glow-soft);
}

.detail-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(160, 84, 101, 0.18);
  border: 1px solid rgba(242, 196, 206, 0.3);
  color: var(--rose-light);
  margin-bottom: 20px;
}

.detail-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rose-light);
  margin-bottom: 6px;
}

.detail-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 4. Seção do Formulário RSVP */
.form-section {
  padding: 40px 0 60px;
}

.form-container-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 40px 24px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(160, 84, 101, 0.15);
}

@media (min-width: 600px) {
  .form-container-card {
    padding: 48px 40px;
  }
}

.form-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-light), transparent);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rose-light);
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(14, 9, 12, 0.85);
  border: 1px solid rgba(160, 84, 101, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #FFFFFF;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rose-light);
  box-shadow: 0 0 16px var(--glow-rose), inset 0 0 8px rgba(160, 84, 101, 0.2);
  background: rgba(18, 11, 15, 0.95);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(226, 204, 209, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio Cards (Opção de Escolha Sim / Não) */
.radio-cards-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 500px) {
  .radio-cards-group {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-card-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(16, 10, 13, 0.75);
  border: 1px solid rgba(160, 84, 101, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.radio-card-label:hover {
  border-color: var(--rose-light);
  background: rgba(24, 14, 19, 0.9);
}

.radio-card-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-radio-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--rose-primary);
  background: transparent;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.radio-card-input:checked + .radio-card-label {
  border-color: var(--rose-light);
  background: rgba(160, 84, 101, 0.22);
  box-shadow: 0 0 20px var(--glow-rose);
}

.radio-card-input:checked + .radio-card-label .custom-radio-indicator {
  background: var(--rose-primary);
  border-color: var(--rose-light);
  box-shadow: 0 0 8px var(--rose-light);
}

.custom-radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-smooth);
}

.radio-card-input:checked + .radio-card-label .custom-radio-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.radio-card-text {
  display: flex;
  flex-direction: column;
}

.radio-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #FFFFFF;
}

.radio-card-desc {
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

/* Honeypot e Campos Ocultos (Invisível a humanos) */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Botão Submit do Form */
.btn-submit {
  width: 100%;
  margin-top: 8px;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Spinner de Carregamento */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mensagens de Alerta / Feedback */
.status-banner {
  display: none;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.status-banner.show {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.4s ease;
}

.status-success {
  background: rgba(30, 70, 45, 0.7);
  border: 1px solid rgba(110, 220, 150, 0.4);
  color: #F0FFF4;
}

.status-error {
  background: rgba(80, 20, 30, 0.75);
  border: 1px solid rgba(240, 100, 120, 0.45);
  color: #FFF0F2;
}

.status-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Botão Dedicado ao WhatsApp */
.whatsapp-action-block {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 24px 20px;
  background: rgba(22, 12, 17, 0.8);
  border: 1px dashed rgba(242, 196, 206, 0.4);
  border-radius: 18px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.whatsapp-action-block.show {
  display: flex;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: #062412 !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: #2ee672;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.4;
}

.whatsapp-notice strong {
  color: var(--rose-light);
}

/* 5. Encerramento & Rodapé */
.closing-section {
  padding: 60px 0 20px;
  text-align: center;
}

.closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-primary), transparent);
}

.closing-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-style: italic;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.closing-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.privacy-disclaimer {
  max-width: 540px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: rgba(18, 10, 14, 0.5);
  border: 1px solid rgba(160, 84, 101, 0.18);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-dimmed);
  line-height: 1.5;
}

.footer-credits {
  font-size: 0.8rem;
  color: rgba(226, 204, 209, 0.5);
  letter-spacing: 0.05em;
}

/* Animações e Transições */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respeito a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-canonical::before {
    display: none;
  }
}
