/* ===== RESPONSIVE STYLES ===== */

/* Tablet - Large (1200px and below) */
@media screen and (max-width: 1200px) {
    .container,
    .header-container,
    .hero-content,
    .location-info {
        max-width: 90%;
    }

    .catchphrase {
        font-size: 12rem;
    }

    .subtitle {
        font-size: 4rem;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

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

    .member-photo-wrapper {
        width: 25rem;
        height: 25rem;
    }
}

/* Tablet - Medium (1000px and below) */
@media screen and (max-width: 1000px) {
    :root {
        --container-padding: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

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

    .catchphrase {
        font-size: 10rem;
    }

    .subtitle {
        font-size: 3.5rem;
    }

    .mission-label {
        font-size: 6rem;
    }

    .goals-text {
        max-width: 80%;
    }

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

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

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

/* Tablet - Small (900px and below) */
@media screen and (max-width: 900px) {
    .logo img {
        height: 6rem;
    }

    .nav-desktop ul {
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.6rem;
    }
}

/* Mobile - Large (800px and below) */
@media screen and (max-width: 800px) {
    html {
        font-size: 9px;
    }

    .activities-section h2,
    .about-section h2,
    .news-section h2,
    .contact-section h2 {
        font-size: 4rem;
    }

    .location-info {
        padding: 3rem;
    }

    .location-icon {
        width: 5rem;
        height: 5rem;
    }
}

/* Mobile - Medium (700px and below) */
@media screen and (max-width: 700px) {
    html {
        font-size: 8px;
    }

    :root {
        --container-padding: 2rem;
    }

    /* Hide desktop navigation */
    .nav-desktop {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .header {
        padding: 1.5rem 0;
    }

    .header-container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .logo img {
        height: 5rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 8rem 0 6rem;
        margin-top: 8rem;
    }

    .catchphrase {
        font-size: 8rem;
    }

    .subtitle {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 1.8rem 3rem;
    }

    /* Goals Section */
    .goals-section {
        padding: 6rem 0;
    }

    .mission-label {
        font-size: 5rem;
    }

    .goals-text {
        max-width: 100%;
        font-size: 1.8rem;
    }

    /* Activities Section */
    .activities-section {
        padding: 6rem 0;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .activity-item {
        padding: 2.5rem;
    }

    /* Location Section */
    .location-image {
        height: 35rem;
    }

    .location-content {
        padding: 4rem 0;
    }

    .location-info {
        max-width: 100%;
        padding: 2.5rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* About / Team Section */
    .about-section {
        padding: 6rem 0;
    }

    .about-intro {
        max-width: 100%;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .member-photo-wrapper {
        width: 28rem;
        height: 28rem;
    }

    /* News Section */
    .news-section {
        padding: 6rem 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 6rem 0;
    }

    .contact-info {
        gap: 3rem;
    }

    .contact-form {
        padding: 3rem;
    }

    /* Footer */
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        align-items: center;
    }
}

/* Mobile - Small (600px and below) */
@media screen and (max-width: 600px) {
    html {
        font-size: 7.5px;
    }

    .catchphrase {
        font-size: 7rem;
    }

    .subtitle {
        font-size: 2.8rem;
    }

    .mission-label {
        font-size: 4.5rem;
    }

    .hero-image {
        max-width: 35rem;
    }

    .activities-section h2,
    .about-section h2,
    .news-section h2,
    .contact-section h2 {
        font-size: 3.5rem;
    }

    .member-photo-wrapper {
        width: 25rem;
        height: 25rem;
    }

    .news-image {
        height: 22rem;
    }

    .contact-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

/* Mobile - Extra Small (550px and below) */
@media screen and (max-width: 550px) {
    .container,
    .header-container {
        padding: 0 1.5rem;
    }

    .catchphrase {
        font-size: 6rem;
    }

    .subtitle {
        font-size: 2.5rem;
    }

    .mission-label {
        font-size: 4rem;
    }

    .activity-item {
        padding: 2rem;
    }

    .activity-icon {
        width: 6rem;
        height: 6rem;
    }

    .contact-form {
        padding: 2.5rem;
    }
}

/* Mobile - Tiny (450px and below) */
@media screen and (max-width: 450px) {
    html {
        font-size: 7px;
    }

    .logo img {
        height: 4.5rem;
    }

    .catchphrase {
        font-size: 5.5rem;
    }

    .subtitle {
        font-size: 2.3rem;
    }

    .hero-buttons {
        gap: 1.2rem;
    }

    .btn {
        padding: 1.6rem 2.5rem;
        font-size: 1.8rem;
    }

    .mission-label {
        font-size: 3.8rem;
    }

    .location-image {
        height: 30rem;
    }

    .member-photo-wrapper {
        width: 22rem;
        height: 22rem;
    }

    .news-image {
        height: 20rem;
    }

    .mobile-nav-link {
        font-size: 2.8rem;
    }
}

/* Mobile - Ultra Small (400px and below) */
@media screen and (max-width: 400px) {
    html {
        font-size: 6.5px;
    }

    .catchphrase {
        font-size: 5rem;
    }

    .subtitle {
        font-size: 2.2rem;
    }

    .mission-label {
        font-size: 3.5rem;
    }

    .hero-image {
        max-width: 30rem;
    }

    .activities-section h2,
    .about-section h2,
    .news-section h2,
    .contact-section h2 {
        font-size: 3.2rem;
    }

    .activity-item h3,
    .team-member h3,
    .news-content h3 {
        font-size: 2.2rem;
    }

    .member-photo-wrapper {
        width: 20rem;
        height: 20rem;
    }
}

/* Landscape mode adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .catchphrase {
        font-size: 6rem;
    }

    .subtitle {
        font-size: 2.5rem;
    }

    .mobile-nav-link {
        font-size: 2.5rem;
    }

    .mobile-menu nav ul li {
        margin: 2rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .activity-icon img,
    .contact-icon,
    .location-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-toggle,
    .mobile-menu,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none !important;
    }

    .hero-section {
        margin-top: 0;
        page-break-after: always;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark mode support (if user has dark mode preference) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
}

/* Reduced motion for accessibility */
@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 for accessibility */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .nav-link::after {
        height: 3px;
    }
}
