/* =========================================================
   ANIMATIONS — text reveals, scroll-triggered, micro
   ========================================================= */

/* Fade up entrance */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.15s; }
.fade-up.delay-2 { transition-delay: 0.3s; }
.fade-up.delay-3 { transition-delay: 0.45s; }
.fade-up.delay-4 { transition-delay: 0.6s; }

/* Fade in left/right */
.fade-left, .fade-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero title - typewriter / line stagger */
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.4s; }

@keyframes lineReveal {
  to { transform: translateY(0); }
}

/* Hero eyebrow & subtitle drop-in */
.hero-eyebrow {
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards;
  animation-delay: 0.1s;
}
.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
}
.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating shimmer on accent text */
.shimmer {
  background: linear-gradient(90deg,
    var(--brand-red) 0%,
    var(--brand-red-light) 30%,
    var(--brand-red) 60%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerMove 3s linear infinite;
}
@keyframes shimmerMove {
  from { background-position: -100% 0; }
  to   { background-position: 100% 0; }
}

/* Counter pulse */
.counter-pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Float */
.float-anim {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .booking-widget { margin-top: -30px; padding: 1.25rem; }
  .hero { min-height: 600px; }
  .about-teaser .about-img-wrap::before,
  .about-teaser .about-img-wrap::after { display: none; }
  .years-badge { padding: 0.75rem 1rem; }
  .years-badge .num { font-size: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .menu-card { flex-direction: column; }
  .menu-card .img-wrap { width: 100%; height: 180px; flex: none; }
  .booking-modal .room-summary { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .whatsapp-float {
    bottom: 15px; right: 15px;
    width: 50px; height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .booking-widget { padding: 1rem; margin-top: -20px; }
  .booking-widget .widget-title { font-size: 1.25rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .footer-bottom { font-size: 0.8rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* Print */
@media print {
  .navbar-brand-p3, footer, .whatsapp-float, .scroll-indicator { display: none !important; }
  .hero { height: auto; min-height: 0; color: var(--brand-black); }
  .hero::before { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero::before { animation: none; }
}
