@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400&display=swap');

:root {
  /* Colors */
  --black: hsl(0, 0%, 6%);
  --dark-gray: hsl(0, 0%, 12%);
  --gray: hsl(0, 0%, 45%);
  --soft-white: hsl(0, 0%, 98%);
  --light-card-bg: hsl(0, 0%, 96%);
  --white: hsl(0, 0%, 100%);
  --accent: hsl(217, 80%, 54%);
  /* Fonts */
  --brand-font: 'TrebuchetMS', sans-serif;
  --content-font: 'Roboto', sans-serif;
  /* Font-weights*/
  --light: 300;
  --regular: 400;
  --medium: 500;
  --bold: 700;
  --black: 900;
  /* Shadows */
  --button-shadow-light-mode: -1px 6px 6px 0px hsla(0,0%,0%,0.16);
  --card-shadow-light-mode: -1px 6px 6px 0px hsla(0,0%,0%,0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--soft-white);
}

header {
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--soft-white);
  box-shadow: var(--button-shadow-light-mode);
}

header #wrapper {
  width: 1200px;
  height: auto;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#home {
  display: flex;
  align-items: center;
}

#brand-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 34px;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  margin-right: 6px;
}

#brand-icon img {
  width: auto;
  height: 24px;
}

#brand-name {
  font-size: 1.7em;
  font-family: var(--brand-font);
  font-weight: var(--bold);
  margin-right: 4px;
}

#tagline {
  font-size: 16px;
  font-family: var(--content-font);
  font-weight: var(--regular);
  margin-top: 8px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--gray);
}

#cta-alt {
  background-color: var(--accent);
  padding: 8px 16px;
  text-decoration: none;
  color: var(--white);
  border: none;
  border-radius: 4px;
  margin-top: 8px;
}

section {
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#switchback {
  width: 1200px;
  height: 100%;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10vw;
}

#content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  color: var(--black);
  max-width: 400px;
  gap: 2em;
}

h1 {
  font-size: 2.5em;
  font-family: var(--content-font);
  font-weight: var(--bold);
}

h2 {
  font-size: 2em;
  font-family: var(--content-font);
  font-weight: var(--bold);
}

h3 {
  font-size: 1.7em;
  font-family: var(--content-font);
  font-weight: var(--bold);
}

h4 {
  font-size: 0.9em;
  font-family: var(--content-font);
  font-weight: var(--bold);
}

h5 {
  font-size: 0.8em;
  font-family: var(--content-font);
  font-weight: var(--bold);
}

p {
  font-size: 1em;
  font-family: var(--content-font);
  font-weight: var(--regular);
  line-height: 1.5;
}

#cta {
  background-color: var(--accent);
  padding: 16px 24px;
  text-decoration: none;
  color: var(--white);
  border: none;
  border-radius: 4px;
  margin-top: 8px;
}

#image-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#image-wrapper picture img {
  width: 520px;
  height: auto;
}

#trustbar-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--soft-white);
  padding: 3em 0 3em 0;
  color: var(--black);
}

#trustbar {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: var(--light-card-bg);
  box-shadow: var(--card-shadow-light-mode);
  border: none;
  border-radius: 4px;
}

#trustbar-txt {
  max-width: 400px;
  padding: 2em 0;
  text-align: center;
}

#highlight {
  font-weight: var(--bold);
}

#line {
  width: 7vw;
  border-bottom: 1px solid var(--gray);
  margin: 1.2em 0;
}

#clients {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.8em;
  padding: 0px 1.5em 1.5em 1.5em;
}

#our-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2em;
  margin-left: 3em;
}

#numbers-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--light-card-bg);
  border: none;
  border-radius: 4px;
  box-shadow: var(--card-shadow-light-mode);
  padding: 10px;
  gap: 0.5em;
  color: var(--black);
}

#numbers-card p {
  border-top: 1px solid var(--gray);
  padding-top: 0.8em;
}

#our-numbers :nth-child(3) {
  background-color: var(--soft-white);
  border-radius: none;
  box-shadow: none;
}

#process-card {
  background-color: var(--light-card-bg);
  padding: 2.5em;
  border: none;
  border-radius: 4px;
  box-shadow: var(--card-shadow-light-mode);
}

#process-card ul {
  margin-left: 1em;
}

#process-card ul li {
  background: url(/assets/images/check-circle.svg) no-repeat left center;
  list-style: none;
  padding: 1em 2em;
  vertical-align: middle;
}

#testimonial-card {
  max-width: 400px;
  height: auto;
  padding: 2.5em;
  background-color: var(--light-card-bg);
  border: none;
  border-radius: 4px;
  box-shadow: var(--card-shadow-light-mode);
}

#quote p {
  font-style: italic;
}

#quote-mark {
  padding: 2em 0;
  display: flex;
  justify-content: end;
}

footer {
  width: 100%;
  height: auto;
  padding: 3em 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
}

footer #wrapper {
  width: 1200px;
  height: auto;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#legalandmore {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#copyright {
  font-size: 0.8em;

}

#social a {
  text-decoration: none;
  padding: 0 0.5em;
}


