/* Additional custom styles for Asylum Tattoos */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #f5f0e8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .stat-card { animation: none; }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .stat-card {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin-bottom: 1rem;
    display: inline-block;
    animation: none;
  }
  .stat-cards-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }
  section { padding: 5rem 0; }
  .cta-card { padding: 2.5rem 1.5rem; }
  .gallery-item:nth-child(1) { grid-row: span 1; aspect-ratio: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
}

/* Large desktop */
@media (min-width: 1920px) {
  .max-w-7xl { max-width: 80rem; }
}
