/* vibe.css — "A Vibe da Festa" (página dos convidados)
   Mesma identidade do site (areia/linho, Cherolina, ondas), com mais
   energia: equalizador animado, notas flutuando, cards de clima. */

.vibe-page {
  background: var(--linen-50);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Overlay de entrada ─────────────────────────────────────────────── */
.vibe-page.is-gated {
  overflow: hidden;
  height: 100vh;
}

.vibe-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(
      130% 130% at 50% 0%,
      var(--sand-100) 0%,
      var(--sand-200) 55%,
      var(--sand-300) 120%
    );
  transition: opacity 0.6s ease;
}

.vibe-gate.is-leaving {
  opacity: 0;
}

.vibe-gate[hidden] {
  display: none;
}

.vibe-gate-inner {
  max-width: 440px;
  animation: vibeGateIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes vibeGateIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Equalizador do overlay */
.vibe-gate-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 48px;
  margin-bottom: 18px;
}

.vibe-gate-eq span {
  width: 7px;
  border-radius: 999px;
  background: #ab690c;
  animation: eqBounce 1s ease-in-out infinite;
}

.vibe-gate-eq span:nth-child(1) { animation-delay: -0.9s; }
.vibe-gate-eq span:nth-child(2) { animation-delay: -0.5s; }
.vibe-gate-eq span:nth-child(3) { animation-delay: -0.7s; }
.vibe-gate-eq span:nth-child(4) { animation-delay: -0.3s; }
.vibe-gate-eq span:nth-child(5) { animation-delay: -0.6s; }

.vibe-gate-kicker {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-700);
}

.vibe-gate-title {
  font-size: clamp(3rem, 12vw, 4.6rem);
  color: #ab690c;
  line-height: 1;
  margin: 0 0 12px;
  text-shadow: 3px 2px 6px rgba(0, 0, 0, 0.08);
}

.vibe-gate-sub {
  margin: 0 0 28px;
  color: var(--text-700);
  font-size: 1.02rem;
  line-height: 1.6;
}

.vibe-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-contrast);
  background: var(--linen-50);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease;
}

.vibe-gate-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.vibe-gate-silent {
  display: block;
  margin: 18px auto 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-700);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
}

.vibe-gate-silent:hover {
  opacity: 1;
}

/* ── Botão flutuante de som ─────────────────────────────────────────── */
.vibe-audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 950;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--linen-50);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}

.vibe-audio-toggle:hover {
  transform: translateY(-2px) scale(1.04);
}

.vibe-audio-ico {
  font-size: 1.35rem;
  line-height: 1;
}

.vibe-audio-toggle.is-playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--sand-300);
  animation: vibePulse 1.8s ease-out infinite;
}

@keyframes vibePulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ── Notas musicais flutuando ───────────────────────────────────────── */
.vibe-notes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.vibe-notes span {
  position: absolute;
  bottom: -40px;
  font-size: 1.6rem;
  color: rgba(171, 105, 12, 0.28);
  animation: floatUp linear infinite;
}

.vibe-notes span:nth-child(1) { left: 8%; animation-duration: 13s; animation-delay: 0s; }
.vibe-notes span:nth-child(2) { left: 20%; animation-duration: 17s; animation-delay: 3s; font-size: 2.2rem; }
.vibe-notes span:nth-child(3) { left: 34%; animation-duration: 15s; animation-delay: 6s; }
.vibe-notes span:nth-child(4) { left: 48%; animation-duration: 19s; animation-delay: 1.5s; font-size: 1.2rem; }
.vibe-notes span:nth-child(5) { left: 62%; animation-duration: 14s; animation-delay: 4.5s; font-size: 2rem; }
.vibe-notes span:nth-child(6) { left: 74%; animation-duration: 18s; animation-delay: 8s; }
.vibe-notes span:nth-child(7) { left: 86%; animation-duration: 16s; animation-delay: 2s; font-size: 1.3rem; }
.vibe-notes span:nth-child(8) { left: 94%; animation-duration: 20s; animation-delay: 6.5s; font-size: 2.1rem; }

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-108vh) rotate(24deg);
    opacity: 0;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.vibe-hero {
  position: relative;
  z-index: 2;
  background: var(--sand-100);
  text-align: center;
  padding: 72px 20px 110px;
}

.vibe-hero-kicker {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-700);
}

.vibe-hero-title {
  font-size: clamp(3.4rem, 12vw, 7rem);
  color: #ab690c;
  line-height: 0.95;
  margin: 0 0 14px;
  text-shadow: 4px 3px 8px rgba(0, 0, 0, 0.1);
}

.vibe-hero-sub {
  margin: 0 0 32px;
  color: var(--text-700);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Equalizador do hero */
.vibe-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 70px;
  margin: 0 auto 26px;
  max-width: 320px;
}

.vibe-eq span {
  flex: 1;
  max-width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), #ab690c);
  animation: eqBounce 1.1s ease-in-out infinite;
}

