html {
  scroll-behavior: smooth;
}

/* Hide scrollbar on horizontal nav */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

section, footer, header {
  overflow-x: clip;
}


/* Header scroll effect */
header.header-solid {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

/* Hero background gradient */
.hero-bg {
  background: linear-gradient(to bottom, #99f6e4, #f0fdfa) !important;
}

/* Hero text spacing */
.hero-title {
  line-height: 1.35 !important;
}

.hero-subtitle {
  line-height: 1.8 !important;
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}

[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="fade"] { transform: none; }

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* Section wave dividers */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: contain;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: calc(100vw - 2rem);
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-overlay img.slide-left {
  animation: slideLeft 0.3s ease forwards;
}

.lightbox-overlay img.slide-right {
  animation: slideRight 0.3s ease forwards;
}

@keyframes slideLeft {
  0%   { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  0%   { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .lightbox-overlay img {
    max-width: 85vw;
    max-height: 85vh;
  }

  .lightbox-btn {
    width: 48px;
    height: 48px;
  }

  .lightbox-btn svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-close svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-counter {
    bottom: 1.5rem;
    font-size: 0.875rem;
  }
}

/* Nav buttons: hide on touch devices, show on hover for desktop */
@media (hover: none) {
  .carousel .carousel-prev,
  .carousel .carousel-next,
  .depoimento-prev,
  .depoimento-next,
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (hover: hover) {
  .carousel .carousel-prev,
  .carousel .carousel-next {
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s;
  }

  .carousel:hover .carousel-prev,
  .carousel:hover .carousel-next {
    opacity: 1;
  }

  .depoimento-prev,
  .depoimento-next {
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s;
  }

  #depoimentos-carousel:hover .depoimento-prev,
  #depoimentos-carousel:hover .depoimento-next {
    opacity: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s;
  }

  .lightbox-overlay:hover .lightbox-prev,
  .lightbox-overlay:hover .lightbox-next {
    opacity: 1;
  }
}

/* Depoimentos carousel */
.depoimento-slide {
  transition: opacity 0.4s ease;
}

.depoimento-slide.fading {
  opacity: 0;
}

/* Booking modal */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  position: relative;
  background: #FAFAF7;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  margin: auto 1rem;
  max-width: 640px;
  width: 100%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.booking-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #2D3B36;
  opacity: 0.4;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}

.booking-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}
