/* ===== Responsive Styles ===== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: var(--space-lg);
    }

    .hero-image-frame {
        width: 280px;
        height: 280px;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-card {
        flex: 1;
        min-width: 180px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image-area {
        display: flex;
        justify-content: center;
        margin-bottom: var(--space-lg);
    }

    .founder-story p:first-child {
        border-left: none;
        border-top: 3px solid var(--color-earth-gold);
        padding-left: 0;
        padding-top: var(--space-md);
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-grid .help-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }

    .donate-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: var(--space-md);
    }

    .footer-mission {
        max-width: 100%;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        padding: 100px var(--space-lg) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        gap: var(--space-md);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card.featured {
        grid-column: span 1;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-grid .help-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero-image-frame {
        width: 220px;
        height: 220px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .mission-card {
        padding: var(--space-lg);
    }

    .founder-frame {
        width: 250px;
        height: 320px;
    }

    .donate-card {
        padding: var(--space-lg);
    }

    .contact-card {
        padding: var(--space-lg);
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-earth-gold: #B8860B;
        --color-text-light: var(--color-text);
    }

    .btn {
        border-width: 3px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .hero-visual,
    .donate,
    .contact-form-area,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .kente-border {
        display: none;
    }
}
