/* ============================================
   TAMPOPO.LIVE — Arquitetura & Hospitalidade
   Design System & Custom Styles
   ============================================ */

:root {
  --color-primary: #141414;
  --color-primary-light: #222222;
  --color-primary-dark: #0a0a0a;
  --color-secondary: #fea500;
  --color-secondary-dark: #e09100;
  --color-secondary-light: #ffb733;
  --color-tertiary: #b45309;
  --color-surface: #faf8f5;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
  background-color: var(--color-surface);
}

body.modal-open {
  overflow: hidden;
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(135deg, #fea500 0%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GOLD / AMBER LINE DIVIDERS ===== */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #fea500, #ffb733);
  margin-top: 16px;
  border-radius: 2px;
}

.gold-line-center {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fea500, transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== SCROLL REVEAL (IntersectionObserver) ===== */
.reveal {
  transform: translateY(30px);
  opacity: 0;
  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 {
  transform: translateY(0);
  opacity: 1;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ===== HERO KEN BURNS & SCROLL INDICATOR ===== */
@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;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.scroll-indicator {
  animation: bounce-scroll 2s ease-in-out infinite;
}

/* ===== NAVBAR TRANSITIONS ===== */
#navbar {
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

#navbar.scrolled {
  background-color: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: #ffffff;
  border-color: rgba(254, 165, 0, 0.6);
}

.lang-btn.active {
  background-color: #fea500;
  color: #141414;
  border-color: #fea500;
}

/* ===== BOOKING BAR & VALIDATION ===== */
.glass-booking {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px -12px rgba(20, 20, 20, 0.18), 0 0 0 1px rgba(20, 20, 20, 0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

@keyframes booking-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 165, 0, 0.85), 0 24px 50px -12px rgba(20, 20, 20, 0.18);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 16px rgba(254, 165, 0, 0), 0 28px 55px -12px rgba(254, 165, 0, 0.35);
    transform: scale(1.012);
  }
  100% {
    box-shadow: 0 24px 50px -12px rgba(20, 20, 20, 0.18), 0 0 0 1px rgba(20, 20, 20, 0.06);
    transform: scale(1);
  }
}

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

.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ===== GUEST COUNTER ===== */
.guest-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  color: #141414;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #ffffff;
  line-height: 1;
}

.guest-btn:hover {
  background: #141414;
  border-color: #141414;
  color: #fea500;
}

.guest-btn:active {
  transform: scale(0.92);
}

/* ===== DATE INPUTS ===== */
input[type="date"] {
  color-scheme: light;
  cursor: pointer;
  min-height: 46px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ===== ROOM CARD EFFECTS ===== */
.room-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(20, 20, 20, 0.12);
  border-color: rgba(254, 165, 0, 0.45);
}

.room-card .room-image {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-image {
  transform: scale(1.06);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 61;
  width: 94%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #fea500;
  border-radius: 3px;
}

/* ===== AMENITY & INFO CARDS ===== */
.amenity-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-align: left;
  border: 1px solid #ece8e1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20, 20, 20, 0.08);
  border-color: rgba(254, 165, 0, 0.4);
}

.amenity-card .amenity-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.875rem;
  background: rgba(254, 165, 0, 0.14);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.amenity-card:hover .amenity-icon {
  background: #fea500;
  color: #141414;
}

.info-card {
  background: #ffffff;
  border-radius: 1.125rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #ece8e1;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: #fea500;
  box-shadow: 0 10px 28px rgba(254, 165, 0, 0.12);
  transform: translateY(-3px);
}

.info-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #141414, #2d2d2d);
  color: #fea500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ===== MARQUEE / CARROSSEL INFINITO DE AVALIAÇÕES ===== */
.reviews-draggable-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 16px 0;
}

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

.marquee-track {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.marquee-track.is-dragging {
  cursor: grabbing;
}

/* ===== BLINDAGEM DE TAGUEAMENTO GTM (ALOCARE) ===== */
.alocare-lead-click,
.alocare-lead-click * {
  box-sizing: border-box;
}

.alocare-lead-click * {
  pointer-events: none !important;
}

/* ===== FAQ ACCORDION ===== */
.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(254, 165, 0, 0.55);
  box-shadow: 0 6px 18px -4px rgba(20, 20, 20, 0.07);
}

/* ===== FLOATING CTA PULSE ===== */
@keyframes amber-glow {
  0% { box-shadow: 0 0 0 0 rgba(254, 165, 0, 0.65); }
  70% { box-shadow: 0 0 0 16px rgba(254, 165, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 165, 0, 0); }
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #141414;
}

::-webkit-scrollbar-thumb {
  background: #fea500;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e09100;
}
