/* Responsive design enhancements for MK Collective landing page */

/* Base responsive adjustments */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 3rem;
  }
}

/* Tablet and smaller desktops */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-content {
    grid-template-columns: 1fr;
  }
  
  /* Mobile navigation toggle */
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links a {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .services-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .client-logos {
    gap: 1.5rem;
  }
  
  .client-logo {
    padding: 0.8rem 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  section, header, footer {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .container {
    width: 90%;
    padding: 0 10px;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .subheadline {
    font-size: 1.1rem;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .service-card,
  .blog-card,
  .contact-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .form-group input,
  .form-group textarea,
  .subscribe-form input {
    padding: 0.7rem;
  }
  
  .submit-btn,
  .subscribe-button {
    width: 100%;
  }
  
  section, header, footer {
    padding: 3rem 0;
  }
}

/* Small mobile phones */
@media (max-width: 375px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .container {
    width: 95%;
    padding: 0 5px;
  }
  
  .nav-container {
    padding: 0.8rem 0;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .contact-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .service-card:hover,
  .blog-card:hover,
  .contact-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
  }
  
  .cta-button:hover,
  .submit-btn:hover,
  .subscribe-button:hover {
    animation: none;
    transform: none;
  }
  
  /* Larger touch targets for mobile */
  .nav-links a,
  .footer-links a {
    padding: 0.8rem;
    display: inline-block;
  }
  
  .form-group input,
  .form-group textarea,
  .subscribe-form input,
  .submit-btn,
  .subscribe-button,
  .cta-button {
    min-height: 44px; /* Apple's recommended minimum touch target size */
  }
}

/* Print styles */
@media print {
  .main-nav,
  .cta-button,
  .contact-form,
  .subscribe-form,
  .footer-links {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  .grid-background {
    background: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .highlight {
    background: none;
    font-weight: bold;
  }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #0000cc;
    --accent-yellow: #ffcc00;
    --light-bg: #fff;
    --border-color: #000;
  }
  
  .highlight {
    background-color: #ffcc00;
    color: #000;
  }
  
  .service-card,
  .blog-card,
  .contact-card {
    border: 2px solid #000;
  }
  
  .form-group input,
  .form-group textarea {
    border: 2px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #f0f0f0;
    --secondary-color: #c0c0c0;
    --accent-color: #3399ff;
    --accent-yellow: #ffcc00;
    --light-bg: #1a1a2e;
    --border-color: #444;
    --grid-color: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  body {
    background-color: #121212;
    color: var(--primary-color);
  }
  
  .main-nav {
    background-color: rgba(18, 18, 18, 0.95);
  }
  
  .logo {
    color: var(--primary-color);
  }
  
  .service-card,
  .blog-card,
  .contact-card,
  .contact-form-container,
  .blog-subscribe {
    background-color: #1e1e1e;
  }
  
  .form-group input,
  .form-group textarea,
  .subscribe-form input {
    background-color: #2a2a2a;
    border-color: #444;
    color: var(--primary-color);
  }
  
  .client-logo {
    border-color: #444;
  }
}
