/* Remote IT Helpdesk for Seniors - Responsive CSS */
/* Mobile and Tablet Optimizations */

/* Large screens and up (1200px+) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-padding-xl {
    padding: 120px 0;
  }
}

/* Medium screens (768px - 1199px) */
@media (max-width: 1199.98px) {
  :root {
    --section-padding: 60px;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.39rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Small screens and down (767px and below) */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 40px;
    --element-margin: 1rem;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.87rem;
  }
  
  h3 {
    font-size: 1.48rem;
  }
  
  h4 {
    font-size: 1.14rem;
  }
  
  p {
    font-size: 15px;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.17rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.98rem;
    margin-bottom: 1rem;
  }
  
  .hero-content {
    padding: 1rem 0;
    padding-top: 100px;
}
  
  /* Card adjustments */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .pricing-card,
  .faq-card,
  .blog-card {
    padding: 1.5rem;
    margin-bottom: 1.59rem;
  }
  
  .service-card .card-img-top,
  .feature-card .card-img-top,
  .team-card .card-img-top,
  .blog-card .card-img-top {
    height: 180px;
  }
  
  /* Team member photos */
  .team-member-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Pricing adjustments */
  .pricing-price {
    font-size: 2rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 15px;
    width: 100%;
    margin-bottom: 0.70rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 15px;
  }
  
  /* Contact info */
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-info-item i {
    margin-right: 0;
    margin-bottom: 0.64rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog grid */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Process steps */
  .process-step {
    margin-bottom: 3rem;
  }
  
  .process-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.63rem;
  }
  
  /* Section header */
  .section-header {
    margin-bottom: 2.59rem;
  }
  
  .section-desc {
    font-size: 15px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Space page */
  #space {
    min-height: 60vh;
    margin: 1rem 0;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item img {
    width: 20px;
    height: 20px;
  }
}

/* Extra small screens (575px and below) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 30px;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography */
  h1 {
    font-size: 1.77rem;
  }
  
  h2 {
    font-size: 1.63rem;
  }
  
  h3 {
    font-size: 1.27rem;
  }
  
  /* Hero section */
  .hero-section h1 {
    font-size: 1.74rem;
    line-height: 1.3;
  }
  
  /* Cards */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .pricing-card,
  .faq-card,
  .blog-card {
    padding: 1.25rem;
  }
  
  /* Pricing */
  .pricing-price {
    font-size: 1.80rem;
  }
  
  /* Contact form */
  .contact-info {
    padding: 1.25rem;
  }
  
  /* Process steps */
  .process-step-number {
    width: 45px;
    height: 45px;
    font-size: 1.17rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 180px;
  }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 120vh;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .pricing-card,
  .faq-card,
  .blog-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e8e8e8;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #4d4d4d;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card .card-img-top,
  .feature-card .card-img-top,
  .team-card .card-img-top,
  .blog-card .card-img-top,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-2px);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
}

/* Dark mode support (optional) */

/* Container adjustments for better spacing */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
} 