/* Naturally Massage & Wellness - Global Style Sheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-purple: #4b2886;
  --primary-purple-hover: #3d206d;
  --dark-charcoal: #211f20;
  --lavender-mist: #faf5ff;
  --amber-gold: #bfa15f;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Custom Scroll Behavior */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--dark-charcoal);
  background-color: #ffffff;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

/* Premium Preloader Styles */
.preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff; /* Clean white background */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* Glassmorphic Navigation */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Custom Scroll-Snapping Carousel for Reviews */
.reviews-track::-webkit-scrollbar {
  display: none;
}

/* CSS Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* Custom CSS Helpers */
.transition-luxury {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-luxury:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(75, 40, 134, 0.1), 0 10px 10px -5px rgba(75, 40, 134, 0.04);
}

/* Responsive utilities */
.mobile-fab {
  box-shadow: 0 4px 14px 0 rgba(75, 40, 134, 0.39);
}

/* Custom Image Overlays for Hero sections */
.hero-overlay {
  background: linear-gradient(to right, rgba(33, 31, 32, 0.55) 30%, rgba(33, 31, 32, 0.20) 100%);
}

/* Scroll Offset for Sticky Header */
#george, #kristin, #kristy, #emma, #elise, #rhys, #denise, #bec, #monika {
  scroll-margin-top: 100px;
}

/* Infinite Marquee Scroll Animations */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-scroll-left {
  display: flex;
  width: max-content;
  animation: scroll-left 65s linear infinite;
}

.animate-scroll-right {
  display: flex;
  width: max-content;
  animation: scroll-right 65s linear infinite;
}

.animate-scroll-left:hover,
.animate-scroll-right:hover {
  animation-play-state: paused;
}

/* Fix for image head-cropping: anchor all cards and featured images to top center */
.aspect-video img,
#blog-grid img,
#post-thumbnail,
.blog-content img {
  object-position: top center !important;
}
