/* ==========================================================================
   POUSADA BRASITA - CUMBUCO, CE
   Design System & Custom Animations
   Padronização de Engenharia Visual Alocare
   ========================================================================== */

:root {
  --color-primary: #0f3d3e;
  --color-primary-dark: #092829;
  --color-primary-light: #165b5c;
  --color-secondary: #d97706;
  --color-secondary-hover: #b45309;
  --color-accent: #e07a5f;
  --color-sand: #faf7f2;
  --color-sand-dark: #f0eae1;
  --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(15, 61, 62, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !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);
}

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

.gold-line-center {
  position: relative;
  display: block;
}
.gold-line-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  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; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  padding: 12px 0 24px 0;
}

.reviews-draggable-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.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.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(15, 61, 62, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-booking {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -15px rgba(15, 61, 62, 0.18), 0 0 0 1px rgba(15, 61, 62, 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.8), 0 20px 40px -15px rgba(15, 61, 62, 0.18);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 18px rgba(217, 119, 6, 0), 0 25px 50px -12px rgba(217, 119, 6, 0.35);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 20px 40px -15px rgba(15, 61, 62, 0.18), 0 0 0 1px rgba(15, 61, 62, 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.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Modal Transitions */
.modal-backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(9, 40, 41, 0.85);
}

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

.faq-item.active .faq-answer {
  max-height: 350px;
}

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

/* Input custom date reset */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  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;
}
