/* Tablet landscape and below */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__title {
    font-size: var(--text-4xl);
  }

  .about-snapshot {
    gap: var(--space-10);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .service-block {
    gap: var(--space-10);
  }
}

/* Tablet portrait and below */
@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  .section__title {
    font-size: var(--text-3xl);
  }

  /* Navigation */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transition: right var(--transition-base);
    border-left: 1px solid var(--color-border-dark);
  }

  .nav__links.active {
    right: 0;
  }

  .nav__links a {
    font-size: var(--text-lg);
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* About snapshot */
  .about-snapshot {
    grid-template-columns: 1fr;
  }

  /* Page hero */
  .page-hero__title {
    font-size: var(--text-3xl);
  }

  /* Service blocks */
  .service-block {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-block--reverse .service-block__content,
  .service-block--reverse .service-block__visual {
    order: unset;
  }

  .service-block__visual {
    min-height: 160px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-4);
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__badge {
    font-size: 0.75rem;
  }

  .section__title {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  .card {
    padding: var(--space-6);
  }

  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .page-hero {
    padding-top: calc(var(--space-16) + 60px);
    padding-bottom: var(--space-12);
  }

  .page-hero__title {
    font-size: var(--text-2xl);
  }
}
