:root {
  --theme-primary-color: #CD2E2C;
  --theme-secondary-color: #FFD1D1;
  --theme-tertiary-color: #E5E7EB;
}

:where(h3, h4, h5, h6, dt) {
  max-inline-size: revert;
}

body {
  background-color: white;
}

.parent, footer {
  display: grid;
  grid-template-columns: 1fr min(100ch, calc(100% - 16px)) 1fr;
  grid-column-gap: 8px;
  place-items: center;
}

.parent > *,
footer > * {
  grid-column: 2;
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: var(--theme-primary-color);
  h1 {
    font-size: 24px;
    font-weight: 400;
  }
  a.button {
    background-color: var(--theme-primary-color);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    padding: 12px;
  }
}

#hero {
  background-color: #FFF2F2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  img {
    border-radius: 20px;
  }
  div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    h1 {
      color: #111827;
      text-align: center;
      .red-text {
        color: #DC2626;
        font-family: monospace;
      }
    }
    p {
      color: #4B5563;
      text-align: center;
      padding-inline: 20px;
    }
    a {
      align-self: center;
      text-align: center;
      text-decoration: none;
      color: white;
      padding: 4px 16px 4px 16px;
      border-radius: 16px;
      background: linear-gradient(90deg, #CD2E2C, #951D1C);
    }
  }
}

#about, #strength {
  background-color: #E5E7EB;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  p {
    margin-top: 20px;
    padding-inline: 20px;
  }
}

#team, #products {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  > p {
    margin-top: 20px;
    padding-inline: 20px;
  }
  > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 30px;
    gap: 20px;
    .card, .product-card {
      width: 284px;
      height: 276px;
      background-color: white;
      border-radius: 12px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 12px;
      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
      }
      > div {
        display: flex;
        gap: 12px;
      }
    }
  }
}

#team {
  > div {
    p {
      color: #DC2626;
    }
    .card {
      img {
        border-radius: 50%;
      }
    }
  }
}

#products {
  > div {
    .product-card {
      height: 330px;
      img {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
      }
      p {
        padding-inline: 8px;
      }
      a {
        text-align: center;
        color: white;
        text-decoration: none;
        padding: 4px 16px 4px 16px;
        border-radius: 16px;
        background: linear-gradient(90deg, #CD2E2C, #951D1C);
      }
    }
  }
}

footer {
  background-color: #1F1F1F;
  color: #E5E7EB;
  h5 {
    font-weight: 700;
  }
  section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 0px 30px 0px;
    gap: 50px;
    .one {
      max-width: 460px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      p {
        color: #9CA3AF;
      }
      a {
        align-self: flex-start;
        text-align: center;
        color: white;
        text-decoration: none;
        padding: 4px 16px 4px 16px;
        border-radius: 16px;
        background: linear-gradient(90deg, #CD2E2C, #951D1C);
      }
    }
    .two {
      display: flex;
      flex-direction: column;
      gap: 20px;
      > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        > a {
          color: #9CA3AF;
          text-decoration: none;
        }
      }
    }
    .three {
      display: flex;
      flex-direction: column;
      gap: 20px;
      > div {
        display: flex;
        gap: 12px;
      }
    }
  }
  hr {
    color: #1F2937;
    height: 1px;
    width: 100%;
    margin: 0;
  }
  > div {
    padding: 20px;
    color: #9CA3AF;
  }
}
