/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  background: rgba(14,0,28,.75);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(220,168,56,.18);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center;
  gap: clamp(.9rem, 2.5vw, 2rem); list-style: none;
}
.nav-links a {
  font-size: .82rem; font-weight: 400;
  color: rgba(220,168,56,.55); text-decoration: none;
  letter-spacing: .1em; text-transform: uppercase;
  font-family: 'Playfair Display', serif;
  transition: color .25s; white-space: nowrap;
}
.nav-links a:hover { color: #f2ead8; }
.nav-links a.active {
  color: var(--gold);
  border-bottom: 1px solid rgba(220,168,56,.5);
  padding-bottom: 2px;
}
.nav-links a.nav-orcamento {
  color: var(--gold); border: 1px solid rgba(220,168,56,.5);
  padding: .32rem .9rem; transition: background .25s, color .25s;
}
.nav-links a.nav-orcamento:hover { background: var(--gold); color: #0e001c; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1px; background: var(--gold);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* dropdown contato */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translateX(-50%);
  background: rgba(14,0,28,.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(220,168,56,.25);
  min-width: 180px; padding: .6rem 0; z-index: 200;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1.2rem; font-size: .82rem;
  color: rgba(220,168,56,.65) !important;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: none !important;
  transition: color .2s, background .2s; text-decoration: none;
}
.nav-dropdown-menu a:hover { color: #f2ead8 !important; background: rgba(220,168,56,.07); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(14,0,28,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220,168,56,.18);
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    gap: 1.2rem; z-index: 99;
  }
}

:root {
  --bg-deep: #160025;
  --bg-mid: #320054;
  --bg-glow: #40006b;
  --gold: #d4a017;
  --gold-dim: #c59733;
  --gold-faint: rgba(220,168,56,0.15);
  --gold-border: rgba(220,168,56,0.4);
  --card-bg: rgba(25,0,54,0.85);
  --btn-bg: #0d001c;
  --text-muted: rgba(197,151,51,0.6);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  background:
    radial-gradient(ellipse 100% 30% at 50% 22%, #40006b 0%, transparent 60%),
    linear-gradient(to bottom, #160025 0%, #200036 22%, #320054 45%, #40006b 60%, #320054 78%, #160025 100%);
  background-attachment: fixed;
  min-height: 100%;
}

body {
  font-family: Cambria, Georgia, serif;
  color: var(--gold);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 68px;
}

/* Títulos sempre em Playfair Display */
h1, h2, h3,
.pkg-name,
.pkg-price,
.total-final,
.contact-title,
.section-title {
  font-family: 'Playfair Display', serif;
}

/* ── ESTRELAS ── */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%,100%{opacity:0} 50%{opacity:var(--max-op,0.6)}
}

/* ── LAYOUT ── */
main {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── CABEÇALHO ── */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
}
.page-header .planet-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--gold-dim);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── STEP 1: INPUT ── */
.input-section {
  background: linear-gradient(160deg, rgba(64,0,107,0.4), rgba(0,0,0,0.6));
  border: 2px double var(--gold-border);
  padding: 3.5rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}
.input-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.input-section .hint {
  color: var(--gold-dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.word-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

input[type="number"] {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  padding: 1rem 1.5rem;
  width: 220px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"]:focus { border-color: var(--gold); }
input[type="number"]::placeholder { color: var(--text-muted); font-style: italic; }

.btn-calcular {
  background: var(--btn-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-calcular:hover {
  background: var(--gold);
  color: var(--btn-bg);
  border-color: var(--gold);
}

.word-examples {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── RESULTADOS ── */
#results {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

#results.visible {
  opacity: 1;
  height: auto;
  overflow: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* ── GRANDE FÔLEGO ── */
.grande-folego {
  background: linear-gradient(135deg, rgba(64,0,107,0.6), rgba(0,0,0,0.8));
  border: 2px solid var(--gold);
  padding: 4rem 3rem;
  text-align: center;
}
.grande-folego .folego-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; }
.grande-folego h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.grande-folego p { color: var(--gold-dim); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }

/* ── PACOTES ── */
.results-label {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}
.results-label strong { color: var(--gold-dim); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media(max-width: 700px) {
  .packages-grid { grid-template-columns: 1fr; }
  .input-section { padding: 2rem 1.5rem; }
  main { padding: 1.5rem 1rem 2rem; }
.word-input-wrapper {
  flex-direction: column;
  align-items: stretch;
}
.word-input-wrapper input[type="number"] {
  width: 100%;
}
.btn-calcular {
  width: 100%;
}
}

.pkg-card {
  background: linear-gradient(180deg, rgba(33,0,73,0.3), rgba(0,0,0,0.6));
  border: 1px solid var(--gold-border);
  padding: 2.5rem 1.8rem;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  cursor: pointer;
}
.pkg-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(220,168,56,0.15);
}
.pkg-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(64,0,107,0.5), rgba(0,0,0,0.7));
  box-shadow: 0 0 30px rgba(220,168,56,0.1);
}
.pkg-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--btn-bg);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  white-space: nowrap;
}
.pkg-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pkg-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.pkg-price {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pkg-economy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pkg-economy span {
  text-decoration: line-through;
  margin-right: 0.3rem;
}
.pkg-economy em { color: #7ecb7e; font-style: normal; }
.pkg-items {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  border-top: 1px solid var(--gold-border);
  padding-top: 1.2rem;
}
.pkg-items li {
  font-size: 0.88rem;
  color: var(--gold-dim);
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.pkg-items li::before { content: '✦'; color: var(--gold); font-size: 0.7rem; margin-top: 0.2rem; flex-shrink: 0; }
.pkg-prazo {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.btn-pkg {
  display: block;
  width: 100%;
  background: var(--btn-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-pkg:hover, .pkg-card.featured .btn-pkg {
  background: var(--gold);
  color: var(--btn-bg);
  border-color: var(--gold);
}
.pkg-card.featured .btn-pkg:hover {
  opacity: 0.85;
}

/* ── DIVISOR ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem 0 2rem;
}
.divider::before { display: none; }
.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}
.divider span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  white-space: nowrap;
}

/* ── AVULSOS ── */
.avulsos-section {
  background: linear-gradient(160deg, rgba(13,0,28,0.6), rgba(0,0,0,0.5));
  border: 1px solid var(--gold-border);
  padding: 2.5rem;
}
.avulsos-section h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.avulsos-section .avulsos-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.avulso-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(220,168,56,0.1);
}
.avulso-item:last-child { border-bottom: none; }
.avulso-nome { font-size: 0.95rem; color: var(--gold-dim); }
.avulso-preco { font-size: 1rem; color: var(--gold); white-space: nowrap; }
.avulso-check {
  width: 22px; height: 22px;
  border: 1px solid var(--gold-border);
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.avulso-check:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.avulso-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: var(--btn-bg);
  font-size: 0.85rem;
  font-weight: bold;
}

/* ── TOTAL AVULSOS ── */
.avulsos-total {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.total-info { flex: 1; }
.total-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.3rem; }
.total-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.95rem; }
.total-desconto-badge {
  display: inline-block;
  background: rgba(126,203,126,0.15);
  border: 1px solid rgba(126,203,126,0.4);
  color: #7ecb7e;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
}
.total-final { font-size: 1.8rem; font-weight: 700; margin-top: 0.3rem; }
.total-aviso { color: var(--text-muted); font-size: 0.78rem; font-style: italic; margin-top: 0.3rem; }

.btn-avulso-cta {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  padding: 1rem 1.8rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-avulso-cta:hover {
  background: var(--gold);
  color: var(--btn-bg);
  border-color: var(--gold);
}
.btn-avulso-cta:disabled, .btn-avulso-cta.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── FLOATING CTA ── */
.floating-cta {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.floating-cta a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--btn-bg);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 30px rgba(220,168,56,0.4);
  transition: all 0.3s ease;
}
.floating-cta a:hover {
  background: #f0c040;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(220,168,56,0.5);
}
.whatsapp-icon { font-size: 1.2rem; }

/* ── RODAPÉ ── */
.page-footer {
  text-align: center;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.page-footer a { color: var(--gold-dim); text-decoration: none; }
.page-footer a:hover { color: var(--gold); }