/* Responsive design styles for Curiosity Inc. website */

/* Base responsive adjustments are already in styles.css */
/* This file contains additional responsive enhancements */

/* Mobile-first approach with progressive enhancement */

/* Extra small devices (phones, 576px and down) */
@media only screen and (max-width: 576px) {
  /* Header adjustments */
  .header-container {
    padding: 10px 0;
  }
  
  .logo a {
    font-size: 1.5rem;
  }
  
  .search-container {
    display: none; /* Hide search on smallest screens */
  }
  
  /* Hero section adjustments */
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 50px 0;
  }
  
  /* Button size adjustments */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Footer adjustments */
  .footer-section {
    margin-bottom: 30px;
  }
  
  /* Content page adjustments */
  .content-container {
    padding: 20px 15px;
  }
  
  .content-container h1 {
    font-size: 1.8rem;
  }
  
  .content-container h2 {
    font-size: 1.5rem;
  }
  
  /* Feature box adjustments */
  .feature-box {
    padding: 20px 15px;
  }
}

/* Small devices (portrait tablets and large phones, 576px and up) */
@media only screen and (min-width: 576px) and (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Adjust grid layouts */
  .services-grid,
  .process-steps,
  .testimonials,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Adjust stats container */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  /* Navigation adjustments */
  nav ul li {
    margin-left: 1.2rem;
  }
  
  /* Grid adjustments */
  .services-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact container adjustment */
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  /* Footer adjustments */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .container {
    width: 95%;
  }
  
  /* Grid adjustments */
  .services-grid,
  .process-steps,
  .testimonials {
    gap: 20px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Print styles */
@media print {
  header, footer, .cta-section, .cta-block, .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  .content-container {
    box-shadow: none;
    padding: 0;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  ul, ol, blockquote {
    page-break-inside: avoid;
  }
  
  .feature-box {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }
  
  .bg-light {
    background-color: #1e1e1e;
  }
  
  .content-container, 
  .service-card, 
  .process-step, 
  .testimonial, 
  .feature-box, 
  .blog-post, 
  .contact-form {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
  }
  
  a {
    color: #64b5f6;
  }
  
  a:hover {
    color: #90caf9;
  }
  
  .btn {
    background-color: #e74c3c;
  }
  
  .btn:hover {
    background-color: #c0392b;
  }
  
  input, textarea, .form-control {
    background-color: #3d3d3d;
    color: #e0e0e0;
    border-color: #4d4d4d;
  }
  
  .feature-icon {
    background-color: #3d3d3d;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) {
  /* Increase tap target sizes */
  nav ul li a,
  .btn,
  .social-link,
  .footer-section ul li a {
    padding: 12px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve form elements for touch */
  input, 
  textarea, 
  select, 
  .form-control {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 12px;
  }
  
  /* Add active states for touch feedback */
  .btn:active,
  nav ul li a:active,
  .social-link:active {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #0000EE;
    text-decoration: underline;
  }
  
  a:visited {
    color: #551A8B;
  }
  
  .btn, 
  .process-step-number, 
  .social-link, 
  .feature-icon {
    border: 2px solid #000;
  }
  
  input, textarea, .form-control {
    border: 2px solid #000;
  }
  
  .header-container,
  footer,
  .cta-section {
    background-color: #000;
    color: #fff;
  }
}

/* Orientation changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding: 90px 0 60px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    margin-bottom: 1rem;
  }
}
