/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------- Tablet ---------- */

@media (max-width: 936px) {
  .hero-copy {
    display: flex;
    flex-direction: column;
    margin: auto;
    text-align: center;
  }

  .hero-actions {
    display: none;
  }

  .hero-content {
    flex-direction: column;
  }
}


@media (max-width: 900px) {

  .header-main {
    min-height: auto;

    padding: 18px 0;

    gap: 25px;
  }

  .header-info {
    gap: 25px;
  }

  .header-info-item {
    gap: 8px;
  }

  .header-info-item span {
    font-size: 11px;
  }

  .header-info-item p {
    font-size: 11px;
  }

  .header-button {
    padding: 10px 14px;

    font-size: 11px;
  }

  .nav-inner a {
    padding: 0 16px;

    font-size: 11px;
  }

  .hero-content {
    padding: 6rem 0 2rem;
  }

  .hero-copy {
    width: min(100%, 620px);
  }

  .contact-cards,
  .contact-page-cards {
    
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 55px;
  }

  .hero {
    min-height: auto;
  }



  .site-footer {
    margin-top: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;

    padding-block: 22px;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 650px) {

  .container {
    width: calc(100% - 28px);
  }


  /* Header */

  .header-main {
    flex-direction: column;

    align-items: stretch;

    padding: 15px 0;

    gap: 15px;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 37px;
    height: 42px;
  }

  .brand-name {
    font-size: 11px;
  }

  .header-info {
    width: 100%;

    justify-content: center;

    gap: 25px;
  }

  .header-info-item {
    display: flex;
  }

  .header-info-item>i {
    font-size: 15px;
  }

  .header-info-item span {
    font-size: 10px;
  }

  .header-info-item p {
    font-size: 10px;
  }

  .header-button {
    padding: 9px 13px;

    font-size: 10px;

    white-space: nowrap;
  }


  /* Mobile navigation */

  .main-nav {
    width: 100%;

    margin: 0;
  }

  .mobile-menu-toggle {
    width: 100%;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background: var(--color-deep);

    color: white;

    font-size: 18px;

    cursor: pointer;
  }

  .nav-inner {
    width: 100%;

    display: none;

    flex-direction: column;

    background: var(--color-deep);
  }

  .nav-inner.is-open {
    display: flex;
  }

  .nav-inner a {
    width: 100%;
    min-height: 45px;

    justify-content: center;

    padding: 0 15px;

    border-top:
      1px solid rgba(255, 255, 255, 0.07);

    font-size: 11px;
  }


  /* Hero */

  .hero-content {
    padding-top: 35px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-description {
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;

    align-items: flex-start;
  }


  /* Cards */

  .contact-card {
    padding-inline: 20px;
  }


  /* Footer */

  .footer-top {
    grid-template-columns: 1fr;
  }


  /* Modal */

  .access-modal {
    max-width: 230px;
  }
}


@media (max-width: 470px) {
  .modal-card {
    width: 80%;
  }

  .header h2 {
    font-size: 1.25rem;
  }
}



/* ---------- Very small screens ---------- */

@media (max-width: 400px) {

  .header-info {
    gap: 12px;
  }

  .header-info-item:first-child {
    display: none;
  }

  .header-button {
    padding: 9px 12px;
  }
}