/* ============================================================
   JANTA SCHOOL ERP — Responsive Styles
   responsive.css
   ============================================================ */

/* ---- Large Desktop (1400px+) ---- */
@media (max-width: 1400px) {
  .hero-inner { gap: 3rem; padding: 4rem 2rem; }
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Desktop (1200px) ---- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: span 2; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid  { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 3rem; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet Large (1024px) ---- */
@media (max-width: 1024px) {
  .hero-inner          { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-content        { order: 1; }
  .hero-visual         { order: 2; }
  .hero-desc           { max-width: 100%; }
  .hero-actions        { justify-content: center; }
  .hero-stats          { justify-content: center; }
  .hero-title          { font-size: clamp(2rem, 6vw, 3.5rem); }
  .floating-card       { display: none; }
  .dashboard-mockup    { max-width: 500px; margin: 0 auto; }

  .about-grid          { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap    { order: 2; }
  .about-content       { order: 1; }
  .about-img-badge     { right: 1rem; }

  .showcase-inner      { grid-template-columns: 1fr; gap: 3rem; }
  .download-inner      { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .download-buttons    { justify-content: center; }
  .phone-showcase      { justify-content: center; }

  .contact-grid        { grid-template-columns: 1fr; gap: 3rem; }

  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .modules-grid        { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid       { grid-template-columns: repeat(2, 1fr); }

  .nav-links           { display: none; }
  .nav-hamburger       { display: flex; }
  .nav-actions         { display: none; }

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

/* ---- Tablet (768px) ---- */
@media (max-width: 768px) {
  :root { --space-4xl: 4rem; --space-3xl: 3rem; }

  .section   { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  .hero                { min-height: auto; padding: 5rem 0 3rem; }
  .hero-inner          { padding: 3rem 1.25rem; gap: 2rem; }
  .hero-title          { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-stat-value     { font-size: 1.4rem; }

  .quick-actions-grid  { grid-template-columns: repeat(2, 1fr); }
  .quick-action-card   { padding: 1.5rem 1rem; }

  .features-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .features-tabs       { gap: 0.4rem; }
  .feature-tab-btn     { padding: 0.5rem 1rem; font-size: 0.82rem; }

  .modules-grid        { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
  .module-card         { padding: 1.2rem 0.75rem; }

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

  .testimonials-track  { flex-direction: column; }
  .testimonial-card    { flex: 0 0 100%; }
  .testimonials-slider { overflow: visible; }

  .devices-mockup      { flex-direction: column; align-items: center; }
  .device-laptop       { max-width: 300px; }
  .device-tablet       { width: 120px; }
  .device-mobile       { width: 80px; }

  .stats-grid          { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .contact-form-wrap   { padding: 1.75rem; }
  .form-grid           { grid-template-columns: 1fr; }

  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand        { grid-column: 1 / -1; }
  .footer-bottom       { flex-direction: column; text-align: center; }

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

  .section-header h2   { font-size: 1.7rem; }
  .section-header p    { font-size: 1rem; }
}

/* ---- Mobile (576px) ---- */
@media (max-width: 576px) {
  .hero-inner          { padding: 2rem 1rem; }
  .hero-title          { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-actions        { flex-direction: column; }
  .hero-actions .btn   { width: 100%; justify-content: center; }
  .hero-stats          { gap: 1.25rem; }
  .hero-stat-value     { font-size: 1.3rem; }

  .quick-actions-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .quick-action-card   { padding: 1.25rem 0.75rem; }
  .quick-action-icon   { width: 48px; height: 48px; font-size: 1.4rem; }
  .quick-action-title  { font-size: 0.85rem; }

  .modules-grid        { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .module-icon         { width: 48px; height: 48px; font-size: 1.3rem; }

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

  .footer-grid         { grid-template-columns: 1fr; }
  .footer-bottom-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

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

  .download-buttons    { flex-direction: column; align-items: center; }
  .download-btn        { width: 100%; max-width: 260px; }

  .btn-lg              { padding: 0.9rem 2rem; font-size: 0.95rem; }

  .about-img-badge     { position: static; margin-top: 1rem; display: inline-flex; gap: 1rem; }

  .testimonials-slider { overflow: hidden; }
  .testimonial-card    { flex: 0 0 calc(100vw - 2.5rem); }

  .promo-modal         { padding: 1.75rem 1.25rem; }
  .promo-modal h2      { font-size: 1.5rem; }

  .nav-inner           { padding: 0 1rem; }
  .container           { padding: 0 1rem; }

  h1                   { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  h2                   { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ---- Mobile XS (375px) ---- */
@media (max-width: 375px) {
  .hero-title { font-size: 1.6rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 0.75rem; }
  .hero-stat-value { font-size: 1.1rem; }
}

/* ---- Hamburger open state ---- */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
