/* ===== CHÁ DE PANELA — DAVI & CLARA ===== */
/* Stylesheet otimizado e organizado */

/* ===== RESET E VARIÁVEIS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta quente de madeira amarelada */
  --paper: #fdf8f2;
  --surface: #f5ede0;
  --wood-bg: #ede3d4;
  --wood-mid: #d4b896;
  --wood-warm: #c8a96e;
  --wood-deep: #a07840;
  --amber-glow: rgba(200, 169, 110, 0.18);
  --amber-soft: rgba(200, 169, 110, 0.35);
  /* Tons neutros */
  --white: #fffdf9;
  --ink: #2e2418;
  --ink-muted: #6b5740;
  --line: #e0d0bb;
  --shadow: rgba(46, 36, 24, 0.09);
  /* Sálvia/verde suave */
  --sage: #7a9e87;
  --sage-light: #c2d5c8;
  --forest: #4a6b52;
  --forest-deep: #2a3d2e;
  /* Dourado para botões de presente */
  --gold: #b07d38;
  --gold-hover: #8c6028;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--wood-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: var(--ink);
  overflow-x: hidden;
}

/* ===== NAVEGAÇÃO ===== */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(253, 248, 242, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(46, 36, 24, 0.06);
}

nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--wood-deep);
  letter-spacing: 0.01em;
}

.nav-actions { display: flex; align-items: center; gap: 12px; position: relative; }

.nav-cb {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nav-burger {
  display: none; cursor: pointer; font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--wood-deep); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  font-weight: 500;
}

nav ul { list-style: none; display: flex; gap: 28px; }

nav ul a {
  text-decoration: none; color: var(--ink-muted);
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  transition: color .3s;
}

nav ul a:hover { color: var(--gold); }

/* ===== HERO / INTRO ===== */
.intro {
  position: relative; overflow: hidden;
  padding: 92px 20px 40px;
  background:
    radial-gradient(ellipse 130% 90% at 50% 10%, var(--amber-glow) 0%, transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}

.intro-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px 36px;
  align-items: start;
  position: relative; z-index: 1;
}

.intro-headline { text-align: center; animation: fadeUp 1s ease both; padding-top: 8px; }

.intro-aside { display: flex; flex-direction: column; gap: 14px; animation: fadeUp 1.1s ease both; }

.intro-aside-label {
  font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sage); font-weight: 500; text-align: center;
}

.hero-floral-frame {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.9;
}

.hero-floral-frame svg { width: 100%; height: 100%; display: block; }

.hero-badge {
  display: inline-block;
  background: rgba(160, 120, 64, 0.14);
  color: var(--wood-deep);
  font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
  border: 1px solid rgba(200, 169, 110, 0.5);
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 300; color: var(--ink); line-height: 1.08;
}

.hero-names span { color: var(--wood-warm); font-style: italic; }

.hero-divider {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--wood-mid), transparent);
  margin: 18px auto;
}

.hero-date {
  font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--wood-deep); font-weight: 500;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.05rem; color: var(--ink-muted); margin-top: 10px; line-height: 1.5;
}

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

/* ===== SEÇÕES GERAIS ===== */
section { padding: 52px 20px 60px; max-width: 960px; margin: 0 auto; }

.section-title {
  font-family: 'Cormorant Garamond', serif; font-size: 2.1rem;
  font-weight: 400; color: var(--ink); text-align: center; margin-bottom: 6px;
}

.section-sub {
  text-align: center; font-size: 0.68rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 32px; font-weight: 500;
}

/* ===== INFO CARD ===== */
.info-card {
  background: var(--white); border-radius: 12px; padding: 18px 20px;
  border: 1px solid var(--line); text-align: center;
  box-shadow: 0 2px 18px var(--shadow);
}

.info-card .big-icon { font-size: 1.75rem; margin-bottom: 8px; line-height: 1; }

.info-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }

.info-card p { font-size: 0.88rem; line-height: 1.7; color: var(--ink-muted); }

.info-card .highlight { font-size: 0.95rem; font-weight: 500; color: var(--forest); display: block; margin-top: 8px; }

.map-btn {
  display: block; text-align: center; text-decoration: none;
  font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--wood-deep); background: var(--white);
  border: 1px solid var(--wood-mid);
  padding: 12px 18px; border-radius: 6px; width: 100%; min-height: 44px;
  line-height: 1.3; transition: all .3s;
}

.map-btn:hover { background: var(--wood-warm); color: var(--white); border-color: var(--wood-warm); }

/* ===== CONFIRMAÇÃO FORM ===== */
.rsvp-form-wrapper {
  max-width: 500px; margin: 0 auto; background: var(--white);
  border-radius: 12px; padding: 36px 32px; border: 1px solid var(--line);
  box-shadow: 0 4px 24px var(--shadow);
}

.rsvp-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.08rem;
  color: var(--ink-muted); text-align: center; margin-bottom: 28px; line-height: 1.7;
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px; font-weight: 500;
}

