/**
 * Responsive Styles for Mobile and Tablet
 */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --font-size-base: 15px;
        --spacing-xxl: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .economy-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .economy-diagram svg {
        margin-left: 0;
        max-width: 100%;
    }

    .economy-content {
        padding-right: 20px;
    }


    .economy-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    /* Header */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        padding: var(--spacing-md);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Hero Quote Bubble - scale down on mobile */
    .hero-quote-bubble {
        top: 80px;
        left: 20px;
        width: 280px;
        height: 250px;
    }

    .quote-content {
        padding: 50px 40px;
        width: 400px;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .quote-mark {
        top: 30px;
        left: 40px;
        width: 30px;
    }

    /* Funding Logo - scale down */
    .hero-funding-logo img {
        max-width: 250px;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 15px;
    }

    .badge-circle {
        width: 120px;
        height: 120px;
        font-size: 0.8rem;
    }

    /* Grid layouts */
    .materials-grid,
    .programs-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .economy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .economy-diagram svg {
        margin-left: 0;
    }

    .economy-content {
        padding: 0 20px;
        text-align: center;
    }


    .economy-steps {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-funding {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Error Actions */
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .badge-circle {
        width: 100px;
        height: 100px;
        top: 20px;
        left: 20px;
    }

    .footer-funding img {
        max-height: 60px;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}