/* SEO Optimizations - Qualistage */

/* Lazy Loading Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Preload Critical Resources */
.preload-critical {
    font-display: swap;
}

/* Optimize Font Loading */
@font-face {
    font-family: 'Josefin Sans';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;700&display=swap');
}

/* Core Web Vitals Optimizations */
.hero-section {
    contain: layout style paint;
}

.event-card {
    contain: layout style;
}

/* Reduce Layout Shift */
.aspect-ratio {
    aspect-ratio: 16/9;
}

.aspect-ratio-square {
    aspect-ratio: 1/1;
}

/* Optimize Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Critical CSS for Above-the-fold */
.above-fold {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Optimize Images */
img {
    max-width: 100%;
    height: auto;
}

/* Schema Markup Visual Enhancements */
.faq-section {
    scroll-margin-top: 100px;
}

/* SEO-friendly Button Styles */
.btn-seo {
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-seo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Focus Styles for Better Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}


