@import url("./fonts.css");

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  --GT-America: "GT America";
}

:root {
  --white: #fff;
  --black: #000;
  --bg-black: #191a1b;
  --purple: #4c5fd5;
  --light-purple: #dadbf1;
}

body {
  font-size: 20px;
}

/* Header Styles */

header {
  background-color: var(--black);
  position: relative;
}

nav {
  padding: 20px 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  max-width: 1900px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-family: var(--GT-America), sans-serif;
}

.nav-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-right: auto;
}

.logo {
  width: 126px;
  height: 32px;
  cursor: pointers;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 51' preserveAspectRatio='xMinYMid slice'%3E%3Cg class='abstract-logo-mark' fill='%23fff'%3E%3Cpath d='M25.41 0C5.08 0 0 5.08 0 25.41s5.08 25.41 25.41 25.41 25.41-5.08 25.41-25.41S45.74 0 25.41 0zm-4.17 39.31A9.73 9.73 0 1 1 31 29.58a9.75 9.75 0 0 1-9.76 9.73zm17.67-.4h-4.77V16.67H11.91v-4.76h27z'%3E%3C/path%3E%3Ccircle cx='21.24' cy='29.58' r='4.96'%3E%3C/circle%3E%3C/g%3E%3Cg class='abstract-logo-wordmark' fill='%23fff'%3E%3Cpath class='abstract-logo-letter-1' d='M70.9 28.81c2.37-6.59 3.32-9.26 4.19-12 1.26 3.92 2.56 7.58 4.08 12zM72.54 12L62.33 38.91h5.22l2.17-6.29h10.63l2.13 6.29h5.26L77.91 12z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-2' d='M98.43 35.56c-2.82 0-4.46-2.33-4.46-6.37 0-3.62 1.91-5.9 4.61-5.9 2.55 0 4.12 2.32 4.12 6.13 0 4-1.64 6.14-4.27 6.14m-4.34-13.07V12h-4.46v26.9h4.27v-2.47a6.31 6.31 0 0 0 5.63 2.86c4.69 0 7.81-3.66 7.81-9.87s-2.85-9.87-7.31-9.87a7.3 7.3 0 0 0-5.94 2.94z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-3' d='M116.71 22.8a4.77 4.77 0 0 1 4.29 2.67l3.32-2.25a8.44 8.44 0 0 0-7.48-3.82c-4.69 0-7.36 2.75-7.36 5.73s1.87 4.61 4.81 5.53l2 .65c2.86.91 3.51 1.45 3.51 2.71s-1.07 2-3 2a5.34 5.34 0 0 1-4.84-3.09l-3.47 2.29a9.35 9.35 0 0 0 8.12 4.27c4.73 0 7.67-2.56 7.67-6.07 0-3-1.91-4.61-5.26-5.68l-2-.61c-2.44-.76-3-1.3-3-2.44s.92-1.87 2.82-1.87'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-4' d='M133.3 23.52h3.7V20h-3.7v-6.2h-4.44l-.08 6.2h-3v3.57h3v10.4a5.92 5.92 0 0 0 1.07 4c.77.92 2 1.38 3.9 1.38a13.24 13.24 0 0 0 3.32-.43v-3.59a5.51 5.51 0 0 1-1.83.35c-1.38 0-1.94-.69-1.94-2.64z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-5' d='M143.77 20h-4.27v19h4.5v-8.88a7.63 7.63 0 0 1 1-4.36 4.43 4.43 0 0 1 4-1.89 6.15 6.15 0 0 1 1.64.25V20a5.3 5.3 0 0 0-1.64-.3 5.44 5.44 0 0 0-5.26 3.18z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-6' d='M163.54 30.93a5.57 5.57 0 0 1-.84 3 4.61 4.61 0 0 1-4 2c-2 0-2.9-1-2.9-2.4a2.34 2.34 0 0 1 1.64-2.33 18.72 18.72 0 0 1 6.07-1.15zm4.25-4c0-3-.4-4.54-1.58-5.65s-3.09-1.83-5.69-1.83c-4.85 0-7.91 2.29-8.21 6.42l4.28.38c.23-2.1 1.26-3.29 3.59-3.29a3.65 3.65 0 0 1 2.63.81 3 3 0 0 1 .73 2.29v1c-3 .19-6.68.72-8.55 1.56a5.25 5.25 0 0 0-3.48 5.08c0 3.4 2.45 5.57 5.92 5.57a7.63 7.63 0 0 0 6.22-2.71c.41 1.9 1.75 2.61 4.14 2.61a6.21 6.21 0 0 0 2-.31V36c-1.73.31-2-.7-2-2.18z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-7' d='M175.35 29.31c0-4.23 2-6.17 4.57-6.17 1.8 0 3.17.84 3.7 3.35l4-1.37A7.33 7.33 0 0 0 180 19.4c-5.69 0-9.27 3.78-9.27 10s3.51 10.06 9 10.06c4.31 0 6.83-2.28 7.93-5.45l-4-1.37a3.51 3.51 0 0 1-3.7 3.09c-2.86-.01-4.61-2.22-4.61-6.42z'%3E%3C/path%3E%3Cpath class='abstract-logo-letter-8' d='M196.23 23.52h3.67V20h-3.67v-6.2h-4.44l-.08 6.2h-3v3.57h3v10.4a5.92 5.92 0 0 0 1.07 4c.77.92 2 1.38 3.9 1.38a13.24 13.24 0 0 0 3.32-.43v-3.59a5.51 5.51 0 0 1-1.83.35c-1.38 0-1.94-.69-1.94-2.64z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.logo:hover {
  opacity: 0.8;
}

