/* ==========================================================================
   PROENGINEERING.IN - Responsive Layout & Mobile-First Media Queries
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .calc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .lead-magnet-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

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

/* Tablets & High-Density Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar-left {
    display: none; /* Keep top bar clean on mobile */
  }

  .top-bar {
    justify-content: flex-end;
  }

  .nav-container {
    height: 4rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .products-grid, .ebooks-grid, .articles-grid {
    grid-template-columns: 1fr;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  dialog.custom-modal {
    width: 95vw;
    margin: 1rem auto;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .calc-content-area {
    padding: 1.25rem;
  }
}

/* Small Smart Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
    width: 100%;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .product-price-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .lead-magnet-card {
    padding: 1.5rem;
  }

  .lead-form-box {
    padding: 1.25rem;
  }
}