.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(46, 36, 24, 0.15);
  border-radius: 6px; font-family: 'Jost', sans-serif; font-size: 1rem;
  background: var(--paper); color: var(--ink); transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none; border-color: var(--wood-warm);
  box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.1);
}

.radio-group { display: flex; gap: 14px; margin-bottom: 28px; }

.radio-option { flex: 1; position: relative; }

.radio-input {
  position: absolute; opacity: 0; cursor: pointer;
  left: 0; top: 0; width: 100%; height: 100%; margin: 0;
}

.radio-label {
  display: flex; align-items: center; justify-content: center; padding: 12px 16px;
  border: 1px solid rgba(61, 47, 30, 0.15); border-radius: 6px; cursor: pointer;
  letter-spacing: 1px; background: var(--paper); font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; color: var(--ink-muted); margin: 0; transition: all 0.3s;
  user-select: none;
}

.radio-input:checked + .radio-label {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}

.rsvp-status {
  font-family: 'Jost', sans-serif; font-size: 0.9rem; text-align: center;
  margin: 12px 0; min-height: 1.4em; color: var(--ink-muted);
}

.submit-btn {
  width: 100%; padding: 16px; background: var(--gold); color: white; border: none;
  border-radius: 6px; font-family: 'Jost', sans-serif; font-size: 0.85rem;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer; margin-top: 8px;
  transition: background 0.3s; font-weight: 600;
  box-shadow: 0 3px 10px rgba(160, 120, 64, 0.28); min-height: 44px;
}

.submit-btn:hover { background: var(--gold-hover); }

.submit-btn:active { transform: scale(0.98); }

/* ===== CONTAGEM REGRESSIVA ===== */
.countdown-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
  padding: 40px 20px;
}

.countdown-subtitle {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.95rem;
  color: var(--sage); margin-bottom: 20px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500; text-align: center;
}

.countdown-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem;
  color: var(--ink-muted); margin-bottom: 24px; line-height: 1.6; text-align: center;
}

.countdown-wrapper {
  background: var(--white); border-radius: 12px; padding: 28px 24px;
  border: 1px solid var(--line); box-shadow: 0 2px 16px var(--shadow);
  max-width: 600px; margin: 0 auto;
}

#countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

.countdown-item {
  background: var(--surface); border-radius: 6px; padding: 14px 8px;
  border: 1px solid var(--line); text-align: center;
}

.countdown-value {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600;
  color: var(--forest); line-height: 1;
}

.countdown-label {
  font-size: 0.65rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 6px; font-weight: 500;
}

/* ===== PRESENTES ===== */
.category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--wood-deep);
  margin: 36px 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gift-card {
  background: var(--surface);
  border-radius: 12px; padding: 0;
  border: 1px solid var(--line);
  box-shadow: 0 2px 14px var(--shadow);
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column; overflow: hidden;
}

.gift-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(46, 36, 24, 0.13); }

.gift-card-media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--paper) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}

.gift-card-media::after {
  content: 'Imagem meramente ilustrativa';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 8px;
  background: rgba(46, 36, 24, 0.38);
  color: rgba(253, 248, 242, 0.82);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.gift-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.gift-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.gift-name { font-size: 1rem; font-weight: 500; color: var(--ink); margin: 0 0 8px; line-height: 1.35; }

.gift-price {
  font-size: 1.25rem; font-family: 'Cormorant Garamond', serif;
  color: var(--gold); font-weight: 600; margin-bottom: 4px;
}

.gift-note { font-size: 0.75rem; color: var(--ink-muted); margin-bottom: 14px; font-style: italic; }

.gift-buy {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white); background: var(--gold);
  border-radius: 7px; padding: 12px 16px; min-height: 44px;
  box-shadow: 0 3px 10px rgba(160, 120, 64, 0.28);
  transition: background .25s, box-shadow .2s, transform .15s;
  border: none; cursor: pointer;
}

.gift-buy:hover {
  background: var(--gold-hover);
  box-shadow: 0 5px 16px rgba(160, 120, 64, 0.4);
}

.gift-buy:active { transform: scale(0.97); }

.gift-buy svg { flex-shrink: 0; opacity: 0.95; }

.gift-buy--pending {
  background: rgba(160, 120, 64, 0.10); color: var(--gold);
  box-shadow: none; cursor: not-allowed; pointer-events: none;
}

.gift-received {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(74, 107, 82, 0.28);
  cursor: not-allowed;
  pointer-events: none;
}

.gift-received:hover {
  background: var(--forest);
  box-shadow: 0 3px 10px rgba(74, 107, 82, 0.28);
}

/* ===== VERSÍCULO + INTRO ===== */
.verse-block {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 40px 32px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 18px var(--shadow);
  margin-bottom: 32px;
  position: relative;
}

.verse-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem; line-height: 0.6;
  color: var(--wood-warm); opacity: 0.25;
  position: absolute; top: 28px; left: 32px;
  pointer-events: none; user-select: none;
}

