/* ===================================
   JASMIN 2 DAY SPA — Custom Styles
   Design System: Organic Intelligence
   =================================== */

:root {
  --cream: #fcfbf9;
  --charcoal: #171717;
  --indigo: #4338ca;
  --border: #e5e5e5;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--cream); color: var(--charcoal); overflow-x: hidden; }

/* Cursor Spotlight */
#spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(67,56,202,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-300px, -300px);
}

@media (hover: none) {
  #spotlight { display: none; }
}

/* Particle Canvas */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  mix-blend-mode: difference;
}

.header-logo { color: #fff; text-decoration: none; }

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  position: relative;
  font-size: 13px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover::after { transform: scaleX(1); }

.header-cta {
  color: #fff;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s var(--ease);
  font-size: 12px;
}

.header-cta:hover { background: rgba(255,255,255,0.1); }

.cta-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.cta-phone-icon { display: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  #site-header { padding: 0 1.5rem; }
  .header-nav { display: none; }
  .cta-text { display: none; }
  .cta-phone-icon { display: block; }
}

/* ===== HERO ===== */
#hero { position: relative; background: var(--cream); z-index: 1; }

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.mesh-blob-1 {
  width: 50vw; height: 50vw;
  background: rgba(67,56,202,0.2);
  top: -10%; right: -10%;
}

.mesh-blob-2 {
  width: 40vw; height: 40vw;
  background: rgba(168,85,247,0.12);
  bottom: 10%; left: -5%;
  filter: blur(100px);
}

.mesh-blob-3 {
  width: 30vw; height: 30vw;
  background: rgba(67,56,202,0.08);
  top: 30%; left: 40%;
  filter: blur(80px);
}

@media (max-width: 768px) {
  .mesh-blob-1 { width: 60vw; height: 60vw; }
  .mesh-blob-2 { width: 50vw; height: 50vw; }
  .mesh-blob-3 { display: none; }
}

.hero-cta {
  position: relative;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: btn-pulse 3s ease-in-out infinite;
}

.hero-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(67,56,202,0.3);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0px rgba(67,56,202,0); }
  50% { box-shadow: 0 0 20px rgba(67,56,202,0.25); }
}

.wave-container {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 25vh;
  overflow: hidden;
  z-index: 2;
}

.wave-curve {
  position: absolute;
  bottom: 0; left: -10%;
  width: 120%; height: 200%;
  background: var(--cream);
  border-radius: 50% 50% 0 0;
  transform: translateY(20%);
}

.scroll-indicator {
  position: absolute;
  bottom: calc(25vh + 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-line {
  width: 2px; height: 40px;
  background: rgba(163,163,163,0.3);
  position: relative;
  border-radius: 1px;
}

.scroll-dot {
  width: 6px; height: 6px;
  background: var(--indigo);
  border-radius: 50%;
  position: absolute;
  top: 0; left: -2px;
}

/* ===== ZEN ANIMATION ===== */
#zen-animation { min-height: 400vh; position: relative; }

.zen-pin-wrapper {
  width: 100%; height: 100vh;
  position: relative;
  overflow: hidden;
}

.zen-canvas-container {
  width: 100%; height: 100%;
  position: absolute;
  top: 0; left: 0;
}

.zen-visual {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(67,56,202,0.06) 0%, transparent 60%);
}

/* Water */
.zen-water {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 12px;
  background: rgba(67,56,202,0.08);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0;
}

.zen-ripple {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(67,56,202,0.12);
  border-radius: 50%;
  opacity: 0;
}

.zen-ripple-1 { width: 120px; height: 30px; }
.zen-ripple-2 { width: 200px; height: 45px; }
.zen-ripple-3 { width: 300px; height: 60px; }

/* Stones */
.zen-stone {
  position: absolute;
  left: 50%;
  border-radius: 50% 50% 48% 52% / 60% 55% 45% 40%;
  background: linear-gradient(135deg, #555 0%, #333 50%, #222 100%);
  opacity: 0;
  transform: translateX(-50%);
}

.zen-stone-1 {
  bottom: calc(20% + 10px);
  width: 100px; height: 50px;
}

.zen-stone-2 {
  bottom: calc(20% + 50px);
  width: 70px; height: 38px;
}

.zen-stone-3 {
  bottom: calc(20% + 80px);
  width: 45px; height: 28px;
}

/* Lotus */
.zen-lotus {
  position: absolute;
  bottom: calc(20% + 100px);
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 60px;
  opacity: 0;
}

.lotus-petal {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px; height: 40px;
  background: rgba(67,56,202,0.3);
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
  transform: translateX(-50%) scaleY(0);
}

.lp-1 { transform: translateX(-50%) rotate(-40deg) scaleY(0); }
.lp-2 { transform: translateX(-50%) rotate(-20deg) scaleY(0); }
.lp-3 { transform: translateX(-50%) rotate(0deg) scaleY(0); }
.lp-4 { transform: translateX(-50%) rotate(20deg) scaleY(0); }
.lp-5 { transform: translateX(-50%) rotate(40deg) scaleY(0); }

.lotus-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--indigo);
  border-radius: 50%;
  opacity: 0;
}

