/* =========================================
   RESPONSIVE.CSS — Mobile-first breakpoints
   Breakpoints: 768px (tablet), 1024px (desktop)
   ========================================= */

/* === TABLET (768px–1023px) === */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }

  /* Navbar */
  .navbar { justify-content: space-between; gap: 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn-phone { display: none; }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    min-height: auto;
  }
  .hero h1 { font-size: 36px; }
  .hero-sub { max-width: 100%; margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin: 0 auto; }
  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 340px; margin: 0 auto; }
  .float-card { display: none; }

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

  /* Services */
  .tab-switcher { width: 100%; }
  .tab-btn { flex: 1; justify-content: center; padding: 12px 16px; }
  .service-layout { grid-template-columns: 1fr; gap: 32px; }
  .info-row { grid-template-columns: 150px 1fr; }

  /* Services comparison table */
  .comp-tab-btn { padding: 10px 16px; font-size: 14px; }
  .comp-row { grid-template-columns: 110px 1fr 1fr; }
  .comp-label-col { padding: 12px 12px; font-size: 13px; }
  .comp-cell { padding: 12px 14px; font-size: 13px; }
  .comp-col-head { padding: 14px 16px; font-size: 14px; }
  .svc-highlights { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .dao-subservice-grid { grid-template-columns: repeat(2, 1fr); }
  .dao-subservices-head { align-items: flex-start; flex-direction: column; gap: 12px; }

  /* Calculator */
  .calc-layout { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }

  /* Process */
  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .step-arrow { display: none; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  /* FAQ */
  .faq-support { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  /* Blog */
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-subservice-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-cta-box { flex-direction: column; text-align: center; padding: 36px 32px; }
  .blog-cta-btns { justify-content: center; }
  .article-cta { flex-direction: column; text-align: center; }
}

/* === MOBILE (< 768px) === */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container { padding: 0 16px; }

  /* Typography */
  .section-header h2 { font-size: 26px; }
  .section-header { margin-bottom: 32px; }

  /* Navbar */
  .navbar { height: 64px; gap: 10px; }
  .logo svg { width: 38px; height: 38px; }
  .logo-text { flex-direction: column; align-items: flex-start; gap: 2px; }
  .logo-main,
  .logo-sub { font-size: 15px; line-height: 1; }
  .nav-cta { display: none; }
  .hamburger { margin-left: auto; flex-shrink: 0; }
  .mobile-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns a { text-align: center; justify-content: center; }
  .hero-stats { gap: 16px; }
  .stat-item strong { font-size: 18px; }
  .hero-img-wrap { max-width: 280px; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { padding: 16px; }

  /* Services comparison table mobile */
  .services { padding: 60px 0; }
  .tab-switcher { flex-direction: column; width: 100%; }
  .tab-btn { width: 100%; }
  .info-row { grid-template-columns: 1fr; }
  .info-label { border-right: none; border-bottom: 1px solid var(--border); }
  .comp-tab-header { flex-direction: column; }
  .comp-tab-btn { border-radius: 8px; border-bottom: 1.5px solid var(--border); }
  .comp-table {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comp-row {
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
    min-width: 100%;
  }
  .comp-label-col { padding: 10px 8px; font-size: 11px; }
  .comp-cell { padding: 10px 10px; font-size: 12px; }
  .comp-col-head { padding: 12px 12px; font-size: 12px; gap: 6px; }
  .col-head-icon { width: 28px; height: 28px; display: none; }
  .comp-cta-row .comp-cell { padding: 14px 10px; }
  .comp-cta-row .btn-primary { padding: 10px 12px; font-size: 13px; }
  .svc-highlights { padding: 20px 16px; }
  .dao-subservices { padding: 22px 16px; }
  .dao-subservices-head h3 { font-size: 21px; }
  .dao-subservice-grid { grid-template-columns: 1fr; gap: 12px; }
  .dao-subservice-card { min-height: auto; padding: 18px; }

  /* Calculator */
  .calc-section { padding: 60px 0; }
  .calc-inputs { padding: 24px 20px; }
  .calc-results { padding: 24px 20px; }
  .ctab { padding: 14px 16px; font-size: 14px; }

  /* Process */
  .process { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px 20px; }

  /* Contact */
  .contact-section { padding: 60px 0; }
  .contact-right { padding: 28px 20px; }
  .contact-left h2 { font-size: 24px; }
  .qprod-link { margin-right: 4px; }

  /* FAQ */
  .faq-section { padding: 60px 0; }
  .faq-q { font-size: 15px; padding: 18px 0; }
  .faq-support { grid-template-columns: 1fr; }
  .fsup-item { padding: 20px; }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }

  /* Floating */
  .floating-btns { bottom: 18px; right: 14px; gap: 8px; }
  .flt-label,
  .chat-proactive { display: none; }
  .flt-btn { width: 46px; height: 46px; }
  .chat-widget {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-width: 340px;
  }
  .fab { width: 48px; height: 48px; }
  .back-top { right: 16px; bottom: 84px; width: 38px; height: 38px; }

  /* Calc results */
  .res-card strong { font-size: 20px; }

  /* Blog */
  .blog-hero { padding: 48px 0 40px; }
  .blog-hero h1 { font-size: 28px; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .archive-subservices { padding: 40px 0; }
  .archive-subservices-head h2 { font-size: 24px; }
  .archive-subservice-grid { grid-template-columns: 1fr; gap: 14px; }
  .archive-subservice-card { min-height: auto; padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-cta-box { padding: 28px 24px; }
  .blog-cats { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .cat-btn { white-space: nowrap; flex-shrink: 0; }

  /* Single post */
  .post-header h1 { font-size: 26px; }
  .post-featured-img img { height: 220px; }
  .article-cta { padding: 24px 20px; }
  .article-cta-text h3 { font-size: 18px; }
  .post-nav { grid-template-columns: 1fr; gap: 12px; }
  .post-nav-next { text-align: left; }
  .error-404-code { font-size: 80px; }
  .error-404-btns { flex-direction: column; align-items: center; }
}

/* === SMALL MOBILE (< 400px) === */
@media (max-width: 399px) {
  .hero h1 { font-size: 26px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-sep { width: 40px; height: 1px; }
  .btn-sm { font-size: 13px; padding: 9px 16px; }
}

/* === LARGE DESKTOP (> 1200px) === */
@media (min-width: 1280px) {
  .hero h1 { font-size: 52px; }
  .hero-img-wrap { max-width: 520px; }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Touch interactions === */
@media (hover: none) {
  .benefit-card:hover { transform: none; box-shadow: var(--shadow); }
  .step:hover { transform: none; box-shadow: none; }
  .fsup-item:hover { transform: none; }
  .fab-phone { animation: none; }
  .post-card:hover { transform: none; }
}
