/** Responsive refinements layered on the mobile-first base. */

/* Tablet and below. */
@media (max-width: 1023.98px) {
  .section {
    padding-block: var(--space-8);
  }

  .site-header__cta {
    display: none;
  }
}

/* Small tablets / large phones. */
@media (max-width: 767.98px) {
  .section-heading {
    margin-bottom: var(--space-6);
  }

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

  .post-nav {
    flex-direction: column;
  }

  .post-nav__link,
  .post-nav__link--next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }

  .search-result {
    flex-direction: column;
    gap: var(--space-3);
  }

  .search-result__media {
    width: 100%;
  }
}

/* Phones. */
@media (max-width: 479.98px) {
  :root {
    --header-height: 68px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .newsletter-form,
  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Large desktops. */
@media (min-width: 1440px) {
  .hero__heading {
    font-size: 4rem;
  }
}

/* Print. */
@media print {
  .site-header,
  .site-footer,
  .float-actions,
  .back-to-top,
  .whatsapp-float,
  .portfolio-filter,
  .contact-form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
