/* =====================================================
   responsive.css — TikeTaka Landing Page
   Mobile-first responsive overrides
   ===================================================== */

/* =====================================================
   LARGE DESKTOP (≥1400px)
   ===================================================== */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .display-hero { font-size: 4.25rem; }
  .hero-desc { font-size: 1.1875rem; }
}

/* =====================================================
   DESKTOP (992px – 1199px)
   ===================================================== */
@media (max-width: 1199px) {
  :root { --section-py: 5rem; }
  .display-hero  { font-size: clamp(2.25rem, 5vw, 3.5rem); }
  .display-section { font-size: clamp(1.625rem, 4vw, 2.5rem); }
  .stat-number { font-size: 2.25rem; }
  .hero-img-float-1 { width: 110px; left: -12px; bottom: -12px; }
  .hero-img-float-2 { width: 100px; right: -12px; top: -12px; }
  .how-timeline::before { left: 10%; right: 10%; }
  .how-step-number { width: 70px; height: 70px; font-size: 1.25rem; }
}

/* =====================================================
   TABLET (768px – 991px)
   ===================================================== */
@media (max-width: 991px) {
  :root {
    --section-py: 4.5rem;
    --section-py-sm: 3rem;
  }

  /* Navbar */
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
  }
  .nav-link { padding: 0.625rem 0.75rem !important; }
  .btn-nav-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }

  /* Hero */
  #hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero-col-text { text-align: center; order: 2; }
  .hero-col-img  { order: 1; margin-bottom: 2.5rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-img-float-1, .hero-img-float-2 { display: none; }

  /* Stats */
  .stat-card { padding: 2rem 1rem; }
  .stat-number { font-size: 2rem; }

  /* Feature & Modul */
  .feature-card { padding: 1.5rem; }
  .modul-icon-wrap { width: 52px; height: 52px; }

  /* How it works */
  .how-timeline { flex-direction: column; }
  .how-timeline::before {
    left: 40px;
    top: 0; bottom: 0;
    width: 2px;
    height: auto;
    right: auto;
  }
  .how-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .how-step-number {
    width: 60px; height: 60px;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin: 0;
  }
  .how-step-content { padding-top: 0.5rem; }
  .how-step-icon { margin: 0 0 0.5rem; }

  /* Multi Gudang */
  .gudang-timeline::before { display: none; }
  .timeline-item { flex-direction: column !important; text-align: center; gap: 0.75rem; }
  .timeline-item-content { width: 100%; }

  /* Slider */
  .slider-slide img { height: 360px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-thumbs { display: none; }

  /* Footer */
  .footer-desc { max-width: 100%; }
  .social-links { margin-bottom: 0.5rem; }
}

/* =====================================================
   MOBILE LARGE (576px – 767px)
   ===================================================== */
@media (max-width: 767px) {
  :root {
    --section-py: 3.5rem;
    --section-py-sm: 2.5rem;
  }

  /* Hero */
  #hero { padding: 5rem 0 3rem; }
  .display-hero { font-size: 2.25rem; letter-spacing: -0.02em; }
  .hero-desc { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 0.75rem; }

  /* Section headers */
  .display-section { font-size: 1.75rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* Stats - 2 per row */
  #stats .col-6 { margin-bottom: 1rem; }
  .stat-number { font-size: 1.75rem; }
  .stat-card { padding: 1.5rem 1rem; }

  /* Features - stack */
  .feature-card { margin-bottom: 1rem; }

  /* Slider */
  .slider-slide img { height: 260px; }
  .slider-btn { width: 36px; height: 36px; }
  .slider-btn svg { width: 16px; height: 16px; }
  .slider-dots { margin-top: 1rem; }
  .slider-dot { width: 6px; height: 6px; }
  .slider-dot.active { width: 20px; }

  /* Detail sections */
  .detail-img-wrap { margin-bottom: 2rem; }
  .detail-img-badge { font-size: 0.75rem; padding: 0.5rem 0.875rem; }

  /* Timeline */
  .gudang-timeline { padding: 0; }

  /* How it works */
  .how-step-number { width: 52px; height: 52px; font-size: 1rem; }
  .how-timeline::before { left: 26px; }

  /* FAQ */
  .faq-accordion .accordion-button { font-size: 0.9375rem; padding: 1rem 1.25rem; }
  .faq-accordion .accordion-body { padding: 0 1.25rem 1.25rem; }

  /* CTA */
  .cta-title { font-size: 1.875rem; }
  .cta-desc { font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }

  /* Footer */
  .footer-top { padding: 3.5rem 0 2rem; }
  [class*="col-"] .footer-heading { margin-top: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* Back to top */
  #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }

  /* Dashboard chart */
  .css-chart { height: 90px; }
  .kpi-value { font-size: 1.375rem; }
}

/* =====================================================
   MOBILE SMALL (≤ 575px)
   ===================================================== */
@media (max-width: 575px) {
  html { font-size: 15px; }
  :root { --section-py: 3rem; }

  .display-hero { font-size: 2rem; }
  .hero-img-main { border-radius: var(--radius-xl); }

  .stat-number { font-size: 1.625rem; }
  .stat-label { font-size: 0.875rem; }

  .modul-card { padding: 1.25rem 1rem; }
  .modul-icon-wrap { width: 48px; height: 48px; }
  .modul-icon { width: 24px; height: 24px; }

  .slider-slide img { height: 220px; }
  .slider-btn { display: none; }

  .feature-icon-wrap { width: 48px; height: 48px; }
  .feature-icon { width: 24px; height: 24px; }

  .why-icon-wrap { width: 52px; height: 52px; }
  .why-icon { width: 26px; height: 26px; }

  .btn { padding: 0.7rem 1.5rem; font-size: 0.9375rem; }
  .btn-lg { padding: 0.8125rem 1.75rem; }

  .section-header p { font-size: 1rem; }

  .footer-top { padding: 2.5rem 0 1.5rem; }

  /* CSS chart smaller on mobile */
  .chart-bar-label { font-size: 0.5625rem; }
  .donut-chart { width: 100px; height: 100px; }
  .donut-chart::before { inset: 18px; }
  .donut-center { font-size: 0.75rem; }
}

/* =====================================================
   Print styles
   ===================================================== */
@media print {
  #navbar, #back-to-top, .slider-btn, .slider-dots { display: none !important; }
  #hero { min-height: auto; padding: 2rem 0; }
  body { font-size: 12pt; }
  .section-py { padding: 2rem 0; }
  img { max-width: 100% !important; page-break-inside: avoid; }
}
