/* ============================================
   LUMIERE SOVEREIGNTY - MARKET DOMINANCE UPGRADES
   Benchmarked against: La Mer, Augustinus Bader, 
   111Skin, Dr. Barbara Sturm, SK-II, La Prairie
   ============================================ */

/* ============================================
   1. ENTRANCE ANIMATION (La Mer / La Prairie style)
   Brand reveal on page load - cinematic first impression
   ============================================ */
@keyframes brand-entrance {
  0% { opacity: 0; transform: scale(1.05); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes text-reveal-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes text-reveal-down {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes line-expand {
  0% { width: 0; opacity: 0; }
  100% { width: 60px; opacity: 1; }
}

@keyframes gentle-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.45; }
}

.hero-brand-zone {
  animation: brand-entrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-brand {
  animation: text-reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  animation-fill-mode: both;
}

.hero-brand-sub {
  animation: text-reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  animation-fill-mode: both;
}

.hero-tagline {
  animation: text-reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
  animation-fill-mode: both;
}



.hero-services {
  animation: text-reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* ============================================
   2. PARALLAX DEPTH (La Mer / Dr. Sturm style)
   Subtle depth movement on scroll for hero and section bgs
   ============================================ */

.section-dark::before,
.section-pink::before {
  animation: gentle-breathe 10s ease-in-out infinite;
  will-change: opacity;
}

/* ============================================
   3. REFINED SCROLL ANIMATIONS
   Staggered, cinematic reveals (La Prairie style)
   Replace basic fade-in with directional reveals
   ============================================ */
@keyframes slide-in-left {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* Gold line animation on scroll */
.gold-line {
  animation: line-expand 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================
   4. GLASSMORPHISM CARDS (111Skin / Augustinus Bader style)
   Frosted glass effect on treatment and testimonial cards
   ============================================ */
.treatment-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(248, 200, 104, 0.08);
  transition: 
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(248, 200, 104, 0.12);
  border-color: rgba(248, 200, 104, 0.2);
}

.testimonial-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(248, 200, 104, 0.15);
}

.pillar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================
   5. ANIMATED TRUST MARQUEE (common in luxury brands)
   Replaces static trust bar with elegant scrolling ticker
   ============================================ */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: var(--space-4) 0;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.trust-bar:hover {
  opacity: 1;
}

.trust-bar-inner {
  display: inline-flex;
  gap: var(--space-10);
  animation: marquee-scroll 45s linear infinite;
}

.trust-badge span {
  font-size: var(--text-xs);
}

.trust-badge {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   6. ENHANCED BUTTON EFFECTS
   Premium hover states (Augustinus Bader / La Mer style)
   ============================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 200, 104, 0.3),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #D4A24A;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover::after {
  width: 100%;
}

/* ============================================
   7. TYPOGRAPHY REFINEMENTS
   Tighter hierarchy, more editorial feel
   ============================================ */

/* Section titles: add subtle letter-spacing like 111Skin */
.section-title {
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Section subtitles: refined line-height */
.section-subtitle {
  line-height: 1.8;
  letter-spacing: 0.02em;
}


/* Lead quote: more editorial styling */
.about-story .lead {
  border-left: 3px solid rgba(245, 240, 232, 0.5);
  padding-left: var(--space-6);
  margin-left: 0;
}

/* Treatment card names: more authority */
.treatment-name {
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ============================================
   8. ENHANCED GOLD INTERSECTION DIVIDERS
   Shimmer animation for 4D depth
   ============================================ */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-intersection {
  background: linear-gradient(90deg, transparent 0%, rgba(166,116,32,0.3) 15%, rgba(212,162,74,0.6) 35%, rgba(251,231,160,0.7) 50%, rgba(212,162,74,0.6) 65%, rgba(166,116,32,0.3) 85%, transparent 100%);
  background-size: 200% 100%;
  animation: gold-shimmer 4s ease-in-out infinite;
}

/* ============================================
   9. SUBTLE HOVER GLOW ON NAV LINKS
   (La Mer / La Prairie style navigation)
   ============================================ */
.nav-desktop a {
  position: relative;
}

.nav-desktop a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: radial-gradient(ellipse, rgba(248, 200, 104, 0.6), transparent);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  filter: blur(2px);
}

.nav-desktop a:hover::before {
  width: 40px;
}

/* ============================================
   10. SMOOTH HEADER TRANSITION
   Glassmorphism header on scroll
   ============================================ */
.site-header {
  transition: 
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(99, 38, 46, 0.3);
}

/* ============================================
   11. LOGO HOVER MICROINTERACTION
   ============================================ */
.logo:hover .logo-img {
  transform: rotate(3deg) scale(1.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-text-group {
  opacity: 0.85;
}

/* ============================================
   12. ENHANCED WHATSAPP BUTTON
   Pulse animation for attention
   ============================================ */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 24px rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

/* ============================================
   13. FOOTER GOLD ACCENTS
   Enhanced footer headers with subtle 4D gold
   ============================================ */
/* Footer h4 metallic gradient is handled in style.css */

/* ============================================
   14. SELECTION COLOUR (brand-consistent)
   ============================================ */
::selection {
  background: rgba(166, 116, 32, 0.3);
  color: #F2EDE6;
}

/* ============================================
   15. SMOOTH SCROLL BEHAVIOUR
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   16. REFINED SPACING - More generous
   Industry leaders use 20-30% more whitespace
   ============================================ */
.section {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
}

.section-inner {
  max-width: 1100px;
}

/* More breathing room between sections */
.section-title {
  margin-bottom: var(--space-3);
}

.section-subtitle {
  margin: 0 auto var(--space-16);
}

/* ============================================
   17. TREATMENT CARD ENQUIRY TEXT
   More elegant CTA styling
   ============================================ */
.treatment-enquire {
  font-size: var(--text-xs);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(248, 200, 104, 0.15);
  transition: color 0.3s ease;
}

.treatment-card:hover .treatment-enquire {
  color: #F8C868;
}

/* ============================================
   18. REDUCED MOTION PREFERENCE
   Accessibility: respect user settings
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .trust-bar-inner {
    animation: none;
  }
  
  .gold-intersection {
    animation: none;
  }
}

/* ============================================
   19. REVIEW SECTION PINK BACKGROUND FIX
   Reviews should be on pink silk (alternating pattern)
   ============================================ */
#reviews-view {
  background: #B97D89;
  color: #F2EDE6;
  position: relative;
  overflow: hidden;
}

#reviews-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./assets/silk-pink.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

#reviews-view > * {
  position: relative;
  z-index: 1;
}

/* Reviews section heading: metallic bold white */
#reviews-view .section-title {
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #C8C0B8 0%,
    #E8E4DE 15%,
    #FFFFFF 30%,
    #F5F0E8 45%,
    #FFFFFF 50%,
    #F5F0E8 55%,
    #FFFFFF 70%,
    #E8E4DE 85%,
    #C8C0B8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFFFFF;
  text-shadow: none;
}

#reviews-view .reviews-stars {
  color: #D4A24A;
}

#reviews-view .reviews-rating {
  color: #F5F0E8;
  font-weight: 700;
}

#reviews-view .reviews-count {
  color: rgba(245, 240, 232, 0.8);
  font-weight: 600;
}

#reviews-view .testimonial-card {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 240, 232, 0.12);
  border-radius: 0;
}

#reviews-view .testimonial-stars {
  color: #D4A24A;
}

#reviews-view .testimonial-quote {
  color: #F5F0E8;
  font-weight: 600;
}

#reviews-view .testimonial-author {
  color: #F5F0E8;
  font-weight: 700;
}

#reviews-view .testimonial-role {
  color: rgba(245, 240, 232, 0.8);
  font-weight: 600;
}

#reviews-view .reviews-cta a {
  color: #F5F0E8;
  font-weight: 700;
}

#reviews-view .gold-line {
  background: linear-gradient(90deg, rgba(245,240,232,0.2), #F5F0E8, rgba(245,240,232,0.2));
}

#reviews-view::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0,16,8,0.15));
  pointer-events: none;
  z-index: 1;
}

#reviews-view .section-subtitle {
  color: #F5F0E8;
  font-weight: 700;
}
