/* ==========================================================================
   Luxury Spa & Beauty - Custom Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --cream: #f8f3ea;
  --sand: #ece2cf;
  --sage: #5f7359;
  --gold: #a9853f;
  --ink: #2b3029;
  --card: #fffdf8;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Mode Preferences */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1c201b;
    --sand: #2a2f27;
    --sage: #9db496;
    --gold: #d2b070;
    --ink: #eee8dc;
    --card: #252a23;
  }
}

:root[data-theme="dark"] {
  --cream: #1c201b;
  --sand: #2a2f27;
  --sage: #9db496;
  --gold: #d2b070;
  --ink: #eee8dc;
  --card: #252a23;
}

/* Base Typography & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px));
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Image Zoom & Hover Effects */
.zoom {
  overflow: hidden;
}

.zoom > * {
  transition: transform 1.2s ease;
}

.zoom:hover > * {
  transform: scale(1.05);
}

/* Card Lift & Shadow Effect */
.lift {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(40, 45, 35, 0.35);
}

/* Modal Pop Animation */
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pop {
  animation: pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form Input Common Styles */
.form-input {
  width: 100%;
  background-color: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(169, 133, 63, 0.2);
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .pop {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
