/* heading fonts */
@font-face {
  font-family: "DM Serif Display";
  src: url("./fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf");
}

/* body fonts */
@font-face {
  font-family: "Karla";
  src: url("./fonts/Karla/Karla-VariableFont_wght.ttf"),
    url("./fonts/Karla/static/Karla-Regular.ttf"),
    url("./fonts/Karla/static/Karla-Bold.ttf");
}

:root {
  /* ### Primary */

  --Dark-Violet: hsl(256, 26%, 20%);
  --Grayish-Blue: hsl(216, 30%, 68%);

  /* ### Neutral */

  --Very-Dark-Violet: hsl(270, 9%, 17%);
  --Dark-Grayish-Violet: hsl(273, 4%, 51%);
  --Very-Light-Gray: hsl(0, 0%, 98%);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Karla";
  font-size: 16px;
  position: relative;
}

h1,h2,h3{
    font-family: "DM Serif Display";
}

ul{
    list-style-type: none;
}

header {
  display: flex;
  flex-direction: column;
}

nav {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.nav-items-contr{
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

nav button.hamburger-btn {
  border: 0;
  outline: 0;
  background: none;
  cursor: pointer;
}

button.hamburger-btn img {
  display: block;
}

nav div.menu-box {
  width: 100%;
  height: 0vh;
  padding: 1rem;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: 6.2rem;
  left: 0;
  text-align: center;
  background-color: var(--Very-Dark-Violet);
  background-image: url('./images/bg-pattern-mobile-nav.svg');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.active {
  height: 100vh !important;
  opacity: 1 !important;
  visibility: visible !important;
}


div.menu-box ul{
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

div.menu-box ul li{
  padding: .8rem;
}

div.menu-box ul li>a{
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--Very-Light-Gray);
}


div.menu-box ul li.btn-style{
  border: 2px solid var(--Very-Light-Gray);
  transition: .2s ease;
}

div.menu-box ul li.btn-style:hover{
  background-color: var(--Very-Light-Gray);
  color: var(--Dark-Violet);
}

div.menu-box ul li.btn-style:hover a{
  color: var(--Dark-Violet);
}


img.header-img {
  width: 100%;
  display: block;
}

div.header-content-contr {
  background-color: var(--Dark-Violet);
  padding: 5.5rem 1.7rem;
  position: relative;
  text-align: center;
  background-image: url("./images/bg-pattern-intro-left-mobile.svg");
  background-repeat: no-repeat;
  color: var(--Dark-Grayish-Violet);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

div.header-content-contr::after {
  content: "";
  width: 8rem;
  height: 100%;
  position: absolute;
  top: 15.5rem;
  right: 0;
  background-image: url("./images/bg-pattern-intro-right-mobile.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

h1.title-heading {
  font-family: "DM Serif Display";
  font-size: 2.8rem;
  line-height: 2.6rem;
  font-weight: 400;
  color: var(--Very-Light-Gray);
}

p.header-intro {
  color: var(--Very-Light-Gray);
  font-weight: 400;
  line-height: 1.5rem;
}

button.header-info-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--Very-Light-Gray);
  border-color: var(--Very-Light-Gray);
  border-style: solid;
  text-transform: uppercase;
  transition: 0.2s ease;
  cursor: pointer;
}
button.header-info-btn:hover {
  padding: 0.8rem 2rem;
  background: var(--Very-Light-Gray);
  color: var(--Very-Dark-Violet);
  border-color: var(--Very-Light-Gray);
  border-style: solid;
  text-transform: uppercase;
  transition: 0.2s ease;
}


/* items style */
div.heading-items-contr{
  padding: 5rem 1.5rem;
  padding-top: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

h2.slogan{
  font-size: 2.8rem;
  color: var(--Very-Dark-Violet);
  position: relative;
}

h2.slogan::before{
  content: '';
  width: 150px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-top: 1px solid var(--Dark-Grayish-Violet);
}

div.items-contr{
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

div.item{
  text-align: center;
}

div.item h3{
  margin: 1rem auto;
}

div.item p{
  color: var(--Dark-Grayish-Violet);
  line-height: 1.5rem;
}

/* banner style */
section.banner{
  padding: 5rem 1.5rem;
}

div.banner-content-box{
  padding: 4.5rem 1rem;
  display: flex;
  flex-direction: column;
  background-color: var(--Dark-Violet);
  background-image: url('./images/bg-pattern-how-we-work-mobile.svg');
  background-repeat: no-repeat;
  background-position: top right;
  text-align: center;
  gap: 2rem;
}

div.banner-content-box h2{
  font-size: 2.5rem;
  color: var(--Very-Light-Gray);
  line-height: 2.5rem;
}

/* footer style */
footer{
  padding: 5rem 1rem;
  text-align: center;
  background-color: var(--Very-Light-Gray);
  background-image: url('./images/bg-pattern-footer-mobile.svg');
  background-repeat: no-repeat;
}

footer div.footer-icons-box{
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  border-bottom: 1px solid var(--Dark-Grayish-Violet);
}

footer div.footer-social-icons-box{
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer li>a{
  text-decoration: none;
  text-transform: uppercase;
  color: var(--Very-Dark-Violet);
  font-weight: 700;
}

footer div.footer-items-container{
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer div.item-box{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer div.item-box span{
  text-decoration: none;
  text-transform: uppercase;
  color: var(--Dark-Grayish-Violet);
  font-weight: 700;
}

footer div.item-box ul{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

@media(max-width:1024px) and (min-width:500px){
  section.header-slide{
    padding: 2rem 3rem;
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--Dark-Violet);
  }
  section.header-slide::before{
    content: '';
    width: 200px;
    height: 550px;
    position: absolute;
    top: 31.5rem;
    left: 0;
    background-image: url('./images/bg-pattern-intro-left-desktop.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
  }
  

  div.header-slide-content-contr{
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  div.header-content-contr {
    order: -1;
    padding: 0;
    padding-right: 1rem;
    position: relative;
    text-align: left;
    background-color: none;
    background-image: none;
    color: var(--Dark-Grayish-Violet);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 1;
  }
  .header-content-contr::after {
    content: "";
    display: none;
  }

  h1.title-heading {
    position: relative;
    font-family: "DM Serif Display";
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 400;
    color: var(--Very-Light-Gray);
  }
  h1.title-heading::before{
    content: '';
    width: 9.5rem;
    height: 2rem;
    position: absolute;
    top: -1.5rem;
    border-top: 1px solid var(--Very-Light-Gray);
  }

  p.header-intro {
    color: var(--Very-Light-Gray);
    font-weight: 400;
    line-height: 1.5rem;
  }
  
  img.header-img {
    width: 100%;
    display: block;
    position: relative;
  }

}



/* desctop version */

@media(min-width: 1024px){

  header {
    display: flex;
    flex-direction: column;
  }

/* nav styles */
  nav {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  div.nav-items-contr{
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav button.hamburger-btn {
    display: none;
  }

  nav div.menu-box {
    width: auto;
    height: auto;
    padding: 0;
    position: static;
    opacity: 1;
    visibility: visible;
    top: 0;
    left: 0;
    text-align: center;
    background-color: transparent;
    background-image: none;
    z-index: 100;
    transition: opacity 0.3s ease;
  }

  div.menu-box ul{
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  
  div.menu-box ul li{
    padding: .8rem;
  }
  
  div.menu-box ul li>a{
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--Dark-Grayish-Violet);
  }
  
  
  div.menu-box ul li.btn-style{
    border: 2px solid var(--Very-Dark-Violet);
    transition: .2s ease;
  }

  div.menu-box ul li.btn-style a{
    color: var(--Very-Dark-Violet);
  }
  
  div.menu-box ul li.btn-style:hover{
    background-color: var(--Very-Light-Gray);
    color: var(--Dark-Violet);
  }
  
  div.menu-box ul li.btn-style:hover a{
    color: var(--Dark-Violet);
  }
 
  
  /* header style */

  section.header-slide{
    padding: 0 3rem;
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--Dark-Violet);
  }
  section.header-slide::before{
    content: '';
    width: 200px;
    height: 550px;
    position: absolute;
    top: 31.5rem;
    left: 0;
    background-image: url('./images/bg-pattern-intro-left-desktop.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
  }
  section.header-slide::after{
    content: '';
    width: 500px;
    height: 600px;
    position: absolute;
    top: 0rem;
    right: 0;
    background-image: url('./images/bg-pattern-intro-right-desktop.svg');
    background-position: top -80px right;
    background-repeat: no-repeat;
    z-index: 10;
  }


  div.header-slide-content-contr{
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  div.header-content-contr {
    order: -1;
    padding: 0;
    padding-right: 1rem;
    position: relative;
    text-align: left;
    background-color: none;
    background-image: none;
    color: var(--Dark-Grayish-Violet);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 1;
  }
  .header-content-contr::after {
    content: "";
    display: none;
  }

  h1.title-heading {
    position: relative;
    font-family: "DM Serif Display";
    font-size: 4.5rem;
    line-height: 4.5rem;
    font-weight: 400;
    color: var(--Very-Light-Gray);
  }
  h1.title-heading::before{
    content: '';
    width: 9.5rem;
    height: 2rem;
    position: absolute;
    top: -1.5rem;
    border-top: 1px solid var(--Very-Light-Gray);
  }

  p.header-intro {
    color: var(--Very-Light-Gray);
    font-weight: 400;
    line-height: 1.5rem;
  }
  
  img.header-img {
    width: 100%;
    display: block;
    position: relative;
    top: 10rem;
  }

  /* items style */

  section.items-section{
    display: flex;
    padding: 0 3rem;
    justify-content: center;
  }

  div.heading-items-contr{
    max-width: 1120px;
    padding: 5rem 1.5rem;
    padding-top: 20rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5rem;
  }

h2.slogan{
    font-size: 2.8rem;
    color: var(--Very-Dark-Violet);
    position: relative;
    text-align: left;
  }

h2.slogan::before{
  content: '';
  width: 150px;
  height: 100px;
  position: absolute;
  left: 0;
  top: -1rem;
  transform: none;
  border-top: 1px solid var(--Dark-Grayish-Violet);
  }

div.items-contr{
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  }

div.item{
  text-align: left;
  }

div.item h3{
  margin: 1rem auto;
  color: var(--Dark-Violet);
  }

div.item p{
    color: var(--Dark-Grayish-Violet);
    line-height: 1.5rem;
  }


  /* banner style */
  section.banner{
    padding: 5rem 1.5rem;
  }

  section.banner{
    padding: 2rem 10rem;
    display: flex;
    justify-content: center;
  }
  
  div.banner-content-box{
    width: 100%;
    padding: 4rem 4rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--Dark-Violet);
    background-image: url('./images/bg-pattern-how-we-work-desktop.svg');
    background-repeat: no-repeat;
    background-size: contain;
    text-align: center;
    gap: 2rem;
  }
  
  div.banner-content-box h2{
    font-size: 2.5rem;
    color: var(--Very-Light-Gray);
    line-height: 2.5rem;
    text-align: left;
  }
  div.banner-content-box h2 span{
    display: block;
  }


  /* footer style */
footer{
  padding: 5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  background-color: var(--Very-Light-Gray);
  background-image: url('./images/bg-pattern-footer-mobile.svg');
  background-repeat: no-repeat;
}

footer section{
  width: 100%;
  max-width: 1120px;
}

footer div.footer-icons-box{
  padding-bottom: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2.2rem;
  border-bottom: 1px solid var(--Dark-Grayish-Violet);
}

footer li>a{
  text-decoration: none;
  text-transform: uppercase;
  color: var(--Very-Dark-Violet);
  font-weight: 700;
}

footer div.footer-items-container{
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* gap: 12rem; */
}

footer div.item-box{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer div.item-box span{
  text-decoration: none;
  text-transform: uppercase;
  color: var(--Dark-Grayish-Violet);
  font-weight: 700;
}

footer div.item-box ul{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

footer div.sign{
  text-align: center;
}

}


