@media (max-width: 1100px) {
  .hero-content p.hero-text{
    font-size: 22px;
  }
  .hero-content h1.hero-title{
    font-size: 3.5rem;
  }

  .service-cards{
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px;
    overflow-x: scroll;
  }

  /* CTA */
  .section-cta {
    width: 100%;
    padding: 100px 25px;
    margin: 100px 0;
  }
  .cta {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    display: grid;
    gap: 50px;
    grid-template-columns: 2fr 1fr;
  }
  .cta-text-box {
    padding: 35px 30px 20px;
    color: white;
    max-width: 100%;
  }
  .cta .heading-secondary {
    color: inherit;
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 600;
  }
  .cta-text {
    font-size: 16px;
    word-spacing: 2px;
    line-height: 1.5;
    margin-bottom: 25px;
  }
  .cta a{
    width: 50%;
  }

  /* BRANCHES */
  .branches-cards{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }


  /* Footer */
  .footer-container{
    padding: 25px 0px;
    grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr;
    row-gap: 85px;
  }
  .social-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: start;
    row-gap: 25px;
    column-gap: 30px;
    max-width: fit-content;
  }
  .social-icon {
    height: 20px;
    width: 20px;
  }
  .copyright {
    font-size: 12px;
  }
  .phone-number {
    font-size: 12px;
  }
  .address {
    font-size: 12px;
    color: #707070;
  }
  .footer-heading {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
  }  
  .footer-link:link,
  .footer-link:visited{
    font-size: 14px;
    text-decoration: none;
    color: #707070;
  }
  .footer-link:link svg,
  .footer-link:visited svg{
    width: 20px;
    height: 20px;
    stroke: #707070;
  }
}