/* for small screens and laptops*/
@media screen and (min-width: 769px) and (max-width: 1024px) {

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  header #wrapper {
    width: 100%;
    padding: 0 30px;
  }

  #tagline {
    display: none;
  }

  section {
    width: 100%;
    min-height: 600px;
  }

  #switchback {
    width: 100%;
    padding: 0 30px;
  }

  #image-wrapper picture img {
    width: 320px;
    height: auto;
  }

  #trustbar-wrapper {
    width: 100%;
    padding: 30px;
  }

  #trustbar {
    width: 100%;
    height: auto;
    padding: 40px 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #trustbar-txt {
    max-width: 500px;
    border-right: none;
    text-align: center;
    padding-bottom: 2em;
  }

  #clients {
    max-width: 500px;
    padding-top: 2em;
    padding-left: 0;
  }

  #clients picture img {
    max-width: 5em;
  }

  #nestle {
    width: 3em;
  }

  #problem img {
    width: 300px;
  }

  #our-numbers {
    margin-left: 0;
  }

  #our-numbers :nth-child(3) img {
    width: 5em;
  }

  footer #wrapper {
    width: 100%;
    padding: 0 30px;
  }

}

/* for tablets*/
@media screen and (min-width: 481px) and (max-width: 768px) {

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  header #wrapper {
    width: 100%;
    padding: 0 30px;
  }

  #tagline {
    display: none;
  }

  section #hero {
    width: 100%;
    height: calc(100vh - 80px);
  }

  section {
    min-height: 600px;
    margin: 3em 0;
  }

  #switchback {
    width: 100%;
    padding: 0px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  #image-wrapper picture img {
    width: 300px;
    height: auto;
  }

  #content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #hero #switchback {
    flex-direction: column-reverse;
    height: calc(90vh - 80px);
    padding: 2em 20px;
  }

  #trustbar-wrapper {
    width: 100%;
    padding: 0 20px;
  }


  #trustbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }

  #trustbar-txt {
    text-align: center;
    padding: 0;
    border-right: none;
    padding-bottom: 2em;
  }

  #clients {
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 2em 0;
  }

  #problem #switchback #image-wrapper {
    padding: 2em 0;
  }

  #problem-img {
    width: 300px;
    height: auto;
  }

  #our-numbers {
    margin-left: 0;
  }

  #our-numbers :nth-child(3) img {
    width: 3em;
  }

  #closing #switchback {
    flex-direction: column-reverse;
  }

  footer #wrapper {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }
}

/* for mobile devices*/
@media screen and (min-width: 320px) and (max-width: 480px) {

  h1 {
    font-size: 1.7em;
  }

  h2 {
    font-size: 1.3em;
  }

  header #wrapper {
    width: 100%;
    padding: 0 20px;
  }

  #tagline {
    display: none;
  }

  main {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
  }

  section #hero {
    width: 100%;
    height: calc(100vh - 80px);
  }

  section {
    height: 100vh;
    margin-bottom: 3em;
    scroll-snap-align: start;
  }

  #switchback {
    width: 100%;
    min-height: 80vh;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 2em 0;
  }

  #image-wrapper picture img {
    width: 280px;
    height: auto;
  }

  #content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #hero #switchback {
    flex-direction: column-reverse;
    height: calc(90vh - 80px);
    padding: 2em 20px;
  }

  #cta {
    width: 100%;
  }

  #trustbar-wrapper {
    width: 100%;
    padding: 0 20px;
  }

  #trustbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }

  #trustbar-txt {
    text-align: center;
    padding: 0;
    border-right: none;
    padding-bottom: 2em;
  }

  #line {
    width: 20vw;
    border-bottom: 1px solid var(--gray);
    margin: 1.2em 0;
  }

  #clients {
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 2em 0;
  }

  #problem #switchback #image-wrapper {
    padding: 2em 0;
  }

  #problem-img {
    width: 300px;
    height: auto;
  }

  #our-numbers {
    margin-left: 0;
  }

  #our-numbers :nth-child(3) img {
    width: 4.5em;
  }

  #testimonials {
    margin: 2em 0;
  }

  #closing {
    margin: 2em 0;
  }

  #testimonials #switchback {
    flex-direction: column-reverse;
  }

  #closing #switchback {
    flex-direction: column-reverse;
  }

  footer #wrapper {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }
}


/*
@media (prefers-color-scheme: dark) {
  body {
    background-color: hsl(0, 0%, 6%);
  }

  header {
    background-color: hsl(0, 0%, 6%);
  }

  header #wrapper {
    color: var(--white);
  }

  #content-wrapper {
    color: var(--white);
  }

  #trustbar-wrapper {
    color: var(--white);
    background-color: hsl(0, 0%, 6%);
  }

  #trustbar {
    background-color: hsl(0, 0%, 12%);
    color: white;
  }

  #numbers-card {
    background-color: hsl(0, 0%, 12%);
    color: white;
  }

  #our-numbers :nth-child(3) {
    background-color: var(--black);
    border-radius: none;
    box-shadow: none;
  }

  #process-card {
    background-color: hsl(0, 0%, 12%);
    color: white;
  }

  #testimonial-card {
    background:hsl(0, 0%, 12%);
    color: white;
  }

  footer {
    background-color: black;
    color: white;
  }
}
*/