/* ─── CUSTOM STYLES ─── */

/* Gradient hero */
.hero-gradient {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 30%, #7e22ce 50%, #9333ea 70%, #581c87 100%);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Card hover effect */
.card-hover {
  transform: translateY(0);
}
.card-hover:hover {
  transform: translateY(-4px);
}

/* Pulse animation for hero orbs */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* ─── SCROLL REVEAL (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .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.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.05s; }
  .reveal:nth-child(3) { transition-delay: 0.1s; }
  .reveal:nth-child(4) { transition-delay: 0.15s; }
  .reveal:nth-child(5) { transition-delay: 0.2s; }
  .reveal:nth-child(6) { transition-delay: 0.25s; }
}

/* Always visible fallback if JS is disabled */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── HEADER SCROLL STATE ─── */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(59, 7, 100, 0.3);
}

/* ─── NEIGHBORHOOD CARDS ─── */
.neighborhood-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.neighborhood-card:hover::after {
  border-color: rgba(251, 191, 36, 0.4);
}

/* ─── BACK TO TOP ─── */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── FORM FOCUS STATES ─── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}
