/* Responsive CSS - Brighton Dance Centre */

/* Large Screens (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 5.5rem;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait & Large Phones (481px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: var(--space-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    section {
        padding: var(--space-2xl) 0;
    }
    
    /* Theme Cards */
    .theme-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Classes Preview */
    .classes-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .class-preview {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Decorative Shapes */
    .shape-1 {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 5%;
    }
    
    .shape-2 {
        width: 80px;
        height: 80px;
        bottom: 20%;
        left: 2%;
    }
    
    .shape-3 {
        width: 50px;
        height: 50px;
    }
    
    .hero::before {
        width: 200px;
        height: 200px;
    }
    
    .hero::after {
        width: 250px;
        height: 250px;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Base */
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Hero */
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        border-radius: var(--radius-md);
    }
    
    /* Theme Cards */
    .theme-card {
        border-radius: var(--radius-md);
    }
    
    .theme-card-content {
        padding: var(--space-md);
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .footer-grid {
        gap: var(--space-lg);
    }
    
    /* Back to top button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Very Small Devices (320px and below) */
@media (max-width: 320px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer */
    .main-nav,
    .main-footer,
    .back-to-top,
    .newsletter,
    .hero-buttons {
        display: none;
    }
    
    /* Remove background colors and shadows */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Ensure content breaks properly */
    .theme-card,
    .feature {
        page-break-inside: avoid;
    }
    
    /* Show link URLs */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Hover Effects (for devices that support hover) */
@media (hover: hover) {
    /* Add hover effects only for devices that truly support hover */
    .theme-card:hover {
        transform: translateY(-10px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Reduced Motion */
@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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #FAFAFA;
        --text-light: #CCCCCC;
        --bg-light: #1A1A1A;
        --white: #0D0D0D;
        --black: #FFFFFF;
    }
    
    .main-nav {
        background-color: #1A1A1A;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
    }
    
    .theme-card {
        background-color: #2D2D2D;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        background-color: #2D2D2D;
        border-color: #444444;
        color: #FAFAFA;
    }
}