/* ============================================
   Hair_207 — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #065f46;
  color: #fefdf8;
}

/* ============================================
   NAVBAR
   ============================================ */
#site-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
  background-color: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

#site-header.scrolled .logo-text {
  color: #064e3b;
}

/* ============================================
   FLOATING CARD ANIMATIONS
   ============================================ */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -2s;
}

.card-3 {
  animation-delay: -4s;
}

.card-4 {
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
  cursor: pointer;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   Only active when JS is enabled and user
   prefers motion. Content is visible by default.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* Staggered delays */
  .js-enabled .reveal:nth-child(1) { transition-delay: 0.05s; }
  .js-enabled .reveal:nth-child(2) { transition-delay: 0.12s; }
  .js-enabled .reveal:nth-child(3) { transition-delay: 0.19s; }
  .js-enabled .reveal:nth-child(4) { transition-delay: 0.26s; }
  .js-enabled .reveal:nth-child(5) { transition-delay: 0.33s; }
  .js-enabled .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
  transition: opacity 0.3s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
#mobile-menu-btn.active #bar1 {
  transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.active #bar2 {
  opacity: 0;
}

#mobile-menu-btn.active #bar3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   FORM
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23065f46' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }
}
