/* ============================================
   MAGNIFICENT NAIL & BEAUTY SALON
   Custom Styles
============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #7B2D3B;
  color: #fefdfb;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
  background: #d13f66;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #962540;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Service Cards --- */
.service-card {
  border: 1px solid rgba(123, 45, 59, 0.08);
}

.service-card:hover {
  border-color: rgba(123, 45, 59, 0.2);
  transform: translateY(-4px);
}

/* --- Gallery --- */
.gallery-item {
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.08);
}

.gallery-item:hover {
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.18);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.2);
}

/* --- Header Scroll State --- */
#header.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08), 0 4px 30px rgba(123, 45, 59, 0.06);
}

#header.scrolled #logo-text {
  color: #7B2D3B;
}

/* --- Nav Links --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #d13f66;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* --- Mobile Menu --- */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* --- Hamburger Animation --- */
#menu-toggle.active #bar1 {
  transform: translateY(2px) rotate(45deg);
}
#menu-toggle.active #bar2 {
  opacity: 0;
  transform: scaleX(0);
}
#menu-toggle.active #bar3 {
  transform: translateY(-2px) rotate(-45deg);
}

/* --- Form Select Styling --- */
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='%239ca3af' 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;
}

select:focus {
  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='%23d13f66' 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");
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d13f66;
  outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .reveal {
    transform: translateY(20px);
  }
}

/* --- Print --- */
@media print {
  #header, #mobile-menu { display: none; }
  body { background: white; }
}