.verse-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem; font-style: italic;
  line-height: 1.8; color: var(--ink);
  border: none; padding: 0;
  margin-bottom: 10px;
  padding-left: 8px;
}

.verse-ref {
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--wood-warm); font-weight: 500; margin-bottom: 22px;
  padding-left: 8px;
}

.verse-body {
  font-size: 0.9rem; line-height: 1.75; color: var(--ink-muted);
  margin-bottom: 22px; padding-left: 8px;
  border-left: 2px solid var(--line);
}

.verse-obs {
  font-size: 0.78rem; line-height: 1.5;
  color: var(--ink-muted); opacity: 0.75;
  font-style: italic; margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ===== PALETA DE CORES ===== */
.palette-block {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 36px;
}

.palette-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}

.palette-label {
  font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--wood-deep); font-weight: 500; white-space: nowrap;
}

.palette-rule {
  flex: 1; height: 1px; background: var(--line);
}

.palette-swatches {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
}

.swatch-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(46,36,24,0.12);
  flex-shrink: 0;
}

.swatch-item span {
  font-size: 0.65rem; letter-spacing: 0.5px; color: var(--ink-muted);
  text-align: center; line-height: 1.2;
}

/* ===== NOTA DE PAGAMENTO ===== */
.payment-note {
  background: var(--white); border-radius: 10px; padding: 20px 24px;
  border-left: 4px solid var(--wood-warm); margin-bottom: 28px;
  font-size: 0.88rem; line-height: 1.7; color: var(--ink-muted);
  box-shadow: 0 2px 12px var(--shadow);
}

.payment-note p { margin-bottom: 0.85em; }

.payment-note p:last-child { margin-bottom: 0; }

.payment-note-lead { font-size: 0.92rem; color: var(--ink); }

.pix-chave { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.payment-note strong { color: var(--forest); }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-wrap {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; margin: 8px 0 14px;
}

.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest-deep);
  background: transparent;
  border: 1px solid var(--forest);
  padding: 13px 24px; border-radius: 6px; min-height: 48px;
  transition: background .3s, color .3s, border-color .3s, transform .15s;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.whatsapp-btn:active { transform: scale(0.97); }

.whatsapp-btn svg { flex-shrink: 0; opacity: 0.8; }

.whatsapp-caption { font-size: 0.78rem; color: var(--ink-muted); font-style: italic; line-height: 1.45; }

/* ===== FOOTER ===== */
footer {
  background: var(--forest-deep);
  color: rgba(245, 237, 224, 0.55);
  text-align: center; padding: 32px 20px;
  font-size: 0.78rem; letter-spacing: 2px;
}

footer .footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; color: var(--sage-light); margin-bottom: 8px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 820px) {
  .intro-inner { grid-template-columns: 1fr; max-width: 420px; }
  .intro-headline { order: 1; }
  .intro-aside { order: 2; width: 100%; }
}

@media (max-width: 640px) {
  .nav-burger { display: block; }
  nav ul {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 220px; flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 12px 36px var(--shadow); padding: 6px 0; z-index: 101;
  }
  nav ul li { border-bottom: 1px solid var(--line); }
  nav ul li:last-child { border-bottom: 0; }
  nav ul a { display: block; padding: 14px 18px; }
  .nav-cb:checked ~ ul { display: flex; }
  nav { padding: 14px 20px; }
  .intro {
    padding: 80px 16px 32px;
    background:
      radial-gradient(ellipse 110% 60% at 50% 10%, var(--amber-glow) 0%, transparent 55%),
      linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
  }
  .verse-block { padding: 28px 22px 24px; }
  .verse-mark { font-size: 4.5rem; top: 22px; left: 18px; }
  .palette-swatches { gap: 14px 18px; }
  .swatch { width: 38px; height: 38px; }
  .rsvp-form-wrapper { padding: 28px 20px; }
  #countdown { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .countdown-item { padding: 12px 6px; }
  .countdown-value { font-size: 1.4rem; }
  .countdown-label { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  .gift-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
  nav { padding: 12px 16px; }
  nav .logo { font-size: 1.1rem; }
  section { padding: 40px 16px 48px; }
  .section-title { font-size: 1.8rem; }
  .hero-names { font-size: clamp(2rem, 4vw, 2.8rem); }
  .category-title { font-size: 1.2rem; }
  .rsvp-form-wrapper { padding: 24px 16px; }
  .rsvp-quote { font-size: 0.95rem; }
  .form-group { margin-bottom: 18px; }
  .radio-group { gap: 10px; }
  .radio-label { padding: 10px 12px; font-size: 0.75rem; }
  .submit-btn { padding: 14px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-headline, .intro-aside { animation: none !important; }
  .gift-card, .map-btn, .gift-buy, .whatsapp-btn { transition: none !important; }
}

@media (max-width: 768px) {
  nav {
    transform: translateY(0) !important;
    transition: transform 0.35s ease !important;
    will-change: transform;
  }
  nav.nav-hidden { transform: translateY(-110%) !important; }
}
