/* Variables. */
:root {
  --main-clr: #249170;
  --login-bg: #322653;
  --subheading-bg: #ffe17b;
  --login-btn-bg: #dcd88b;
  --white: #f7f7f7;
  --black: #2c3333;
}

/* Media queries. */
@media screen and (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .hero-text-box .heading-primary::after {
    width: 9rem;
    height: 9rem;
    top: 6.6rem;
    left: 26.6rem;
  }

  .hero-text-box::after {
    width: 10rem;
    height: 10rem;
    top: 26.4rem;
    left: 48rem;
  }
}

@media screen and (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }
}

@media screen and (max-width: 64em) {
  html {
    font-size: 50%;
  }

  .header {
    z-index: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
  }

  .hero-text-box {
    text-align: center;
  }

  .hero-text-box .heading-primary::after,
  .hero-text-box::after {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-login-box {
    grid-row: 1;
  }

  .cta-btn:link,
  .cta-btn:visited {
    display: none;
  }

  .button-mobile-nav {
    display: block;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    transform: translateX(100%);
    transition: all 0.4s ease-in;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
    color: var(--black);
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 2.4rem;
    color: var(--black);
  }
}

@media screen and (max-width: 48em) {
  .section-features .container:last-child {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:last-child {
    grid-column: 1 / -1;
    width: 48%;
    justify-self: center;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }

  .introduction-image-box {
    width: 65%;
    justify-self: center;
  }

  .introduction-text-box {
    text-align: center;
  }

  .section-introduction .introduction:first-child .introduction-image-box {
    grid-row: 1;
  }

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

  .grid--footer {
    grid-template-columns: repeat(6, 1fr);
  }

  .logo-col,
  .address-col {
    grid-column: span 3;
  }

  .nav-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }
}

@media screen and (max-width: 34em) {
  .section-hero {
    padding-top: 3.2rem;
  }

  .hero {
    padding: 0 3.2rem;
  }

  .hero-text-box .hero-button {
    padding: 2.4rem;
  }

  .login-form {
    padding: 4.8rem 3.2rem;
  }

  .login-form-header h3 {
    font-size: 2.8rem;
  }

  .login-form-header p {
    font-size: 1.8rem;
  }

  .login-form-body label {
    font-size: 1.8rem;
  }

  .login-form-body input {
    font-size: 1.8rem;
    padding: 2.4rem;
  }

  .login-form-body button {
    font-size: 1.8rem;
    padding: 2.4rem;
  }

  .section-features .container:last-child {
    grid-template-columns: 1fr;
  }

  .feature:last-child {
    width: 100%;
  }

  .introduction-image-box {
    width: 75%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .hero-button {
    padding: 2.4rem;
    justify-content: center;
  }
}

@media screen and (max-width: 24em) {
  .section-hero {
    padding-top: 3.2rem;
  }
}