.help-center-link {
  display: inline-block;
  margin: 4px 0 0 0.8rem;
  padding: 2px 0 4px 0.8rem;
  border-left: 2px solid var(--white);
  text-decoration: none;
}

.help-center-link:hover,
.help-center-link:focus {
  text-decoration: underline;
}

.btn {
  padding: 6px 22px;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 8px;
  line-height: 1.5;
  vertical-align: middle;
  display: inline-block;
}

.btn-secondary {
  background-color: #191a1b;
}

.btn-primary {
  background-color: var(--purple);
  border-color: var(--purple);
  padding-left: 32px;
  padding-right: 32px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.btn-primary:hover {
  color: var(--black);
  background-color: var(--white);
  border-color: var(--white);
}

.burger-menu {
  width: 26px;
  height: 20px;
  background-color: transparent;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  border: none;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 3px;
  background-color: var(--white);
  transition: transform 250ms ease, background-color 250ms linear;
  opacity: 1;
  transform: rotate(0deg);
}

.burger-menu span:not(:last-of-type) {
  margin-bottom: 3px;
}

.burger-menu.active span:first-of-type {
  transform-origin: center right;
  transform: rotate(-43deg);
}

.burger-menu.active span:nth-of-type(2) {
  background-color: transparent;
}

.burger-menu.active span:last-of-type {
  transform-origin: center right;
  transform: rotate(43deg);
}

.menu-mobile {
  position: absolute;
  top: 100%;
  background-color: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--GT-America);
  display: none;
}

.menu-mobile.active {
  display: block;
}

.menu-mobile ul {
  list-style: none;
  max-width: 50%;
  margin: 0 auto;
}

.menu-mobile a {
  color: var(--white);
  text-decoration: none;
  display: block;
  font-size: 24px;
  margin: 0 1rem;
  padding: 1rem 0;
}

.menu-mobile a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.menu-mobile li:not(:last-of-type) a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.search-btn {
  height: 23px;
  width: 23px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  margin-right: 20px;
  transition: transform 0.2s ease-out;
  display: none;
}

.search-btn:hover {
  transform: scale(1.2);
}

.search-icon {
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.mobile-search {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  padding: 0 5%;
  font-family: var(--GT-America);
}

.mobile-search__wrapper {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
}

.mobile-search input[type="search"] {
  border: 1px solid var(--black);
  border-radius: 3px;
  -webkit-appearance: none;
  outline: none;
  display: block;
  width: 100%;
  height: auto;
  padding: 0.5em 1em;
  font-size: 20px;
}

.mobile-search input[type="search"]::placeholder {
  color: lightgray;
}

.mobile-search.active {
  display: flex;
}

.close-mobile-search {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="256" height="256" viewBox="0 0 256 256" xml:space="preserve"><defs> </defs> <g style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)" > <path d="M 13.4 88.492 L 1.508 76.6 c -2.011 -2.011 -2.011 -5.271 0 -7.282 L 69.318 1.508 c 2.011 -2.011 5.271 -2.011 7.282 0 L 88.492 13.4 c 2.011 2.011 2.011 5.271 0 7.282 L 20.682 88.492 C 18.671 90.503 15.411 90.503 13.4 88.492 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" /> <path d="M 69.318 88.492 L 1.508 20.682 c -2.011 -2.011 -2.011 -5.271 0 -7.282 L 13.4 1.508 c 2.011 -2.011 5.271 -2.011 7.282 0 l 67.809 67.809 c 2.011 2.011 2.011 5.271 0 7.282 L 76.6 88.492 C 74.589 90.503 71.329 90.503 69.318 88.492 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" /> </g> </svg>');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  height: 13px;
  width: 13px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.2s ease-out;
  margin-left: 15px;
}

