:root {
   --color-primary: #115471;
   --color-primary-variant: rgba(0, 0, 240, 0.2);
   --color-white: #fff;
   --color-light: #f4f4f4;
   --color-black: #000f37;
   --color-dark: #575757;

   --bottom-section-padding: 12rem;
   --bottom-section-padding-mobile: 8rem;

   --transition: all 400ms ease;

   --container-width: 84%;
   --container-width-tablet: 90%;
   --container-width-phone: 94%;
}

* {
   margin: 0;
   padding: 0;
   outline: 0;
   border: 0;
   box-sizing: border-box;
   text-decoration: none;
   list-style: none;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: "Poppins", sans-serif;
   color: var(--color-dark);
   line-height: 1.7;
   background: var(--color-white);
}

.container {
   width: var(--container-width);
   margin: 0 auto;
}

h1 {
   font-size: 5.6rem;
   line-height: 1;
   color: var(--color-black);
}

h2 {
   font-size: 3rem;
   font-weight: 500;
   line-height: 1;
}

h3 {
   font-size: 2rem;
   font-weight: 600;
}

.lead {
   width: 63%;
   font-size: 1.1rem;
   font-weight: 400;
   line-height: 1.5;
   margin: 1.5rem auto 3rem;
}

a {
   color: var(--color-white);
   font-weight: 300;
}

img {
   width: 100%;
}

.btn {
   display: inline-block;
   padding: 1rem 2, 3rem;
   background: var(--color-white);
   color: var(--color-black);
   font-weight: 500;
   border-radius: 0.4rem;
   padding-left: 5px;
   padding-right: 5px;
}

.btn-primary {
   background: var(--color-black);
   color: var(--color-white);
   transition: all 300ms ease;
   border: 1px solid transparent;
}

.btn-primary:hover {
   background: var(--color-white);
   color: var(--color-black);
   border-color: var(--color-black);
}

.avatar {
   width: 2.2rem;
   height: 2.2rem;
   border-radius: 50%;
   overflow: hidden;
}

section {
   max-width: 100vw;
   padding-bottom: 40px;
}

section h1.title {
   text-align: center;
}

/* #################### NAVBAR ################## */

nav {
   width: 100%;
   height: 6rem;
   display: grid;
   position: fixed;
   top: 0;
   left: 0;
   z-index: 2;
   background: var(--color-primary);
}

.nav_container {
   display: flex;
   justify-content: space-between;
   align-items: centre;
}

nav button {
   display: none;
}

ul.nav_items {
   display: flex;
   gap: 3rem;
   margin-top: 35px;
}

ul.nav_items li a {
   font-weight: bold;
}

ul.nav_items li a:hover {
   color: #efd7d7;
}

.nav_logo {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

.nav_signin-signup {
   display: flex;
   align-items: center;
   gap: 3rem;
}

.nav_logo h3 {
   font-size: 1.7rem;
}

/* #################### HEADER ################## */

header {
   margin-top: 6rem;
   background: url('/static/img/header-bg.jpg') no-repeat top center;
   max-width: 100vw;
   text-align: center;
   padding-bottom: var(--bottom-section-padding);
}

.header_title {
   padding-top: 10px;
   color: var(--color-white);
   text-align: center;
}

header p {
   color: rgba(255, 255, 255, 0.8);
   margin-bottom: 0;
}

.header_image {
   width: 92%;
   margin: 0 auto;
}

.cta {
   display: flex;
   justify-content: center;
   gap: 2rem;
}

.cta a {
   display: flex;
   align-items: center;
   gap: 1rem;
   text-align: left;
   font-weight: 400;
   background: #000;
   border-radius: 0.7rem;
   padding: 0.8rem 1.6rem;
}

.cta a:hover {
   background: var(--color-black);
   color: var(--color-white);
}

.cta .logo {
   width: 2rem;
}

.cta_a h4 {
   font-weight: 500;
   font-size: 1.4rem;
}

.header_socials {
   background: red;
   position: absolute;
   left: 3rem;
   top: 38%;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   font-size: 1.2rem;
   width: 5%;
}

.header__decorator-1 {
   position: absolute;
}

.header__decorator-2 {
   position: absolute;
   right: 0;
   margin-top: -24rem;
}

/*============ABOUT=============*/
.about__article {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 5rem;
   align-items: center;
   margin-top: 3rem;
}

.about__article-title {
   color: var(--color-black);
   margin-bottom: 1.5rem;
}

.about__article .btn {
   margin-top: 2.4rem;
}

/*============CLIENTS=============*/
.client_container {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
}

.client_container div {
   background: var(--color-light);
   display: grid;
   place-items: center;
   padding: 3rem;
   border-radius: 15px;
}

.client_container div:hover {
   background: var(--color-white);
}

/* #################### TESTIMONIALS ################## */
.testimonials_container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.2rem;
}

