/*
 * Kids Shoe Charity - Responsive Styles
 */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .footer-grid {
        gap: var(--space-xl);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero {
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: var(--space-md) 0;
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .header .btn {
        display: none;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .card {
        padding: var(--space-lg);
    }

    .btn-lg {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-banner {
        padding: var(--space-2xl) 0;
    }

    .modal {
        padding: var(--space-lg);
        width: 95%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Landscape on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .stagger-item {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .back-to-top,
    .cta-banner {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}