/* ==========================================================================
   RESPONSIVE.CSS - Media Queries for SAMANSRO Materials
   ========================================================================== */

/* 1. TABLET & LARGER MOBILE (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Header */
  .nav-menu {
    display: none; /* Hide desktop nav */
  }
  .mobile-menu-toggle {
    display: flex; /* Show hamburger menu */
  }

  /* Grids */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .stat-card:nth-child(2n) {
    border-right: none;
  }
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) {
    border-bottom: none;
  }

  .cards-4,
  .grid-4,
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-3,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    display: none; /* Hide horizontal line */
  }

  /* Layouts */
  .two-column {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .column-image.reveal-right {
    order: -1; /* Move image to top on mobile */
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* 2. MOBILE (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* Base */
  .section {
    padding: 60px 0;
  }
  .header-container,
  .section-container {
    padding: 0 1.5rem;
  }

  /* Hero */
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  /* Inner page hero band (About / Contact / Products / Services) */
  .page-header {
    padding: 140px 1.5rem 60px;
  }

  /* Grids */
  .stats-grid,
  .cards-4,
  .grid-4,
  .timeline,
  .contact-info-grid,
  .grid-2,
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-card {
    padding: 2rem 1.5rem;
  }
  .stat-card {
    border-right: none !important; /* Remove all right borders */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Add bottom border to all */
  }
  .stat-card:last-child {
    border-bottom: none; /* Remove bottom border from the last card */
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .logo.footer-brand,
  .footer-social {
    display: inline-flex;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .mv-card {
    padding: 2rem 1.5rem;
  }
}