/* Invitra — penyesuaian tablet & ponsel. Hanya berlaku di layar kecil (media query); desktop tidak berubah. Scope: .inv-scope */

/* ===== Tablet kecil / laptop sempit ===== */
@media (max-width: 1100px) {
  .inv-scope .hero-graphic { max-width: 100%; }
}

/* ===== Tablet & ponsel (<= 820px) ===== */
@media (max-width: 820px) {
  /* ritme jarak antar bagian */
  .inv-scope .section { padding-block: 56px; }
  .inv-scope .section-header { margin-bottom: 32px; }
  .inv-scope .cta-section { padding-block: 56px; }
  .inv-scope .clients { padding-block: 32px; }

  /* hero: judul & tombol dulu, grafis kecil setelahnya */
  .inv-scope .hero { padding-block: 32px 40px; }
  .inv-scope .hero .inner { gap: 28px; }
  .inv-scope .hero-visual { order: 1; }
  .inv-scope .hero-graphic { max-width: 100%; aspect-ratio: auto; height: 200px; }
  .inv-scope .hero-graphic svg { width: 110px; height: 110px; }
  .inv-scope .hero-badge { margin-bottom: 16px; }
  .inv-scope .hero h1 { margin-bottom: 14px; }
  .inv-scope .hero-desc { font-size: 16px; max-width: none; margin-bottom: 24px; }
  .inv-scope .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 22px; }
  .inv-scope .hero-stat-num { font-size: 24px; }
  .inv-scope .hero-stat-label { font-size: 12px; line-height: 1.35; }

  /* logo klien lebih terbaca */
  .inv-scope .clients-label { white-space: normal; text-align: center; }
  .inv-scope .client-logos { gap: 40px; }
  .inv-scope .client-logo-img { height: 48px; max-width: 160px; opacity: .8; }

  /* navigasi */
  .inv-scope .mobile-toggle { width: 44px; height: 44px; margin-right: -8px; }
  .inv-scope .mobile-toggle span { left: 11px; }
  .inv-scope .mobile-toggle span:nth-child(1) { top: 15px; }
  .inv-scope .mobile-toggle span:nth-child(2) { top: 21px; }
  .inv-scope .mobile-toggle span:nth-child(3) { top: 27px; }
  .inv-scope .mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .inv-scope .mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .inv-scope .mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .inv-scope .mobile-toggle:focus { outline: none; }
  .inv-scope .mobile-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

  .inv-scope .nav-links.open { padding: 4px 16px 20px; gap: 0; align-items: stretch; max-height: calc(100vh - 72px); overflow-y: auto; }
  .inv-scope .nav-links.open li { border-bottom: 1px solid var(--border); }
  .inv-scope .nav-links.open li > a { display: flex; align-items: center; min-height: 50px; font-size: 16px; }
  .inv-scope .nav-links.open a.active { color: var(--blue); }
  .inv-scope .nav-links.open a.active::after { display: none; }
  .inv-scope .nav-links.open .inv-lang { display: flex; align-items: center; min-height: 50px; gap: 4px; font-size: 14px; }
  .inv-scope .nav-links.open .inv-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; }
  .inv-scope .nav-links.open li:last-child { border-bottom: none; padding-top: 16px; }
  .inv-scope .nav-links.open .nav-cta { justify-content: center; width: 100%; min-height: 50px; font-size: 16px; }

  /* form: 16px mencegah zoom otomatis di iOS */
  .inv-scope .form-group input, .inv-scope .form-group select, .inv-scope .form-group textarea,
  .inv-scope .bi-news input[type="email"] { font-size: 16px; }

  /* area sentuh */
  .inv-scope .service-link { min-height: 44px; }
  .inv-scope .footer-col a { display: inline-block; padding: 8px 0; min-width: 44px; }
  .inv-scope .footer-col ul { gap: 0; }
  .inv-scope .footer-bottom-links a { display: inline-block; padding: 8px 0; }
  .inv-scope .blog-tag { font-size: 12px; }
  .inv-scope .bi-breadcrumb a { display: inline-block; padding: 8px 0; }
  .inv-scope .back-link { display: inline-block; padding: 10px 0; }
  .inv-scope .nav-logo { min-height: 44px; }
  .inv-scope .inv-article .blog-tag a { display: inline-block; padding: 8px 0; }
  .inv-scope .about-grid > *, .inv-scope .milestones > * { min-width: 0; }
  .inv-scope .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* blog: teks dulu, gambar setelahnya */
  .inv-scope .bi-hero-media { order: 1; }
}

/* ===== Ponsel (<= 600px) ===== */
@media (max-width: 600px) {
  .inv-scope .hero-actions { flex-direction: column; gap: 12px; }
  .inv-scope .hero-actions a { justify-content: center; width: 100%; }

  .inv-scope .cta-section .btn-primary, .inv-scope .cta-section .btn-outline { display: flex; justify-content: center; width: 100%; max-width: 340px; margin: 0 auto 12px; }

  .inv-scope .testimonials-grid, .inv-scope .about-grid, .inv-scope .services-grid, .inv-scope .packages-grid { grid-template-columns: minmax(0, 1fr); }
  .inv-scope .contact-form { padding: 20px; }

  /* footer: merek penuh, dua kolom tautan, kontak penuh */
  .inv-scope .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-bottom: 28px; }
  .inv-scope .footer-brand, .inv-scope .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .inv-scope .footer-bottom { flex-direction: column; align-items: flex-start; }
  .inv-scope .footer-bottom-links { flex-wrap: wrap; gap: 4px 20px; }

  /* blog */
  .inv-scope .bi-hero { padding: 32px 0; }
  .inv-scope .bi-hero-title { font-size: 26px; padding-bottom: 14px; margin-bottom: 14px; }
  .inv-scope .bi-hero-excerpt { font-size: 16px; }
  .inv-scope .bi-hero-btn { width: 100%; justify-content: center; }
  .inv-scope .bi-body { padding: 18px 18px 60px; }
  .inv-scope .bi-sidebar { padding: 18px; border-radius: 20px; }
  .inv-scope .bi-main { padding-bottom: 56px; }

  /* artikel */
  .inv-scope .inv-article { padding: 28px 16px 56px; }
  .inv-scope .article-body { font-size: 16.5px; line-height: 1.7; }
  .inv-scope .article-body h2 { margin-top: 1.6em; }
  .inv-scope .article-body .inv-callout { padding: 16px; }
  .inv-scope .article-body table { display: block; overflow-x: auto; }
}

/* ===== Ponsel sangat kecil (<= 360px) ===== */
@media (max-width: 360px) {
  .inv-scope .milestone { padding: 20px 10px; }
  .inv-scope .milestone-num { font-size: 26px; }
  .inv-scope .hero-stats { gap: 8px; }
  .inv-scope .hero-stat-num { font-size: 21px; }
  .inv-scope .section-title { font-size: 26px; }
}
