/* ==========================================================================
   CHALÉS MAR AZUL
   Design System & Custom Animations
   Padronização de Engenharia Visual Alocare
   ========================================================================== */

:root {
  --color-primary: #0a364a;
  --color-primary-dark: #062230;
  --color-primary-light: #0f526e;
  --color-turquoise: #0d9488;
  --color-turquoise-light: #14b8a6;
  --color-secondary: #d97706;
  --color-secondary-hover: #b45309;
  --color-accent: #e07a5f;
  --color-sand: #faf8f5;
  --color-sand-dark: #f0ebe3;
  --color-cyan: #0284c7;
  --color-slate-900: #0f172a;
  --color-slate-700: #334155;
  --color-slate-500: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Header Sticky & Zero-Gap System (Mobile & Desktop)
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#top-notification-bar {
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

#site-header.scrolled #top-notification-bar {
  max-height: 0 !important;
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#site-header.scrolled #main-navbar {
  background-color: rgba(6, 34, 48, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.32) !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-slate-900);
  background-color: var(--color-sand);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

.custom-scrollbar::-webkit-scrollbar {
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.55);
  border-radius: 999px;
}

/* Linhas Divisórias Padronizadas (Alocare Standards) */
.gold-line {
  position: relative;
  display: block;
}
.gold-line::after {
  content: '';
  display: block;
  width: 64px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-turquoise-light), transparent);
  margin-top: 16px;
  border-radius: 2px;
}

.gold-line-center {
  position: relative;
  display: block;
}
.gold-line-center::after {
  content: '';
  display: block;
  width: 72px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para grids de cards */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Carrossel Arrastável de Avaliações */
.reviews-draggable-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 0 24px 0;
}

.reviews-draggable-container::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.reviews-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.reviews-track.is-dragging * {
  pointer-events: none;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.glass-dark {
  background: rgba(6, 34, 48, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-booking {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px -15px rgba(10, 54, 74, 0.2), 0 0 0 1px rgba(10, 54, 74, 0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

/* Efeito de Destaque / Pulso no Motor de Reservas */
@keyframes booking-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.75), 0 24px 48px -15px rgba(10, 54, 74, 0.2);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 18px rgba(217, 119, 6, 0), 0 28px 54px -12px rgba(217, 119, 6, 0.32);
    transform: scale(1.014);
  }
  100% {
    box-shadow: 0 24px 48px -15px rgba(10, 54, 74, 0.2), 0 0 0 1px rgba(10, 54, 74, 0.06);
    transform: scale(1);
  }
}

.highlight-booking-card {
  animation: booking-highlight-pulse 1.4s ease-out;
  border-color: #d97706 !important;
}

/* Floating WhatsApp Pulse */
@keyframes whatsapp-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: whatsapp-glow 2.4s infinite;
}

/* Ken Burns suave para Hero */
@keyframes hero-ken-burns {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.animate-kenburns {
  animation: hero-ken-burns 26s ease-in-out infinite;
}

/* Modal Transitions */
.modal-backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(6, 34, 48, 0.9);
}

/* Galeria Filtros */
.gallery-filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px -4px rgba(10, 54, 74, 0.35);
}

.gallery-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

/* Estilo para accordion de FAQ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
}

.faq-item.faq-open .faq-answer {
  max-height: 420px;
  opacity: 1;
  padding-bottom: 1.25rem !important;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(180deg);
}

.faq-item.faq-open {
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 6px 18px -4px rgba(10, 54, 74, 0.08);
}

/* Input custom date reset */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  filter: invert(0.2);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Input com erro de validação */
.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* ==========================================================================
   PADRÃO ALOCARE: GARANTIR CAPTURA EXATA DE CLIQUE NO GTM (EVITAR CLIQUE EM FILHOS)
   ========================================================================== */
.alocare-lead-click *,
#btn-submit-booking * {
  pointer-events: none !important;
}