.vibe-eq span:nth-child(1) { animation-delay: -0.20s; }
.vibe-eq span:nth-child(2) { animation-delay: -0.75s; }
.vibe-eq span:nth-child(3) { animation-delay: -0.45s; }
.vibe-eq span:nth-child(4) { animation-delay: -0.95s; }
.vibe-eq span:nth-child(5) { animation-delay: -0.30s; }
.vibe-eq span:nth-child(6) { animation-delay: -0.60s; }
.vibe-eq span:nth-child(7) { animation-delay: -0.15s; }
.vibe-eq span:nth-child(8) { animation-delay: -0.85s; }
.vibe-eq span:nth-child(9) { animation-delay: -0.40s; }
.vibe-eq span:nth-child(10) { animation-delay: -0.70s; }
.vibe-eq span:nth-child(11) { animation-delay: -0.25s; }
.vibe-eq span:nth-child(12) { animation-delay: -0.55s; }

@keyframes eqBounce {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}

.vibe-scroll {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-500);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Entrada escalonada do hero */
.anim {
  opacity: 0;
  transform: translateY(18px);
  animation: vibeIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes vibeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Seções ─────────────────────────────────────────────────────────── */
.vibe-section {
  position: relative;
  z-index: 2;
  padding: 66px 0 78px;
}

.vibe-section--linen {
  background: var(--linen-50);
}

.vibe-section--sand {
  background: var(--sand-100);
}

.vibe-wrap {
  width: min(92%, 820px);
  margin: 0 auto;
}

.vibe-h2 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: #ab690c;
  line-height: 1;
  text-align: center;
  margin: 0 0 6px;
}

.vibe-h2-sub {
  text-align: center;
  color: var(--text-500);
  margin: 0 0 32px;
  font-size: 1.02rem;
}

.vibe-section p {
  color: var(--text-700);
  line-height: 1.7;
}

/* ── Intro ──────────────────────────────────────────────────────────── */
.vibe-intro {
  text-align: center;
}

.vibe-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-900) !important;
  margin: 0 0 16px;
}

.vibe-lead strong {
  color: #ab690c;
}

.vibe-intro p:last-child {
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── A noite em climas ──────────────────────────────────────────────── */
.vibe-moods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.vibe-mood {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--linen-50);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.vibe-mood:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.vibe-mood-emoji {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.vibe-mood h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-900);
  margin: 2px 0 6px;
}

.vibe-mood p {
  margin: 0;
  font-size: 0.98rem;
}

/* Reveal escalonado dos climas */
.reveal .vibe-mood {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.in-view .vibe-mood {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: calc(var(--i) * 0.09s);
}

/* ── Aperitivo (teaser) ─────────────────────────────────────────────── */
.vibe-tastes {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
  display: grid;
  gap: 12px;
}

.vibe-tastes li {
  background: var(--linen-100);
  border: 1.5px dashed var(--sand-300);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-900);
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.vibe-tastes li:hover {
  transform: scale(1.03) rotate(-0.6deg);
  background: var(--sand-100);
}

.vibe-taste-note {
  text-align: center;
  margin: 26px auto 0;
  max-width: 52ch;
  color: var(--text-500);
  font-style: italic;
}

/* ── O combinado da festa ───────────────────────────────────────────── */
.vibe-pact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vibe-pact-col {
  background: var(--linen-50);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sand-300);
}

.vibe-pact-col--you {
  border-top-color: var(--blue);
}

.vibe-pact-col h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ab690c;
  margin: 0 0 14px;
  text-align: center;
}

.vibe-pact-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.vibe-pact-col li {
  position: relative;
  padding-left: 26px;
  color: var(--text-700);
  line-height: 1.5;
}

.vibe-pact-col li::before {
  content: "♪";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--sand-300);
  font-weight: 700;
}

.vibe-pact-col--you li::before {
  color: var(--blue);
}

@media (max-width: 620px) {
  .vibe-pact {
    grid-template-columns: 1fr;
  }
}

/* ── Chamada final ──────────────────────────────────────────────────── */
.vibe-cta {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, var(--sand-100), var(--sand-200));
  text-align: center;
  padding: 70px 20px 84px;
}

.vibe-notes-inline {
  font-size: 1.6rem;
  letter-spacing: 8px;
  color: rgba(171, 105, 12, 0.5);
  margin: 0 0 10px;
}

.vibe-cta-title {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  color: #ab690c;
  line-height: 1;
  margin: 0 0 12px;
}

.vibe-cta-sub {
  margin: 0 0 30px;
  color: var(--text-700);
  font-size: 1.1rem;
}

.vibe-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.vibe-signature {
  margin: 40px 0 0;
  font-size: 2rem;
  color: var(--text-700);
}

/* ── Ondas: pinta cada onda com a cor da PRÓXIMA seção ──────────────── */
.vibe-hero .wave-separator path,
.vibe-section--sand .wave-separator path {
  fill: var(--linen-50);
}

.vibe-section--linen .wave-separator path {
  fill: var(--sand-100);
}

/* ── Reduz movimento ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vibe-notes,
  .vibe-scroll {
    display: none;
  }
  .vibe-gate-eq span,
  .vibe-eq span {
    animation: none;
    height: 60%;
  }
  .anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .vibe-gate-inner {
    animation: none;
  }
  .vibe-audio-toggle.is-playing::after {
    animation: none;
    display: none;
  }
  .reveal .vibe-mood {
    opacity: 1;
    transform: none;
  }
}
