/* ============================================================
   Casamento Theme — estilos principais
   Paleta: preto e branco (escala de cinza)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface2: #1E1E1E;
  --gold: #FFFFFF;       /* antigo acento dourado agora é branco puro */
  --gold-light: #FFFFFF;
  --white: #F5F5F5;
  --muted: #999999;
  --border: #2A2A2A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Respeita preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Foco visível para acessibilidade */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* NAV */
.casamento-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 48px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 300; letter-spacing: 0.15em;
  color: var(--gold); text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

#main-content { padding-top: 0; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 120px 24px 100px;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Degradê escuro na base para os nomes ficarem legíveis sobre a foto de fundo */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.92) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 32px;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 300; line-height: 1;
  color: var(--white);
  margin: 0 0 8px;
}
.hero-names em { font-style: italic; color: var(--white); }

/* Placeholder visível quando ainda não há imagem de fundo cadastrada */
.hero-image-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #111 0px, #111 12px, #181818 12px, #181818 24px);
  color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}

.gold-line {
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto;
  animation: drawLine 1.8s ease forwards 0.6s;
}
@keyframes drawLine { to { width: min(400px, 80vw); } }

.hero-date {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 300;
  letter-spacing: 0.12em; color: var(--muted);
  margin: 0;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  animation: fadeIn 1s ease forwards 2s; opacity: 0;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
@keyframes fadeIn { to { opacity: 1; } }

/* SECTIONS */
section { padding: 96px 24px; }
.section-inner { max-width: 800px; margin: 0 auto; }
.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300; line-height: 1.15;
  margin: 0 0 24px;
}
.section-title em { font-style: italic; color: var(--gold-light); }

#boas-vindas { border-top: 1px solid var(--border); }
.welcome-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 300; line-height: 1.7;
  color: #CCC; margin-bottom: 24px;
}

#detalhes { background: var(--surface); border-top: 1px solid var(--border); }
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.detail-card { background: var(--surface); padding: 32px; }
.detail-icon { font-size: 20px; margin-bottom: 12px; }
.detail-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.detail-value { font-family: var(--font-display); font-size: 18px; color: var(--white); }
.detail-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

#localizacao { border-top: 1px solid var(--border); }
.map-placeholder {
  margin-top: 32px; height: 300px; background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; }
.map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 14px 28px;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.map-btn:hover { background: var(--gold); color: var(--bg); }

#contato { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 40px;
}
.contact-card { padding: 28px; border: 1px solid var(--border); transition: border-color 0.2s; }
.contact-card:hover { border-color: var(--gold); }
.contact-name { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.contact-role { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.contact-info { font-size: 13px; color: var(--muted); line-height: 1.8; }
.contact-info a { color: var(--muted); text-decoration: none; }
.contact-info a:hover { color: var(--gold); }

/* PRESENTES */
#presentes { border-top: 1px solid var(--border); }
.gifts-intro { color: var(--muted); line-height: 1.8; margin-bottom: 40px; }
.gifts-tabs { display: flex; gap: 0; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 12px 24px; background: none; border: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.gifts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
}
.gift-card {
  background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s;
}
.gift-card:hover { background: var(--surface2); }
.gift-name { font-family: var(--font-display); font-size: 20px; }
.gift-price { font-size: 22px; font-weight: 300; color: var(--gold); }
.gift-price span, .casamento-meta-label { font-size: 13px; color: var(--muted); }

.gift-progress-wrap { margin-top: 4px; }
.gift-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.gift-progress-bar { height: 2px; background: var(--border); position: relative; }
.gift-progress-fill { height: 100%; background: var(--gold); transition: width 1s ease; }

.contributor-pill {
  display: inline-block; padding: 2px 10px;
  border: 1px solid var(--border); font-size: 11px;
  color: var(--muted); margin: 2px 2px 2px 0;
}

.gift-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.gift-status.available { color: var(--gold); }
.gift-status.taken { color: var(--muted); }
.gift-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.gift-btn {
  margin-top: auto; padding: 12px 20px; text-align: center;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
  text-decoration: none; display: inline-block;
}
.gift-btn:hover:not(:disabled) { background: var(--gold); color: var(--bg); }
.gift-btn:disabled { border-color: var(--border); color: var(--muted); cursor: not-allowed; }

.casamento-cota-field { margin: 16px 0; padding: 16px; border: 1px solid var(--border); }
.casamento-cota-field label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.casamento-cota-field input {
  width: 100%; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); color: var(--white); font-family: var(--font-body);
}

/* GALERIA DE FOTOS */
#galeria { background: var(--surface); border-top: 1px solid var(--border); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px; margin-top: 32px;
}
.gallery-item {
  aspect-ratio: 1; background: repeating-linear-gradient(45deg, #111 0px, #111 12px, #181818 12px, #181818 24px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* BOTÃO CTA — LISTA DE PRESENTES */
.cta-presentes {
  text-align: center; padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.cta-presentes-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px);
  font-weight: 300; margin-bottom: 16px;
}
.cta-presentes-text { color: var(--muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block; padding: 18px 40px;
  background: var(--white); color: var(--bg);
  font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--white);
  transition: all 0.2s;
}
.cta-btn:hover { background: transparent; color: var(--white); }
.cta-btn.outline { background: transparent; color: var(--white); }
.cta-btn.outline:hover { background: var(--white); color: var(--bg); }


.casamento-footer { border-top: 1px solid var(--border); padding: 48px 24px; text-align: center; }
.footer-names { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--muted); margin-bottom: 8px; }
.footer-date { font-size: 12px; color: var(--border); letter-spacing: 0.2em; text-transform: uppercase; }

/* WooCommerce: ajustes mínimos de checkout/carrinho para combinar com o tema */
.woocommerce, .woocommerce-page {
  background: var(--bg); color: var(--white);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row select {
  background: var(--surface); border: 1px solid var(--border); color: var(--white);
}
.woocommerce #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
  border-top: 1px solid var(--border);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce-page a.button {
  background: var(--gold); color: var(--bg); border: none;
  font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
  padding: 12px 24px; border-radius: 0;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--gold-light);
}

@media (max-width: 640px) {
  .casamento-nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  section { padding: 64px 20px; }
}
