/* ========================================
   Simply Marvelous — Custom Styles
   Classic & Elegant Beauty Salon
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background: #9c1e3e;
  color: #fdf2f4;
}

/* Navbar Transitions */
#navbar.scrolled {
  background: rgba(253, 242, 244, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(103, 26, 44, 0.08);
}

.nav-logo-color {
  color: #3a0c14;
}

.nav-link-color {
  color: #3a0c14;
}

.nav-menu-btn span {
  background: #3a0c14;
}

/* Mobile Menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Mobile Menu Button Animation */
#menuBtn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active span:nth-child(2) {
  opacity: 0;
}

#menuBtn.active span:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

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

  img, .gallery-grid img, .reveal img {
    transition: none;
  }

  .group:hover img {
    transform: none;
  }
}

/* Prefers-reduced-motion fallback for reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Smooth Image Loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d44568;
  border-radius: 4px;
}

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

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #d44568;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Form Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c1e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Print Styles */
@media print {
  #navbar, #menuBtn, .reveal {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}
