/* Custom overrides and enhancements */

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

/* Selection color */
::selection {
  background: rgba(255, 92, 33, 0.3);
  color: #1a1a1a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
  background: #ff5c21;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff7a44;
}

/* Ensure all text on dark backgrounds is light */
.bg-charcoal-900 h1,
.bg-charcoal-900 h2,
.bg-charcoal-900 h3,
.bg-charcoal-900 h4 {
  color: #ffffff;
}

/* Ensure all text on light backgrounds is dark */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4 {
  color: #1a1a1a;
}

.bg-coral-50 h1,
.bg-coral-50 h2,
.bg-coral-50 h3,
.bg-coral-50 h4 {
  color: #1a1a1a;
}

/* Image loading placeholder */
img {
  background-color: #e5e5e5;
}

/* 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;
  }
}
