/* Mobile Responsive Design */

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .nav-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid,
    .row {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .schedule-container .day-schedule .class-item {
        grid-template-columns: 1fr !important;
        gap: 10px;
        text-align: center;
    }
    
    .weekend-classes {
        grid-template-columns: 1fr !important;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .categories-filter {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .category-btn {
        width: 200px;
    }
    
    .newsletter-signup form {
        flex-direction: column;
    }
    
    .newsletter-signup input[type="email"] {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method > div:first-child {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .top-bar-content {
        padding: 0 10px;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
        font-size: 11px;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .team-grid,
    .workshop-grid,
    .location-info {
        grid-template-columns: 1fr !important;
    }
    
    .featured-post {
        grid-template-columns: 1fr !important;
    }
    
    .featured-post > div:first-child {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .floating-elements {
        display: none !important;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #333;
        --text-dark: #000;
        --text-light: #333;
        --light-green: #f0f0f0;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.auto-dark-mode {
        --white: #1a1a1a;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --light-green: #2a2a2a;
        background-color: var(--white);
        color: var(--text-dark);
    }
    
    .auto-dark-mode .card {
        background-color: #2a2a2a;
        color: var(--text-dark);
    }
    
    .auto-dark-mode .navbar {
        background-color: #1a1a1a;
        border-bottom: 1px solid #333;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

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

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Error States */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    margin: 10px 0;
}

.success-message {
    color: #2e7d32;
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #2e7d32;
    margin: 10px 0;
}

/* Form Validation */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .error-text {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #2e7d32;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-muted { color: var(--text-light) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--light-green) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
