/* ═══════════════════════════════════
   PORTAL DAS MARÉS — Premium CSS
   Custom Cursor, Scroll Reveal, Lightbox, Page Transitions, WhatsApp FAB
════════════════════════════════════ */

/* Custom cursor removed at user request */

/* ─── Scroll Reveal ─────────────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Page Transition Overlay ────────────────────── */
#pm-page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base, #0d1e30);
  z-index: 99990;
  pointer-events: none;
  transition: opacity 0.38s ease;
  opacity: 1;
}

#pm-page-overlay.leaving {
  opacity: 0;
}

#pm-page-overlay.entering {
  opacity: 1;
  pointer-events: all;
}

/* ─── WhatsApp FAB ──────────────────────────────── */
#pm-wa-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, opacity 0.4s;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
}

#pm-wa-fab.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#pm-wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.pm-wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Lightbox ──────────────────────────────────── */
#pm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#pm-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.pm-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  /* backdrop-filter removed for 60fps performance */
}

.pm-lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  transition: opacity 0.15s;
}

.pm-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: background 0.2s;
}

.pm-lb-close:hover { background: rgba(255,255,255,0.2); }

.pm-lb-prev,
.pm-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: background 0.2s, transform 0.2s;
}

.pm-lb-prev { left: 20px; }
.pm-lb-next { right: 20px; }
.pm-lb-prev:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.08); }
.pm-lb-next:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.08); }

@media (max-width: 640px) {
  .pm-lb-prev { left: 8px; width: 40px; height: 40px; font-size: 24px; }
  .pm-lb-next { right: 8px; width: 40px; height: 40px; font-size: 24px; }
}

.pm-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: var(--font-sans, sans-serif);
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ─── Season Countdown Bar ──────────────────────── */
.pm-season-bar {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.08));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary, #a0b4c8);
  text-align: center;
  letter-spacing: 0.02em;
}

.pm-season-bar strong {
  color: var(--gold, #c9a84c);
}

/* ─── Schema.org (visual: Badges de Avaliação) ──── */
.pm-schema-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold, #c9a84c);
  font-size: 0.9rem;
  font-weight: 600;
}
