/* ==========================================================================
   Stormy's Massage — Luxury Wellness Style System
   Brand Palette:
   - Primary Background: #090909
   - Secondary Dark: #151515
   - Elevated Dark: #1c1c1f
   - Hot Pink: #FF2E93
   - Soft Pink / Blush: #FF8FC4
   - Warm White: #F8F5F6
   - Muted Gray: #A8A3A6
   - Border Subtle: rgba(255, 255, 255, 0.08)
   ========================================================================== */

:root {
  --bg-primary: #090909;
  --bg-secondary: #151515;
  --bg-elevated: #1a1a1e;
  --bg-card: rgba(26, 26, 30, 0.7);
  --bg-glass: rgba(18, 18, 22, 0.75);
  
  --pink-hot: #FF2E93;
  --pink-hot-hover: #ff1284;
  --pink-soft: #FF8FC4;
  --pink-glow: rgba(255, 46, 147, 0.18);
  --pink-glow-subtle: rgba(255, 46, 147, 0.08);
  
  --text-white: #F8F5F6;
  --text-muted: #A8A3A6;
  --text-subtle: #737072;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-pink: rgba(255, 46, 147, 0.35);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pink-hot);
}

/* Selection */
::selection {
  background: var(--pink-hot);
  color: #ffffff;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Container */
.container-custom {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Subtle Ambient Glows */
.pink-radial-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-nav {
  background: rgba(9, 9, 9, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
}

.glass-nav.scrolled {
  background: rgba(9, 9, 9, 0.94);
  border-bottom: 1px solid rgba(255, 46, 147, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background-color: var(--pink-hot);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.875rem;
  border-radius: 9999px;
  border: 1px solid var(--pink-hot);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 46, 147, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--pink-hot-hover);
  border-color: var(--pink-hot-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 46, 147, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 46, 147, 0.12);
  border-color: var(--pink-soft);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-pill-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 46, 147, 0.09);
  border: 1px solid rgba(255, 46, 147, 0.25);
  color: var(--pink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--pink-hot);
  box-shadow: 0 0 8px var(--pink-hot);
}

/* Card Styling & Hover Elevation */
.premium-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 147, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--pink-glow-subtle);
}

.premium-card:hover::before {
  opacity: 1;
}

/* Service Card Specific */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 46, 147, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 46, 147, 0.12);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.2) 0%, rgba(17, 17, 19, 0.95) 100%);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Icon Box */
.icon-box-pink {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: rgba(255, 46, 147, 0.1);
  border: 1px solid rgba(255, 46, 147, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-hot);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.premium-card:hover .icon-box-pink,
.service-card:hover .icon-box-pink {
  background: rgba(255, 46, 147, 0.18);
  border-color: var(--pink-hot);
  box-shadow: 0 0 16px rgba(255, 46, 147, 0.3);
  transform: scale(1.05);
}

/* Form Styling */
.form-input {
  width: 100%;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--pink-hot);
  background: #18181c;
  box-shadow: 0 0 0 3px rgba(255, 46, 147, 0.18);
}

.form-input::placeholder {
  color: #636164;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #c4bfc2;
  margin-bottom: 0.375rem;
}

.form-error-msg {
  color: #ff5277;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-input {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* Custom Select Dropdown Arrow */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FF8FC4' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}

/* Date input icon color override */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(290deg);
  cursor: pointer;
}

/* Decorative Accents */
.pink-line {
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-hot), var(--pink-soft));
  border-radius: 1px;
}

/* Map Pin Styling */
.map-pulse-pin {
  position: relative;
  display: inline-block;
}

.map-pulse-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 46, 147, 0.4);
  animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* Fade up animation observer helpers */
.fade-up-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation active indicator */
.nav-link {
  position: relative;
  color: #c5c0c3;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--pink-hot);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: #ffffff;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #0d0d10;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1040;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal styles */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.booking-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-content {
  background: #141418;
  border: 1px solid rgba(255, 46, 147, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 46, 147, 0.15);
  border-radius: 1.5rem;
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal-overlay.open .booking-modal-content {
  transform: scale(1);
}

/* Toast alert notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #16161b;
  border: 1px solid rgba(255, 46, 147, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Sound Ambiance Control Button */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sound-toggle-btn:hover {
  background: rgba(255, 46, 147, 0.1);
  border-color: rgba(255, 46, 147, 0.3);
  color: var(--text-white);
}

.sound-toggle-btn.playing {
  background: rgba(255, 46, 147, 0.15);
  border-color: var(--pink-hot);
  color: var(--pink-soft);
}

/* Sound equalizer bars animation */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bar {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-toggle-btn.playing .sound-bar:nth-child(1) {
  animation: eqBounce 0.8s infinite ease-in-out alternate;
}
.sound-toggle-btn.playing .sound-bar:nth-child(2) {
  animation: eqBounce 0.6s infinite ease-in-out alternate 0.2s;
}
.sound-toggle-btn.playing .sound-bar:nth-child(3) {
  animation: eqBounce 1s infinite ease-in-out alternate 0.4s;
}

@keyframes eqBounce {
  from { height: 3px; }
  to { height: 12px; }
}

/* Media query responsiveness */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 3.25rem !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-headline {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
  }
  
  .section-headline {
    font-size: 2rem !important;
  }
  
  .quote-headline {
    font-size: 1.75rem !important;
  }
  
  .premium-card {
    padding: 1.5rem;
  }
  
  .toast-notice {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}
