/* ==========================================================================
   SAMSRI INNOVATIONS — SUPPLEMENTARY RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --space-6: 32px;
    --space-8: 48px;
    --space-12: 64px;
  }

  body {
    font-size: 16px;
  }

  /* Section Padding Reductions for breathing room without overflow */
  .section {
    padding: var(--space-8) 0;
  }

  .section-title {
    margin-bottom: var(--space-4);
  }

  .section-title h2 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Hero Section stats stack adjustments */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    text-align: center;
  }

  .stat-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--light-gray);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* Floating visual shapes hidden on small displays to boost PageSpeed performance */
  .hero-shape-container {
    width: 280px;
    height: 280px;
  }
  
  .floating-icon {
    display: none;
  }

  /* Button alignment adjustments */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Premium Card padding adjustments */
  .premium-card {
    padding: var(--space-3);
  }

  /* Sticky mobile bar styling constraints */
  .sticky-bottom-cta {
    gap: 8px;
    padding: 10px 14px;
  }

  .sticky-bottom-cta .btn {
    padding: 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
  }
  
  /* Header button adjustments */
  .header-right .btn-primary,
  .header-right .lang-selector {
    display: none !important; /* Hide extra elements on header for mobile layout spacing */
  }
}
