/* ═══════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints: 480 / 768 / 1024 / 1280
═══════════════════════════════════════ */

/* ─── 1280px and below ─── */
@media (max-width: 1280px) {
  :root { --max-w: 1100px; }
  .hero-title { font-size: var(--t-7xl); }
  .iso-scene  { width: 340px; height: 340px; }
  .mega-menu-panel { min-width: 560px; }
}

/* ─── 1024px and below ─── */
@media (max-width: 1024px) {
  .hero-split     { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual    { display: none; }
  .hero-title     { font-size: var(--t-6xl); }
  .hero-subtitle  { max-width: 100%; }
  .section-title  { font-size: var(--t-4xl); }
  .cta-title      { font-size: var(--t-5xl); }
  .page-hero-title{ font-size: var(--t-5xl); }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-us-split   { grid-template-columns: 1fr; gap: var(--sp-12); }
  .about-story-grid { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer-nav     { grid-template-columns: repeat(3, 1fr); }
  .service-detail-card { grid-template-columns: 1fr; gap: var(--sp-6); }
  .mega-grid      { grid-template-columns: repeat(2, 1fr); }
  .mega-featured  { display: none; }
}

/* ─── 768px and below ─── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5,11,26,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4);
    gap: var(--sp-1);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { justify-content: flex-start; padding: var(--sp-3) var(--sp-4); }

  .mega-menu-panel {
    position: static;
    transform: none;
    min-width: 0;
    border-radius: var(--r-md);
    box-shadow: none;
    margin-top: var(--sp-1);
    display: none;
  }
  .nav-item.open .mega-menu-panel { display: block; opacity: 1; pointer-events: auto; }
  .mega-grid { grid-template-columns: 1fr; gap: var(--sp-2); }

  .mobile-menu-btn { display: flex; }
  .nav-cta { display: none; }

  /* Hero */
  .hero-split     { padding: var(--sp-10) var(--sp-5); }
  .hero-title     { font-size: var(--t-5xl); }
  .hero-stats     { gap: var(--sp-6); }
  .stat-num       { font-size: var(--t-3xl); }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .btn-lg         { width: 100%; justify-content: center; }

  /* Sections */
  .section        { padding: var(--sp-20) 0; }
  .section-title  { font-size: var(--t-3xl); }
  .section-header { margin-bottom: var(--sp-10); }
  .services-grid  { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .metric-row     { grid-template-columns: 1fr; }
  .why-list       { gap: var(--sp-5); }
  .cta-title      { font-size: var(--t-4xl); }
  .cta-actions    { flex-direction: column; align-items: center; }
  .btn-xl         { width: 100%; justify-content: center; }
  .page-hero-title{ font-size: var(--t-4xl); }
  .page-hero-desc { font-size: var(--t-md); }

  /* Footer */
  .footer-nav     { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom  { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .form-row       { grid-template-columns: 1fr; }
  .contact-form   { padding: var(--sp-6); }
}

/* ─── 480px and below ─── */
@media (max-width: 480px) {
  .container      { padding: 0 var(--sp-5); }
  .hero-title     { font-size: var(--t-4xl); }
  .section-title  { font-size: var(--t-2xl); }
  .cta-title      { font-size: var(--t-3xl); }
  .hero-stats     { flex-direction: column; gap: var(--sp-4); }
  .footer-nav     { grid-template-columns: 1fr; }
  .mega-col       { padding: var(--sp-2); }
  .service-detail-card { padding: var(--sp-6); }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-outer, .cursor-inner { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

/* ─── Touch: hide custom cursor ─── */
@media (hover: none) {
  .cursor-outer, .cursor-inner { display: none; }
  body, button, a { cursor: auto; }
}
