/* ==========================================================================
   Katie Harrison Hair Studio - Custom Editorial Stylesheet
   ========================================================================== */

:root {
  --ivory: #FAF7F2;
  --champagne: #E9DCCB;
  --rose: #C99B91;
  --mocha: #8A7165;
  --espresso: #342923;
  --sage: #A5A995;
}

body {
  background-color: var(--ivory);
  color: var(--espresso);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Animated navigation underline */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--rose);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Smooth scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero subtle entrance keyframes */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-animate-1 { animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.hero-animate-2 { animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.hero-animate-3 { animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.hero-animate-4 { animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #D6C5B3;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8A7165;
}

/* FAQ Accordion smooth height transition */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}
.faq-inner {
  overflow: hidden;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Gallery image zoom on hover */
.gallery-card img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-card:hover img {
  transform: scale(1.05);
}

/* Glassmorphism utility card */
.glass-editorial {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 41, 35, 0.08);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-animate-1, .hero-animate-2, .hero-animate-3, .hero-animate-4 {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}