.zen-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  padding: 2rem;
  z-index: 5;
}

/* ===== STORY ===== */
.story-parallax-img { will-change: transform; }

/* ===== STATS ===== */
.stats-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(67,56,202,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.stat-cell {
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
}

.stat-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .stat-cell:nth-child(2)::after { display: none; }
  .stat-cell:nth-child(odd):not(:last-child)::after { display: block; }
  .stat-cell:nth-child(even)::after { display: none; }
}

/* ===== SERVICES ACCORDION ===== */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  color: #a3a3a3;
  transition: color 0.3s var(--ease);
}

.accordion-trigger:hover .accordion-title,
.accordion-item[data-open="true"] .accordion-title {
  color: var(--charcoal);
}

.accordion-arrow {
  color: #a3a3a3;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.accordion-item[data-open="true"] .accordion-arrow {
  transform: rotate(180deg);
  color: var(--charcoal);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), padding 0.6s var(--ease);
  padding: 0 0;
}

.accordion-item[data-open="true"] .accordion-content {
  max-height: 300px;
  padding: 0 0 2rem 0;
}

.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(67,56,202,0.06);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: var(--charcoal);
}

/* ===== TESTIMONIALS ===== */
.testimonials-curve {
  position: absolute;
  top: -3rem; left: 0;
  width: 100%; height: 6rem;
  background: var(--charcoal);
  border-radius: 3rem 3rem 0 0;
}

.testimonials-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(67,56,202,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.testimonial-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 3rem;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .testimonial-card { padding: 2rem; }
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  padding: 0;
}

.dot.active {
  background: var(--indigo);
  transform: scale(1.3);
}

/* ===== GALLERY ===== */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}

@media (max-width: 1024px) { .gallery-masonry { columns: 2; } }
@media (max-width: 640px) { .gallery-masonry { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,23,23,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.gallery-pill {
  background: #fff;
  color: var(--charcoal);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

@media (hover: hover) {
  .gallery-item:hover { transform: translateY(-0.5rem); }
  .gallery-item:hover img { transform: scale(1.08); }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-item:hover .gallery-pill { transform: translateY(0); opacity: 1; }
}

/* ===== CONTACT ===== */
.contact-curve {
  position: absolute;
  top: -5rem; left: 0;
  width: 100%; height: 10rem;
  background: var(--charcoal);
  border-radius: 5rem 5rem 0 0;
}

.contact-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(67,56,202,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-primary {
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: btn-pulse 3s ease-in-out infinite;
}

.cta-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(67,56,202,0.3);
}

.cta-secondary {
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.cta-secondary:hover { transform: scale(1.02); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(67,56,202,0.2);
  color: var(--charcoal);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(67,56,202,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(67,56,202,0.4); }
