/* Night Thai Spa – Custom styles (works with Tailwind) */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar scrolled state */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
  color: #2C2C2C;
}

#navbar.scrolled .nav-link:hover {
  color: #B08D57;
}

#navbar.scrolled a span,
#navbar.scrolled .group span {
  color: #2C2C2C;
}

#navbar.scrolled #mobile-menu-btn {
  color: #2C2C2C;
}

/* Logo text color when scrolled */
#navbar.scrolled .font-serif {
  color: #2C2C2C !important;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B5B4B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Form focus ring polish */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Subtle entrance animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

/* Pricing toggle active state handled in JS */

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Image hover scale already in Tailwind groups */

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Better focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #B08D57;
  outline-offset: 2px;
}

/* ========== Floating Contact Widget ========== */
.float-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #B08D57;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(176,141,87,0.45);
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

.float-toggle-btn:hover {
  background: #8A6B3E;
  transform: scale(1.07);
}

.float-icon-msg,
.float-icon-close {
  position: absolute;
  transition: opacity 0.25s, transform 0.25s;
}

.float-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.float-toggle-btn.open .float-icon-msg {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.float-toggle-btn.open .float-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.float-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.float-call-btn { background: #2C2C2C; }
.float-call-btn:hover { background: #111; }
.float-wa-btn { background: #25D366; }
.float-wa-btn:hover { background: #1ebe5d; }

#float-widget.open .float-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#float-widget.open .float-call-btn { transition-delay: 0.07s; }
#float-widget.open .float-wa-btn { transition-delay: 0.03s; }
