/* Mobile optimization layer for NNT homepage */

@media (max-width: 1024px) {
  section,
  #services,
  #clients,
  #solution,
  #cta,
  #hero,
  .clients-section,
  .cta-section {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

@media (max-width: 767px) {
  .hero-visual,
  .hero-content,
  .evolution-grid,
  .framework-grid,
  .service-details-grid,
  .taxonomy-grid,
  .step-grid,
  .tools-grid,
  .approach-grid,
  .why-grid,
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  .services-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .step-body {
    grid-template-columns: 1fr !important;
  }

  body {
    font-size: 15px;
  }

  #navbar {
    height: 64px !important;
    padding: 0 20px !important;
  }

  #navbar .nav-logo img,
  nav .nav-logo img {
    height: 24px !important;
  }

  section,
  section.full-width,
  #services,
  #clients,
  #solution,
  #cta,
  .clients-section,
  .cta-section {
    padding: 72px 24px !important;
    max-width: 100% !important;
  }

  .hero,
  .page-hero,
  #hero {
    min-height: auto !important;
    padding: 112px 24px 60px !important;
  }

  .hero-content,
  .page-hero-content,
  .hero-text {
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }
  .hero-title,
  h1 {
    font-size: clamp(38px, 8vw, 44px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .section-title,
  .cta-title {
    font-size: clamp(26px, 8vw, 36px) !important;
    line-height: 1.22 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  #cta .contact-form h2,
  .contact-form h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
  .hero-desc,
  .section-desc,
  .hero-subtitle,
  .page-hero-sub,
  .muted,
  .why-body,
  .problem-body,
  .cta-desc,
  .cta-sub,
  .cta-section p,
  #cta p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .section-header {
    margin-bottom: 36px !important;
  }
  .stats,
  .stats-bar,
  .services-grid,
  .tools-grid,
  .approach-grid,
  .why-grid,
  .framework-grid,
  .evolution-grid,
  .service-details-grid,
  .taxonomy-grid,
  .step-grid,
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-item {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    gap: 16px !important;
  }
  .stat-item:last-child {
    border-bottom: 0 !important;
  }

  .stat-num {
    font-size: 32px !important;
    margin-bottom: 0 !important;
  }

  .stat-num .unit {
    font-size: 28px !important;
  }

  .stat-label {
    font-size: 14px !important;
  }
  .service-card,
  .why-card,
  .approach-card,
  .tool-card,
  .step-card,
  .intro-card,
  .cta-right {
    padding: 24px 20px !important;
  }

  .sol-item {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .sol-item-info {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 28px 22px !important;
  }

  .sol-item-visual {
    min-height: 180px !important;
    padding: 18px !important;
  }

  .logo-marquee,
  .clients-track {
    width: -moz-max-content !important;
    width: max-content !important;
    max-width: none !important;
  }

  .logo-item,
  .client-chip {
    padding: 12px 22px !important;
  }

  .logo-item img,
  .client-chip img {
    max-width: 96px !important;
    max-height: 28px !important;
  }
  .service-block {
    overflow-x: auto;
  }

  footer {
    padding: 32px 24px !important;
  }

  footer .footer-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  footer .footer-left {
    width: 100% !important;
    align-items: flex-start !important;
  }

  footer .footer-right {
    align-items: flex-start !important;
    text-align: left !important;
  }

  footer .footer-meta,
  footer .footer-copy {
    font-size: 12px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    text-align: left !important;
    text-indent: 0 !important;
  }

  footer .footer-logo img {
    height: 36px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  section,
  section.full-width,
  #services,
  #clients,
  #solution,
  #cta,
  .clients-section,
  .cta-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero,
  .page-hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero-title,
  h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
  }
  .hero-desc,
  .section-desc,
  .contact-desc,
  .hero-subtitle,
  .page-hero-sub,
  .muted,
  .why-body,
  .problem-body,
  .cta-desc,
  .cta-sub,
  .cta-section p,
  #cta p {
    font-size: 12px !important;
  }
  .service-name,
  .why-card h3 {
    font-size: 20px !important;
  }
  .client-card {
    min-width: 0 !important;
  }

  .stat-num {
    font-size: 28px !important;
  }

  .stat-num .unit {
    font-size: 22px !important;
  }
  .stat-item {
    padding: 16px !important;
    gap: 12px !important;
  }

  .stat-label {
    font-size: 13px !important;
  }
}
