/* ==========================================================================
   Artha Systems — Responsive
   Breakpoints: 1440 · 1200 · 992 · 768 · 480
   ========================================================================== */

/* ==========================================================================
   ≤ 1440px
   ========================================================================== */
@media (max-width: 1440px) {
  :root { --maxw: 1180px; }
  .mega { width: min(620px, calc(100vw - 2 * var(--gutter))); margin-left: -310px; }
}

/* ==========================================================================
   ≤ 1200px
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --fs-display: clamp(2.5rem, 6.6vw, 4.5rem); }

  .nav__link { padding: .625rem .625rem; font-size: .875rem; }
  .logo__divider, .logo__tag { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__copy  { max-width: 46rem; }
  .hero__visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero__chip--1 { left: -2%; }
  .hero__chip--2 { right: -2%; }

  .trust__inner { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .trust__item:nth-child(4)::before,
  .trust__item:nth-child(5)::before { display: none; }

  .industries__grid,
  .services__grid,
  .cases__grid,
  .reviews__grid,
  .feature-grid,
  .offices { grid-template-columns: repeat(2, 1fr); }

  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }

  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   ≤ 992px — tablet: mobile nav + sticky action bar appear
   ========================================================================== */
@media (max-width: 992px) {
  :root { --header-h: 68px; }

  /* Top bar collapses into the drawer */
  .topbar { display: none; }

  .nav { display: none; }
  .header__actions .btn--primary { display: none; }
  .burger { display: grid; }

  /* Sticky call / WhatsApp bar */
  .mobile-actions { display: block; }
  body { padding-bottom: 58px; }

  .split,
  .split--wide-left,
  .split--wide-right,
  .cta-band__inner { grid-template-columns: 1fr; gap: 3rem; }

  /* Visual follows copy on narrow layouts */
  .split > .why__visual,
  .split > .ai-visual { order: 2; }

  .ai-visual { max-width: 460px; margin-inline: auto; }

  .why__overlay { right: 4%; bottom: -8%; width: min(280px, 82%); }

  .dash { transform: rotateY(-8deg) rotateX(4deg); }

  .reviews__head { flex-direction: column; align-items: flex-start; }

  .offices { grid-template-columns: 1fr; }

  .timeline__step { grid-template-columns: 48px 1fr; gap: 1.125rem; }
  .timeline__marker { width: 48px; height: 48px; }
  .timeline::before { left: 23px; }

  .job-card { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   ≤ 768px — mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-y: clamp(64px, 13vw, 96px);
    --fs-body: 1rem;
  }

  .grid--2, .grid--3, .grid--4,
  .industries__grid,
  .services__grid,
  .cases__grid,
  .reviews__grid,
  .feature-grid,
  .feature-grid--2,
  .feature-grid--4 { grid-template-columns: 1fr; }

  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .trust__item::before { display: none !important; }
  .trust__item:nth-child(5) { grid-column: 1 / -1; }

  .stats-band { grid-template-columns: repeat(2, 1fr); }

  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__chip--1, .hero__chip--2, .hero__chip--3 { display: none; }

  .why__overlay {
    position: static;
    width: 100%;
    margin-top: 1.25rem;
  }

  .cta-simple__actions .btn,
  .status-page__links .btn { flex: 1 1 100%; }

  .cursor-dot { display: none; }

  /* Reviews become a swipeable rail */
  .reviews__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: .75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid > * {
    flex: 0 0 min(84vw, 340px);
    scroll-snap-align: start;
  }

  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

/* ==========================================================================
   ≤ 480px — small mobile
   ========================================================================== */
@media (max-width: 480px) {
  :root { --gutter: 18px; }

  .display { font-size: clamp(2.125rem, 10.5vw, 2.875rem); }

  .trust__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .trust__item:nth-child(5) { grid-column: auto; }

  .stats-band { grid-template-columns: 1fr; }

  .rating-summary { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .rating-summary__score { font-size: 2.5rem; }

  .field__group { flex-direction: column; }
  .field__group .field__select { max-width: 100%; }

  .footer__newsletter { flex-direction: column; }

  .mobile-action { font-size: .875rem; gap: .375rem; }

  .status-page__code { -webkit-text-stroke-width: 1px; }
}

/* ==========================================================================
   Landscape phones — reclaim vertical space
   ========================================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 2.5rem; padding-bottom: 3rem; }
  .drawer__body { padding-block: 1rem 2rem; }
}

/* ==========================================================================
   Pointer capability — hover effects only for real pointers
   ========================================================================== */
@media (hover: none) {
  .cursor-dot { display: none !important; }
  .card:hover { transform: none; }
  .tilt { transform: none !important; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .topbar, .header, .mobile-actions, .drawer, .cursor-dot, .veil,
  .hero__bg, .hero__grid, .hero__bloom, .cta-band, .scroll-progress { display: none !important; }

  body { background: #fff; color: #111; padding-bottom: 0; }
  body::before, body::after { display: none; }
  .display, h1, h2, h3, h4 { color: #000; }
  p, li { color: #333; }
  .glass, .card { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
