/*
* Zumba With Greta - Dance Fitness Website
* Responsive CSS for different devices and screen sizes
*/

/* ===== RESPONSIVE STYLES ===== */

/* Larger Screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .instructor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Instagram showcase adjustments */
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .instagram-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation for tablet */
    .nav-toggle-label {
        display: block;
        position: relative;
        width: 30px;
        height: 21px;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--primary);
        height: 3px;
        width: 100%;
        position: absolute;
        transition: var(--transition);
    }
    
    .nav-toggle-label span {
        top: 9px;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -9px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 9px;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 20px;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    /* Grid adjustments */
    .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Schedule adjustments */
    .schedule-nav {
        overflow-x: auto;
    }
    
    /* Other schedule item styles are in the main CSS */
    
    /* Contact adjustments */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    /* Footer adjustments */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* Small Screens (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Instagram showcase adjustments */
    .instagram-grid-small {
        grid-template-columns: 1fr;
    }
    
    .instagram-caption p {
        font-size: 0.9rem;
    }
    
    .instagram-stats {
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    /* Header adjustments */
    header .container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .cta-button {
        display: none;
    }
    
    /* Grid adjustments */
    .class-grid,
    .instructor-grid,
    .features,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .class-image {
        height: 180px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
    }
}

/* Extra Small Screens (575px and down) */
@media (max-width: 575px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-header h2::after {
        width: 60px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Feature cards */
    .feature {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-quote {
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 20px;
    }
    
    /* Newsletter form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* Mobile Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        margin-bottom: 20px;
    }
    
    .main-nav {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Animation reduction for users with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pulse {
        animation: none !important;
    }
    
    .shape {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    :root {
        --primary: #4400A0;
        --secondary: #90EE70;
        --accent-1: #E04040;
        --accent-2: #0099CC;
        --accent-3: #E07640;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .highlight {
        color: #4400A0;
        font-weight: 700;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
} 