/* ============================================================
   RESPONSIVE SYSTEM — ionetweb
   Breakpoints: 1280 | 1024 | 768 | 480 | 360
============================================================ */

/* ──────────────────────────────────────────────────────────
   1280px — Wide laptop
────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --container-pad: 0 28px;
    --section-pad: 96px 0;
  }
  .hero-title { font-size: clamp(2.6rem, 4.2vw, 3.8rem); }
  .hero-metric-1 { left: -20px; }
  .hero-metric-2 { right: -20px; }
  .hero-metric-3 { right: -20px; }
}

/* ──────────────────────────────────────────────────────────
   1024px — Tablet landscape / small laptop
────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px 0;
    --container-pad: 0 24px;
  }

  /* Hero: stack into single column */
  #hero { padding: 110px 0 70px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content { max-width: 640px; margin: 0 auto; }
  .hero-tag { justify-content: center; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-services-row { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }

  /* Show visual but smaller */
  .hero-visual {
    height: 420px;
    max-width: 560px;
    margin: 0 auto;
  }
  .hero-metric-1 { left: 0; bottom: 24px; }
  .hero-metric-2 { right: 0; top: 32px; }
  .hero-metric-3 { right: 0; bottom: 120px; }
  .hero-badge    { left: 0; }

  /* Stats: 2×2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after,
  .stat-item:nth-child(4)::after { display: none; }

  /* Services: 2 cols */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why us: 1 col centered */
  .why-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  /* Process: 2×2 */
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-connector { display: none; }

  /* Portfolio: 2 cols */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-track .testimonial-card { width: calc(50% - 14px); }

  /* Blog: 2 cols */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2×2 */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ──────────────────────────────────────────────────────────
   768px — Tablet portrait
────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
    --container-pad: 0 20px;
  }

  /* ── Navbar ── */
  #navbar { padding: 16px 0; }
  .nav-links {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,20,50,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links a {
    font-size: 24px; font-weight: 700;
    color: rgba(255,255,255,0.90) !important;
  }
  .nav-links a::after { display: none; }
  .nav-hamburger {
    display: flex; z-index: 200; position: relative;
  }
  .nav-hamburger span { background: var(--white); }
  #navbar.scrolled .nav-hamburger span { background: var(--black); }
  .btn-quote-desktop { display: none; }

  /* ── Hero ── */
  #hero { padding: 96px 0 56px; min-height: auto; }
  .hero-inner { gap: 32px; }
  .hero-title { font-size: 2.4rem; letter-spacing: -0.3px; }
  .hero-desc { font-size: 15px; }
  .hero-visual { display: none; }

  .hero-services-row { gap: 8px; }
  .hero-services-row span { font-size: 11px; padding: 5px 12px; }

  .hero-ctas { flex-direction: column; gap: 12px; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; justify-content: center; padding: 16px 24px; }

  .hero-trust { flex-direction: row; flex-wrap: wrap; gap: 14px; justify-content: center; }

  .hero-wave svg { height: 50px; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item::after { display: none; }
  .stat-item { padding: 28px 16px; }
  .stat-number { font-size: 2.8rem; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }

  /* ── Why Us ── */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-item { padding: 32px 24px; }

  /* ── Process ── */
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-connector { display: none; }

  /* ── Portfolio ── */
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .portfolio-filters { gap: 8px; }
  .filter-btn { font-size: 12px; padding: 7px 16px; }

  /* ── Testimonials ── */
  .testimonials-track { gap: 16px; }
  .testimonials-track .testimonial-card { width: calc(85vw); }
  .testimonial-card { padding: 28px 24px; }

  /* ── Blog ── */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── CTA Banner ── */
  #cta-banner { padding: 80px 0; }
  .cta-btns { flex-direction: column; gap: 12px; }
  .btn-white,
  .btn-outline-white { width: 100%; max-width: 320px; justify-content: center; text-align: center; }

  /* ── Footer ── */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column; gap: 12px; text-align: center;
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form button { border-radius: var(--radius-full); padding: 14px; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.9rem; }
  .section-desc { font-size: 15px; }
}

/* ──────────────────────────────────────────────────────────
   480px — Phone
────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-pad: 52px 0;
    --container-pad: 0 16px;
  }

  /* Hero */
  #hero { padding: 84px 0 44px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-tag { font-size: 10px; padding: 6px 14px; letter-spacing: 1.5px; }
  .hero-desc { font-size: 14px; }
  .hero-services-row { gap: 6px; }
  .hero-services-row span { font-size: 10px; padding: 5px 10px; }

  /* Stats: stack */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.4rem; }
  .stat-label { font-size: 12px; }

  /* Services */
  .service-card { padding: 24px 20px; }
  .service-icon { width: 52px; height: 52px; font-size: 20px; margin-bottom: 16px; }
  .service-card h3 { font-size: 16px; }

  /* Process */
  .process-track { grid-template-columns: 1fr; gap: 20px; }
  .step-circle { width: 70px; height: 70px; font-size: 24px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-card { aspect-ratio: 16/10; }

  /* Testimonials */
  .testimonials-track .testimonial-card { width: calc(90vw); }

  /* Blog */
  .blog-img { height: 180px; }
  .blog-body { padding: 20px; }
  .blog-card h3 { font-size: 15px; }

  /* CTA */
  #cta-banner { padding: 64px 0; }
  .cta-inner h2 { font-size: 1.8rem; }
  .cta-inner p { font-size: 15px; }

  /* Footer */
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 16px; }
  .footer-col ul li a { font-size: 13px; }

  /* Section headers */
  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: 14px; }
}

/* ──────────────────────────────────────────────────────────
   360px — Small phones
────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  :root { --container-pad: 0 14px; }
  .hero-title { font-size: 1.8rem; }
  .hero-ctas .btn-hero-primary,
  .hero-ctas .btn-hero-ghost { font-size: 13px; padding: 14px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.55rem; }
}

/* ──────────────────────────────────────────────────────────
   Touch devices — disable custom cursor
────────────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none !important; }
  button, a { cursor: pointer; }
  .service-card,
  .why-item,
  .blog-card,
  .portfolio-card,
  .testimonial-card { cursor: pointer; }
}
