Accessibility Improvements for MNKL Website

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

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

/* Visually hidden content for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Form improvements */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

/* Improved button accessibility */
.burger {
    background: transparent;
    border: 2px solid transparent;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.burger:focus {
    border-color: #0066cc;
    outline: none;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    transform: rotate(-45deg);
}


/* Screen reader improvements for sliders */
.slideshow img {
    max-width: 100%;
    height: auto;
}

.slide[aria-hidden="true"] {
    display: none;
}

.slide:not([aria-hidden="true"]) {
    display: block;
}

/* Improved color contrast */
.text-muted {
    color: #6c757d !important;
}

/* Social media links improvements */
.social-media a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 4px;
}

.social-media a:focus {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Form validation states */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
    background-color: #fff5f5;
}

input:valid:not(:focus):not(:placeholder-shown),
textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #198754;
    background-color: #f0fff4;
}

/* Loading spinner accessibility */
#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 8px;
}

#loading-spinner[aria-hidden="true"] {
    display: none;
}

/* Address styling for semantic HTML */
address {
    font-style: normal;
}

/* Menu booklet accessibility */
.booklet-item {
    display: block;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.booklet-item:hover,
.booklet-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* Improve heading hierarchy for screen readers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1.3;
}

/* Table accessibility (if tables are used) */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Print styles for accessibility */
@media print {

    .skip-link,
    .burger,
    .off-canvas,
    .bg-animation,
    .bg-animation-bottom {
        display: none !important;
    }

    a::after {
        content: " (" attr(href) ")";
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
}

/* Font size adjustments for better readability */
@media (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }

    .small {
        font-size: 1rem;
    }
}

/* Ensure adequate touch targets on mobile */
@media (max-width: 767px) {

    button,
    a,
    input,
    textarea,
    select {
        min-height: 44px;
        min-width: 44px;
    }

    .social-media a {
        padding: 0.75rem;
    }
}