/* Custom styles for Swindler Ink */

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

/* Scroll reveal base — content is visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

/* Only apply animation when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
  color: #0f172a;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}

.faq-content.open {
  max-height: 300px;
}

.faq-icon {
  flex-shrink: 0;
}

/* Hero gradient overlay ensures text readability */
#hero {
  background-attachment: fixed;
}

/* Subtle hover effects on gallery images */
.group img {
  will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: #99f6e4;
  color: #0f172a;
}
