/* ══════════════════════════════════════════════════════
   Convite Studio — landing page de promoção
   ══════════════════════════════════════════════════════ */

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

:root {
  --green:       #55684a;
  --green-dark:  #36422f;
  --beige:       #f5efe4;
  --beige-soft:  #faf7f0;
  --cream:       #fdfaf5;
  --gold:        #c8924a;
  --text:        #2a3625;
  --text-mid:    #4a5a40;
  --text-soft:   #8a9480;
  --radius:      20px;
  --shadow-soft: 0 10px 34px rgba(42, 54, 37, 0.09);
  --shadow-mid:  0 20px 54px rgba(42, 54, 37, 0.16);
}

html { scroll-behavior: smooth; }

/* ── Céu de fundo (pombinhos a voar) ─────────────────── */
#ceu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.hero, .section, .cta-final, .footer { position: relative; z-index: 1; }
section[id], header[id] { scroll-margin-top: 74px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--beige-soft);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--green-dark); }

h2 {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 40px;
}

a { color: var(--green); }

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}
.eyebrow.center { text-align: center; margin-bottom: 6px; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(54, 66, 47, 0.30);
}
.btn.ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid rgba(85, 104, 74, 0.35);
}
.btn.ghost:hover { background: #fff; }
.btn.whatsapp {
  background: linear-gradient(135deg, #35b558, #1f8b3d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 139, 61, 0.30);
}
.btn.big { padding: 15px 30px; font-size: 1rem; }

/* ── Navegação ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(16px, 5vw, 48px);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(85, 104, 74, 0.12);
}
.nav-brand {
  text-decoration: none;
  color: var(--green-dark);
  font-size: 1.02rem;
}
.nav-links { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a.ativo {
  color: var(--green-dark);
  box-shadow: 0 2px 0 var(--gold);
}

.nav-acoes { display: flex; align-items: center; gap: 10px; }

/* Botão hambúrguer (só aparece em ecrãs pequenos) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1.5px solid rgba(85, 104, 74, 0.25);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-burger span {
  height: 2px;
  border-radius: 2px;
  background: var(--green-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.aberta .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.aberta .nav-burger span:nth-child(2) { opacity: 0; }
.nav.aberta .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(16px, 5vw, 48px) 70px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  margin: 10px 0 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.lead {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Visual do hero — mini telemóvel */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.mini-phone {
  width: min(270px, 70vw);
  border-radius: 36px;
  padding: 10px;
  background: #1c1c1e;
  box-shadow: var(--shadow-mid), inset 0 0 0 2px #3a3a3c;
  transform: rotate(3deg);
  animation: heroFloat 4.5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-12px); }
}
.mini-screen {
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(200, 146, 74, 0.16), transparent 45%),
    var(--beige);
  padding: 34px 18px 26px;
  text-align: center;
}
.mini-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.62rem;
  color: var(--text-soft);
}
.mini-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  color: var(--green-dark);
  line-height: 1.1;
  margin: 6px 0 2px;
}
.mini-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 22px; }
.mini-divider span { height: 1px; width: 36px; background: linear-gradient(to right, transparent, var(--gold)); }
.mini-divider span:last-of-type { background: linear-gradient(to left, transparent, var(--gold)); }
.mini-divider i { color: var(--gold); font-style: normal; font-size: 0.8rem; }

.mini-envelope {
  position: relative;
  width: 82%;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #adb5a2, #9ea694);
  filter: drop-shadow(0 16px 22px rgba(28, 36, 18, 0.28));
}
.mini-flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 58%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #b4bca9, #a6ae9b);
  clip-path: polygon(0 0, 50% 84%, 100% 0);
}
.mini-seal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: radial-gradient(circle at 34% 28%, #ddb070, #c8924a 55%, #8a5f2a);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.mini-hint {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-mid);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.chip-1 { top: 14%; right: -4%; animation: chipFloat 5s ease-in-out infinite; }
.chip-2 { bottom: 12%; left: -6%; animation: chipFloat 5s ease-in-out 1.2s infinite; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Secções ──────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px clamp(16px, 5vw, 48px);
}
.section.alt {
  max-width: none;
  background: linear-gradient(rgba(85, 104, 74, 0.06), rgba(85, 104, 74, 0.02));
}
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section.alt h2 { margin-bottom: 40px; }

.section-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ── Passos ───────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(85, 104, 74, 0.08);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-mid); }

/* ── Features ─────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid rgba(85, 104, 74, 0.10);
}
.feature span { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: 0.87rem; color: var(--text-mid); }

/* ── Temas ────────────────────────────────────────────── */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.theme { text-decoration: none; }
.theme-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--t-accent) 22%, transparent), transparent 50%),
    var(--t-fundo);
  border: 1px solid color-mix(in srgb, var(--t-prim) 18%, transparent);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.theme:hover .theme-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-mid);
}
.theme-names {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: var(--t-prim);
  text-align: center;
  line-height: 1.15;
}
.theme-seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: radial-gradient(circle at 34% 28%,
    color-mix(in srgb, var(--t-accent) 55%, white),
    var(--t-accent) 55%,
    color-mix(in srgb, var(--t-accent) 65%, black));
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.theme-label {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* ── Preços ───────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(85, 104, 74, 0.10);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.plan.destaque {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-mid);
  transform: scale(1.03);
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #a57338);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; }
.price {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 8px 0 16px;
}
.plan ul {
  list-style: none;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 22px;
  flex: 1;
}
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid rgba(85, 104, 74, 0.12);
  border-radius: 14px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ── CTA final ────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 80px clamp(16px, 5vw, 48px);
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 146, 74, 0.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(85, 104, 74, 0.14), transparent 45%),
    var(--beige);
}
.cta-final h2 { margin-bottom: 10px; }
.cta-final h2 em { color: var(--gold); }
.cta-final > p { color: var(--text-mid); margin-bottom: 28px; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 34px 20px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}
.footer-small { margin-top: 6px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }

/* ── Aparecer ao rolar ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .chip-1 { right: 2%; }
  .chip-2 { left: 2%; }
  .plan.destaque { transform: none; }

  /* menu recolhido num painel por baixo da barra */
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(250, 247, 240, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(85, 104, 74, 0.12);
    box-shadow: var(--shadow-soft);
  }
  .nav.aberta .nav-links { display: flex; }
  .nav-links a {
    padding: 13px clamp(16px, 5vw, 48px);
    font-size: 1rem;
  }
  .nav-links a.ativo {
    box-shadow: none;
    background: rgba(200, 146, 74, 0.10);
  }
}
