/* ============================================================
   MATSCOP TECHNICAL — RESPONSIVE STYLES
   ============================================================ */

/* ── ≤1200px ── */
@media (max-width: 1200px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-grid::before { display: none; }
  .about-text { padding-right: 20px; }
}

/* ── ≤1023px (Tablet) ── */
@media (max-width: 1023px) {
  /* HEADER */
  .logo_box a { padding: 12px 0; }
  .logo_box img { height: 72px !important; }
  .menu_box .navbar { padding: 10px 0; position: relative; }

  .menu_box .navbar-toggler {
    padding: 0; outline: none;
    background: rgba(0,184,138,.08);
    border: 1px solid rgba(0,184,138,.3) !important;
    border-radius: 8px !important;
    width: 40px; height: 40px;
    position: absolute; right: 0; top: 10px;
    display: flex; align-items: center; justify-content: center;
  }
  .menu_box .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,184,138,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    width: 20px; height: 20px;
    display: block;
  }
  .menu_box .navbar-collapse {
    position: absolute; right: 0; top: 65px;
    width: 280px; z-index: 9999;
    background: rgba(245,249,248,.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,122,90,.2);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
  }
  .menu_box .navbar-nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .menu_box .navbar .nav-item { width: 100%; }
  .menu_box .navbar .nav-link {
    width: 100%; padding: 12px 14px !important;
    border-radius: 8px;
    color: rgba(26,46,42,.9) !important;
  }
  .menu_box .navbar .nav-item + .nav-item .nav-link {
    border-top: 1px solid rgba(0,184,138,.1);
    border-radius: 0;
  }
  .menu_box .navbar .dropdown-menu {
    position: static !important;
    float: none; width: 100%;
    margin: 0; box-shadow: none !important;
    border: none !important; border-radius: 8px !important;
    background: rgba(0,184,138,.05) !important;
    padding: 4px 0 4px 10px !important;
  }
  .menu_box .navbar .nav-item.dropdown:hover .dropdown-menu { display: block; }
  .nav-item.nav-cta .nav-link {
    margin: 8px 0 0 !important;
    text-align: center;
    border-radius: 8px !important;
  }

  /* MEGA MENU — off on tablet/mobile */
  .has-mega .mega-menu { display: none !important; }

  /* INNER BANNER */
  .inner_banner_wrapper { padding: 110px 0 55px; }
  .inner_banner_wrapper h1 { font-size: 28px !important; }

  /* HERO */
  .hero-section { padding: 110px 0 55px; }
  .hero-title { font-size: clamp(28px, 5.5vw, 44px); }
  /* ABOUT */
  .about-text { padding-right: 0; }
  .about-feat-grid { grid-template-columns: 1fr; }

  /* PROCESS */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-grid::before { display: none; }

  /* SERVICES */
  .svc-grid { grid-template-columns: repeat(2, 1fr); }

  /* PORTFOLIO */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* FOOTER */
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-bottom { flex-direction: column; text-align: center; }
  .ft-bottom-links { justify-content: center; }

  /* inner services */
  .inner_services_section .is-grid { grid-template-columns: 1fr; }
  .plan_wrapper .row .col-lg-4 { margin-bottom: 16px; }

  /* pricing */
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pricing-grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pricing-card.pricing-featured { transform: translateY(0); }

  /* stats */
  .stats-row { gap: 24px; }
}

