/* Custom CSS for Advance Aesthetics Spa By Indra */

/* ==========================================================================
   CLASSIC AMPERSAND (&) TYPOGRAPHY
   Replaces the modern ball-terminal ampersand with a classic, timeless serif &
   ========================================================================== */
@font-face {
  font-family: 'ClassicAmpersand';
  src: local('Georgia'),
       local('Garamond'),
       local('Baskerville Old Face'),
       local('Baskerville'),
       local('Times New Roman'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

@font-face {
  font-family: 'ClassicAmpersand';
  font-weight: 500 900;
  src: local('Georgia Bold'),
       local('Georgia'),
       local('Garamond Bold'),
       local('Baskerville Bold'),
       local('Times New Roman Bold'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-DPNUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

@font-face {
  font-family: 'ClassicAmpersand';
  font-style: italic;
  src: local('Georgia Italic'),
       local('Garamond Italic'),
       local('Baskerville Italic'),
       local('Times New Roman Italic'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

/* Also override Playfair Display specifically for character '&' (U+0026) */
@font-face {
  font-family: 'Playfair Display';
  src: local('Georgia'),
       local('Garamond'),
       local('Baskerville Old Face'),
       local('Baskerville'),
       local('Times New Roman'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-weight: 500 900;
  src: local('Georgia Bold'),
       local('Georgia'),
       local('Garamond Bold'),
       local('Baskerville Bold'),
       local('Times New Roman Bold'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-DPNUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  src: local('Georgia Italic'),
       local('Garamond Italic'),
       local('Baskerville Italic'),
       local('Times New Roman Italic'),
       url('https://fonts.gstatic.com/l/font?kit=SlGDmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-6_RUA517VQ&skey=fde9b303600e495b&v=v33') format('truetype');
  unicode-range: U+0026;
  font-display: swap;
}

/* Global utility class for classic ampersand */
.amp, .classic-amp {
  font-family: 'ClassicAmpersand', 'Georgia', 'Garamond', 'Baskerville', 'Times New Roman', serif !important;
}

@layer utilities {
  .text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
  .text-shadow-gold {
    text-shadow: 0 2px 10px rgba(197, 168, 128, 0.35);
  }
}

/* Glassmorphism & Luxury Cards */
.luxury-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 208, 186, 0.5);
  box-shadow: 0 10px 30px -10px rgba(197, 168, 128, 0.15);
}

.luxury-glass-dark {
  background: rgba(30, 27, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
}

.luxury-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 208, 186, 0.7);
  box-shadow: 0 14px 34px -10px rgba(197, 168, 128, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  border-color: rgba(197, 168, 128, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -10px rgba(197, 168, 128, 0.22), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

/* Luxury Gradient Backgrounds */
.bg-spa-gradient {
  background: linear-gradient(135deg, #FDFBF9 0%, #FAF3EF 50%, #F5EBE6 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #D4B991 0%, #C5A880 50%, #A68353 100%);
}

.bg-rose-gradient {
  background: linear-gradient(135deg, #E8C5C8 0%, #D4A5A5 50%, #BF8C8C 100%);
}

.bg-gold-subtle {
  background: linear-gradient(180deg, rgba(245, 235, 230, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.bg-mesh-hero {
  background-color: #FAF8F5;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(232, 197, 200, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(197, 168, 128, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(245, 235, 230, 0.5) 0%, transparent 60%);
}

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

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

::-webkit-scrollbar-thumb {
  background: #D8BE9B;
  border-radius: 9999px;
  border: 2px solid #FAF8F6;
}

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

/* Elegant Hover Transitions */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(197, 168, 128, 0.22), 0 10px 15px -5px rgba(212, 165, 165, 0.12);
}

/* Subtle Shimmer Effect for VIP Buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -60%;
  }
  20% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

/* Pulsing Badge for Status */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.pulse-dot {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Modal Transitions */
.modal-backdrop {
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-in-out;
}

/* Smooth Scroll Padding for Fixed Header */
html {
  scroll-padding-top: 5.5rem;
}

/* ==========================================================================
   Active Navigation Link Indicator ("Rayita Activa")
   ========================================================================== */
.nav-link {
  position: relative;
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
  color: #645E59;
  font-weight: 500;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #C5A880, #937648);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.nav-link:hover {
  color: #B3946C;
}

.nav-link:hover::after {
  width: 100%;
  opacity: 0.75;
}

.nav-link.active {
  color: #937648 !important;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  opacity: 1;
  box-shadow: 0 1.5px 6px rgba(197, 168, 128, 0.5);
}

/* Mobile Active Navigation Link */
.mobile-nav-link {
  transition: all 0.25s ease;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
}

.mobile-nav-link.active {
  color: #937648 !important;
  font-weight: 600;
  background-color: #FAF6F2;
  border-left: 3.5px solid #C5A880;
  padding-left: 1rem;
}

.mobile-nav-link.active i {
  color: #C5A880 !important;
  transform: translateX(3px);
}

/* Form validation shake animation */
@keyframes shake-gentle {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: shake-gentle 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Entire form shake animation (horizontal left-right) */
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-10px); }
  30%, 60%, 90% { transform: translateX(10px); }
}

.animate-form-shake {
  animation: form-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  will-change: transform;
}

/* ==========================================================================
   CYBERSECURITY & ANTI-BOT ENHANCEMENTS
   ========================================================================== */

/* Honeypot trap: entirely invisible to legitimate users and screen-readers, but attractive to bots */
.hp-trap-container {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  z-index: -10 !important;
}

/* Cloudflare Turnstile container formatting */
.cf-turnstile-box {
  display: flex;
  justify-content: center;
  min-height: 0;
  transition: all 0.3s ease;
}

.cf-turnstile-box:empty {
  display: none;
}
