/* 
   99plus Unisex Salon & Spa - Custom Styles
   Premium, Elegant, and Responsive Static Website
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Base Customizations & Theme --- */
:root {
  --color-charcoal: #121212;
  --color-dark-gray: #1a1a1a;
  --color-cream: #FAF9F6;
  --color-ivory: #F5F2EB;
  --color-gold: #D4AF37;
  --color-gold-hover: #C5A028;
  --color-gold-light: #E5C453;
  --color-gold-muted: #AA8B2C;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-logo: 'Caveat', cursive;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.font-logo-script {
  font-family: var(--font-logo);
}

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--color-charcoal);
  border: 2px solid var(--color-cream);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-muted);
}

/* --- Glassmorphism Elements --- */
.glass-nav {
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* --- Animations & Transitions --- */
.transition-premium {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Animation classes (applied by Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for scroll animations */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Image hover effects */
.hover-zoom-container {
  overflow: hidden;
}
.hover-zoom-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-zoom-container:hover .hover-zoom-img {
  transform: scale(1.06);
}

/* --- FAQ Accordion --- */
.faq-header {
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-header:hover {
  border-color: var(--color-gold);
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content-wrapper {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-gold);
}

/* --- Custom Lightbox for Gallery --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px;
  z-index: 101;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 15px;
  text-align: center;
}

/* Hide scrollbar when lightbox is active */
.lightbox-open {
  overflow: hidden;
}

/* --- Review Carousel Controls --- */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

/* --- Muted gold focus ring for accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-fade-in-up {
    animation: none;
    opacity: 1;
  }
  .faq-content-wrapper, .carousel-track, .lightbox-image, .lightbox {
    transition: none !important;
  }
  .hover-zoom-img {
    transform: none !important;
  }
}