/* ── ≤767px (Mobile) ── */
@media (max-width: 767px) {
  /* HEADER */
  header .container { padding: 0 16px; }
  .logo_box { padding: 0; }
  .logo_box img { height: 60px !important; }
  .menu_box .navbar { padding: 8px 0; }
  .menu_box .navbar-toggler { top: 6px; }
  .menu_box .navbar-collapse { top: 58px; width: 260px; }

  /* HERO */
  .hero-section { padding: 100px 0 48px; text-align: center; }
  .hero-badge { display: inline-flex; margin-left: auto; margin-right: auto; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); }
  .hero-desc { font-size: 14px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn-g,
  .hero-btns .btn-o { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; justify-content: center; }
  .hs-num { font-size: 28px; }
  .scroll-hint { display: none; }
  .hv-wrap { margin-top: 36px; padding: 44px 12px; }
  .hv-main { max-width: 100%; }
  .hv-float { white-space: normal; font-size: 12px; padding: 10px 12px; gap: 10px; }
  .hv-float-tl { top: 6px;  left: 8px;  right: auto; }
  .hv-float-br { bottom: 6px; right: 8px; left: auto; }
  .hv-skill-label { min-width: 100px; font-size: 11px; }
  .hv-ds-num { font-size: 14px; }
  .hv-ds-lbl { font-size: 10px; }

  /* STATS */
  .stats-bar { padding: 0; }
  .stats-row { flex-wrap: wrap; justify-content: center; gap: 0; }
  .s-item {
    flex: 0 0 50%; width: 50%; box-sizing: border-box;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 12px 8px; text-align: center;
    border-right: 1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
  }
  .s-item:nth-child(2n)        { border-right: none; }
  .s-item:nth-last-child(-n+2) { border-bottom: none; }
  .s-num { font-size: 20px; }
  .s-lbl { font-size: 11px; }

  /* SERVICES */
  .services-section { padding: 44px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 26px 22px; }

  /* ABOUT */
  .about-section { padding: 44px 0; }
  .about-text { padding-right: 0; margin-bottom: 32px; }
  .about-feat-grid { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 16px; display: inline-block; }

  /* PROCESS */
  .process-section { padding: 44px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .proc-num { width: 78px; height: 78px; }

  /* PORTFOLIO */
  .portfolio-section { padding: 44px 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-item { height: 220px; }

  /* TESTIMONIALS */
  .testi-section { padding: 44px 0; }
  .testi-section .item { padding: 22px; }
  .testi-section .item p { font-size: 14px; }

  /* CTA */
  .cta-section { padding: 44px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-g,
  .cta-btns .btn-o { width: 100%; max-width: 320px; justify-content: center; }

  /* CONTACT WIDGET */
  .cw-section { padding: 60px 0; }
  .cw-box { padding: 32px 22px; max-width: 100%; }
  .cw-box a.cw-phone { font-size: 22px; }

  /* FOOTER */
  .site-footer { padding: 60px 0 0; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .ft-bottom { flex-direction: column; text-align: center; padding: 18px 0; }
  .ft-bottom-links { justify-content: center; }

  /* INNER BANNER */
  .inner_banner_wrapper { padding: 100px 0 50px; text-align: center; }
  .inner_banner_wrapper h1 { font-size: clamp(22px, 6vw, 32px) !important; }
  .inner_banner_wrapper p { font-size: 13px !important; width: 100% !important; }
  .inner_banner_wrapper .sec-tag { display: block; }
  .inner_banner_wrapper .breadcrumb-trail { justify-content: center; }

  /* INNER SERVICES */
  .inner_services_section { padding: 55px 0; }
  .inner_services_section .is-grid { grid-template-columns: 1fr; }
  .inner_services_section .is-card { flex-direction: column; gap: 14px; padding: 22px; }

  /* PLAN */
  .plan_wrapper { padding: 55px 0; }

  /* OUR WORK */
  .our_work_filter_wrapper .gallery_product { height: 200px !important; }
  .our_work_filter_wrapper .gallery_product a h3 {
    opacity: 1 !important; transform: none !important;
  }
  .our_work_filter_wrapper .gallery_product a::before { opacity: 1 !important; }

  /* ABOUT INNER */
  .about_inner_section { padding: 55px 0; }
  .about_inner_section h2 { font-size: 22px !important; }

  /* CONTACT */
  .contact_section { padding: 55px 0; }
  .contact_section .contact_section_box { padding: 26px 18px; }

  /* ACCORDION */
  .accordion_wrapper { padding: 40px 0; }
  .accordion_wrapper .card-header button { padding-right: 40px; white-space: normal; line-height: 1.45; }

  /* LEAD MGMT */
  .lead-management-feature { padding: 40px 0; }
  .lead-management-feature .img-fluid { width: 100% !important; }
}

/* ── ≤480px ── */
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .s-item { padding: 10px 6px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 200px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-socials { flex-wrap: wrap; }
  .sec-title { font-size: 22px; }
}

/* ── Service visual responsive ── */
@media (max-width: 767px) {
  .sv-visual { height: 130px; }

  /* pricing */
  .pricing-grid,
  .pricing-grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card.pricing-featured { transform: translateY(0); }
  .pc-amount { font-size: 32px; }
  .sv-detail-vis { min-height: 300px; }
  .sv-kpi-row { gap: 6px; }
  .sv-kpi-card { padding: 8px 10px; }
  .sv-kc-val { font-size: 16px; }
  .sv-bars { gap: 4px; }
  .sv-kanban { gap: 6px; }
  .sv-kk-col { min-width: 100px; }
  .sv-mod-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sv-api-panels { flex-direction: column; gap: 6px; }
  .sv-code-editor { font-size: 9px; }
  .sv-browser-url { font-size: 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sv-mkt-chart { overflow: hidden; }
  .hv-float-tl { left: 0; top: 4px; font-size: 12px; }
  .hv-float-br { right: 0; bottom: 4px; font-size: 12px; }
}
