/* ============================================================
   C3 Metrics — Mobile & Responsive Styles
   Loaded on all pages after inline styles.
   ============================================================ */

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: none;
  border: none;
  z-index: 101;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a0f1e;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(0, 7px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(0, -7px); }

/* ── TABLET BREAKPOINT (≤ 900px) ──────────────────────────── */
@media (max-width: 900px) {

  /* 2-column → 1-column */
  .hero-outer,
  .hiw-header,
  .analytics-layout,
  .ai-channel-inner,
  .fit-layout,
  .two-col,
  .two-col-center,
  .ai-intro,
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .hero-outer { padding-top: 6rem !important; padding-bottom: 3rem !important; }

  /* Step flow: 4 → 2 columns */
  .steps-flow,
  .pipe-steps,
  .orac-steps { grid-template-columns: repeat(2, 1fr) !important; }

  /* 3-column → 2-column */
  .suite-grid,
  .vertical-cards,
  .collection-methods,
  .output-grid,
  .isol-clients { grid-template-columns: repeat(2, 1fr) !important; }

  /* Results 4 → 2 */
  .results-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Platform suite panel */
  .suite-panel.active { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .ml-stages         { grid-template-columns: 1fr !important; }
  .audience-grid     { grid-template-columns: 1fr !important; }
  .diff-6            { grid-template-columns: repeat(2, 1fr) !important; }

  /* Inline grid helpers */
  .mob-1col { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .mob-2col { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }

  /* CTA */
  .cta-block { padding: 3.5rem 2.5rem !important; }

  /* Suite tabs — scrollable on small screens */
  .suite-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .suite-tab { white-space: nowrap; font-size: 0.78rem !important; padding: 0.45rem 0.85rem !important; }
}

/* ── MOBILE BREAKPOINT (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Collapse nav links into dropdown */
  .nav-links {
    display: none !important;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e9f0;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0.4rem 0 0.75rem !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    z-index: 100;
    list-style: none;
  }
  .nav-links.open { display: flex !important; }

  .nav-links li          { width: 100%; }
  .nav-links a           {
    display: block !important;
    padding: 0.85rem 5% !important;
    color: #0a0f1e !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    border-bottom: 1px solid #e5e9f0;
    text-decoration: none;
  }
  .nav-links li:last-child a { border-bottom: none !important; }
  .nav-btn {
    margin: 0.5rem 5% !important;
    display: block !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 0.7rem 1rem !important;
    background: #0057FF !important;
    color: #fff !important;
  }

  /* Override old datalab nav hack */
  .nav-links li { display: block !important; }

  /* Wrap padding */
  .wrap {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* Page hero padding */
  .hero-outer { padding: 5.5rem 4% 3rem !important; }
  .hero-inner { padding: 5.5rem 4% 3rem !important; }

  /* Typography */
  h1, .hero-h     { font-size: clamp(1.75rem, 7vw, 2.6rem) !important; }
  h2              { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .section-desc   { font-size: 0.9rem !important; }
  .vp-stat-num    { font-size: 3rem !important; }

  /* VP band */
  .vp-inner       { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .vp-text        { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0 !important; padding-top: 1.5rem; }

  /* Suite together */
  .suite-together { flex-direction: column !important; text-align: center !important; }

  /* Results */
  .results-grid   { grid-template-columns: repeat(2, 1fr) !important; }

  /* 3-col → 1-col on mobile */
  .vertical-cards { grid-template-columns: 1fr !important; }
  .suite-grid     { grid-template-columns: 1fr !important; }

  /* Footer */
  footer          { flex-direction: column !important; gap: 1rem !important; text-align: center !important; }
  .footer-links   { flex-wrap: wrap !important; justify-content: center !important; }

  /* About leadership */
  .leadership-grid { grid-template-columns: 1fr !important; }

  /* Contact tabs */
  .contact-tabs   { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }

  /* Inline grid helpers */
  .mob-1col, .mob-2col { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Platform: isolation client rows */
  .isol-clients   { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── SMALL MOBILE (≤ 480px) ──────────────────────────────── */
@media (max-width: 480px) {

  /* Collapse everything to 1 column */
  .diff-6,
  .suite-grid,
  .collection-methods,
  .isol-clients,
  .output-grid,
  .results-grid  { grid-template-columns: 1fr !important; }

  .steps-flow,
  .pipe-steps,
  .orac-steps    { grid-template-columns: 1fr !important; }

  .mob-1col,
  .mob-2col      { grid-template-columns: 1fr !important; }

  /* Nav tap targets */
  .nav-links a   { padding: 1rem 5% !important; }

  /* CTA */
  .cta-block     { padding: 2.25rem 1.25rem !important; }
  .cta-block h2  { font-size: 1.4rem !important; }

  /* Result tile font */
  .result-big    { font-size: 2.5rem !important; }
}