@media (max-width: 720px) {
  .hero-content p.hero-text{
    font-size: 20px;
  }
  .hero-content h1.hero-title{
    font-size: 3rem;
  }
  .section-links .btn-secondary{
    background-color: rgb(246, 246, 246);
    border: 1px solid rgb(241, 241, 241);
    border-radius: 50px;
    padding: 8px 13px;
    font-size: 11px;
    color: #333;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-self: center;
    text-wrap: nowrap;
}

.service-cards{
  grid-template-columns: repeat(2, 1fr);
}
.service-cards{
  grid-template-columns: repeat(4, 1fr);
  max-width: 400px;
  overflow-x: scroll;
}

  /* About */
  .about-summary-container{
    grid-template-columns: 1fr;
  }
  .about-summary-image-container{
    position: relative;
    
    div{
      width: 40px;
      height: 100px;
      border-radius: 5%;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: var(--primary-color);
      cursor: pointer;
      position: absolute;
      top: 50%;
      user-select: none;

      &:hover{
        background-color: var(--primary-color-light);
      }

      img{
        width: 18px;
        filter: invert(1);
      }
    }
  }

  /* BRANCHES */
  .branches-cards{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .branches-heading h2{
    font-size: 35px;
  }
  .branch-card-1{
    grid-column: span 2;
  }
  .branch-card-2{
    grid-column: span 1;  
  }
  .branch-card-3{
    grid-column: span 1; 
  }

  
  /* CTA */
  .section-cta {
    padding: 100px 25px;
  }
  .cta {
    padding: 40px 0 25px 40px;
    display: grid;
    gap: 65px;
    grid-template-columns: 2fr 1fr;
    /* padding-bottom: 15px; */
  }
  .cta-img-box{
    margin-bottom: 25px;
    transform: scale(1.5);
  }
  .cta-text-box{
    padding: 10px 0;
  }
  .cta .heading-secondary {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .cta-text {
    font-size: 14px;
  }
  .cta a{
    width: 50%;
    font-size: 18px;
  }







  /* Footer */
  .footer-container{
    padding: 25px 0px;
    grid-template-columns: 1.5fr 1.5fr 1.5fr;
    row-gap: 85px;
  }
  .social-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: start;
    row-gap: 25px;
    column-gap: 30px;
    max-width: fit-content;
  }
  .social-icon {
    height: 20px;
    width: 20px;
  }
  .copyright {
    font-size: 12px;
  }
  .phone-number {
    font-size: 12px;
  }
  .address {
    font-size: 12px;
    color: #707070;
  }
  .footer-heading {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
  }  
  .footer-link:link,
  .footer-link:visited{
    font-size: 14px;
    text-decoration: none;
    color: #707070;
  }
  .footer-link:link svg,
  .footer-link:visited svg{
    width: 20px;
    height: 20px;
    stroke: #707070;
  }
}





@media (max-width: 520px) {
  .hero{
    max-width: fit-content;
  }
  .hero-content{
    padding-top: 50px;
  }
  .hero-content p.hero-text{
    font-size: 20px;
  }
  .hero-content h1.hero-title{
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
  }
  .hero-content h1.hero-title div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .service-cards{
    grid-template-columns: 1fr;
  }

  .about-summary-container{
    margin: 0 auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 40px;
  }
  .about-summary-image-container{
    position: relative;
    
    div{
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: var(--primary-color);
      cursor: pointer;
      position: absolute;
      top: 50%;
      user-select: none;
  
      &:hover{
        background-color: var(--primary-color-light);
      }
  
      img{
        width: 18px;
        filter: invert(1);
      }
    }
  }
  .about-summary-text h3{
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
  }
  .about-summary-text p{
    line-height: 2.5;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 13px;
    text-wrap: wrap;
    text-align: center;
  }
  .about-summary-text a.btn-primary{
    justify-self: center;
  }

  
  /* SERVICES */
  .services-heading{
    text-align: center;
    padding: 25px 0;
    margin-bottom: 0px;
  }
  .services-summary{
    padding-top: 25px;
  }
  .services-heading button {
    padding: 10px 15px;
  }
  .services-heading button svg{
    width: 15px;
    height: 15px;
  }
  .services-heading h2{
    margin: 20px 0 20px 0;
    font-size: 26px;
  }

  /* BRANCHEs */
  .branches-cards{
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .branches-heading{
    text-align: center;
    padding: 25px 0;
    margin-bottom: 0px;
  }
  .branches-summary{
    padding-top: 25px;
  }
  .branches-heading button {
    padding: 10px 15px;
  }
  .branches-heading button svg{
    width: 15px;
    height: 15px;
  }
  .branches-heading h2{
    margin: 20px 0 20px 0;
    font-size: 26px;
  }
  .branch-card-1{
    grid-column: span 1;
  }

 
 /* CTA */
  .cta {
    padding: 0 25px 25px 25px;
    gap: 65px;
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
    padding-bottom: 15px;
  }
  .section-cta {
    width: 100%;
    margin: 0 auto;
  }
  .cta-img-box{
    height: 150px;
    grid-row: 1;
    background-position: top;
    transform: scale(1.5);
  }
  .cta .heading-secondary {
    font-size: 25px;
    margin-bottom: 10px;
    text-align: center;
    margin-top: 10px;
  }
  .cta-text {
    font-size: 14px;
    text-align: center;
  }
  .cta a{
    width: 100%;
  }




  /* Footer */
  .footer-container{
    padding: 25px 0px;
    grid-template-columns: 1.5fr 1.5fr;
    row-gap: 85px;
  }
  .social-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: start;
    row-gap: 25px;
    column-gap: 30px;
    max-width: fit-content;
  }
  .social-icon {
    height: 20px;
    width: 20px;
  }
  .copyright {
    font-size: 12px;
  }
  .phone-number {
    font-size: 12px;
  }
  .address {
    font-size: 12px;
    color: #707070;
  }
  .footer-heading {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
  }  
  .footer-link:link,
  .footer-link:visited{
    font-size: 14px;
    text-decoration: none;
    color: #707070;
  }
  .footer-link:link svg,
  .footer-link:visited svg{
    width: 20px;
    height: 20px;
    stroke: #707070;
  }
  .footer-logo{
    margin-bottom: 10px;
  }
  .footer-logo .logo{
    width: 50px;
  }
  .logo-col,
  .nav-col-1{
    grid-row: 1;
  }
  .nav-col-2,
  .nav-col-3{
    grid-row: 2;
  }
  .nav-col-4,
  .nav-col-5{
    grid-row: 3;
  }

  .social-links-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


