@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
}

:root {
  --primary-color: #172c3a;
  --primary-color-dark: #4d4a78;
  --primary-color-darker: #3d3a58;
  --neutral-colors-white: #fff;
  --neutral-colors-300: #f9f9ff;
  --neutral-colors-400: #f2f1fa;
  --neutral-colors-600: #d4d2e3;
  --neutral-colors-800: #adabc3;
  --neutral-colors-text-gray: #9795b5;

  --radius-small: 10px;
  --radius-medium: 20px;
  --radius-large: 40px;

  --spacing-xsmall: 1rem;
  --spacing-small: 3em;
  --spacing-medium: 5rem;
  --spacing-large: 8rem;

  font-family: "DM Sans";
  font-feature-settings: "liga" off, "clig" off;
}

div {
  display: flex;
}

img {
  border: none;
}

/* Texts */
h1 {
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 66px;
  color: var(--primary-color);
  text-align: center;

  margin: 0;
}

h2 {
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 46px;
  color: var(--primary-color);

  margin: 0;
}

h3 {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 38px;
  color: var(--primary-color);

  margin: 0;
}

h4 {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  color: var(--primary-color);

  margin: 0;
}

p {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  color: var(--neutral-colors-text-gray);

  margin: 0;
}

p.strong {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: var(--primary-color);
}

.button > span {
  color: var(--neutral-colors-white);
  text-align: center;

  font-size: 18px;
  font-style: normal;
  line-height: 18px;
}

/* Components */
.button {
  width: fit-content;

  display: flex;
  gap: 0.5rem;

  padding: 1.2rem var(--spacing-small);
  background-color: var(--primary-color);
  border-radius: var(--radius-large);
  cursor: pointer;
  transition: background-color 0.3s ease;

  text-decoration-line: none;

  &:hover {
    background-color: var(--primary-color-dark);
  }

  &:active {
    background-color: var(--primary-color-darker);
  }
}

.button .arrow {
  transform: translateX(0);
  transition: transform 0.3s ease;

  .button:hover & {
    transform: translateX(0.5rem);
  }
}

body {
  display: flex;
  flex-direction: column;

  padding: 1rem 4rem;
}

.page-container {
  width: 100%;
  max-width: 65rem;
  align-self: center;

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 14rem;
}

.container {
  width: 100%;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-large);

  margin: var(--spacing-medium) 0;
}

.header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.head-section {
  width: 100%;
  gap: var(--spacing-medium);

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.head-section-content {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xsmall);
}

.head-section-content > h1 {
  width: 55rem;
}

.head-section > button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.illustration-container {
  width: 100%;
  height: 35rem;
  position: relative;
}

.illustration-container > img {
  width: 40rem;
  height: 25rem;
  border-radius: var(--radius-small);

  position: absolute;
}

.illustration-container > img:first-child {
  bottom: 0;
  left: 0;
}

.illustration-container > img:last-child {
  top: 0;
  right: 0;
}

.lamelee-section {
  width: 100%;
  gap: var(--spacing-medium);
}

.lamelee-section > img {
  width: 25rem;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--radius-small);
}

.content-container {
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-xsmall);
}

.lamelee-section .content-container img {
  width: 4rem;
}

.caroussel-section {
  gap: var(--spacing-medium);
}

.caroussel-section > img {
  width: 25rem;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--radius-small);
}

.content-container img {
  object-fit: scale-down;
}

.caroussel-section .content-container img {
  width: 16rem;
  height: 4rem;
}

.goals-section {
  width: 100%;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-medium);
}

.goals-section-title {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-xsmall);
}

.goals-section-title > p {
  width: 40rem;
}

.goals-section-cards {
  width: 100%;
  gap: var(--spacing-xsmall);
  flex-wrap: wrap;
}

.goal-card {
  width: 14rem;
  height: 12rem;

  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 2rem 3rem;
  text-align: center;

  border: 1px solid var(--neutral-colors-600);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.goal-card-number {
  color: var(--neutral-colors-800);
}

.products-section {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-medium);
}

.products-section-container {
  width: 100%;

  flex-direction: column;
  align-items: center;
  gap: var(--spacing-small);
}

.products-section-cards {
  width: 100%;
  gap: var(--spacing-xsmall);
  flex-wrap: wrap;
}

.product-card {
  width: 18rem;

  flex-direction: column;

  border: 1px solid var(--neutral-colors-600);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.product-card > img {
  height: 12rem;
  object-fit: contain;
  padding: 1rem;
  background-color: var(--neutral-colors-300);
  transition: transform 0.3s ease;
}

.product-card:hover > img {
  transform: scale(1.1);
}

.product-card-content {
  padding: 1.5rem;
}

.discount-section {
  width: 100%;

  justify-content: center;
  align-items: center;
  gap: var(--spacing-large);

  background-color: var(--neutral-colors-400);
  border-radius: var(--radius-small);
  padding: var(--spacing-medium) var(--spacing-xsmall);
}

.discount-section h3 {
  width: 30rem;
}

.footer {
  width: 100%;

  justify-content: center;
  gap: var(--spacing-xsmall);
}

.footer .box {
  width: 2rem;
  height: 2rem;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--neutral-colors-400);
  border-radius: var(--radius-small);
}

.footer .box:first-child img {
  width: 2rem;
  height: 2rem;
}

.footer .box:last-child img {
  width: 1.5rem;
  height: 1.5rem;
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xsmall: 0.5rem;
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
  }

  body {
    padding: 1rem;
  }

  .page-container {
    max-width: 100%;
  }

  h1 {
    font-size: 28px;
    line-height: 38px;
  }

  h2 {
    font-size: 22px;
    line-height: 32px;
  }

  h3 {
    font-size: 18px;
    line-height: 28px;
  }

  h4 {
    font-size: 16px;
    line-height: 26px;
  }

  p {
    font-size: 14px;
    line-height: 24px;
  }

  .button > span {
    font-size: 16px;
  }

  .head-section-content > h1 {
    width: fit-content;
  }

  .head-section-content > p {
    text-align: center;
  }

  .illustration-container {
    height: 15rem;
  }

  .illustration-container > img {
    width: 15rem;
    height: 10rem;
  }

  .lamelee-section {
    flex-wrap: wrap;
  }

  .lamelee-section > img {
    width: 100%;
    height: 15rem;
  }

  .caroussel-section {
    flex-wrap: wrap;
  }

  .caroussel-section > img {
    width: 100%;
    height: 15rem;
  }

  .goals-section-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .goal-card {
    width: 55rem;
    overflow: visible;
  }

  .goals-section-title > p {
    width: 100%;
  }

  .products-section-cards {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .product-card {
    width: 15rem;
    overflow: visible;
  }

  .discount-section {
    gap: var(--spacing-xsmall);
  }

  .discount-section .button {
    width: 18rem;
  }
}
