/* 
  Lyn's Thai Massage & Spa - Custom Stylesheet
  Colors:
  - Primary Green: #3CB043 / #4CD064
  - Secondary White: #FFFFFF
  - Neutral Dark (Bronze/Charcoal): #3A3532
  - Suggested Accent (Soft Mint): #EAF7EC
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #3CB043;
  --primary-light: #4CD064;
  --neutral-dark: #2D2927; /* Updated to match footer #2D2927 */
  --neutral-light: #EAF7EC;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-dark);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
}

/* Glassmorphism Navigation */
.glass-nav {
  background-color: rgba(45, 41, 39, 0.95); /* #2D2927 - Matches Footer */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
  background-color: rgba(45, 41, 39, 0.98); /* #2D2927 - Matches Footer */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Premium Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2D2927; /* #2D2927 - Matches Footer */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

#preloader.loaded {
  transform: translateY(-100%);
}

.preloader-logo {
  animation: logoPulse 2s ease-in-out infinite alternate;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(76, 208, 100, 0.15);
  border-radius: 50%;
  border-top-color: var(--primary-light); /* Green Spinner Accent */
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
  margin-top: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--neutral-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Hover effects for elements */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(58, 53, 50, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(58, 53, 50, 0.1);
  border-color: rgba(76, 208, 100, 0.2);
}

/* Animated Underline Effect */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.hover-underline-white {
  position: relative;
}

.hover-underline-white::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #FFFFFF;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-white:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Review Snapping Carousel Adjustments */
.reviews-track::-webkit-scrollbar {
  display: none;
}

/* Booking form inputs custom focus */
.custom-input {
  border: 1px solid rgba(58, 53, 50, 0.15);
  transition: all 0.3s ease;
}

.custom-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 208, 100, 0.15);
}

/* Custom overlay for Hero */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(58, 53, 50, 0.6) 0%, rgba(58, 53, 50, 0.4) 50%, rgba(58, 53, 50, 0.7) 100%);
}

/* Floral Line decoration styling */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--primary);
}

.floral-divider::before, .floral-divider::after {
  content: '';
  height: 1px;
  width: 50px;
  background: linear-gradient(to right, transparent, var(--primary));
}

.floral-divider::after {
  background: linear-gradient(to left, transparent, var(--primary));
}

/* Smooth active state for tabs */
.tab-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
