
.sr-only-focusable {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only-focusable:focus {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
    background: #4F46E5;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.mobile-sub-item {
    margin-left: 20px;
    font-size: 1rem;
    color: var(--pp-gray-600, #6b7280);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn, .nav-item {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll, 
    .floating-shape,
    .shimmer,
    .highlight-text,
    .btn-hero-primary,
    .btn-hero-secondary,
    .trust-stat,
    .trust-badge {
        animation: none !important;
        transition: none !important;
    }
    
    .hero {
        background-attachment: scroll !important;
        animation: none !important;
    }
    
    /* Disable complex transforms for better accessibility */
    * {
        transform: none !important;
    }
}

/* Performance optimizations */
.hero,
.floating-shape,
.trust-stat,
.btn {
    will-change: transform, opacity;
}

/* GPU acceleration for smooth animations */
.highlight-text,
.btn-hero-primary,
.btn-hero-secondary,
.trust-stat {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Focus management */
:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* Skip links styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #4F46E5;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
    
