/* Accessibility and CSS Improvements for Academy */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2D6A4F;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* Improved Color Contrast */
.hero h1, .hero h2 {
  color: #1b3a26;
  font-weight: 700;
}

.why-section h2 {
  color: #1b3a26;
  font-weight: 700;
  margin-bottom: 3rem;
}

.why-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.15);
}

.why-card i {
  font-size: 2.5rem;
  color: #2D6A4F;
  margin-bottom: 1rem;
  display: block;
}

.why-card h3 {
  color: #1b3a26;
  font-size: 1.25rem;
  margin: 1rem 0;
  font-weight: 600;
}

.why-card p {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* FAQ Accessibility */
.faq-section h2 {
  color: #1b3a26;
  font-weight: 700;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-left: 4px solid #2D6A4F;
  padding-left: 1.5rem;
  background: #f9f8f6;
  padding: 1.5rem;
  border-radius: 8px;
}

.faq-item h3 {
  color: #1b3a26;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Footer Legal Links */
footer.legal-footer {
  background: #1b3a26;
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
  border-top: 3px solid #2D6A4F;
}

footer.legal-footer a {
  color: #52B788;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer.legal-footer a:hover {
  color: white;
  text-decoration: underline;
}

footer.legal-footer small {
  display: block;
  margin-top: 1rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* ARIA Labels */
[aria-label] {
  /* Visual feedback for elements with aria labels */
  border-radius: 4px;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 3px solid #2D6A4F;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #2D6A4F;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .why-card h3, .faq-item h3 {
    font-weight: 700;
  }
  
  .why-card p, .faq-item p {
    color: #1b3a26;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .why-card {
    padding: 1.5rem;
  }
  
  .why-card i {
    font-size: 2rem;
  }
  
  .why-card h3 {
    font-size: 1.1rem;
  }
  
  footer.legal-footer a {
    margin: 0 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .skip-link,
  nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}
