/* Responsive Design - Mobile-First Approach */

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-8);
        gap: var(--space-4);
        box-shadow: var(--shadow-2xl);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-3) var(--space-4);
        width: 100%;
        border-radius: var(--radius-lg);
        transition: var(--transition-fast);
    }
    
    .nav-menu a:hover {
        background: var(--gray-100);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-5);
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-6);
    }
    
    .hero {
        padding: var(--space-20) 0 var(--space-12);
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .client-showcase {
        gap: var(--space-8);
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-10);
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-16: 3rem;
        --space-20: 3.5rem;
        --space-24: 4rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav-content {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        min-height: 85vh;
        padding: calc(var(--space-16) + 70px) 0 var(--space-12);
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-6);
    }
    
    .hero-cta {
        padding: var(--space-3) var(--space-6);
        font-size: 0.9375rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        margin-top: var(--space-10);
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: var(--space-16) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .client-showcase {
        gap: var(--space-6);
        margin: var(--space-8) 0;
    }
    
    .client-logo {
        width: 140px;
        height: 70px;
        padding: var(--space-3);
    }
    
    .client-logo img {
        max-height: 50px;
    }
    
    .partnership-badges {
        padding: var(--space-8) 0;
        margin-top: var(--space-12);
    }
    
    .partnership-badges-grid {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
    }
    
    .partnership-badge {
        justify-content: center;
        width: 100%;
    }
    
    .about-content {
        gap: var(--space-8);
    }
    
    .about-text h3 {
        font-size: 1.75rem;
    }
    
    .feature-item {
        flex-direction: row;
        gap: var(--space-3);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .leadership-image {
        width: 160px;
        height: 160px;
        margin-bottom: var(--space-4);
    }
    
    .leadership-name {
        font-size: 1.25rem;
    }
    
    .contact-grid {
        gap: var(--space-8);
    }
    
    .contact-form {
        padding: var(--space-6);
    }
    
    .form-group {
        margin-bottom: var(--space-5);
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--space-3);
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: var(--space-4);
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .client-logo {
        width: 120px;
        height: 60px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--space-8);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .hero-cta,
    .contact-form,
    .btn-primary {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .content-section {
        padding: var(--space-8) 0;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    h4 { font-size: 14pt; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-600: #333333;
        --gray-700: #222222;
        --gray-900: #000000;
    }
    
    .service-card,
    .client-logo,
    .contact-form {
        border-width: 2px;
        border-color: var(--gray-900);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        animation: none;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* This can be expanded in future for dark mode support */
}
