/* LibertyX Bitcoin ATM — Custom Styles */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: #f3bba8;
  color: #6a261c;
}

/* Thin line accent utility */
.line-accent {
  width: 48px;
  height: 1px;
  background: #d9bc8a;
}

/* Navbar */
.nav-glass {
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 188, 138, 0.12);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-glass.scrolled {
  box-shadow: 0 1px 0 rgba(200, 164, 106, 0.12);
  background: rgba(253, 252, 250, 0.95);
}

/* Mobile menu */
.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

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

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

/* Scroll reveal — progressive enhancement */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #d9bc8a;
  border-radius: 3px;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c23e22;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:translate-y-\[-2px\] {
  transform: translateY(-2px);
}
