/* SKG TEXTILES - ACCESSIBILITY & PERFORMANCE FIXES */
/* Fix PageSpeed Insights warnings - Dec 27, 2025 */

/* COLOR CONTRAST FIXES */
h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
  font-weight: 600;
}

p, li, td, span {
  color: #222222;
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

button, .btn {
  color: #ffffff;
  background-color: #0066cc;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button:hover, button:focus {
  background-color: #0052a3;
  outline: 2px solid #ffffff;
}

/* FOCUS INDICATORS */
:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* MOBILE OPTIMIZATION */
button, a, input[type="button"], input[type="submit"] {
  min-width: 48px;
  min-height: 48px;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  input, textarea, select {
    font-size: 16px;
  }
}

/* IMAGE OPTIMIZATION */
img {
  loading: lazy;
  decoding: async;
  max-width: 100%;
  height: auto;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #f0f0f0;
  }
  h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
  }
  a {
    color: #66b3ff;
  }
}

/* SKIP LINK ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0066cc;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* UTILITY CLASSES */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}