/* Mobile Optimization for Northern Steel Network */

/* Mobile-specific styles */
@media (max-width: 768px) {
  /* Hero Section */
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 1.1rem;
  }
  
  /* Phone Call Button - Make it larger and more accessible */
  .phone-large {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.4);
  }
  
  .contact-cta .btn-primary {
    font-size: 1.2rem;
    padding: 16px 24px;
    background: #0d3b66;
  }
  
  /* Product Cards */
  .product-card {
    padding: 1.5rem 1rem;
  }
  
  .product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Articles */
  .article-card {
    flex-direction: column;
  }
  
  .article-image {
    width: 100%;
    height: auto;
  }
  
  .article-content {
    padding: 1rem 0 0 0;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .article-meta {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-contact, .footer-links {
    text-align: center;
  }
  
  /* Cases Page */
  .case-card {
    flex-direction: column;
  }
  
  .case-image {
    width: 100%;
    height: auto;
  }
  
  .case-content {
    padding: 1.5rem 0 0 0;
  }
  
  .case-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .products-grid, .advantages-grid, .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
}

/* One-click dial optimization */
.btn-call, .phone-large, .contact-info-large .btn-primary {
  transition: all 0.3s ease;
}

.btn-call:hover, .phone-large:hover, .contact-info-large .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(13, 59, 102, 0.3);
}

/* Loading optimization */
img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.loaded {
  opacity: 1;
}

/* Lazy loading placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}