.testimonial {
   display: flex;
   flex-direction: column;
   gap: 1.4rem;
   background: var(--color-light);
   padding: 3rem;
   font-size: 0.88rem;
   border: 1px solid transparent;
   transition: all 300ms ease;
   border-radius: 15px;
}

.testimonial:hover {
   background: var(--color-white);
   border-color: var(--color-primary);
   color: var(--color-primary);
   box-shadow: 0 2rem 2rem var(--color-primary-variant);
   z-index: 1;
}

.testimonials_client {
   display: flex;
   gap: 1rem;
}

/* #################### FAQS ################## */
.faqs_container {
   width: 44%;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

article.faq {
   background: var(--color-light);
   padding: 2rem;
   display: flex;
   gap: 1rem;
   border: 1px solid #ddd;
   cursor: pointer;
   border-radius: 15px;
}

article.faq:hover {
   border-color: var(--color-primary);
   color: var(--color-primary);
}

article.faq span.faq_icon i {
   font-size: 1.4rem;
   font-weight: 200;
}

article.faq span.faq_icon i.uil-minus {
   display: none;
}

.faq_question {
   font-size: 1.2rem;
   font-weight: 500;
}

.faq_answer {
   margin-top: 1rem;
   display: none;
}

article.faq.faq.open {
   border-color: var(--color-primary);
   color: var(--color-primary);
   box-shadow: 0 2rem 2rem var(--color-primary-variant);
   z-index: 1;
}

article.faq.faq.open span.faq_icon i.uil-minus {
   display: inline;
}

article.faq.faq.open span.faq_icon i.uil-plus {
   display: none;
}

.faq.open .faq_answer {
   display: block;
}

/* #################### DOWNLOAD APP ################## */

.downloadApp_container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
}

.download_content {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

#downloadApp .cta {
   justify-content: start;
   margin-top: 2rem;
}

/* #################### SUBSCRIBE ################## */

.subscribe_container {
   background: var(--color-primary);
   color: var(--color-white);
   display: flex;
   align-items: center;
   padding: 4rem;
   height: 20rem;
   border-radius: 2rem;
}

.subscribe_text p {
   margin-top: 1.4rem;
   width: 80%;
}

/* #################### Footer ################## */

footer {
   background: var(--color-primary);
   padding-top: 5rem;
   font-size: 0.9rem;
   color: rgba(255, 255, 255, 0.8);

}

.footer_container {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   justify-content: space-between;
   gap: 5rem;
}

.footer_container>div h4 {
   margin-bottom: 1.6rem;
   color: var(--color-white);

}

.footer_logo h3 {
   width: 1.7rem;

}

.footer_1 p {
   margin: 1rem 0 2rem;
   width: 20rem;
}

.footer_subscribe {

   background: transparent;
   border: 1px solid var(--color-light);
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 3rem;
   width: 80%;
}

.footer_subscribe input {
   background: transparent;
   color: var(--color-white);
   margin-left: 1rem;

}

.footer_subscribe input::placeholder {
   color: var(--color-light);

}

.footer_subscribe button {
   background: var(--color-white);
   color: var(--color-black);
   transition: all 300ms ease;
   width: 3rem;
   height: 100%;
   font-size: 1.2rem;
}

.footer_subscribe button:hover {
   background: var(--color-light);
   color: var(--color-primary);
   cursor: pointer;
}

footer ul li a:hover {
   color: var(--color-white);
   text-decoration: underline;
}

