/* =====================================================================
   JYD Activated Carbon — Responsive rules for the Modern Industrial skin
   Paired with main.css (base design system lives there).
   ===================================================================== */

/* ------------------------------------------------------ ≤ 1199px --- */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .ind_box1.index .ind_wrap,
  .ind_box2.index .ind_wrap { grid-template-columns: repeat(3, 1fr); }
  .pro_b { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------ ≤ 991px --- */
@media (max-width: 991px) {
  /* mobile nav drawer (CSS-only, toggled by #nav-toggle checkbox) */
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: calc(100vh - 120px); overflow-y: auto; }

  .site-nav__list { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .site-nav__item > a { padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .site-nav__item.is-active > a { color: var(--green); }
  .site-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--green);
    border-radius: 0;
    padding: 0 0 8px 20px;
    margin: 0 0 6px;
  }
  .site-nav__item--cta { margin: 12px 20px; }
  .site-cta { display: block; text-align: center; }

  /* grids scale down */
  .cards,
  .ind_box1.index .ind_wrap,
  .ind_box2.index .ind_wrap,
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }

  .split,
  .ind_box3.index .wrapper,
  .ind_box1.contact .wrapper { grid-template-columns: 1fr; gap: 40px; }

  .pro_det_t { grid-template-columns: 1fr; gap: 28px; }

  .hero h1 { font-size: 34px; }
  .site-header__bar .site-header__social { display: none; }
}

/* ------------------------------------------------------ ≤ 767px --- */
@media (max-width: 767px) {
  .hero { padding: 60px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }

  .section,
  .ind_box1, .ind_box2, .ind_box3 { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
  .title, .title1 { margin-bottom: 28px; }
  .tt { font-size: 24px; }

  .cards,
  .pro_b,
  .app-grid,
  .ind_box1.index .ind_wrap,
  .ind_box2.index .ind_wrap { grid-template-columns: 1fr; }
  .hero__stats { gap: 12px; }

  .pro_content .pro_t { grid-template-columns: 1fr; padding: 16px; }
  .p_det_inf_tt { font-size: 24px; }
  .news_det_tt { font-size: 24px; }

  /* product detail: use the mobile owl scroller instead of the big image */
  .owl-carousel.pro_det_wap_scroll { display: block; margin-top: 12px; }
  .big_pic_show { display: none; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 36px; }
  .cta-band { padding: 44px 0; text-align: center; }
  .cta-band__inner { justify-content: center; text-align: center; }

  .ind_box1.news .ind_wrap .item a { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ind_box1.news .ind_wrap .item .date { flex: none; text-align: left; }

  .float-contact { right: 12px; bottom: 16px; }
  .float-contact__link { width: 42px; height: 42px; }
  .location_wrap { font-size: 13px; }
}

/* ------------------------------------------------------ ≤ 575px --- */
@media (max-width: 575px) {
  .hero h1 { font-size: 24px; }
  .hero__stats { grid-template-columns: 1fr; }
  .stat__num { font-size: 26px; }
  .site-header__bar-inner { font-size: 12px; }
  .section-head p { font-size: 14px; }
  .card__title { font-size: 16px; }
  .pro_tab a { font-size: 13px; padding: 8px 14px; }
  .page a { min-width: 32px; padding: 6px 9px; }
}
