/* ==========================================================
   Just Relax Thai Spa — custom styles layered on top of Tailwind CDN
   Design system: deep plum + terracotta gold + warm cream
   Type: Cormorant Garamond (display) + Jost (body/UI)
   ========================================================== */

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
}

h1, h2, h3, .font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Subtle fade/slide-in for hero content */
[data-aos] {
  animation: fadeUp 0.9s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gold underline hover effect for nav links */
header nav ul li a {
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1.5px;
  background-color: #c8632b;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

/* Gentle pulse on primary CTAs to draw the eye without being annoying */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 10px 40px -10px rgba(200, 99, 43, 0.45); }
  50%      { box-shadow: 0 10px 44px -6px rgba(200, 99, 43, 0.65); }
}

.shadow-glow {
  animation: softPulse 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #e6a06b;
  border-radius: 8px;
}

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

/* Selection color */
::selection {
  background: #f0c7a3;
  color: #241726;
}

/* Service card image zoom-esque hover polish (in case images added later) */
#services img {
  transition: transform 0.5s ease;
}

#services .group:hover img {
  transform: scale(1.05);
}

/* Gallery hover polish */
#gallery img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

#gallery img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Form focus ring polish */
input, select, textarea {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Back to top button entrance */
button[aria-label="Back to top"] {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button[aria-label="Back to top"]:hover {
  transform: translateY(-3px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  [data-aos],
  .shadow-glow {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
