/* ============================================================
   responsive.css — Breakpoint-driven layout adjustments
   ============================================================ */

/* ---------- Tablet / small laptop ---------- */
@media (max-width: 1100px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--line-dark);
  }

  .stat:nth-child(odd) {
    border-left: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: none;
  }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__steps::before {
    display: none;
  }

  .clients__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Navigation collapse (tablets / small laptops) ---------- */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: grid;
  }

  .nav__brand {
    font-size: 1.1rem;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .about__media {
    max-width: 560px;
  }

  .featured__item,
  .featured__item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .featured__item:nth-child(even) .featured__media {
    order: 0;
  }

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

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero__badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .badge-rotate {
    width: 104px;
    height: 104px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  :root {
    --nav-h: 66px;
  }

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

  .grid-work,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .stat {
    border-left: none;
    border-bottom: 1px solid var(--line-dark);
  }

  .stat:last-child {
    border-bottom: none;
  }

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

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

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

  .menu {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .menu__link {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .lightbox__btn--prev {
    left: 0.75rem;
  }

  .lightbox__btn--next {
    right: 0.75rem;
  }

  .hero__scroll {
    display: none;
  }
}

/* ---------- Small mobile ---------- */
@media (max-width: 400px) {
  .clients__grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    padding: 0.85rem 1.4rem;
    font-size: 0.9rem;
  }
}

/* ---------- Short viewports (landscape phones) ---------- */
@media (max-height: 560px) and (min-width: 601px) {
  .menu {
    padding-top: calc(var(--nav-h) + 1rem);
  }

  .menu__link {
    font-size: clamp(1.4rem, 8vh, 2.2rem);
  }
}

/* ---------- Touch devices: disable custom cursor & sticky hover ---------- */
@media (hover: none) {
  .featured__media::after,
  .featured__expand,
  .work-card__overlay,
  .work-card__plus,
  .team-card__socials {
    opacity: 1;
    transform: none;
  }
}
