/* ===== Responsive Design ===== */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: var(--font-size-base);
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xxl) var(--spacing-lg);
        transition: right 0.4s ease;
        z-index: 100;
    }

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

    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

    .nav-logo img {
        height: 50px;
    }

    /* Hero Section */
    .hero {
        padding-top: 120px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 250px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 250px;
    }

    .about-list li {
        text-align: left;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Page Header */
    .page-header {
        padding-top: 120px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Approach Grid */
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services Detail */
    .services-grid-detail {
        grid-template-columns: 1fr;
    }

    /* Institutional Grid */
    .institutional-grid {
        grid-template-columns: 1fr;
    }

    /* Workshops Grid */
    .workshops-grid {
        grid-template-columns: 1fr;
    }

    /* Programs Grid */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Expertise Grid */
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Map */
    .map-container {
        height: 450px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* CTA */
    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: var(--font-size-base);
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    /* Spacing */
    .section {
        padding: var(--spacing-xl) 0;
    }

    /* Typography */
    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Navigation */
    .nav-menu {
        width: 85%;
    }

    .nav-logo img {
        height: 45px;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-small);
    }

    /* Hero Image */
    .hero-image img {
        max-width: 200px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Page Title */
    .page-title {
        font-size: 1.8rem;
    }

    /* Card Titles */
    .card-title {
        font-size: 1.5rem;
    }

    .service-title-large {
        font-size: 1.2rem;
    }

    /* Approach Grid */
    .approach-grid {
        grid-template-columns: 1fr;
    }

    /* Expertise Grid */
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    /* Team Image */
    .team-image {
        height: 200px;
    }

    .team-placeholder {
        font-size: 4rem;
    }

    /* Contact Form */
    .contact-form-container,
    .contact-info-container {
        padding: var(--spacing-md);
    }

    .form-title,
    .info-title {
        font-size: 1.5rem;
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-subtitle {
        font-size: 1.1rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.5rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.3rem;
    }
}

/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
    /* Hero */
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Approach Grid */
    .approach-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Expertise Grid */
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .nav-toggle,
    .nav-close,
    .whatsapp-float,
    .btn,
    .social-links,
    .contact-form {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}

/* Animations for smooth transitions */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .workshop-card,
    .team-card,
    .approach-item {
        transition: transform var(--transition-normal), 
                    box-shadow var(--transition-normal);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5D4E8F;
        --text-color: #000000;
        --text-light: #333333;
    }

    .btn-primary {
        border: 2px solid var(--primary-dark);
    }

    .service-card,
    .workshop-card,
    .team-card {
        border: 2px solid var(--medium-gray);
    }
}

/* Dark mode support (optional, can be activated in future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented when dark mode is needed */
}

