/* Mery B Cannabis Club — custom styles */

:root {
  --espresso: #2A221D;
  --sand: #D8C2A3;
  --cream: #F5F1E8;
}

::selection {
  background: #6E9D53;
  color: #F5F1E8;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #5C4332; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--espresso); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-feature {
  background: rgba(245, 241, 232, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(216, 194, 163, 0.35);
}

.glass-light {
  background: rgba(245, 241, 232, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px -20px rgba(42, 34, 29, 0.4);
}

.glass-dark {
  background: rgba(42, 34, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(245, 241, 232, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 30px -12px rgba(42, 34, 29, 0.25);
}
#navbar.scrolled #nav-brand,
#navbar.scrolled #nav-links { color: var(--espresso); }
#navbar.scrolled .nav-link:hover { color: #4E7A3A; }

/* Nav link underline animation */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