.close-mobile-search:hover {
  transform: scale(1.2);
}

/* Hero Section */

.hero {
  background-color: var(--light-purple);
  text-align: center;
  padding-top: 80px;
  padding-bottom: 115px;
  padding-right: calc(15px * 2);
  padding-left: calc(15px * 2);
}

.hero__wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 80px;
  font-family: var(--GT-America), sans-serif;
  font-weight: 500;
  letter-spacing: -4px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero form {
  position: relative;
  width: 100%;
  height: auto;
}

.hero input[type="search"] {
  border: 1px solid var(--black);
  border-radius: 5px;
  padding: 1.3rem 1rem;
  -webkit-box-shadow: 0 9px 14px 0 rgb(0 0 0 / 10%);
  box-shadow: 0 9px 14px 0 rgb(0 0 0 / 10%);
  outline: none;
  width: 100%;
  font-size: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.hero input[type="search"]::placeholder {
  color: lightgray;
}

.hero input[type="search"]:hover {
  border-color: var(--purple);
}

.right-arrow-icon {
  display: inline-block;
  position: absolute;
  width: 28px;
  right: 15px;
  top: 55%;
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
}

.hero input[type="search"]:hover + .right-arrow-icon svg {
  fill: var(--purple);
}

/* main */

main .container {
  display: grid;
  grid: repeat(3, auto) / repeat(2, 1fr);
  column-gap: 2rem;
  max-width: 1600px;
  width: 80%;
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 8rem;
  font-family: var(--GT-America), sans-serif;
}

.category-list-item {
  margin-top: 50px;
  display: grid;
  grid: repeat(3, auto) / auto 1fr;
}

.category-list__icon {
  max-height: 95px;
  margin: 3rem 30px 0 0;
  grid-area: 1 / 1 / 4 / 2;
}

.category-list__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  margin: 3rem 0 1rem;
}

.category-list__description {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 20px;
}

.category-list-item a {
  color: var(--purple);
  text-decoration: none;
  font-size: 20px;
}

.category-list-item a:hover,
.category-list-item a:focus {
  text-decoration: underline;
}

/* Open Chat Button */

.open-chat {
  position: fixed;
  right: 20px;
  bottom: 10px;
  background-color: var(--purple);
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.07143rem;
  outline: none;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--GT-America), sans-serif;
  font-weight: bold;
}

.open-chat svg {
  fill: var(--white);
  margin-right: 0.57143rem;
}

.open-chat:active,
.open-chat:focus {
  box-shadow: inset 0 0 0 0.21429rem rgb(255 255 255 / 40%);
}

/* Footer */

footer {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--GT-America), sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.footer-wrapper {
  padding: 0 30px 60px 30px;
  display: grid;
  grid: auto / repeat(4, 15%) 1fr;
  margin: 0 auto;
  width: 90%;
  max-width: 1900px;
}

.footer-column {
  margin-bottom: 100px;
}

.footer-column ul {
  list-style: none;
}

.footer-column h3:nth-of-type(2) {
  font-size: 16px;
  margin-bottom: 0;
}

.footer-column h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: bold;
  margin: 3rem 0 1rem 0;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
  line-height: 1.5;
}

.footer-column a:hover,
.footer-column a:focus {
  text-decoration: underline;
}

.footer-column-copyright {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-column-copyright__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-column-copyright__wrapper p {
  font-size: 20px;
  line-height: 1.4;
}

.abstract-logo-footer {
  width: 138px;
  margin-bottom: 20px;
}

@media only screen and (max-width: 1198px) {
  header {
    background-color: var(--bg-black);
  }

  .nav-actions {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .search-btn {
    display: block;
  }

  .footer-wrapper {
    grid: repeat(2, auto) / repeat(2, 30%) 1fr;
  }

  .footer-column-copyright {
    grid-area: 1 / 3 / 3 / -1;
  }

  .footer-column {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 768px) {
  main .container {
    grid: repeat(6, auto) / 1fr;
  }

  .hero h2 {
    font-size: 64px;
    line-height: 60px;
    margin-bottom: 50px;
  }

  nav {
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
  }
}

@media only screen and (max-width: 660px) {
  .footer-wrapper {
    grid: repeat(5, auto) / 1fr 1fr;
    padding: 0 0 60px 0px;
  }

  .footer-column-copyright {
    grid-area: initial;
  }

  .footer-column {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 540px) {
  .hero h2 {
    font-size: 40px;
    line-height: 40px;
  }
}
