/* 
 * InfoTeck Computer Repair Website - Responsive Styles
 * This file contains all media queries and responsive-specific styles
 * --------------------------------------------------------------------------
 * Breakpoints:
 * --breakpoint-xl: 1200px
 * --breakpoint-lg: 992px
 * --breakpoint-md: 768px
 * --breakpoint-sm: 576px
 * --------------------------------------------------------------------------
 */

/* ==========================================================================
   Mobile Header & Safe Area Support
   ========================================================================== */

.header-cta-mobile {
  display: none; /* Hidden by default, shown on smaller screens */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-sm);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-index-sticky);
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: slideUpIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-cta-mobile .btn {
  width: 90%;
  max-width: 400px;
  background: linear-gradient(45deg, var(--primary-blue), hsl(214, 83%, 65%));
  border: none;
  box-shadow: 0 0 15px hsla(214, 83%, 50%, 0.4);
  transition: all 0.3s ease;
  padding: 15px 20px;
}

@keyframes slideUpIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Add safe area inset support for modern browsers like iPhone */
@supports (padding: max(0px)) {
  .header-cta-mobile {
    padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
    padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
    padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
  }
}

/* ==========================================================================
   Large Desktops (XL) - max-width: 1200px
   ========================================================================== */

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .process-steps {
    gap: var(--spacing-md);
  }
}

/* ==========================================================================
   Desktops & Laptops (LG) - max-width: 992px
   ========================================================================== */

@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }

  h1 { font-size: var(--font-size-6); }
  h2 { font-size: var(--font-size-5); }
  .section-header h2 { font-size: var(--font-size-5); }
  
  section {
    padding: var(--spacing-8) 0;
  }
  
  .process-steps {
    display: block;
  }

  .process-step {
    margin-bottom: var(--spacing-xl);
  }

  .process-step:last-child {
    margin-bottom: 0;
  }

  .process-steps::after {
    display: none;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
  }
}

/* ==========================================================================
   Tablets & iPads (MD) - max-width: 768px
   ========================================================================== */

@media (max-width: 768px) {
  body {
    font-size: 95%;
  }

  /* --- Header --- */
  .site-header .header-cta,
  .main-nav {
    display: none;
  }

  .header-wrapper {
    justify-content: center;
  }

  .header-cta-mobile {
    display: flex;
  }

  /* --- Hero Section --- */
  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: 120px 0 80px;
  }

  .hero-content h1 {
    font-size: clamp(var(--font-size-5), 10vw, var(--font-size-7));
  }

  .hero-cta-group {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    align-items: center;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 350px;
  }

  /* --- Grids --- */
  .services-grid,
  .gaming-features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .process-step {
    padding: var(--spacing-5);
  }
  
  .gaming-games-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    justify-content: center; /* Center the grid items */
  }

  .contact-grid {
    display: flex;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* ==========================================================================
   Mobile Phones (SM) - max-width: 576px
   ========================================================================== */

@media (max-width: 576px) {
  h1 { font-size: var(--font-size-5); }
  h2 { font-size: var(--font-size-4); }
  .section-header h2 { font-size: var(--font-size-4); }

  section {
    padding: var(--spacing-7) 0;
  }

  .container {
    padding: 0 var(--spacing-4);
  }

  .services-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-md);
  }

  /* --- Header --- */
  .site-header {
    padding: var(--spacing-3) 0;
  }
  .site-header.scrolled {
    padding: var(--spacing-2) 0;
  }
  .logo-image { height: 35px; }
  .site-header.scrolled .logo-image { height: 30px; }

  /* --- Process Section --- */
  .process-step {
      padding: var(--spacing-4);
  }

  /* --- Gaming Section --- */
  .gaming-content h2 {
      font-size: 2.5rem;
  }
  
  .gaming-games-list {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-4);
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* --- Contact --- */
  .contact-form-container {
    padding: var(--spacing-5);
  }

  .contact-methods {
    gap: var(--spacing-5);
  }
}