@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: normal;
  min-height: 100vh;
  height: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000;
  font-style: normal;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

h1 {
  font-weight: bold;
  font-size: 2.2rem;
  line-height: 1.2;
  color: rgb(19, 57, 108);
}

.hero h1 > span {
  color: rgb(211, 24, 130);
}

h2 {
  font-weight: bold;
  font-size: 1.6rem;
  line-height: 1.2;
}

h3 {
  font-weight: normal;
  font-size: 1.4rem;
  line-height: 1.3;
}

h4 {
  font-style: normal;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.4;
}

h5 {
  font-style: normal;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.6;
}

h6 {
  font-weight: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

p {
  font-weight: normal;
  font-size: 0.98rem;
  line-height: 1.6;
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

.wrapper {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  .wrapper {
    padding: 104px 24px 84px;
  }
}

@media (min-width: 1216px) {
  .wrapper {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1216px) {
  .wrapper {
    padding-top: 100px;
    padding-bottom: 96px;
    padding-left: 48px;
    padding-right: 48px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.header {
  z-index: 9;
  padding: 26px 48px;
  color: rgb(31, 38, 45);
  font-size: 15px;
  background-color: rgb(255, 255, 255);
}

.header ul {
  list-style-type: none;
  display: flex;
  gap: 2em;
  padding: 0;
}

.fortyhealth-logo {
  width: 200px;
}

.member-btn {
  background: #ec3c3c;
  border-radius: 100px;
  cursor: pointer;
  font-size: 1.2rem;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 13px 24px;
  border: 2px solid transparent;
  transition-property: background, color, border-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  width: fit-content;
}

#nav {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

#nav .link .dropdown > .button {
  display: flex;
  cursor: pointer;
  color: #3d3d3d;
  font-size: 1.15rem;
  font-weight: 500;
  justify-content: center;
  align-items: center;
}

/* info grid style */
.info-grid {
  filter: drop-shadow(rgba(0, 0, 0, 0.11) 0px 0px 12px);
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  padding: 32px;
  min-width: 196px;
  position: absolute;
  left: 0;
  width: auto;
  white-space: nowrap;
  opacity: 0;
  display: none;
  transform: translateY(50px);
  transition: transform 200ms ease-in-out, opacity 100ms ease-in-out,
    display 100ms ease-in-out;
}

.active-nav {
  opacity: 1;
  display: block;
  transform: translateY(20px);
}

#nav .link > .dropdown .info-grid .flex {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#nav .link a {
  color: #3d3d3d;
  font-size: 1.15rem;
  font-weight: 500;
  position: relative;
}

#nav .flex a {
  font-weight: 400;
  font-size: 1rem;
}

.active-sidebar-link,
#nav .link .active-droplink {
  color: #ec3c3c;
}

.active-link::after {
  content: "";
  display: block;
  width: 100%;
  border-top: 3px solid transparent;
  pointer-events: none;
  position: absolute;
  bottom: -7px;
  transition: all 250ms cubic-bezier(0.2, 0.8, 0.4, 1) 0s;
}

.active-link {
  position: relative;
}

#nav .link a:hover,
.sidebar .link a:hover {
  color: #ec3c3c;
}

.open-btn {
  display: none;
}

.open-btn,
.close-btn {
  cursor: pointer;
}

.sidebar {
  height: 100%;
  position: fixed;
  display: none;
  transition: display 0.5s ease-out;
  text-align: left;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgb(0 0 0/0.2);
  backdrop-filter: blur(4px);
}

.show-sidebar {
  display: block;
}

.sidebar-content {
  position: relative;
  width: 20rem;
  max-width: calc(100% - 3rem);
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid #fafafa;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar .link {
  margin-top: 45px;
  color: #000;
  font-size: 1.15rem;
}

.sidebar .main-link {
  font-weight: 700;
}

.sidebar .link .flex li {
  line-height: 1.2;
  font-size: inherit;
  margin-top: 22px;
  color: #3e3e3e;
}

/* footer */

.footer {
  background: rgb(7, 9, 10);
  padding-bottom: 50px;
}

.footer-item-wrapper {
  display: flex;
}

.footer-content {
  display: flex;
  padding-bottom: 30px;
  -webkit-box-pack: justify;
  justify-content: space-between;
  border-bottom: 1px solid rgb(69, 77, 84);
}

.footer-content-wrapper {
  margin-right: 7%;
  width: 240px;
  display: flex;
  flex-direction: column;
  padding: 10px 0px;
}

.footer-content-wrapper h5 {
  font-weight: 400;
  color: rgb(126, 134, 144);
}

.footer-content-wrapper a {
  font-size: 0.98rem;
  color: rgb(255, 255, 255);
  font-weight: 300;
  line-height: 250%;
  transition: color 250ms cubic-bezier(0.2, 0.8, 0.4, 1) 0s;
}

.footer-content-wrapper a:hover {
  color: #ec3c3c;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1.5fr;
    gap: 24px;
  }

  .member-btn:hover {
    background: #c93030;
    color: rgb(255, 255, 255);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    gap: 32px;
  }

  .active-link::after {
    border-color: #ec3c3c;
    width: 100%;
  }
}

@media (min-width: 1216px) {
  .hero-grid {
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .header ul,
  .member-button {
    display: none;
  }

  .open-btn {
    display: block;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 1216px) {
  .header {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 991px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-content-wrapper:not(:last-child) {
    border-bottom: 1px solid rgb(69, 77, 84);
    margin: 0;
    width: 100%;
  }
}