.footer_4 p {
   margin-bottom: 1.6rem;
}

.footer_socials {
   display: flex;
   gap: 1rem;
   font-size: 1.4rem;
}

.copyright {
   text-align: center;
   margin-top: 4rem;
   padding: 1.2rem;
   color: var(--color-white);
   border-top: 1px solid var(--color-light);
}

/*=====================MEDIA QUERIES ( TABLET)======================*/

@media screen and (max-width: 1024px) {
   .container {
      width: var(--container-width-tablet);
   }

   h1 {
      font-size: 4.2rem;
   }

   h2 {
      font-size: 2rem;
   }

   h3 {
      font-size: 1.9rem;
   }

   .lead {
      width: 72%;
      margin-bottom: 3rem;
   }

   /*===========================NAVBAR=============================*/

   nav {
      background: var(--color-primary);
   }

   .nav_container {
      position: relative;
      width: 100vw;
   }

   .nav_logo {
      margin-left: 2rem;
      position: relative;
   }

   .nav_items {
      margin-top: 35px;
      position: fixed;
      top: 6rem;
      right: 0;
      background: var(--color-white);
      height: max-content;
      width: 18rem;
      box-shadow: -2rem 2rem 3rem rgba(0, 0, 0, 0.2);
      flex-direction: column;
      gap: 0;
      z-index: 3;
      display: none;
   }

   .nav_items li {
      width: 100%;
      height: 6rem;

   }

   .nav_items li a {
      color: var(--color-black);
      width: 100%;
      height: 100%;
      display: block;
      padding-left: 3rem;
      display: flex;
      align-items: center;
      transition: all 400ms ease;
   }

   .nav_items li a:hover {
      background: var(--color-primary);
      color: var(--color-white);
   }

   .nav_signin-signup {
      display: none;
      left: 0;
      transform: translate(0);
   }

   nav button {
      display: inline-block;
      margin-right: 1.4rem;
      background: transparent;
      color: var(--color-white);
      cursor: pointer;
   }

   nav button#close-btn {
      display: none;

   }

   nav button i {
      font-size: 2.4rem;
   }

   /*=================================== HEADER ====================================*/

   header {
      padding-bottom: var(--bottom-section-padding-mobile);
      background: var(--color-primary);
   }


   .header__title {
      margin-bottom: 1.5rem;
   }

   .header_image {
      display: none;
   }

   .cta {
      margin-top: 3rem;
   }

   .header_socials {
      top: 24%;
      gap: 1rem;
      font-size: 1rem;
   }

   .header__decorator-2 {
      display: none;
   }

   /*==========================ABOUT=======================*/
   #about {
      margin-top: 7rem;
   }

   .about__article {
      margin: 0 auto;
   }

   /*====================CLIENT===========================*/

   .client_container {
      gap: 1rem;
   }

   /*====================TESTIMONIALs===========================*/
   .testimonials_container {
      grid-template-columns: 1fr;
      gap: 1rem;
   }


   /*====================DOWNLOAD APP===========================*/
   #downloadApp {
      text-align: center;
   }

   #downloadApp .cta {
      flex-direction: column;
      gap: 1rem;
      margin: 0 auto;
   }

   /*====================SUBSCRIBE===========================*/
   .subscribe_container {
      flex-direction: column;
      height: auto;
      gap: 5rem;
      padding: 3rem;
      font-size: 1.2rem;
   }

   .subscribe_container p {
      width: 94%;
   }

   /*====================SUBSCRIBE===========================*/

   .footer_container {
      grid-template-columns: 1fr 1fr;
   }

}

/*=====================MEDIA QUERIES (PHONE)======================*/

@media screen and (max-width: 600px) {
   html {
      font-size: 14px;
   }

   h1 {
      font-size: 3rem;
   }

   h2 {
      font-size: 1.8rem;
   }

   h3 {
      font-size: 1.4rem;
   }

   .lead {
      width: var(--container-width-phone);
   }

   /*=====================NAVBAR======================*/

   .nav_logo {
      margin-left: 1rem;
   }

   .nav_items li a {
      justify-content: center;
      padding: 0;
   }

   nav button {
      margin-right: 0.7rem;
   }
}